Joined: 05 Jun 2006
|Posted: Tue Dec 12, 2006 6:28 am Post subject: Renaming slide through Java API
I tried to rename a XDrawPage with XNamed.setName() and XName.getName() however when it does not reflect on the Openoffice userview. For example if it is Slide 1, after i perform
XNamed xDrawPageName = (XNamed) UnoRuntime.queryInterface(XNamed.class, getDrawPageByIndex(0));
After which it still reflects "Slide 1" as its display name..
On another note, if i use xDrawPageName.getName(), its default is like Page1 Page2 ... PageN
I dunno why.. issit before i am setting the name through a wrong interface?
Thanks for answering my queries !