slidefragmenthandler.cxx (ca5ec200) slidefragmenthandler.cxx (deebd566)
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

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

136 FillPropertiesPtr pFillPropertiesPtr( new FillProperties );
137 xRet.set( new BackgroundPropertiesContext( *this, *pFillPropertiesPtr ) );
138 mpSlidePersistPtr->setBackgroundProperties( pFillPropertiesPtr );
139 }
140 break;
141
142 case PPT_TOKEN( bgRef ): // a:CT_StyleMatrixReference
143 {
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

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

136 FillPropertiesPtr pFillPropertiesPtr( new FillProperties );
137 xRet.set( new BackgroundPropertiesContext( *this, *pFillPropertiesPtr ) );
138 mpSlidePersistPtr->setBackgroundProperties( pFillPropertiesPtr );
139 }
140 break;
141
142 case PPT_TOKEN( bgRef ): // a:CT_StyleMatrixReference
143 {
144 FillPropertiesPtr pFillPropertiesPtr( new FillProperties(
145 *mpSlidePersistPtr->getTheme()->getFillStyle( xAttribs->getOptionalValue( XML_idx ).toInt32() ) ) );
146 xRet.set( new ColorContext( *this, mpSlidePersistPtr->getBackgroundColor() ) );
147 mpSlidePersistPtr->setBackgroundProperties( pFillPropertiesPtr );
144 oox::drawingml::ThemePtr pTheme = mpSlidePersistPtr->getTheme();
145 if (pTheme)
146 {
147 FillPropertiesPtr pFillPropertiesPtr( new FillProperties(
148 *pTheme->getFillStyle( xAttribs->getOptionalValue( XML_idx ).toInt32() ) ) );
149 mpSlidePersistPtr->setBackgroundProperties( pFillPropertiesPtr );
150 }
151 xRet.set( new ColorContext( *this, mpSlidePersistPtr->getBackgroundColor() ) );
152
148 }
149 break;
150
151 case PPT_TOKEN( clrMap ): // CT_ColorMapping
152 {
153 oox::drawingml::ClrMapPtr pClrMapPtr( new oox::drawingml::ClrMap() );
154 xRet.set( new oox::drawingml::clrMapContext( *this, xAttribs, *pClrMapPtr ) );
155 mpSlidePersistPtr->setClrMap( pClrMapPtr );

--- 46 unchanged lines hidden ---
153 }
154 break;
155
156 case PPT_TOKEN( clrMap ): // CT_ColorMapping
157 {
158 oox::drawingml::ClrMapPtr pClrMapPtr( new oox::drawingml::ClrMap() );
159 xRet.set( new oox::drawingml::clrMapContext( *this, xAttribs, *pClrMapPtr ) );
160 mpSlidePersistPtr->setClrMap( pClrMapPtr );

--- 46 unchanged lines hidden ---