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>
35 #include <xmloff/shapeimport.hxx>
36 #include <xmlmultiimagehelper.hxx>
38 
39 template<typename EnumT> struct SvXMLEnumMapEntry;
40 
41 // common shape context
42 
44 {
45 protected:
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 
54  OUString maDrawStyleName;
55  OUString maTextStyleName;
57  OUString maShapeName;
58  OUString maThumbnailURL;
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 
78  bool mbVisible;
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 
98 public:
99 
100  SdXMLShapeContext( SvXMLImport& rImport,
101  const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
102  css::uno::Reference< css::drawing::XShapes > const & rShapes,
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 
124 public:
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 
148 public:
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;
175 public:
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;
196  bool mbClosed;
197 
198 public:
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 
219 public:
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;
239  OUString maChainNextName;
240 
241 public:
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 {
259 private:
260  OUString maFormId;
261 
262 public:
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 {
281 private:
282  css::awt::Point maStart;
283  css::awt::Point maEnd;
284 
285  css::drawing::ConnectorType
287 
288  OUString maStartShapeId;
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 
299 public:
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 {
318 private:
319  css::awt::Point maStart;
320  css::awt::Point maEnd;
321 
322 public:
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 {
342 private:
343  sal_Int32 mnPageNumber;
344 public:
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 {
363 private:
364  css::awt::Point maCaptionPoint;
365  sal_Int32 mnRadius;
366 
367 public:
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 {
386 private:
387  OUString maURL;
388  css::uno::Reference < css::io::XOutputStream > mxBase64Stream;
389 
390 public:
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 
415 public:
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 {
435 private:
436  OUString maCLSID;
437  OUString maHref;
438 
439  css::uno::Reference < css::io::XOutputStream > mxBase64Stream;
440 
441 public:
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 {
464 private:
465  OUString maAppletName;
466  OUString maAppletCode;
467  OUString maHref;
469 
470  css::uno::Sequence< css::beans::PropertyValue > maParams;
471 
472 public:
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 {
495 private:
496  OUString maMimeType;
497  OUString maHref;
498  bool mbMedia;
499 
500  css::uno::Sequence< css::beans::PropertyValue > maParams;
501 
502 public:
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 {
527 private:
528  OUString maFrameName;
529  OUString maHref;
530 
531 public:
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 {
551 private:
555 
556 protected:
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 
562 public:
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 
588 public:
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 {
611 public:
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 
629 private:
632  bool maTemplateStylesUsed[6] = {};
633 };
634 
637 
638 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void SetTransformation()
Definition: ximpshap.cxx:510
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:1310
SdXMLAppletShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:2697
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:1731
virtual ~SdXMLRectShapeContext() override
Definition: ximpshap.cxx:917
OUString maLayerName
Definition: ximpshap.hxx:69
css::uno::Sequence< css::beans::PropertyValue > maParams
Definition: ximpshap.hxx:500
SdXMLGraphicObjectShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:2262
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:936
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:2373
sal_Int32 mnZOrder
Definition: ximpshap.hxx:67
bool mbListContextPushed
whether to restore list context (#91964#)
Definition: ximpshap.hxx:61
virtual ~SdXMLPageShapeContext() override
Definition: ximpshap.cxx:2096
SvXMLImportContextRef mxReplImplContext
Definition: ximpshap.hxx:554
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:3570
void removeGraphicFromImportContext(const SvXMLImportContext &rContext) override
helper to get the created xShape instance, needs to be overridden
Definition: ximpshap.cxx:3168
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:1691
css::uno::Reference< css::text::XTextCursor > mxCursor
Definition: ximpshap.hxx:48
css::uno::Reference< css::io::XOutputStream > mxBase64Stream
Definition: ximpshap.hxx:439
css::uno::Reference< css::graphic::XGraphic > getGraphicFromImportContext(const SvXMLImportContext &rContext) const override
Definition: ximpshap.cxx:3213
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:2513
css::uno::Reference< css::container::XIdentifierContainer > mxGluePoints
Definition: ximpshap.hxx:51
virtual ~SdXMLPluginShapeContext() override
Definition: ximpshap.cxx:2834
bool isPresentationShape() const
Definition: ximpshap.cxx:888
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:2167
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:1996
virtual ~SdXMLGraphicObjectShapeContext() override
Definition: ximpshap.cxx:2401
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:2355
bool mbTextBox
If the text of this shape is handled by a Writer TextFrame.
Definition: ximpshap.hxx:81
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:3390
css::uno::Reference< css::text::XTextCursor > mxOldCursor
Definition: ximpshap.hxx:49
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:2709
SvXMLImport & GetImport()
Definition: xmlictxt.hxx:59
virtual ~SdXMLPathShapeContext() override
Definition: ximpshap.cxx:1305
virtual ~SdXMLEllipseShapeContext() override
Definition: ximpshap.cxx:1095
OUString msTemplateStyleName
Definition: ximpshap.hxx:631
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:1296
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:1629
virtual ~SdXMLLineShapeContext() override
Definition: ximpshap.cxx:983
virtual ~SdXMLMeasureShapeContext() override
Definition: ximpshap.cxx:1991
css::awt::Point maStart
Definition: ximpshap.hxx:319
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:2182
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:1980
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:3847
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:2725
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:2645
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:3115
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:171
OUString maTextStyleName
Definition: ximpshap.hxx:55
virtual ~SdXMLObjectShapeContext() override
Definition: ximpshap.cxx:2509
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:2280
css::awt::Point maEnd
Definition: ximpshap.hxx:320
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:1018
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:1079
virtual ~SdXMLCustomShapeContext() override
Definition: ximpshap.cxx:3513
void AddShape(css::uno::Reference< css::drawing::XShape > &xShape)
OUString maThumbnailURL
Definition: ximpshap.hxx:58
sal_Int16 mnRelWidth
Definition: ximpshap.hxx:73
XmlStyleFamily
Definition: families.hxx:47
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:1154
virtual ~SdXMLFrameShapeContext() override
Definition: ximpshap.cxx:3164
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:970
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:1643
virtual ~SdXMLConnectorShapeContext() override
Definition: ximpshap.cxx:1708
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:3533
bool mbClearDefaultAttributes
Definition: ximpshap.hxx:65
OUString maPresentationClass
Definition: ximpshap.hxx:56
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:3255
bool maTemplateStylesUsed[6]
Definition: ximpshap.hxx:632
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:319
SdXMLShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape)
Definition: ximpshap.cxx:142
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:2485
SvXMLEnumMapEntry< css::drawing::Alignment > const aXML_GlueAlignment_EnumMap[]
Definition: ximpshap.cxx:102
std::vector< css::beans::PropertyValue > maCustomShapeGeometry
Definition: ximpshap.hxx:586
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:3082
OUString maShapeId
Definition: ximpshap.hxx:68
css::uno::Reference< css::document::XActionLockable > mxLockable
Definition: ximpshap.hxx:52
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:1479
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:2110
SvXMLImportContextRef mxChartContext
Definition: ximpshap.hxx:413
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:2793
css::awt::Point maCaptionPoint
Definition: ximpshap.hxx:364
SdXMLPluginShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:2826
sal_Int16 mnRelHeight
Definition: ximpshap.hxx:74
bool mbIsUserTransformed
Definition: ximpshap.hxx:66
virtual ~SdXMLPolygonShapeContext() override
Definition: ximpshap.cxx:1220
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:1328
void addGluePoint(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
Definition: ximpshap.cxx:242
css::awt::Size maSize
Definition: ximpshap.hxx:72
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:3131
virtual ~SdXMLTextBoxShapeContext() override
Definition: ximpshap.cxx:1457
virtual ~SdXMLFloatingFrameShapeContext() override
Definition: ximpshap.cxx:3078
virtual ~SdXMLCaptionShapeContext() override
Definition: ximpshap.cxx:2178
virtual ~SdXMLAppletShapeContext() override
Definition: ximpshap.cxx:2705
OUString maDrawStyleName
Definition: ximpshap.hxx:54
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:1224
css::awt::Point maStart
Definition: ximpshap.hxx:282
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:3038
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:3818
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:3396
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:2933
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:1100
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:988
css::uno::Reference< css::xml::sax::XFastAttributeList > mxAttrList
Definition: ximpshap.hxx:50
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:1656
This class deliberately does not support XWeak, to improve performance when loading large documents...
Definition: xmlictxt.hxx:44
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:2609
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:2034
Map an XMLTokenEnum to an enum value.
Definition: ximpshap.hxx:39
css::awt::Point maPosition
Definition: ximpshap.hxx:75
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:3464
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:1193
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:2747
css::uno::Reference< css::drawing::XShapes > mxShapes
Definition: ximpshap.hxx:47
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:2063
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:3803
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:1824
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:2491
css::drawing::CircleKind meKind
Definition: ximpshap.hxx:172
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:2101
virtual ~SdXMLTableShapeContext() override
Definition: ximpshap.cxx:3715
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:1203
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:2416
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:3518
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:3150
XmlStyleFamily mnStyleFamily
Definition: ximpshap.hxx:63
void SetStyle(bool bSupportsStyle=true)
if bSupportsStyle is false, auto styles will be set but not a style
Definition: ximpshap.cxx:588
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:2838
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:2661
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:907
SdXMLObjectShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:2502
SvXMLImportContextRef mxImplContext
Definition: ximpshap.hxx:553
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:2477
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:3719
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &)
Definition: ximpshap.cxx:782
OUString getGraphicPackageURLFromImportContext(const SvXMLImportContext &rContext) const override
Definition: ximpshap.cxx:3233
SdXMLCustomShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:3485
css::uno::Reference< css::io::XOutputStream > mxBase64Stream
Definition: ximpshap.hxx:388
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:2239
virtual ~SdXMLControlShapeContext() override
Definition: ximpshap.cxx:1638
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:2086
OUString maShapeName
Definition: ximpshap.hxx:57
sal_Int32 mnPageNumber
Definition: ximpshap.hxx:343
basegfx::B2DHomMatrix maUsedTransformation
Definition: ximpshap.hxx:76
css::awt::Point maEnd
Definition: ximpshap.hxx:283
SvXMLImportContextRef mxTableImportContext
Definition: ximpshap.hxx:630
SdXMLFloatingFrameShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:3071
virtual ~SdXMLShapeContext() override
Definition: ximpshap.cxx:167
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:1462
SdXMLTableShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:3710
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:3692
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:922
SvXMLEnumMapEntry< css::drawing::EscapeDirection > const aXML_GlueEscapeDirection_EnumMap[]
Definition: ximpshap.cxx:116
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:325
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:2271
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:2407
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:2917
SdXMLImExTransform2D mnTransform
Definition: ximpshap.hxx:71
css::drawing::ConnectorType mnType
Definition: ximpshap.hxx:286
css::uno::Sequence< css::beans::PropertyValue > maParams
Definition: ximpshap.hxx:470
SdXMLTextBoxShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:1447
const OUString & getMimeType() const
Definition: ximpshap.hxx:520
OUString maCustomShapeEngine
Definition: ximpshap.hxx:583