xref: /aoo41x/main/xmloff/source/draw/ximpshap.hxx (revision ecfe53c5)
1*ecfe53c5SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*ecfe53c5SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*ecfe53c5SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*ecfe53c5SAndrew Rist  * distributed with this work for additional information
6*ecfe53c5SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*ecfe53c5SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*ecfe53c5SAndrew Rist  * "License"); you may not use this file except in compliance
9*ecfe53c5SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*ecfe53c5SAndrew Rist  *
11*ecfe53c5SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*ecfe53c5SAndrew Rist  *
13*ecfe53c5SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*ecfe53c5SAndrew Rist  * software distributed under the License is distributed on an
15*ecfe53c5SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*ecfe53c5SAndrew Rist  * KIND, either express or implied.  See the License for the
17*ecfe53c5SAndrew Rist  * specific language governing permissions and limitations
18*ecfe53c5SAndrew Rist  * under the License.
19*ecfe53c5SAndrew Rist  *
20*ecfe53c5SAndrew Rist  *************************************************************/
21*ecfe53c5SAndrew Rist 
22*ecfe53c5SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _XIMPSHAPE_HXX
25cdf0e10cSrcweir #define _XIMPSHAPE_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <com/sun/star/io/XOutputStream.hpp>
28cdf0e10cSrcweir #include <com/sun/star/document/XActionLockable.hpp>
29cdf0e10cSrcweir #include <com/sun/star/container/XIdentifierContainer.hpp>
30cdf0e10cSrcweir #include <xmloff/xmlictxt.hxx>
31cdf0e10cSrcweir #include "sdxmlimp_impl.hxx"
32cdf0e10cSrcweir #include <xmloff/nmspmap.hxx>
33cdf0e10cSrcweir #include <com/sun/star/drawing/XShapes.hpp>
34cdf0e10cSrcweir #include <com/sun/star/text/XTextCursor.hpp>
35cdf0e10cSrcweir #include <com/sun/star/awt/Point.hpp>
36cdf0e10cSrcweir #include <tools/rtti.hxx>
37cdf0e10cSrcweir #include "xexptran.hxx"
38cdf0e10cSrcweir 
39cdf0e10cSrcweir #include <vector>
40cdf0e10cSrcweir #include <xmloff/shapeimport.hxx>
41cdf0e10cSrcweir 
42cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
43cdf0e10cSrcweir // common shape context
44cdf0e10cSrcweir 
45cdf0e10cSrcweir class SdXMLShapeContext : public SvXMLShapeContext
46cdf0e10cSrcweir {
47cdf0e10cSrcweir protected:
48cdf0e10cSrcweir 	// the shape group this object should be created inside
49cdf0e10cSrcweir 	com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >	mxShapes;
50cdf0e10cSrcweir 	com::sun::star::uno::Reference< com::sun::star::text::XTextCursor >	mxCursor;
51cdf0e10cSrcweir 	com::sun::star::uno::Reference< com::sun::star::text::XTextCursor >	mxOldCursor;
52cdf0e10cSrcweir 	com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList> mxAttrList;
53cdf0e10cSrcweir 	com::sun::star::uno::Reference< com::sun::star::container::XIdentifierContainer > mxGluePoints;
54cdf0e10cSrcweir 	com::sun::star::uno::Reference< com::sun::star::document::XActionLockable > mxLockable;
55cdf0e10cSrcweir 
56cdf0e10cSrcweir 	rtl::OUString				maDrawStyleName;
57cdf0e10cSrcweir 	rtl::OUString				maTextStyleName;
58cdf0e10cSrcweir 	rtl::OUString				maPresentationClass;
59cdf0e10cSrcweir 	rtl::OUString				maShapeName;
60cdf0e10cSrcweir 	rtl::OUString				maThumbnailURL;
61cdf0e10cSrcweir 
62cdf0e10cSrcweir     /// whether to restore list context (#91964#)
63cdf0e10cSrcweir     bool                        mbListContextPushed;
64cdf0e10cSrcweir 
65cdf0e10cSrcweir 	sal_uInt16					mnStyleFamily;
66cdf0e10cSrcweir 	sal_uInt16					mnClass;
67cdf0e10cSrcweir 	sal_Bool					mbIsPlaceholder;
68cdf0e10cSrcweir 	bool						mbClearDefaultAttributes;
69cdf0e10cSrcweir 	sal_Bool					mbIsUserTransformed;
70cdf0e10cSrcweir 	sal_Int32					mnZOrder;
71cdf0e10cSrcweir 	rtl::OUString				maShapeId;
72cdf0e10cSrcweir 	rtl::OUString				maLayerName;
73cdf0e10cSrcweir 
74cdf0e10cSrcweir 	// #i68101#
75cdf0e10cSrcweir 	rtl::OUString				maShapeTitle;
76cdf0e10cSrcweir 	rtl::OUString				maShapeDescription;
77cdf0e10cSrcweir 
78cdf0e10cSrcweir 	SdXMLImExTransform2D		mnTransform;
79cdf0e10cSrcweir 	com::sun::star::awt::Size	maSize;
80cdf0e10cSrcweir 	com::sun::star::awt::Point	maPosition;
81cdf0e10cSrcweir 
82cdf0e10cSrcweir 	bool						mbVisible;
83cdf0e10cSrcweir 	bool						mbPrintable;
84cdf0e10cSrcweir 
85cdf0e10cSrcweir 	/** if bSupportsStyle is false, auto styles will be set but not	a style */
86cdf0e10cSrcweir 	void SetStyle( bool bSupportsStyle = true );
87cdf0e10cSrcweir 	void SetLayer();
88cdf0e10cSrcweir 	void SetThumbnail();
89cdf0e10cSrcweir 
90cdf0e10cSrcweir 	void AddShape(com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape);
91cdf0e10cSrcweir 	void AddShape(const char* pServiceName );
92cdf0e10cSrcweir 	void SetTransformation();
93cdf0e10cSrcweir 
94cdf0e10cSrcweir 	SvXMLImport& GetImport() { return SvXMLImportContext::GetImport(); }
95cdf0e10cSrcweir 	const SvXMLImport& GetImport() const { return SvXMLImportContext::GetImport(); }
96cdf0e10cSrcweir 
97cdf0e10cSrcweir 	void addGluePoint( const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList );
98cdf0e10cSrcweir 
99cdf0e10cSrcweir 	sal_Bool isPresentationShape() const;
100cdf0e10cSrcweir 
101cdf0e10cSrcweir public:
102cdf0e10cSrcweir 	TYPEINFO();
103cdf0e10cSrcweir 
104cdf0e10cSrcweir 	SdXMLShapeContext( SvXMLImport& rImport,
105cdf0e10cSrcweir 		sal_uInt16 nPrfx,
106cdf0e10cSrcweir 		const rtl::OUString& rLocalName,
107cdf0e10cSrcweir 		const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
108cdf0e10cSrcweir 		com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes,
109cdf0e10cSrcweir         sal_Bool bTemporaryShape);
110cdf0e10cSrcweir 	virtual ~SdXMLShapeContext();
111cdf0e10cSrcweir 
112cdf0e10cSrcweir 	virtual void StartElement(const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList);
113cdf0e10cSrcweir 	virtual void EndElement();
114cdf0e10cSrcweir 
115cdf0e10cSrcweir 	virtual SvXMLImportContext * CreateChildContext( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName,
116cdf0e10cSrcweir 		const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList );
117cdf0e10cSrcweir 
118cdf0e10cSrcweir 	// this is called from the parent group for each unparsed attribute in the attribute list
119cdf0e10cSrcweir 	virtual void processAttribute( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName, const ::rtl::OUString& rValue );
120cdf0e10cSrcweir };
121cdf0e10cSrcweir 
122cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
123cdf0e10cSrcweir // draw:rect context
124cdf0e10cSrcweir 
125cdf0e10cSrcweir class SdXMLRectShapeContext : public SdXMLShapeContext
126cdf0e10cSrcweir {
127cdf0e10cSrcweir 	sal_Int32					mnRadius;
128cdf0e10cSrcweir 
129cdf0e10cSrcweir public:
130cdf0e10cSrcweir 	TYPEINFO();
131cdf0e10cSrcweir 
132cdf0e10cSrcweir 	SdXMLRectShapeContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
133cdf0e10cSrcweir 		const rtl::OUString& rLocalName,
134cdf0e10cSrcweir 		const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
135cdf0e10cSrcweir 		com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes,
136cdf0e10cSrcweir         sal_Bool bTemporaryShape);
137cdf0e10cSrcweir 	virtual ~SdXMLRectShapeContext();
138cdf0e10cSrcweir 	virtual void StartElement(const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList);
139cdf0e10cSrcweir 
140cdf0e10cSrcweir 	// this is called from the parent group for each unparsed attribute in the attribute list
141cdf0e10cSrcweir 	virtual void processAttribute( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName, const ::rtl::OUString& rValue );
142cdf0e10cSrcweir };
143cdf0e10cSrcweir 
144cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
145cdf0e10cSrcweir // draw:line context
146cdf0e10cSrcweir 
147cdf0e10cSrcweir class SdXMLLineShapeContext : public SdXMLShapeContext
148cdf0e10cSrcweir {
149cdf0e10cSrcweir 	sal_Int32					mnX1;
150cdf0e10cSrcweir 	sal_Int32					mnY1;
151cdf0e10cSrcweir 	sal_Int32					mnX2;
152cdf0e10cSrcweir 	sal_Int32					mnY2;
153cdf0e10cSrcweir 
154cdf0e10cSrcweir public:
155cdf0e10cSrcweir 	TYPEINFO();
156cdf0e10cSrcweir 
157cdf0e10cSrcweir 	SdXMLLineShapeContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
158cdf0e10cSrcweir 		const rtl::OUString& rLocalName,
159cdf0e10cSrcweir 		const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
160cdf0e10cSrcweir 		com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes,
161cdf0e10cSrcweir         sal_Bool bTemporaryShape);
162cdf0e10cSrcweir 	virtual ~SdXMLLineShapeContext();
163cdf0e10cSrcweir 	virtual void StartElement(const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList);
164cdf0e10cSrcweir 
165cdf0e10cSrcweir 	// this is called from the parent group for each unparsed attribute in the attribute list
166cdf0e10cSrcweir 	virtual void processAttribute( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName, const ::rtl::OUString& rValue );
167cdf0e10cSrcweir };
168cdf0e10cSrcweir 
169cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
170cdf0e10cSrcweir // draw:ellipse and draw:circle context
171cdf0e10cSrcweir 
172cdf0e10cSrcweir class SdXMLEllipseShapeContext : public SdXMLShapeContext
173cdf0e10cSrcweir {
174cdf0e10cSrcweir 	sal_Int32					mnCX;
175cdf0e10cSrcweir 	sal_Int32					mnCY;
176cdf0e10cSrcweir 	sal_Int32					mnRX;
177cdf0e10cSrcweir 	sal_Int32					mnRY;
178cdf0e10cSrcweir 
179cdf0e10cSrcweir 	sal_uInt16						meKind;
180cdf0e10cSrcweir 	sal_Int32					mnStartAngle;
181cdf0e10cSrcweir 	sal_Int32					mnEndAngle;
182cdf0e10cSrcweir public:
183cdf0e10cSrcweir 	TYPEINFO();
184cdf0e10cSrcweir 
185cdf0e10cSrcweir 	SdXMLEllipseShapeContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
186cdf0e10cSrcweir 		const rtl::OUString& rLocalName,
187cdf0e10cSrcweir 		const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
188cdf0e10cSrcweir 		com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes,
189cdf0e10cSrcweir         sal_Bool bTemporaryShape);
190cdf0e10cSrcweir 	virtual ~SdXMLEllipseShapeContext();
191cdf0e10cSrcweir 	virtual void StartElement(const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList);
192cdf0e10cSrcweir 
193cdf0e10cSrcweir 	// this is called from the parent group for each unparsed attribute in the attribute list
194cdf0e10cSrcweir 	virtual void processAttribute( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName, const ::rtl::OUString& rValue );
195cdf0e10cSrcweir };
196cdf0e10cSrcweir 
197cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
198cdf0e10cSrcweir // draw:polyline and draw:polygon context
199cdf0e10cSrcweir 
200cdf0e10cSrcweir class SdXMLPolygonShapeContext : public SdXMLShapeContext
201cdf0e10cSrcweir {
202cdf0e10cSrcweir 	rtl::OUString				maPoints;
203cdf0e10cSrcweir 	rtl::OUString				maViewBox;
204cdf0e10cSrcweir 	sal_Bool					mbClosed;
205cdf0e10cSrcweir 
206cdf0e10cSrcweir public:
207cdf0e10cSrcweir 	TYPEINFO();
208cdf0e10cSrcweir 
209cdf0e10cSrcweir 	SdXMLPolygonShapeContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
210cdf0e10cSrcweir 		const rtl::OUString& rLocalName,
211cdf0e10cSrcweir 		const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
212cdf0e10cSrcweir 		com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes, sal_Bool bClosed, sal_Bool bTemporaryShape);
213cdf0e10cSrcweir 	virtual ~SdXMLPolygonShapeContext();
214cdf0e10cSrcweir 	virtual void StartElement(const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList);
215cdf0e10cSrcweir 
216cdf0e10cSrcweir 	// this is called from the parent group for each unparsed attribute in the attribute list
217cdf0e10cSrcweir 	virtual void processAttribute( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName, const ::rtl::OUString& rValue );
218cdf0e10cSrcweir };
219cdf0e10cSrcweir 
220cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
221cdf0e10cSrcweir // draw:path context
222cdf0e10cSrcweir 
223cdf0e10cSrcweir class SdXMLPathShapeContext : public SdXMLShapeContext
224cdf0e10cSrcweir {
225cdf0e10cSrcweir 	rtl::OUString				maD;
226cdf0e10cSrcweir 	rtl::OUString				maViewBox;
227cdf0e10cSrcweir 	sal_Bool					mbClosed;
228cdf0e10cSrcweir 
229cdf0e10cSrcweir public:
230cdf0e10cSrcweir 	TYPEINFO();
231cdf0e10cSrcweir 
232cdf0e10cSrcweir 	SdXMLPathShapeContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
233cdf0e10cSrcweir 		const rtl::OUString& rLocalName,
234cdf0e10cSrcweir 		const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
235cdf0e10cSrcweir 		com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes,
236cdf0e10cSrcweir         sal_Bool bTemporaryShape);
237cdf0e10cSrcweir 	virtual ~SdXMLPathShapeContext();
238cdf0e10cSrcweir 	virtual void StartElement(const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList);
239cdf0e10cSrcweir 
240cdf0e10cSrcweir 	// this is called from the parent group for each unparsed attribute in the attribute list
241cdf0e10cSrcweir 	virtual void processAttribute( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName, const ::rtl::OUString& rValue );
242cdf0e10cSrcweir };
243cdf0e10cSrcweir 
244cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
245cdf0e10cSrcweir // draw:text-box context
246cdf0e10cSrcweir 
247cdf0e10cSrcweir class SdXMLTextBoxShapeContext : public SdXMLShapeContext
248cdf0e10cSrcweir {
249cdf0e10cSrcweir 	sal_Int32					mnRadius;
250cdf0e10cSrcweir 
251cdf0e10cSrcweir public:
252cdf0e10cSrcweir 	TYPEINFO();
253cdf0e10cSrcweir 
254cdf0e10cSrcweir 	SdXMLTextBoxShapeContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
255cdf0e10cSrcweir 		const rtl::OUString& rLocalName,
256cdf0e10cSrcweir 		const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
257cdf0e10cSrcweir 		com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes,
258cdf0e10cSrcweir         sal_Bool bTemporaryShape);
259cdf0e10cSrcweir 	virtual ~SdXMLTextBoxShapeContext();
260cdf0e10cSrcweir 	virtual void StartElement(const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList);
261cdf0e10cSrcweir 
262cdf0e10cSrcweir 	// this is called from the parent group for each unparsed attribute in the attribute list
263cdf0e10cSrcweir 	virtual void processAttribute( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName, const ::rtl::OUString& rValue );
264cdf0e10cSrcweir };
265cdf0e10cSrcweir 
266cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
267cdf0e10cSrcweir // draw:control context
268cdf0e10cSrcweir 
269cdf0e10cSrcweir class SdXMLControlShapeContext : public SdXMLShapeContext
270cdf0e10cSrcweir {
271cdf0e10cSrcweir private:
272cdf0e10cSrcweir 	rtl::OUString maFormId;
273cdf0e10cSrcweir 
274cdf0e10cSrcweir public:
275cdf0e10cSrcweir 	TYPEINFO();
276cdf0e10cSrcweir 
277cdf0e10cSrcweir 	SdXMLControlShapeContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
278cdf0e10cSrcweir 		const rtl::OUString& rLocalName,
279cdf0e10cSrcweir 		const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
280cdf0e10cSrcweir 		com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes,
281cdf0e10cSrcweir         sal_Bool bTemporaryShape);
282cdf0e10cSrcweir 	virtual ~SdXMLControlShapeContext();
283cdf0e10cSrcweir 	virtual void StartElement(const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList);
284cdf0e10cSrcweir 
285cdf0e10cSrcweir 	// this is called from the parent group for each unparsed attribute in the attribute list
286cdf0e10cSrcweir 	virtual void processAttribute( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName, const ::rtl::OUString& rValue );
287cdf0e10cSrcweir };
288cdf0e10cSrcweir 
289cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
290cdf0e10cSrcweir // draw:connector context
291cdf0e10cSrcweir 
292cdf0e10cSrcweir class SdXMLConnectorShapeContext : public SdXMLShapeContext
293cdf0e10cSrcweir {
294cdf0e10cSrcweir private:
295cdf0e10cSrcweir 	::com::sun::star::awt::Point maStart;
296cdf0e10cSrcweir 	::com::sun::star::awt::Point maEnd;
297cdf0e10cSrcweir 
298cdf0e10cSrcweir 	sal_uInt16		mnType;
299cdf0e10cSrcweir 
300cdf0e10cSrcweir 	rtl::OUString	maStartShapeId;
301cdf0e10cSrcweir 	sal_Int32		mnStartGlueId;
302cdf0e10cSrcweir 	rtl::OUString	maEndShapeId;
303cdf0e10cSrcweir 	sal_Int32		mnEndGlueId;
304cdf0e10cSrcweir 
305cdf0e10cSrcweir 	sal_Int32	mnDelta1;
306cdf0e10cSrcweir 	sal_Int32	mnDelta2;
307cdf0e10cSrcweir 	sal_Int32	mnDelta3;
308cdf0e10cSrcweir 
309cdf0e10cSrcweir 	com::sun::star::uno::Any maPath;
310cdf0e10cSrcweir 
311cdf0e10cSrcweir public:
312cdf0e10cSrcweir 	TYPEINFO();
313cdf0e10cSrcweir 
314cdf0e10cSrcweir 	SdXMLConnectorShapeContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
315cdf0e10cSrcweir 		const rtl::OUString& rLocalName,
316cdf0e10cSrcweir 		const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
317cdf0e10cSrcweir 		com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes,
318cdf0e10cSrcweir         sal_Bool bTemporaryShape);
319cdf0e10cSrcweir 	virtual ~SdXMLConnectorShapeContext();
320cdf0e10cSrcweir 	virtual void StartElement(const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList);
321cdf0e10cSrcweir 
322cdf0e10cSrcweir 	// this is called from the parent group for each unparsed attribute in the attribute list
323cdf0e10cSrcweir 	virtual void processAttribute( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName, const ::rtl::OUString& rValue );
324cdf0e10cSrcweir };
325cdf0e10cSrcweir 
326cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
327cdf0e10cSrcweir // draw:measure context
328cdf0e10cSrcweir 
329cdf0e10cSrcweir class SdXMLMeasureShapeContext : public SdXMLShapeContext
330cdf0e10cSrcweir {
331cdf0e10cSrcweir private:
332cdf0e10cSrcweir 	::com::sun::star::awt::Point maStart;
333cdf0e10cSrcweir 	::com::sun::star::awt::Point maEnd;
334cdf0e10cSrcweir 
335cdf0e10cSrcweir public:
336cdf0e10cSrcweir 	TYPEINFO();
337cdf0e10cSrcweir 
338cdf0e10cSrcweir 	SdXMLMeasureShapeContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
339cdf0e10cSrcweir 		const rtl::OUString& rLocalName,
340cdf0e10cSrcweir 		const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
341cdf0e10cSrcweir 		com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes,
342cdf0e10cSrcweir         sal_Bool bTemporaryShape);
343cdf0e10cSrcweir 	virtual ~SdXMLMeasureShapeContext();
344cdf0e10cSrcweir 	virtual void StartElement(const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList);
345cdf0e10cSrcweir 	virtual void EndElement();
346cdf0e10cSrcweir 
347cdf0e10cSrcweir 	// this is called from the parent group for each unparsed attribute in the attribute list
348cdf0e10cSrcweir 	virtual void processAttribute( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName, const ::rtl::OUString& rValue );
349cdf0e10cSrcweir };
350cdf0e10cSrcweir 
351cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
352cdf0e10cSrcweir // draw:page context
353cdf0e10cSrcweir 
354cdf0e10cSrcweir class SdXMLPageShapeContext : public SdXMLShapeContext
355cdf0e10cSrcweir {
356cdf0e10cSrcweir private:
357cdf0e10cSrcweir 	sal_Int32	mnPageNumber;
358cdf0e10cSrcweir public:
359cdf0e10cSrcweir 	TYPEINFO();
360cdf0e10cSrcweir 
361cdf0e10cSrcweir 	SdXMLPageShapeContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
362cdf0e10cSrcweir 		const rtl::OUString& rLocalName,
363cdf0e10cSrcweir 		const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
364cdf0e10cSrcweir 		com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes,
365cdf0e10cSrcweir         sal_Bool bTemporaryShape);
366cdf0e10cSrcweir 	virtual ~SdXMLPageShapeContext();
367cdf0e10cSrcweir 	virtual void StartElement(const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList);
368cdf0e10cSrcweir 
369cdf0e10cSrcweir 	// this is called from the parent group for each unparsed attribute in the attribute list
370cdf0e10cSrcweir 	virtual void processAttribute( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName, const ::rtl::OUString& rValue );
371cdf0e10cSrcweir };
372cdf0e10cSrcweir 
373cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
374cdf0e10cSrcweir // draw:caption context
375cdf0e10cSrcweir 
376cdf0e10cSrcweir class SdXMLCaptionShapeContext : public SdXMLShapeContext
377cdf0e10cSrcweir {
378cdf0e10cSrcweir private:
379cdf0e10cSrcweir 	com::sun::star::awt::Point maCaptionPoint;
380cdf0e10cSrcweir 	sal_Int32 mnRadius;
381cdf0e10cSrcweir 
382cdf0e10cSrcweir public:
383cdf0e10cSrcweir 	TYPEINFO();
384cdf0e10cSrcweir 
385cdf0e10cSrcweir 	SdXMLCaptionShapeContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
386cdf0e10cSrcweir 		const rtl::OUString& rLocalName,
387cdf0e10cSrcweir 		const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
388cdf0e10cSrcweir 		com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes,
389cdf0e10cSrcweir         sal_Bool bTemporaryShape);
390cdf0e10cSrcweir 	virtual ~SdXMLCaptionShapeContext();
391cdf0e10cSrcweir 	virtual void StartElement(const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList);
392cdf0e10cSrcweir 
393cdf0e10cSrcweir 	// this is called from the parent group for each unparsed attribute in the attribute list
394cdf0e10cSrcweir 	virtual void processAttribute( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName, const ::rtl::OUString& rValue );
395cdf0e10cSrcweir };
396cdf0e10cSrcweir 
397cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
398cdf0e10cSrcweir // office:image context
399cdf0e10cSrcweir 
400cdf0e10cSrcweir class SdXMLGraphicObjectShapeContext : public SdXMLShapeContext
401cdf0e10cSrcweir {
402cdf0e10cSrcweir private:
403cdf0e10cSrcweir 	::rtl::OUString maURL;
404cdf0e10cSrcweir 	::com::sun::star::uno::Reference < ::com::sun::star::io::XOutputStream > mxBase64Stream;
405cdf0e10cSrcweir 
406cdf0e10cSrcweir public:
407cdf0e10cSrcweir 	TYPEINFO();
408cdf0e10cSrcweir 
409cdf0e10cSrcweir 	SdXMLGraphicObjectShapeContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
410cdf0e10cSrcweir 		const rtl::OUString& rLocalName,
411cdf0e10cSrcweir 		const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
412cdf0e10cSrcweir 		com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes,
413cdf0e10cSrcweir         sal_Bool bTemporaryShape);
414cdf0e10cSrcweir 	virtual ~SdXMLGraphicObjectShapeContext();
415cdf0e10cSrcweir 
416cdf0e10cSrcweir 	virtual void StartElement( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
417cdf0e10cSrcweir 	virtual void EndElement();
418cdf0e10cSrcweir 	virtual SvXMLImportContext * CreateChildContext( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName,
419cdf0e10cSrcweir 		const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList );
420cdf0e10cSrcweir 
421cdf0e10cSrcweir 	// this is called from the parent group for each unparsed attribute in the attribute list
422cdf0e10cSrcweir 	virtual void processAttribute( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName, const ::rtl::OUString& rValue );
423cdf0e10cSrcweir };
424cdf0e10cSrcweir 
425cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
426cdf0e10cSrcweir // chart:chart context
427cdf0e10cSrcweir 
428cdf0e10cSrcweir class SdXMLChartShapeContext : public SdXMLShapeContext
429cdf0e10cSrcweir {
430cdf0e10cSrcweir 	SvXMLImportContext*			mpChartContext;
431cdf0e10cSrcweir 
432cdf0e10cSrcweir public:
433cdf0e10cSrcweir 	TYPEINFO();
434cdf0e10cSrcweir 
435cdf0e10cSrcweir 	SdXMLChartShapeContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
436cdf0e10cSrcweir 		const rtl::OUString& rLocalName,
437cdf0e10cSrcweir 		const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
438cdf0e10cSrcweir 		com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes,
439cdf0e10cSrcweir         sal_Bool bTemporaryShape);
440cdf0e10cSrcweir 	virtual ~SdXMLChartShapeContext();
441cdf0e10cSrcweir 
442cdf0e10cSrcweir 	virtual void StartElement( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
443cdf0e10cSrcweir 	virtual void EndElement();
444cdf0e10cSrcweir 	virtual void Characters( const ::rtl::OUString& rChars );
445cdf0e10cSrcweir 	virtual SvXMLImportContext * CreateChildContext( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName,
446cdf0e10cSrcweir 		const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList );
447cdf0e10cSrcweir };
448cdf0e10cSrcweir 
449cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
450cdf0e10cSrcweir // draw:object and draw:object_ole context
451cdf0e10cSrcweir 
452cdf0e10cSrcweir class SdXMLObjectShapeContext : public SdXMLShapeContext
453cdf0e10cSrcweir {
454cdf0e10cSrcweir private:
455cdf0e10cSrcweir 	rtl::OUString maCLSID;
456cdf0e10cSrcweir 	rtl::OUString maHref;
457cdf0e10cSrcweir 
458cdf0e10cSrcweir 	// #100592#
459cdf0e10cSrcweir 	::com::sun::star::uno::Reference < ::com::sun::star::io::XOutputStream > mxBase64Stream;
460cdf0e10cSrcweir 
461cdf0e10cSrcweir public:
462cdf0e10cSrcweir 	TYPEINFO();
463cdf0e10cSrcweir 
464cdf0e10cSrcweir 	SdXMLObjectShapeContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
465cdf0e10cSrcweir 		const rtl::OUString& rLocalName,
466cdf0e10cSrcweir 		const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
467cdf0e10cSrcweir 		com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes,
468cdf0e10cSrcweir         sal_Bool bTemporaryShape);
469cdf0e10cSrcweir 	virtual ~SdXMLObjectShapeContext();
470cdf0e10cSrcweir 
471cdf0e10cSrcweir 	virtual void StartElement( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
472cdf0e10cSrcweir 	virtual void EndElement();
473cdf0e10cSrcweir 
474cdf0e10cSrcweir 	// #100592#
475cdf0e10cSrcweir 	virtual SvXMLImportContext * CreateChildContext( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName,
476cdf0e10cSrcweir 		const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList );
477cdf0e10cSrcweir 
478cdf0e10cSrcweir 	// this is called from the parent group for each unparsed attribute in the attribute list
479cdf0e10cSrcweir 	virtual void processAttribute( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName, const ::rtl::OUString& rValue );
480cdf0e10cSrcweir };
481cdf0e10cSrcweir 
482cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
483cdf0e10cSrcweir // draw:applet
484cdf0e10cSrcweir 
485cdf0e10cSrcweir class SdXMLAppletShapeContext : public SdXMLShapeContext
486cdf0e10cSrcweir {
487cdf0e10cSrcweir private:
488cdf0e10cSrcweir 	rtl::OUString maAppletName;
489cdf0e10cSrcweir 	rtl::OUString maAppletCode;
490cdf0e10cSrcweir 	rtl::OUString maHref;
491cdf0e10cSrcweir 	sal_Bool mbIsScript;
492cdf0e10cSrcweir 
493cdf0e10cSrcweir 	com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > maParams;
494cdf0e10cSrcweir 
495cdf0e10cSrcweir public:
496cdf0e10cSrcweir 	TYPEINFO();
497cdf0e10cSrcweir 
498cdf0e10cSrcweir 	SdXMLAppletShapeContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
499cdf0e10cSrcweir 		const rtl::OUString& rLocalName,
500cdf0e10cSrcweir 		const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
501cdf0e10cSrcweir 		com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes,
502cdf0e10cSrcweir         sal_Bool bTemporaryShape);
503cdf0e10cSrcweir 	virtual ~SdXMLAppletShapeContext();
504cdf0e10cSrcweir 
505cdf0e10cSrcweir 	virtual void StartElement( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
506cdf0e10cSrcweir 	virtual void EndElement();
507cdf0e10cSrcweir 
508cdf0e10cSrcweir 	virtual SvXMLImportContext * CreateChildContext( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName,
509cdf0e10cSrcweir 		const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList );
510cdf0e10cSrcweir 
511cdf0e10cSrcweir 	// this is called from the parent group for each unparsed attribute in the attribute list
512cdf0e10cSrcweir 	virtual void processAttribute( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName, const ::rtl::OUString& rValue );
513cdf0e10cSrcweir };
514cdf0e10cSrcweir 
515cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
516cdf0e10cSrcweir // draw:plugin
517cdf0e10cSrcweir 
518cdf0e10cSrcweir class SdXMLPluginShapeContext : public SdXMLShapeContext
519cdf0e10cSrcweir {
520cdf0e10cSrcweir private:
521cdf0e10cSrcweir 	rtl::OUString 	maMimeType;
522cdf0e10cSrcweir 	rtl::OUString 	maHref;
523cdf0e10cSrcweir 	bool			mbMedia;
524cdf0e10cSrcweir 
525cdf0e10cSrcweir 	com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > maParams;
526cdf0e10cSrcweir 
527cdf0e10cSrcweir public:
528cdf0e10cSrcweir 	TYPEINFO();
529cdf0e10cSrcweir 
530cdf0e10cSrcweir 	SdXMLPluginShapeContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
531cdf0e10cSrcweir 		const rtl::OUString& rLocalName,
532cdf0e10cSrcweir 		const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
533cdf0e10cSrcweir 		com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes,
534cdf0e10cSrcweir         sal_Bool bTemporaryShape);
535cdf0e10cSrcweir 	virtual ~SdXMLPluginShapeContext();
536cdf0e10cSrcweir 
537cdf0e10cSrcweir 	virtual void StartElement( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
538cdf0e10cSrcweir 	virtual void EndElement();
539cdf0e10cSrcweir 
540cdf0e10cSrcweir 	virtual SvXMLImportContext * CreateChildContext( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName,
541cdf0e10cSrcweir 		const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList );
542cdf0e10cSrcweir 
543cdf0e10cSrcweir 	// this is called from the parent group for each unparsed attribute in the attribute list
544cdf0e10cSrcweir 	virtual void processAttribute( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName, const ::rtl::OUString& rValue );
545cdf0e10cSrcweir };
546cdf0e10cSrcweir 
547cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
548cdf0e10cSrcweir // draw:floating-frame
549cdf0e10cSrcweir 
550cdf0e10cSrcweir class SdXMLFloatingFrameShapeContext : public SdXMLShapeContext
551cdf0e10cSrcweir {
552cdf0e10cSrcweir private:
553cdf0e10cSrcweir 	rtl::OUString maFrameName;
554cdf0e10cSrcweir 	rtl::OUString maHref;
555cdf0e10cSrcweir 
556cdf0e10cSrcweir public:
557cdf0e10cSrcweir 	TYPEINFO();
558cdf0e10cSrcweir 
559cdf0e10cSrcweir 	SdXMLFloatingFrameShapeContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
560cdf0e10cSrcweir 		const rtl::OUString& rLocalName,
561cdf0e10cSrcweir 		const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
562cdf0e10cSrcweir 		com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes,
563cdf0e10cSrcweir         sal_Bool bTemporaryShape);
564cdf0e10cSrcweir 	virtual ~SdXMLFloatingFrameShapeContext();
565cdf0e10cSrcweir 
566cdf0e10cSrcweir 	virtual void StartElement( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
567cdf0e10cSrcweir 	virtual void EndElement();
568cdf0e10cSrcweir 
569cdf0e10cSrcweir 	// this is called from the parent group for each unparsed attribute in the attribute list
570cdf0e10cSrcweir 	virtual void processAttribute( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName, const ::rtl::OUString& rValue );
571cdf0e10cSrcweir };
572cdf0e10cSrcweir 
573cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
574cdf0e10cSrcweir // draw:-frame
575cdf0e10cSrcweir 
576cdf0e10cSrcweir class SdXMLFrameShapeContext : public SdXMLShapeContext
577cdf0e10cSrcweir {
578cdf0e10cSrcweir private:
579cdf0e10cSrcweir 	sal_Bool mbSupportsReplacement;
580cdf0e10cSrcweir 	SvXMLImportContextRef mxImplContext;
581cdf0e10cSrcweir 	SvXMLImportContextRef mxReplImplContext;
582cdf0e10cSrcweir 
583cdf0e10cSrcweir public:
584cdf0e10cSrcweir 	TYPEINFO();
585cdf0e10cSrcweir 
586cdf0e10cSrcweir 	SdXMLFrameShapeContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
587cdf0e10cSrcweir 		const rtl::OUString& rLocalName,
588cdf0e10cSrcweir 		const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
589cdf0e10cSrcweir 		com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes,
590cdf0e10cSrcweir         sal_Bool bTemporaryShape);
591cdf0e10cSrcweir 	virtual ~SdXMLFrameShapeContext();
592cdf0e10cSrcweir 
593cdf0e10cSrcweir 	virtual SvXMLImportContext * CreateChildContext( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName,
594cdf0e10cSrcweir 		const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList );
595cdf0e10cSrcweir 
596cdf0e10cSrcweir 	virtual void StartElement( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
597cdf0e10cSrcweir 	virtual void EndElement();
598cdf0e10cSrcweir 
599cdf0e10cSrcweir 	virtual void processAttribute( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName, const ::rtl::OUString& rValue );
600cdf0e10cSrcweir };
601cdf0e10cSrcweir 
602cdf0e10cSrcweir class SdXMLCustomShapeContext : public SdXMLShapeContext
603cdf0e10cSrcweir {
604cdf0e10cSrcweir 
605cdf0e10cSrcweir protected :
606cdf0e10cSrcweir 
607cdf0e10cSrcweir 	rtl::OUString maCustomShapeEngine;
608cdf0e10cSrcweir 	rtl::OUString maCustomShapeData;
609cdf0e10cSrcweir 
610cdf0e10cSrcweir 	std::vector< com::sun::star::beans::PropertyValue > maCustomShapeGeometry;
611cdf0e10cSrcweir 
612cdf0e10cSrcweir public:
613cdf0e10cSrcweir 
614cdf0e10cSrcweir 	TYPEINFO();
615cdf0e10cSrcweir 
616cdf0e10cSrcweir 	SdXMLCustomShapeContext( SvXMLImport& rImport, sal_uInt16 nPrfx, const rtl::OUString& rLocalName,
617cdf0e10cSrcweir 		const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
618cdf0e10cSrcweir 		com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes,
619cdf0e10cSrcweir         sal_Bool bTemporaryShape);
620cdf0e10cSrcweir 	virtual ~SdXMLCustomShapeContext();
621cdf0e10cSrcweir 
622cdf0e10cSrcweir 	virtual void StartElement( const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList );
623cdf0e10cSrcweir 	virtual void EndElement();
624cdf0e10cSrcweir 
625cdf0e10cSrcweir 	virtual SvXMLImportContext * CreateChildContext( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName,
626cdf0e10cSrcweir 		const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList );
627cdf0e10cSrcweir 
628cdf0e10cSrcweir 	// this is called from the parent group for each unparsed attribute in the attribute list
629cdf0e10cSrcweir 	virtual void processAttribute( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName, const ::rtl::OUString& rValue );
630cdf0e10cSrcweir };
631cdf0e10cSrcweir 
632cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
633cdf0e10cSrcweir // draw:table
634cdf0e10cSrcweir 
635cdf0e10cSrcweir class SdXMLTableShapeContext : public SdXMLShapeContext
636cdf0e10cSrcweir {
637cdf0e10cSrcweir public:
638cdf0e10cSrcweir 	TYPEINFO();
639cdf0e10cSrcweir 
640cdf0e10cSrcweir 	SdXMLTableShapeContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
641cdf0e10cSrcweir 		const rtl::OUString& rLocalName,
642cdf0e10cSrcweir 		const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
643cdf0e10cSrcweir 		com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes );
644cdf0e10cSrcweir 	virtual ~SdXMLTableShapeContext();
645cdf0e10cSrcweir 
646cdf0e10cSrcweir 	virtual void StartElement( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
647cdf0e10cSrcweir 	virtual void EndElement();
648cdf0e10cSrcweir 
649cdf0e10cSrcweir 	virtual SvXMLImportContext * CreateChildContext( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName, const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList );
650cdf0e10cSrcweir 
651cdf0e10cSrcweir 	// this is called from the parent group for each unparsed attribute in the attribute list
652cdf0e10cSrcweir 	virtual void processAttribute( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName, const ::rtl::OUString& rValue );
653cdf0e10cSrcweir 
654cdf0e10cSrcweir private:
655cdf0e10cSrcweir 	SvXMLImportContextRef mxTableImportContext;
656cdf0e10cSrcweir 	rtl::OUString msTemplateStyleName;
657cdf0e10cSrcweir 	sal_Bool maTemplateStylesUsed[6];
658cdf0e10cSrcweir };
659cdf0e10cSrcweir 
660cdf0e10cSrcweir #endif	//  _XIMPSHAPE_HXX
661