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/beans/XMultiPropertySet.hpp>
26 #include <com/sun/star/container/XNamed.hpp>
27 
28 #include "oox/drawingml/connectorshapecontext.hxx"
29 #include "oox/drawingml/graphicshapecontext.hxx"
30 #include "oox/drawingml/lineproperties.hxx"
31 #include "oox/drawingml/drawingmltypes.hxx"
32 #include "oox/drawingml/customshapegeometry.hxx"
33 #include "oox/drawingml/textbodycontext.hxx"
34 
35 using rtl::OUString;
36 using namespace oox::core;
37 using namespace ::com::sun::star;
38 using namespace ::com::sun::star::uno;
39 using namespace ::com::sun::star::drawing;
40 using namespace ::com::sun::star::beans;
41 using namespace ::com::sun::star::text;
42 using namespace ::com::sun::star::xml::sax;
43 
44 namespace oox { namespace drawingml {
45 
ConnectorShapeContext(ContextHandler & rParent,ShapePtr pMasterShapePtr,ShapePtr pGroupShapePtr)46 ConnectorShapeContext::ConnectorShapeContext( ContextHandler& rParent,
47         ShapePtr pMasterShapePtr, ShapePtr pGroupShapePtr )
48 : ShapeContext( rParent, pMasterShapePtr, pGroupShapePtr )
49 {
50 }
51 
~ConnectorShapeContext()52 ConnectorShapeContext::~ConnectorShapeContext()
53 {
54 }
55 
createFastChildContext(sal_Int32 aElementToken,const Reference<XFastAttributeList> & xAttribs)56 Reference< XFastContextHandler > ConnectorShapeContext::createFastChildContext( sal_Int32 aElementToken, const Reference< XFastAttributeList >& xAttribs ) throw (SAXException, RuntimeException)
57 {
58 	Reference< XFastContextHandler > xRet;
59 
60     switch( getBaseToken( aElementToken ) )
61 	{
62 		case XML_nvCxnSpPr :
63 		break;
64 
65 		default:
66 			xRet = ShapeContext::createFastChildContext( aElementToken, xAttribs );
67 	}
68 	if( !xRet.is() )
69 		xRet.set( this );
70 
71 
72 	return xRet;
73 }
74 
75 } }
76