slidefragmenthandler.cxx (99dcb3ee) slidefragmenthandler.cxx (c87f51db)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 63 unchanged lines hidden (view full) ---

72
73Reference< XFastContextHandler > SlideFragmentHandler::createFastChildContext( sal_Int32 aElementToken, const Reference< XFastAttributeList >& xAttribs ) throw (SAXException, RuntimeException)
74{
75 Reference< XFastContextHandler > xRet;
76 AttributeList aAttribs( xAttribs );
77
78 switch( aElementToken )
79 {
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 63 unchanged lines hidden (view full) ---

72
73Reference< XFastContextHandler > SlideFragmentHandler::createFastChildContext( sal_Int32 aElementToken, const Reference< XFastAttributeList >& xAttribs ) throw (SAXException, RuntimeException)
74{
75 Reference< XFastContextHandler > xRet;
76 AttributeList aAttribs( xAttribs );
77
78 switch( aElementToken )
79 {
80 case PPT_TOKEN( sld ): // CT_Slide
81 {
82 OptValue< bool > aShowMasterSp = aAttribs.getBool( XML_showMasterSp );
83 if( aShowMasterSp.has() && !aShowMasterSp.get() )
84 {
85 PropertyMap aPropMap;
86 aPropMap[ PROP_IsBackgroundObjectsVisible ] = Any( false );
87
88 Reference< XDrawPage > xSlide( mpSlidePersistPtr->getPage() );
89 PropertySet aSlideProp( xSlide );
90 aSlideProp.setProperties( aPropMap );
91 }
92 }
80 case PPT_TOKEN( sldMaster ): // CT_SlideMaster
93 case PPT_TOKEN( sldMaster ): // CT_SlideMaster
81 case PPT_TOKEN( handoutMaster ): // CT_HandoutMaster
82 case PPT_TOKEN( sld ): // CT_CommonSlideData
94 case PPT_TOKEN( handoutMaster ): // CT_HandoutMaster
83 {
95 {
84 AttributeList attribs( xAttribs );
96 OptValue< bool > aShow = aAttribs.getBool( XML_show );
97 if( aShow.has() && !aShow.get() )
98 {
99 PropertyMap aPropMap;
100 aPropMap[ PROP_Visible ] = Any( false );
85
101
86 Reference< XDrawPage > xSlide( mpSlidePersistPtr->getPage() );
87 PropertyMap aPropMap;
88 PropertySet aSlideProp( xSlide );
89
90 aPropMap[ PROP_Visible ] = Any( attribs.getBool( XML_show, sal_True ) );
91 aSlideProp.setProperties( aPropMap );
92
102 Reference< XDrawPage > xSlide( mpSlidePersistPtr->getPage() );
103 PropertySet aSlideProp( xSlide );
104 aSlideProp.setProperties( aPropMap );
105 }
93 break;
94 }
95 case PPT_TOKEN( notes ): // CT_NotesSlide
96 case PPT_TOKEN( notesMaster ): // CT_NotesMaster
97 break;
98 case PPT_TOKEN( cSld ): // CT_CommonSlideData
99 maSlideName = xAttribs->getOptionalValue(XML_name);
100 break;

--- 106 unchanged lines hidden ---
106 break;
107 }
108 case PPT_TOKEN( notes ): // CT_NotesSlide
109 case PPT_TOKEN( notesMaster ): // CT_NotesMaster
110 break;
111 case PPT_TOKEN( cSld ): // CT_CommonSlideData
112 maSlideName = xAttribs->getOptionalValue(XML_name);
113 break;

--- 106 unchanged lines hidden ---