summaryrefslogtreecommitdiff
path: root/oox/source/ppt/layoutfragmenthandler.cxx
diff options
context:
space:
mode:
authorRadek Doulik <rodo@novell.com>2011-08-11 18:07:59 +0200
committerRadek Doulik <rodo@novell.com>2011-08-11 18:09:54 +0200
commit2155c4c0af4d4eb228a0644f423aa3d9b5e8a2fb (patch)
treec2e266803322b743eb4706d9e7a05422332f2892 /oox/source/ppt/layoutfragmenthandler.cxx
parent76855b1befb18e0a674d712eab76e75c686c49d6 (diff)
added support for showMasterSp attribute in sldLayout
Diffstat (limited to 'oox/source/ppt/layoutfragmenthandler.cxx')
-rw-r--r--oox/source/ppt/layoutfragmenthandler.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/oox/source/ppt/layoutfragmenthandler.cxx b/oox/source/ppt/layoutfragmenthandler.cxx
index 6697f8190db2..a28f4b2d654c 100644
--- a/oox/source/ppt/layoutfragmenthandler.cxx
+++ b/oox/source/ppt/layoutfragmenthandler.cxx
@@ -65,8 +65,15 @@ ContextHandlerRef LayoutFragmentHandler::onCreateContext( sal_Int32 aElementToke
switch( aElementToken )
{
case PPT_TOKEN( sldLayout ): // CT_SlideLayout
+ {
mpSlidePersistPtr->setLayoutValueToken( rAttribs.getToken( XML_type, 0 ) ); // CT_SlideLayoutType
+
+ OptValue< bool > aShowMasterShapes = rAttribs.getBool( XML_showMasterSp );
+ if( aShowMasterShapes.has() && !aShowMasterShapes.get() ) {
+ mpSlidePersistPtr->dropShapes();
+ }
break;
+ }
case PPT_TOKEN( hf ): // CT_HeaderFooter
return new HeaderFooterContext( *this, rAttribs, mpSlidePersistPtr->getHeaderFooter() );
break;