Why not trigger the undo action instead through the API?
On Mar 15, 2016 8:20 AM, "homer" <brickman...@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-unsubscr...@openoffice.apache.org
> For additional commands, e-mail: dev-h...@openoffice.apache.org
>
>

Reply via email to