Hi,
i want to get all slideshow animation duration,i write code in
startShowImpl() , this function is in
sd\source\ui\slideshow\slieshowimpl.cxx,and the code:
int nPageCount = mpDoc->GetSdPageCount(PK_STANDARD);
for (int i = 0; i < nPageCount; i++)
{
double fSlideDuration;
SdPage* lpPage = mpDoc->GetSdPage(i, PK_STANDARD);
boost::shared_ptr< sd::MainSequence > pMainSequence =
lpPage->getMainSequence();
::com::sun::star::uno::Reference<
::com::sun::star::container::XEnumerationAccess >
xEnumerationAccess( pMainSequence->getRootNode(),
::com::sun::star::uno::UNO_QUERY_THROW
);
::com::sun::star::uno::Reference<
::com::sun::star::container::XEnumeration >
xEnumeration( xEnumerationAccess->createEnumeration(),
::com::sun::star::uno::UNO_QUERY_THROW );
while( xEnumeration->hasMoreElements() )
{
double fDuration = 0.0;
::com::sun::star::uno::Reference<
::com::sun::star::animations::XAnimationNode >
xChildNode( xEnumeration->nextElement(),
::com::sun::star::uno::UNO_QUERY_THROW );
// the fDuration always 0
fDuration =
*(double*)(xChildNode->getDuration().getValue());
}
}
in the while loop,the fDuration is always 0,is there something that i
should change? thx!--
你咋知道我姓杨呢?