Even if there is not XUndoManager there was an Undo service AFAIK. Since the documentation has move on from 3.x I would suggest to use the XRay explorer and look for services available. I tried lookingfor legacy releases, but only the binaries are there, I could look for old documentation release notes regarding the API changes, but that would take a while. http://www.openoffice.org/development/releases/3.2_sdk.html#newapis
On Tue, Mar 15, 2016 at 11:14 AM, homer <[email protected]> wrote: > 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 <[email protected]> > > 主题: 回复: ctrl+z not work when add a listener to keyboard > > 日期: 2016年3月15日 GMT+8 21:38:13 > > 收件人: dev <[email protected]> > > 回复-收件人: [email protected] > > > > Why not trigger the undo action instead through the API? > > On Mar 15, 2016 8:20 AM, "homer" <[email protected]> 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: [email protected] > >> For additional commands, e-mail: [email protected] > >> > >> > > -- Alexandro Colorado Apache OpenOffice Contributor 9060 55AB FFD2 2F02 0E1A 3409 599C 14FC 9450 D3CF
