Hi all,
Sorry if u're receiving this again. I've sent this previously without
subscribing to the group and wasn't sure if it went through.
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
_________________________________________________________________
More than messages–check out the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/