openoffice3.4 has com.sun.star.document.XUndoManager interface which 3.2 has not.
Since I have to use 3.2 ,do we have any other way to solve this?
> 下面是被转发的邮件:
>
> 发件人: JZA <acolorado@gmail.com>
> 主题: 回复: ctrl+z not work when add a listener to keyboard
> 日期: 2016年3月15日 GMT+8 21:38:13
> 收件人: dev <dev@openoffice.apache.org>
> 回复-收件人: dev@openoffice.apache.org
>
> Why not trigger the undo action instead through the API?
> On Mar 15, 2016 8:20 AM, "homer" <brickman379@gmail.com> wrote:
>
>> Hi,
>>
>> I’m using java on windows 64bit ,my open office version is 3.2.1.
>>
>> If I click on a RectangleShape ,then press alt+z,the selected shape do
>> align action.(A keyhandler listen on key event.)
>> If I want to undo that align action,press ctrl+z as usual,nothing happened.
>> But ctrl+a ,ctrl+c,ctrl+v,ctrl+x all work.
>> If I move a shape by hand,then i can undo it by click menu "Edit/Undo:Move
>> Rectangle”.But ctrl+z not work.
>> If the move is done by code, the edit menu is “Edit/Undo:Input”.
>>
>> How can i tell openoffice that the move is done by hand when it is
>> actually did by code.
>> How can i undo the move code did by press ctrl+z.
>> Please advise.
>>
>> Best Regards
>> Randy
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
>> For additional commands, e-mail: dev-help@openoffice.apache.org
>>
>>
|