diff options
Diffstat (limited to 'xmloff/source/draw/ximpshow.cxx')
-rw-r--r-- | xmloff/source/draw/ximpshow.cxx | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/xmloff/source/draw/ximpshow.cxx b/xmloff/source/draw/ximpshow.cxx index 0e227d9cfa64..4fba11fd380a 100644 --- a/xmloff/source/draw/ximpshow.cxx +++ b/xmloff/source/draw/ximpshow.cxx @@ -77,26 +77,24 @@ SdXMLShowsContext::SdXMLShowsContext( SdXMLImport& rImport, const Reference< XFa // read attributes for (auto &aIter : sax_fastparser::castToFastAttributeList( xAttrList )) { - OUString sValue = aIter.toString(); - switch( aIter.getToken() ) { case XML_ELEMENT(PRESENTATION, XML_START_PAGE): { - mxPresProps->setPropertyValue("FirstPage", Any(sValue) ); + mxPresProps->setPropertyValue("FirstPage", Any(aIter.toString()) ); bAll = false; break; } case XML_ELEMENT(PRESENTATION, XML_SHOW): { - maCustomShowName = sValue; + maCustomShowName = aIter.toString(); bAll = false; break; } case XML_ELEMENT(PRESENTATION, XML_PAUSE): { Duration aDuration; - if (!::sax::Converter::convertDuration(aDuration, sValue)) + if (!::sax::Converter::convertDuration(aDuration, aIter.toString())) continue; const sal_Int32 nMS = (aDuration.Hours * 60 + @@ -106,60 +104,60 @@ SdXMLShowsContext::SdXMLShowsContext( SdXMLImport& rImport, const Reference< XFa } case XML_ELEMENT(PRESENTATION, XML_ANIMATIONS): { - aAny <<= IsXMLToken( sValue, XML_ENABLED ); + aAny <<= IsXMLToken( aIter, XML_ENABLED ); mxPresProps->setPropertyValue("AllowAnimations", aAny ); break; } case XML_ELEMENT(PRESENTATION, XML_STAY_ON_TOP): { - aAny <<= IsXMLToken( sValue, XML_TRUE ); + aAny <<= IsXMLToken( aIter, XML_TRUE ); mxPresProps->setPropertyValue("IsAlwaysOnTop", aAny ); break; } case XML_ELEMENT(PRESENTATION, XML_FORCE_MANUAL): { - aAny <<= IsXMLToken( sValue, XML_TRUE ); + aAny <<= IsXMLToken( aIter, XML_TRUE ); mxPresProps->setPropertyValue("IsAutomatic", aAny ); break; } case XML_ELEMENT(PRESENTATION, XML_ENDLESS): { - aAny <<= IsXMLToken( sValue, XML_TRUE ); + aAny <<= IsXMLToken( aIter, XML_TRUE ); mxPresProps->setPropertyValue("IsEndless", aAny ); break; } case XML_ELEMENT(PRESENTATION, XML_FULL_SCREEN): { - aAny <<= IsXMLToken( sValue, XML_TRUE ); + aAny <<= IsXMLToken( aIter, XML_TRUE ); mxPresProps->setPropertyValue("IsFullScreen", aAny ); break; } case XML_ELEMENT(PRESENTATION, XML_MOUSE_VISIBLE): { - bIsMouseVisible = IsXMLToken( sValue, XML_TRUE ); + bIsMouseVisible = IsXMLToken( aIter, XML_TRUE ); break; } case XML_ELEMENT(PRESENTATION, XML_START_WITH_NAVIGATOR): { - aAny <<= IsXMLToken( sValue, XML_TRUE ); + aAny <<= IsXMLToken( aIter, XML_TRUE ); mxPresProps->setPropertyValue("StartWithNavigator", aAny ); break; } case XML_ELEMENT(PRESENTATION, XML_MOUSE_AS_PEN): { - aAny <<= IsXMLToken( sValue, XML_TRUE ); + aAny <<= IsXMLToken( aIter, XML_TRUE ); mxPresProps->setPropertyValue("UsePen", aAny ); break; } case XML_ELEMENT(PRESENTATION, XML_TRANSITION_ON_CLICK): { - aAny <<= IsXMLToken( sValue, XML_ENABLED ); + aAny <<= IsXMLToken( aIter, XML_ENABLED ); mxPresProps->setPropertyValue("IsTransitionOnClick", aAny ); break; } case XML_ELEMENT(PRESENTATION, XML_SHOW_LOGO): { - aAny <<= IsXMLToken( sValue, XML_TRUE ); + aAny <<= IsXMLToken( aIter, XML_TRUE ); mxPresProps->setPropertyValue("IsShowLogo", aAny ); break; } |