Is this the right place to ask qns regarding the api? Or i should be asking 
this questions in another mailing list?

 

Thanks. 
 
> From: shaun...@hotmail.com
> To: dev@openoffice.org
> Date: Tue, 18 Aug 2009 14:42:11 +0800
> Subject: [dev] How to get footer of presentation slide?
> 
> 
> Hi all,
> 
> 1) I was wondering how i can access the footer of presentation slides? 
> 
> Sample:
> 
> Reference< XDrawPagesSupplier > rDrawDoc(xcomponent, UNO_QUERY);
> Reference< XDrawPages > rDrawPages = rDrawDoc->getDrawPages();
> Reference< XNameAccess > rNameAccess (rDrawPages, UNO_QUERY);
> Reference< 
> XNameContainer>xNameContainer(rNameAccess->getByName(OUString::CreateFromAscii("PageStyles")),
>  UNO_QUERY);
> Reference< XStyle> 
> xStyle(xNameContainer->getByName(OUString::CreateFromAscii("default")), 
> UNO_QUERY);
> Reference< XPropertySet > xStyleProps(xStyle, UNO_QUERY);
> Reference< XText> 
> xtxt(xStyleProps->getPropertyValue(OUString::CreateFromAscii("FooterText")), 
> UNO_QUERY) ;
> OUString footer = xtxt-> getString();
> 
> However, rNameAccess doesn't seem to have an element that is called 
> "PageStyles". 
> I tried:
> 
> Sequence < OUString> xSeq = rNameAccess -> getElemenetNames();
> but this doesn't seem to populate the xSeq properly. 
> 2) How can i get element names or property names of an object?
> 
> 3) Also, How can I do it so that i iterate through and check the footer of 
> every page because the pages seem to be of Any type rather than something 
> NameAccess can handle?
> 
> Reference< XIndexAccess > rPageIndexAccess(rDrawPages, UNO_QUERY);
> Any DrawPage = rPageIndexAccess-getByIndex(0);
> 
> Thanks
> _________________________________________________________________
> See all the ways you can stay connected to friends and family
> http://www.microsoft.com/windows/windowslive/default.aspx

_________________________________________________________________
See all the ways you can stay connected to friends and family
http://www.microsoft.com/windows/windowslive/default.aspx

Reply via email to