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
531 css::uno::Reference<css::drawing::XShape> CreateFloatingFrameShape() const;
532
533public:
534
536 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
537 css::uno::Reference< css::drawing::XShapes > const & rShapes);
538 virtual ~SdXMLFloatingFrameShapeContext() override;
539
540 virtual void SAL_CALL startFastElement(
541 sal_Int32 nElement,
542 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
543 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
544
545 // this is called from the parent group for each unparsed attribute in the attribute list
547};
548
549// draw:-frame
550
552{
553private:
557
558protected:
560 void removeGraphicFromImportContext(const SvXMLImportContext& rContext) override;
561 OUString getGraphicPackageURLFromImportContext(const SvXMLImportContext& rContext) const override;
562 css::uno::Reference<css::graphic::XGraphic> getGraphicFromImportContext(const SvXMLImportContext& rContext) const override;
563
564public:
565
567 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
568 css::uno::Reference< css::drawing::XShapes > const & rShapes,
569 bool bTemporaryShape);
570 virtual ~SdXMLFrameShapeContext() override;
571
572 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
573 sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
574
575 virtual void SAL_CALL startFastElement(
576 sal_Int32 nElement,
577 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
578 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
579
581};
582
584{
587
588 std::vector< css::beans::PropertyValue > maCustomShapeGeometry;
589
590public:
591
592
594 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
595 css::uno::Reference< css::drawing::XShapes > const & rShapes);
596 virtual ~SdXMLCustomShapeContext() override;
597
598 virtual void SAL_CALL startFastElement(
599 sal_Int32 nElement,
600 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
601 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
602 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
603 sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
604
605 // this is called from the parent group for each unparsed attribute in the attribute list
607};
608
609// draw:table
610
612{
613public:
614
616 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
617 css::uno::Reference< css::drawing::XShapes > const & rShapes );
618 virtual ~SdXMLTableShapeContext() override;
619
620 virtual void SAL_CALL startFastElement(
621 sal_Int32 nElement,
622 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
623 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
624
625 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
626 sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
627
628 // this is called from the parent group for each unparsed attribute in the attribute list
630
631private:
635};
636
639
640/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual ~SdXMLAppletShapeContext() override
Definition: ximpshap.cxx:2751
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:2755
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:2743
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:2839
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:2771
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:2793
virtual ~SdXMLCaptionShapeContext() override
Definition: ximpshap.cxx:2218
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:2207
css::awt::Point maCaptionPoint
Definition: ximpshap.hxx:364
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:2279
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:2222
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:2531
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:2447
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:2537
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:2456
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:2523
css::drawing::ConnectorType mnType
Definition: ximpshap.hxx:286
virtual ~SdXMLConnectorShapeContext() override
Definition: ximpshap.cxx:1748
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:1731
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:1864
css::awt::Point maStart
Definition: ximpshap.hxx:282
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:1771
virtual ~SdXMLControlShapeContext() override
Definition: ximpshap.cxx:1678
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:1683
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:1669
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:1696
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:3623
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:3660
std::vector< css::beans::PropertyValue > maCustomShapeGeometry
Definition: ximpshap.hxx:588
virtual ~SdXMLCustomShapeContext() override
Definition: ximpshap.cxx:3603
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:3782
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:3608
SdXMLCustomShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:3573
OUString maCustomShapeEngine
Definition: ximpshap.hxx:585
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:1096
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:1117
virtual ~SdXMLEllipseShapeContext() override
Definition: ximpshap.cxx:1112
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:1171
virtual ~SdXMLFloatingFrameShapeContext() override
Definition: ximpshap.cxx:3132
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:3213
css::uno::Reference< css::drawing::XShape > CreateFloatingFrameShape() const
Definition: ximpshap.cxx:3136
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:3197
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:3146
SdXMLFloatingFrameShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:3125
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:3232
SvXMLImportContextRef mxReplImplContext
Definition: ximpshap.hxx:556
css::uno::Reference< css::graphic::XGraphic > getGraphicFromImportContext(const SvXMLImportContext &rContext) const override
Definition: ximpshap.cxx:3295
void removeGraphicFromImportContext(const SvXMLImportContext &rContext) override
helper to get the created xShape instance, needs to be overridden
Definition: ximpshap.cxx:3250
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:3478
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:3484
virtual ~SdXMLFrameShapeContext() override
Definition: ximpshap.cxx:3246
OUString getGraphicPackageURLFromImportContext(const SvXMLImportContext &rContext) const override
Definition: ximpshap.cxx:3315
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:3337
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:3552
SvXMLImportContextRef mxImplContext
Definition: ximpshap.hxx:555
SdXMLGraphicObjectShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:2302
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:2311
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:2395
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:2320
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:2413
virtual ~SdXMLGraphicObjectShapeContext() override
Definition: ximpshap.cxx:2441
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:987
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:1005
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:1035
virtual ~SdXMLLineShapeContext() override
Definition: ximpshap.cxx:1000
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:2103
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:2074
css::awt::Point maEnd
Definition: ximpshap.hxx:320
virtual ~SdXMLMeasureShapeContext() override
Definition: ximpshap.cxx:2031
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:2020
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:2036
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:2655
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:2707
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:2559
SdXMLObjectShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:2548
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:2691
css::uno::Reference< css::io::XOutputStream > mxBase64Stream
Definition: ximpshap.hxx:439
virtual ~SdXMLObjectShapeContext() override
Definition: ximpshap.cxx:2555
virtual ~SdXMLPageShapeContext() override
Definition: ximpshap.cxx:2136
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:2126
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:2150
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:2141
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:1368
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:1336
virtual ~SdXMLPathShapeContext() override
Definition: ximpshap.cxx:1345
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:1350
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:2885
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:2986
const OUString & getMimeType() const
Definition: ximpshap.hxx:520
virtual ~SdXMLPluginShapeContext() override
Definition: ximpshap.cxx:2881
SdXMLPluginShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:2873
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:3091
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:2970
virtual ~SdXMLPolygonShapeContext() override
Definition: ximpshap.cxx:1260
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:1264
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:1243
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:1233
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:924
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:939
virtual ~SdXMLRectShapeContext() override
Definition: ximpshap.cxx:934
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:953
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:799
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:905
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:632
bool maTemplateStylesUsed[6]
Definition: ximpshap.hxx:634
virtual ~SdXMLTableShapeContext() override
Definition: ximpshap.cxx:3805
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:3907
SdXMLTableShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:3800
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:3892
OUString msTemplateStyleName
Definition: ximpshap.hxx:633
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:3936
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:3809
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:1502
SdXMLTextBoxShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:1487
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:1519
virtual ~SdXMLTextBoxShapeContext() override
Definition: ximpshap.cxx:1497
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