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
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #include <com/sun/star/xml/sax/FastToken.hpp>
25 #include <com/sun/star/drawing/LineStyle.hpp>
26 #include <com/sun/star/beans/XMultiPropertySet.hpp>
27 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
28 #include <com/sun/star/container/XNamed.hpp>
29 
30 #include "oox/ppt/pptshape.hxx"
31 #include "oox/ppt/pptshapepropertiescontext.hxx"
32 #include "oox/ppt/slidepersist.hxx"
33 #include "oox/drawingml/shapestylecontext.hxx"
34 #include "oox/drawingml/fillpropertiesgroupcontext.hxx"
35 #include "oox/drawingml/lineproperties.hxx"
36 #include "oox/drawingml/drawingmltypes.hxx"
37 #include "oox/drawingml/customshapegeometry.hxx"
38 #include "oox/drawingml/textbodycontext.hxx"
39 
40 using rtl::OUString;
41 using namespace oox::core;
42 using namespace ::com::sun::star;
43 using namespace ::com::sun::star::uno;
44 using namespace ::com::sun::star::drawing;
45 using namespace ::com::sun::star::beans;
46 using namespace ::com::sun::star::text;
47 using namespace ::com::sun::star::xml::sax;
48 
49 namespace oox { namespace ppt {
50 
51 // CT_Shape
PPTShapePropertiesContext(ContextHandler & rParent,::oox::drawingml::Shape & rShape)52 PPTShapePropertiesContext::PPTShapePropertiesContext( ContextHandler& rParent, ::oox::drawingml::Shape& rShape )
53 : ShapePropertiesContext( rParent, rShape )
54 {
55 }
56 
createFastChildContext(sal_Int32 aElementToken,const Reference<XFastAttributeList> & xAttribs)57 Reference< XFastContextHandler > PPTShapePropertiesContext::createFastChildContext( sal_Int32 aElementToken, const Reference< XFastAttributeList >& xAttribs )
58 	throw (SAXException, RuntimeException)
59 {
60 	Reference< XFastContextHandler > xRet;
61 
62 	switch( aElementToken )
63 	{
64 		case A_TOKEN( xfrm ):
65 		{
66             mrShape.getShapeProperties()[ PROP_IsPlaceholderDependent ] <<= sal_False;
67 
68 			xRet = ShapePropertiesContext::createFastChildContext( aElementToken, xAttribs );
69 		}
70 		break;
71 
72 		default:
73 			xRet = ShapePropertiesContext::createFastChildContext( aElementToken, xAttribs );
74 		break;
75 	}
76 	return xRet;
77 }
78 
79 } }
80