LibreOffice Module xmloff (master) 1
ximpshap.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
22#include <com/sun/star/io/XOutputStream.hpp>
23#include <com/sun/star/document/XActionLockable.hpp>
24#include <com/sun/star/drawing/Alignment.hpp>
25#include <com/sun/star/drawing/CircleKind.hpp>
26#include <com/sun/star/drawing/ConnectorType.hpp>
27#include <com/sun/star/drawing/EscapeDirection.hpp>
28#include <com/sun/star/container/XIdentifierContainer.hpp>
29#include <xmloff/xmlictxt.hxx>
30#include <com/sun/star/drawing/XShapes.hpp>
31#include <com/sun/star/text/XTextCursor.hpp>
32#include <com/sun/star/awt/Point.hpp>
33#include <xexptran.hxx>
34#include <vector>
38
39template<typename EnumT> struct SvXMLEnumMapEntry;
40
41// common shape context
42
44{
45protected:
46 // the shape group this object should be created inside
47 css::uno::Reference< css::drawing::XShapes > mxShapes;
48 css::uno::Reference< css::text::XTextCursor > mxCursor;
49 css::uno::Reference< css::text::XTextCursor > mxOldCursor;
50 css::uno::Reference< css::xml::sax::XFastAttributeList> mxAttrList;
51 css::uno::Reference< css::container::XIdentifierContainer > mxGluePoints;
52 css::uno::Reference< css::document::XActionLockable > mxLockable;
53
57 OUString maShapeName;
59
62
67 sal_Int32 mnZOrder;
68 OUString maShapeId;
69 OUString maLayerName;
70
72 css::awt::Size maSize;
73 sal_Int16 mnRelWidth;
74 sal_Int16 mnRelHeight;
75 css::awt::Point maPosition;
77
81 bool mbTextBox;
82
84 void SetStyle( bool bSupportsStyle = true );
85 void SetLayer();
86 void SetThumbnail();
87
88 void AddShape(css::uno::Reference< css::drawing::XShape >& xShape);
89 void AddShape(OUString const & serviceName);
90 void SetTransformation();
91
93
94 void addGluePoint( const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList );
95
96 bool isPresentationShape() const;
97
98public:
99
101 css::uno::Reference< css::xml::sax::XFastAttributeList> xAttrList,
102 css::uno::Reference< css::drawing::XShapes > xShapes,
103 bool bTemporaryShape);
104 virtual ~SdXMLShapeContext() override;
105
106 virtual void SAL_CALL startFastElement(
107 sal_Int32 nElement,
108 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
109 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
110 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
111 sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
112
113 // this is called from the parent group for each unparsed attribute in the attribute list
115
116};
117
118// draw:rect context
119
121{
122 sal_Int32 mnRadius;
123
124public:
125
127 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
128 css::uno::Reference< css::drawing::XShapes > const & rShapes,
129 bool bTemporaryShape);
130 virtual ~SdXMLRectShapeContext() override;
131 virtual void SAL_CALL startFastElement(
132 sal_Int32 nElement,
133 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
134
135 // this is called from the parent group for each unparsed attribute in the attribute list
137};
138
139// draw:line context
140
142{
143 sal_Int32 mnX1;
144 sal_Int32 mnY1;
145 sal_Int32 mnX2;
146 sal_Int32 mnY2;
147
148public:
149
151 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
152 css::uno::Reference< css::drawing::XShapes > const & rShapes,
153 bool bTemporaryShape);
154 virtual ~SdXMLLineShapeContext() override;
155 virtual void SAL_CALL startFastElement(
156 sal_Int32 nElement,
157 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
158
159 // this is called from the parent group for each unparsed attribute in the attribute list
161};
162
163// draw:ellipse and draw:circle context
164
166{
167 sal_Int32 mnCX;
168 sal_Int32 mnCY;
169 sal_Int32 mnRX;
170 sal_Int32 mnRY;
171
172 css::drawing::CircleKind meKind;
173 sal_Int32 mnStartAngle;
174 sal_Int32 mnEndAngle;
175public:
176
178 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
179 css::uno::Reference< css::drawing::XShapes > const & rShapes,
180 bool bTemporaryShape);
181 virtual ~SdXMLEllipseShapeContext() override;
182 virtual void SAL_CALL startFastElement(
183 sal_Int32 nElement,
184 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
185
186 // this is called from the parent group for each unparsed attribute in the attribute list
188};
189
190// draw:polyline and draw:polygon context
191
193{
194 OUString maPoints;
195 OUString maViewBox;
197
198public:
199
201 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
202 css::uno::Reference< css::drawing::XShapes > const & rShapes, bool bClosed, bool bTemporaryShape);
203 virtual ~SdXMLPolygonShapeContext() override;
204 virtual void SAL_CALL startFastElement(
205 sal_Int32 nElement,
206 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
207
208 // this is called from the parent group for each unparsed attribute in the attribute list
210};
211
212// draw:path context
213
215{
216 OUString maD;
217 OUString maViewBox;
218
219public:
220
222 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
223 css::uno::Reference< css::drawing::XShapes > const & rShapes,
224 bool bTemporaryShape);
225 virtual ~SdXMLPathShapeContext() override;
226 virtual void SAL_CALL startFastElement(
227 sal_Int32 nElement,
228 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
229
230 // this is called from the parent group for each unparsed attribute in the attribute list
232};
233
234// draw:text-box context
235
237{
238 sal_Int32 mnRadius;
240
241public:
242
244 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
245 css::uno::Reference< css::drawing::XShapes > const & rShapes);
246 virtual ~SdXMLTextBoxShapeContext() override;
247 virtual void SAL_CALL startFastElement(
248 sal_Int32 nElement,
249 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
250
251 // this is called from the parent group for each unparsed attribute in the attribute list
253};
254
255// draw:control context
256
258{
259private:
260 OUString maFormId;
261
262public:
263
265 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
266 css::uno::Reference< css::drawing::XShapes > const & rShapes,
267 bool bTemporaryShape);
268 virtual ~SdXMLControlShapeContext() override;
269 virtual void SAL_CALL startFastElement(
270 sal_Int32 nElement,
271 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
272
273 // this is called from the parent group for each unparsed attribute in the attribute list
275};
276
277// draw:connector context
278
280{
281private:
282 css::awt::Point maStart;
283 css::awt::Point maEnd;
284
285 css::drawing::ConnectorType
287
289 sal_Int32 mnStartGlueId;
290 OUString maEndShapeId;
291 sal_Int32 mnEndGlueId;
292
293 sal_Int32 mnDelta1;
294 sal_Int32 mnDelta2;
295 sal_Int32 mnDelta3;
296
297 css::uno::Any maPath;
298
299public:
300
302 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
303 css::uno::Reference< css::drawing::XShapes > const & rShapes,
304 bool bTemporaryShape);
305 virtual ~SdXMLConnectorShapeContext() override;
306 virtual void SAL_CALL startFastElement(
307 sal_Int32 nElement,
308 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
309
310 // this is called from the parent group for each unparsed attribute in the attribute list
312};
313
314// draw:measure context
315
317{
318private:
319 css::awt::Point maStart;
320 css::awt::Point maEnd;
321
322public:
323
325 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
326 css::uno::Reference< css::drawing::XShapes > const & rShapes,
327 bool bTemporaryShape);
328 virtual ~SdXMLMeasureShapeContext() override;
329 virtual void SAL_CALL startFastElement(
330 sal_Int32 nElement,
331 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
332 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
333
334 // this is called from the parent group for each unparsed attribute in the attribute list
336};
337
338// draw:page context
339
341{
342private:
343 sal_Int32 mnPageNumber;
344public:
345
347 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
348 css::uno::Reference< css::drawing::XShapes > const & rShapes,
349 bool bTemporaryShape);
350 virtual ~SdXMLPageShapeContext() override;
351 virtual void SAL_CALL startFastElement(
352 sal_Int32 nElement,
353 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
354
355 // this is called from the parent group for each unparsed attribute in the attribute list
357};
358
359// draw:caption context
360
362{
363private:
364 css::awt::Point maCaptionPoint;
365 sal_Int32 mnRadius;
366
367public:
368
370 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
371 css::uno::Reference< css::drawing::XShapes > const & rShapes,
372 bool bTemporaryShape);
373 virtual ~SdXMLCaptionShapeContext() override;
374 virtual void SAL_CALL startFastElement(
375 sal_Int32 nElement,
376 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
377
378 // this is called from the parent group for each unparsed attribute in the attribute list
380};
381
382// office:image context
383
385{
386private:
387 OUString maURL;
388 css::uno::Reference < css::io::XOutputStream > mxBase64Stream;
389
390public:
391
393 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
394 css::uno::Reference< css::drawing::XShapes > const & rShapes);
395 virtual ~SdXMLGraphicObjectShapeContext() override;
396
397 virtual void SAL_CALL startFastElement(
398 sal_Int32 nElement,
399 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
400 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
401 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
402 sal_Int32 nElement,
403 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
404
405 // this is called from the parent group for each unparsed attribute in the attribute list
407};
408
409// chart:chart context
410
412{
414
415public:
416
418 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
419 css::uno::Reference< css::drawing::XShapes > const & rShapes,
420 bool bTemporaryShape);
421
422 virtual void SAL_CALL startFastElement(
423 sal_Int32 nElement,
424 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
425 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
426 virtual void SAL_CALL characters( const OUString& rChars ) override;
427 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
428 sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
429};
430
431// draw:object and draw:object_ole context
432
434{
435private:
436 OUString maCLSID;
437 OUString maHref;
438
439 css::uno::Reference < css::io::XOutputStream > mxBase64Stream;
440
441public:
442
444 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
445 css::uno::Reference< css::drawing::XShapes > const & rShapes);
446 virtual ~SdXMLObjectShapeContext() override;
447
448 virtual void SAL_CALL startFastElement(
449 sal_Int32 nElement,
450 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
451 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
452
453 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
454 sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
455
456 // this is called from the parent group for each unparsed attribute in the attribute list
458};
459
460// draw:applet
461
463{
464private:
465 OUString maAppletName;
466 OUString maAppletCode;
467 OUString maHref;
469
470 css::uno::Sequence< css::beans::PropertyValue > maParams;
471
472public:
473
475 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
476 css::uno::Reference< css::drawing::XShapes > const & rShapes);
477 virtual ~SdXMLAppletShapeContext() override;
478
479 virtual void SAL_CALL startFastElement(
480 sal_Int32 nElement,
481 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
482 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
483 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
484 sal_Int32 nElement,
485 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
486
487 // this is called from the parent group for each unparsed attribute in the attribute list
489};
490
491// draw:plugin
492
494{
495private:
496 OUString maMimeType;
497 OUString maHref;
499
500 css::uno::Sequence< css::beans::PropertyValue > maParams;
501
502public:
503
505 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
506 css::uno::Reference< css::drawing::XShapes > const & rShapes);
507 virtual ~SdXMLPluginShapeContext() override;
508
509 virtual void SAL_CALL startFastElement(
510 sal_Int32 nElement,
511 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
512 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
513 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
514 sal_Int32 nElement,
515 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
516
517 // this is called from the parent group for each unparsed attribute in the attribute list
519
520 const OUString& getMimeType() const { return maMimeType; }
521};
522
523// draw:floating-frame
524
526{
527private:
528 OUString maFrameName;
529 OUString maHref;
530
531public:
532
534 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
535 css::uno::Reference< css::drawing::XShapes > const & rShapes);
536 virtual ~SdXMLFloatingFrameShapeContext() override;
537
538 virtual void SAL_CALL startFastElement(
539 sal_Int32 nElement,
540 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
541 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
542
543 // this is called from the parent group for each unparsed attribute in the attribute list
545};
546
547// draw:-frame
548
550{
551private:
555
556protected:
558 void removeGraphicFromImportContext(const SvXMLImportContext& rContext) override;
559 OUString getGraphicPackageURLFromImportContext(const SvXMLImportContext& rContext) const override;
560 css::uno::Reference<css::graphic::XGraphic> getGraphicFromImportContext(const SvXMLImportContext& rContext) const override;
561
562public:
563
565 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
566 css::uno::Reference< css::drawing::XShapes > const & rShapes,
567 bool bTemporaryShape);
568 virtual ~SdXMLFrameShapeContext() override;
569
570 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
571 sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
572
573 virtual void SAL_CALL startFastElement(
574 sal_Int32 nElement,
575 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
576 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
577
579};
580
582{
585
586 std::vector< css::beans::PropertyValue > maCustomShapeGeometry;
587
588public:
589
590
592 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
593 css::uno::Reference< css::drawing::XShapes > const & rShapes);
594 virtual ~SdXMLCustomShapeContext() override;
595
596 virtual void SAL_CALL startFastElement(
597 sal_Int32 nElement,
598 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
599 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
600 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
601 sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
602
603 // this is called from the parent group for each unparsed attribute in the attribute list
605};
606
607// draw:table
608
610{
611public:
612
614 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
615 css::uno::Reference< css::drawing::XShapes > const & rShapes );
616 virtual ~SdXMLTableShapeContext() override;
617
618 virtual void SAL_CALL startFastElement(
619 sal_Int32 nElement,
620 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
621 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
622
623 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
624 sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
625
626 // this is called from the parent group for each unparsed attribute in the attribute list
628
629private:
633};
634
637
638/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual ~SdXMLAppletShapeContext() override
Definition: ximpshap.cxx:2747
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:2751
css::uno::Sequence< css::beans::PropertyValue > maParams
Definition: ximpshap.hxx:470
SdXMLAppletShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:2739
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:2835
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:2767
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
Definition: ximpshap.cxx:2789
virtual ~SdXMLCaptionShapeContext() override
Definition: ximpshap.cxx:2214
SdXMLCaptionShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape)
Definition: ximpshap.cxx:2203
css::awt::Point maCaptionPoint
Definition: ximpshap.hxx:364
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:2275
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:2218
virtual void SAL_CALL characters(const OUString &rChars) override
This method is called for all characters that are contained in the current element.
Definition: ximpshap.cxx:2527
SdXMLChartShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape)
Definition: ximpshap.cxx:2443
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
Definition: ximpshap.cxx:2533
SvXMLImportContextRef mxChartContext
Definition: ximpshap.hxx:413
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:2452
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
Definition: ximpshap.cxx:2519
css::drawing::ConnectorType mnType
Definition: ximpshap.hxx:286
virtual ~SdXMLConnectorShapeContext() override
Definition: ximpshap.cxx:1744
SdXMLConnectorShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape)
Definition: ximpshap.cxx:1727
css::awt::Point maEnd
Definition: ximpshap.hxx:283
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:1860
css::awt::Point maStart
Definition: ximpshap.hxx:282
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:1767
virtual ~SdXMLControlShapeContext() override
Definition: ximpshap.cxx:1674
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:1679
SdXMLControlShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape)
Definition: ximpshap.cxx:1665
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:1692
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:3594
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
Definition: ximpshap.cxx:3631
std::vector< css::beans::PropertyValue > maCustomShapeGeometry
Definition: ximpshap.hxx:586
virtual ~SdXMLCustomShapeContext() override
Definition: ximpshap.cxx:3574
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
Definition: ximpshap.cxx:3753
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:3579
SdXMLCustomShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:3544
OUString maCustomShapeEngine
Definition: ximpshap.hxx:583
css::drawing::CircleKind meKind
Definition: ximpshap.hxx:172
SdXMLEllipseShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape)
Definition: ximpshap.cxx:1092
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:1113
virtual ~SdXMLEllipseShapeContext() override
Definition: ximpshap.cxx:1108
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:1167
virtual ~SdXMLFloatingFrameShapeContext() override
Definition: ximpshap.cxx:3128
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
Definition: ximpshap.cxx:3184
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:3168
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:3132
SdXMLFloatingFrameShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:3121
SdXMLFrameShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape)
Definition: ximpshap.cxx:3203
SvXMLImportContextRef mxReplImplContext
Definition: ximpshap.hxx:554
css::uno::Reference< css::graphic::XGraphic > getGraphicFromImportContext(const SvXMLImportContext &rContext) const override
Definition: ximpshap.cxx:3266
void removeGraphicFromImportContext(const SvXMLImportContext &rContext) override
helper to get the created xShape instance, needs to be overridden
Definition: ximpshap.cxx:3221
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:3449
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
Definition: ximpshap.cxx:3455
virtual ~SdXMLFrameShapeContext() override
Definition: ximpshap.cxx:3217
OUString getGraphicPackageURLFromImportContext(const SvXMLImportContext &rContext) const override
Definition: ximpshap.cxx:3286
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
Definition: ximpshap.cxx:3308
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:3523
SvXMLImportContextRef mxImplContext
Definition: ximpshap.hxx:553
SdXMLGraphicObjectShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:2298
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:2307
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
Definition: ximpshap.cxx:2391
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:2316
css::uno::Reference< css::io::XOutputStream > mxBase64Stream
Definition: ximpshap.hxx:388
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:2409
virtual ~SdXMLGraphicObjectShapeContext() override
Definition: ximpshap.cxx:2437
SdXMLLineShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape)
Definition: ximpshap.cxx:983
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:1001
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:1031
virtual ~SdXMLLineShapeContext() override
Definition: ximpshap.cxx:996
css::awt::Point maStart
Definition: ximpshap.hxx:319
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
Definition: ximpshap.cxx:2099
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:2070
css::awt::Point maEnd
Definition: ximpshap.hxx:320
virtual ~SdXMLMeasureShapeContext() override
Definition: ximpshap.cxx:2027
SdXMLMeasureShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape)
Definition: ximpshap.cxx:2016
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:2032
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
Definition: ximpshap.cxx:2651
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
Definition: ximpshap.cxx:2703
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:2555
SdXMLObjectShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:2544
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:2687
css::uno::Reference< css::io::XOutputStream > mxBase64Stream
Definition: ximpshap.hxx:439
virtual ~SdXMLObjectShapeContext() override
Definition: ximpshap.cxx:2551
virtual ~SdXMLPageShapeContext() override
Definition: ximpshap.cxx:2132
SdXMLPageShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape)
Definition: ximpshap.cxx:2122
sal_Int32 mnPageNumber
Definition: ximpshap.hxx:343
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:2146
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:2137
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:1364
SdXMLPathShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape)
Definition: ximpshap.cxx:1332
virtual ~SdXMLPathShapeContext() override
Definition: ximpshap.cxx:1341
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:1346
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:2881
css::uno::Sequence< css::beans::PropertyValue > maParams
Definition: ximpshap.hxx:500
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
Definition: ximpshap.cxx:2982
const OUString & getMimeType() const
Definition: ximpshap.hxx:520
virtual ~SdXMLPluginShapeContext() override
Definition: ximpshap.cxx:2877
SdXMLPluginShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:2869
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:3087
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:2966
virtual ~SdXMLPolygonShapeContext() override
Definition: ximpshap.cxx:1256
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:1260
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:1239
SdXMLPolygonShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bClosed, bool bTemporaryShape)
Definition: ximpshap.cxx:1229
SdXMLRectShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape)
Definition: ximpshap.cxx:920
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:935
virtual ~SdXMLRectShapeContext() override
Definition: ximpshap.cxx:930
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:949
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:323
sal_Int32 mnZOrder
Definition: ximpshap.hxx:67
OUString maDrawStyleName
Definition: ximpshap.hxx:54
basegfx::B2DHomMatrix maUsedTransformation
Definition: ximpshap.hxx:76
OUString maThumbnailURL
Definition: ximpshap.hxx:58
css::awt::Point maPosition
Definition: ximpshap.hxx:75
OUString maTextStyleName
Definition: ximpshap.hxx:55
void addGluePoint(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
Definition: ximpshap.cxx:246
css::uno::Reference< css::document::XActionLockable > mxLockable
Definition: ximpshap.hxx:52
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
Definition: ximpshap.cxx:175
void AddShape(css::uno::Reference< css::drawing::XShape > &xShape)
OUString maLayerName
Definition: ximpshap.hxx:69
OUString maShapeName
Definition: ximpshap.hxx:57
SdXMLShapeContext(SvXMLImport &rImport, css::uno::Reference< css::xml::sax::XFastAttributeList > xAttrList, css::uno::Reference< css::drawing::XShapes > xShapes, bool bTemporaryShape)
Definition: ximpshap.cxx:146
bool mbClearDefaultAttributes
Definition: ximpshap.hxx:65
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &)
Definition: ximpshap.cxx:795
void SetTransformation()
Definition: ximpshap.cxx:522
css::uno::Reference< css::text::XTextCursor > mxCursor
Definition: ximpshap.hxx:48
sal_Int16 mnRelWidth
Definition: ximpshap.hxx:73
XmlStyleFamily mnStyleFamily
Definition: ximpshap.hxx:63
css::uno::Reference< css::container::XIdentifierContainer > mxGluePoints
Definition: ximpshap.hxx:51
OUString maShapeId
Definition: ximpshap.hxx:68
css::uno::Reference< css::xml::sax::XFastAttributeList > mxAttrList
Definition: ximpshap.hxx:50
virtual ~SdXMLShapeContext() override
Definition: ximpshap.cxx:171
bool mbListContextPushed
whether to restore list context (#91964#)
Definition: ximpshap.hxx:61
SdXMLImExTransform2D mnTransform
Definition: ximpshap.hxx:71
void SetStyle(bool bSupportsStyle=true)
if bSupportsStyle is false, auto styles will be set but not a style
Definition: ximpshap.cxx:600
bool mbTextBox
If the text of this shape is handled by a Writer TextFrame.
Definition: ximpshap.hxx:81
OUString maPresentationClass
Definition: ximpshap.hxx:56
sal_Int16 mnRelHeight
Definition: ximpshap.hxx:74
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
Definition: ximpshap.cxx:329
css::uno::Reference< css::drawing::XShapes > mxShapes
Definition: ximpshap.hxx:47
bool isPresentationShape() const
Definition: ximpshap.cxx:901
bool mbIsUserTransformed
Definition: ximpshap.hxx:66
css::awt::Size maSize
Definition: ximpshap.hxx:72
css::uno::Reference< css::text::XTextCursor > mxOldCursor
Definition: ximpshap.hxx:49
SvXMLImportContextRef mxTableImportContext
Definition: ximpshap.hxx:630
bool maTemplateStylesUsed[6]
Definition: ximpshap.hxx:632
virtual ~SdXMLTableShapeContext() override
Definition: ximpshap.cxx:3776
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:3878
SdXMLTableShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:3771
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
Definition: ximpshap.cxx:3863
OUString msTemplateStyleName
Definition: ximpshap.hxx:631
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
Definition: ximpshap.cxx:3907
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:3780
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:1498
SdXMLTextBoxShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:1483
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:1515
virtual ~SdXMLTextBoxShapeContext() override
Definition: ximpshap.cxx:1493
This class deliberately does not support XWeak, to improve performance when loading large documents.
Definition: xmlictxt.hxx:48
SvXMLImport & GetImport()
Definition: xmlictxt.hxx:60
friend class SvXMLImport
Definition: xmlictxt.hxx:49
XmlStyleFamily
Definition: families.hxx:50
SvXMLEnumMapEntry< css::drawing::EscapeDirection > const aXML_GlueEscapeDirection_EnumMap[]
Definition: ximpshap.cxx:120
SvXMLEnumMapEntry< css::drawing::Alignment > const aXML_GlueAlignment_EnumMap[]
Definition: ximpshap.cxx:106