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

_________________________________________________________________
Share your memories online with anyone you want.
http://www.microsoft.com/singapore/windows/windowslive/products/photos-share.aspx?tab=1

Reply via email to