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 #ifndef INCLUDED_XMLOFF_SOURCE_DRAW_XIMPSHAP_HXX
21 #define INCLUDED_XMLOFF_SOURCE_DRAW_XIMPSHAP_HXX
22 
23 #include <com/sun/star/io/XOutputStream.hpp>
24 #include <com/sun/star/document/XActionLockable.hpp>
25 #include <com/sun/star/drawing/Alignment.hpp>
26 #include <com/sun/star/drawing/CircleKind.hpp>
27 #include <com/sun/star/drawing/ConnectorType.hpp>
28 #include <com/sun/star/drawing/EscapeDirection.hpp>
29 #include <com/sun/star/container/XIdentifierContainer.hpp>
30 #include <xmloff/xmlictxt.hxx>
31 #include <com/sun/star/drawing/XShapes.hpp>
32 #include <com/sun/star/text/XTextCursor.hpp>
33 #include <com/sun/star/awt/Point.hpp>
34 #include <xexptran.hxx>
35 #include <vector>
36 #include <xmloff/shapeimport.hxx>
37 #include <xmlmultiimagehelper.hxx>
39 
40 template<typename EnumT> struct SvXMLEnumMapEntry;
41 
42 // common shape context
43 
45 {
46 protected:
47  // the shape group this object should be created inside
48  css::uno::Reference< css::drawing::XShapes > mxShapes;
49  css::uno::Reference< css::text::XTextCursor > mxCursor;
50  css::uno::Reference< css::text::XTextCursor > mxOldCursor;
51  css::uno::Reference< css::xml::sax::XFastAttributeList> mxAttrList;
52  css::uno::Reference< css::container::XIdentifierContainer > mxGluePoints;
53  css::uno::Reference< css::document::XActionLockable > mxLockable;
54 
55  OUString maDrawStyleName;
56  OUString maTextStyleName;
58  OUString maShapeName;
59  OUString maThumbnailURL;
60 
63 
68  sal_Int32 mnZOrder;
69  OUString maShapeId;
70  OUString maLayerName;
71 
73  css::awt::Size maSize;
74  sal_Int16 mnRelWidth;
75  sal_Int16 mnRelHeight;
76  css::awt::Point maPosition;
78 
79  bool mbVisible;
82  bool mbTextBox;
83 
85  void SetStyle( bool bSupportsStyle = true );
86  void SetLayer();
87  void SetThumbnail();
88 
89  void AddShape(css::uno::Reference< css::drawing::XShape >& xShape);
90  void AddShape(OUString const & serviceName);
91  void SetTransformation();
92 
94 
95  void addGluePoint( const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList );
96 
97  bool isPresentationShape() const;
98 
99 public:
100 
101  SdXMLShapeContext( SvXMLImport& rImport,
102  const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
103  css::uno::Reference< css::drawing::XShapes > const & rShapes,
104  bool bTemporaryShape);
105  virtual ~SdXMLShapeContext() override;
106 
107  virtual void SAL_CALL startFastElement(
108  sal_Int32 nElement,
109  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
110  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
111  virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
112  sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
113 
114  // this is called from the parent group for each unparsed attribute in the attribute list
116 
117 };
118 
119 // draw:rect context
120 
122 {
123  sal_Int32 mnRadius;
124 
125 public:
126 
128  const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
129  css::uno::Reference< css::drawing::XShapes > const & rShapes,
130  bool bTemporaryShape);
131  virtual ~SdXMLRectShapeContext() override;
132  virtual void SAL_CALL startFastElement(
133  sal_Int32 nElement,
134  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
135 
136  // this is called from the parent group for each unparsed attribute in the attribute list
138 };
139 
140 // draw:line context
141 
143 {
144  sal_Int32 mnX1;
145  sal_Int32 mnY1;
146  sal_Int32 mnX2;
147  sal_Int32 mnY2;
148 
149 public:
150 
152  const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
153  css::uno::Reference< css::drawing::XShapes > const & rShapes,
154  bool bTemporaryShape);
155  virtual ~SdXMLLineShapeContext() override;
156  virtual void SAL_CALL startFastElement(
157  sal_Int32 nElement,
158  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
159 
160  // this is called from the parent group for each unparsed attribute in the attribute list
162 };
163 
164 // draw:ellipse and draw:circle context
165 
167 {
168  sal_Int32 mnCX;
169  sal_Int32 mnCY;
170  sal_Int32 mnRX;
171  sal_Int32 mnRY;
172 
173  css::drawing::CircleKind meKind;
174  sal_Int32 mnStartAngle;
175  sal_Int32 mnEndAngle;
176 public:
177 
179  const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
180  css::uno::Reference< css::drawing::XShapes > const & rShapes,
181  bool bTemporaryShape);
182  virtual ~SdXMLEllipseShapeContext() override;
183  virtual void SAL_CALL startFastElement(
184  sal_Int32 nElement,
185  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
186 
187  // this is called from the parent group for each unparsed attribute in the attribute list
189 };
190 
191 // draw:polyline and draw:polygon context
192 
194 {
195  OUString maPoints;
196  OUString maViewBox;
197  bool mbClosed;
198 
199 public:
200 
202  const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
203  css::uno::Reference< css::drawing::XShapes > const & rShapes, bool bClosed, bool bTemporaryShape);
204  virtual ~SdXMLPolygonShapeContext() override;
205  virtual void SAL_CALL startFastElement(
206  sal_Int32 nElement,
207  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
208 
209  // this is called from the parent group for each unparsed attribute in the attribute list
211 };
212 
213 // draw:path context
214 
216 {
217  OUString maD;
218  OUString maViewBox;
219 
220 public:
221 
223  const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
224  css::uno::Reference< css::drawing::XShapes > const & rShapes,
225  bool bTemporaryShape);
226  virtual ~SdXMLPathShapeContext() override;
227  virtual void SAL_CALL startFastElement(
228  sal_Int32 nElement,
229  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
230 
231  // this is called from the parent group for each unparsed attribute in the attribute list
233 };
234 
235 // draw:text-box context
236 
238 {
239  sal_Int32 mnRadius;
240  OUString maChainNextName;
241 
242 public:
243 
245  const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
246  css::uno::Reference< css::drawing::XShapes > const & rShapes);
247  virtual ~SdXMLTextBoxShapeContext() override;
248  virtual void SAL_CALL startFastElement(
249  sal_Int32 nElement,
250  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
251 
252  // this is called from the parent group for each unparsed attribute in the attribute list
254 };
255 
256 // draw:control context
257 
259 {
260 private:
261  OUString maFormId;
262 
263 public:
264 
266  const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
267  css::uno::Reference< css::drawing::XShapes > const & rShapes,
268  bool bTemporaryShape);
269  virtual ~SdXMLControlShapeContext() override;
270  virtual void SAL_CALL startFastElement(
271  sal_Int32 nElement,
272  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
273 
274  // this is called from the parent group for each unparsed attribute in the attribute list
276 };
277 
278 // draw:connector context
279 
281 {
282 private:
283  css::awt::Point maStart;
284  css::awt::Point maEnd;
285 
286  css::drawing::ConnectorType
288 
289  OUString maStartShapeId;
290  sal_Int32 mnStartGlueId;
291  OUString maEndShapeId;
292  sal_Int32 mnEndGlueId;
293 
294  sal_Int32 mnDelta1;
295  sal_Int32 mnDelta2;
296  sal_Int32 mnDelta3;
297 
298  css::uno::Any maPath;
299 
300 public:
301 
303  const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
304  css::uno::Reference< css::drawing::XShapes > const & rShapes,
305  bool bTemporaryShape);
306  virtual ~SdXMLConnectorShapeContext() override;
307  virtual void SAL_CALL startFastElement(
308  sal_Int32 nElement,
309  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
310 
311  // this is called from the parent group for each unparsed attribute in the attribute list
313 };
314 
315 // draw:measure context
316 
318 {
319 private:
320  css::awt::Point maStart;
321  css::awt::Point maEnd;
322 
323 public:
324 
326  const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
327  css::uno::Reference< css::drawing::XShapes > const & rShapes,
328  bool bTemporaryShape);
329  virtual ~SdXMLMeasureShapeContext() override;
330  virtual void SAL_CALL startFastElement(
331  sal_Int32 nElement,
332  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
333  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
334 
335  // this is called from the parent group for each unparsed attribute in the attribute list
337 };
338 
339 // draw:page context
340 
342 {
343 private:
344  sal_Int32 mnPageNumber;
345 public:
346 
348  const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
349  css::uno::Reference< css::drawing::XShapes > const & rShapes,
350  bool bTemporaryShape);
351  virtual ~SdXMLPageShapeContext() override;
352  virtual void SAL_CALL startFastElement(
353  sal_Int32 nElement,
354  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
355 
356  // this is called from the parent group for each unparsed attribute in the attribute list
358 };
359 
360 // draw:caption context
361 
363 {
364 private:
365  css::awt::Point maCaptionPoint;
366  sal_Int32 mnRadius;
367 
368 public:
369 
371  const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
372  css::uno::Reference< css::drawing::XShapes > const & rShapes,
373  bool bTemporaryShape);
374  virtual ~SdXMLCaptionShapeContext() override;
375  virtual void SAL_CALL startFastElement(
376  sal_Int32 nElement,
377  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
378 
379  // this is called from the parent group for each unparsed attribute in the attribute list
381 };
382 
383 // office:image context
384 
386 {
387 private:
388  OUString maURL;
389  css::uno::Reference < css::io::XOutputStream > mxBase64Stream;
390 
391 public:
392 
394  const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
395  css::uno::Reference< css::drawing::XShapes > const & rShapes);
396  virtual ~SdXMLGraphicObjectShapeContext() override;
397 
398  virtual void SAL_CALL startFastElement(
399  sal_Int32 nElement,
400  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
401  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
402  virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
403  sal_Int32 nElement,
404  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
405 
406  // this is called from the parent group for each unparsed attribute in the attribute list
408 };
409 
410 // chart:chart context
411 
413 {
415 
416 public:
417 
419  const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
420  css::uno::Reference< css::drawing::XShapes > const & rShapes,
421  bool bTemporaryShape);
422 
423  virtual void SAL_CALL startFastElement(
424  sal_Int32 nElement,
425  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
426  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
427  virtual void SAL_CALL characters( const OUString& rChars ) override;
428  virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
429  sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
430 };
431 
432 // draw:object and draw:object_ole context
433 
435 {
436 private:
437  OUString maCLSID;
438  OUString maHref;
439 
440  css::uno::Reference < css::io::XOutputStream > mxBase64Stream;
441 
442 public:
443 
445  const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
446  css::uno::Reference< css::drawing::XShapes > const & rShapes);
447  virtual ~SdXMLObjectShapeContext() override;
448 
449  virtual void SAL_CALL startFastElement(
450  sal_Int32 nElement,
451  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
452  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
453 
454  virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
455  sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
456 
457  // this is called from the parent group for each unparsed attribute in the attribute list
459 };
460 
461 // draw:applet
462 
464 {
465 private:
466  OUString maAppletName;
467  OUString maAppletCode;
468  OUString maHref;
470 
471  css::uno::Sequence< css::beans::PropertyValue > maParams;
472 
473 public:
474 
476  const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
477  css::uno::Reference< css::drawing::XShapes > const & rShapes);
478  virtual ~SdXMLAppletShapeContext() override;
479 
480  virtual void SAL_CALL startFastElement(
481  sal_Int32 nElement,
482  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
483  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
484  virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
485  sal_Int32 nElement,
486  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
487 
488  // this is called from the parent group for each unparsed attribute in the attribute list
490 };
491 
492 // draw:plugin
493 
495 {
496 private:
497  OUString maMimeType;
498  OUString maHref;
499  bool mbMedia;
500 
501  css::uno::Sequence< css::beans::PropertyValue > maParams;
502 
503 public:
504 
506  const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
507  css::uno::Reference< css::drawing::XShapes > const & rShapes);
508  virtual ~SdXMLPluginShapeContext() override;
509 
510  virtual void SAL_CALL startFastElement(
511  sal_Int32 nElement,
512  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
513  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
514  virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
515  sal_Int32 nElement,
516  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
517 
518  // this is called from the parent group for each unparsed attribute in the attribute list
520 
521  const OUString& getMimeType() const { return maMimeType; }
522 };
523 
524 // draw:floating-frame
525 
527 {
528 private:
529  OUString maFrameName;
530  OUString maHref;
531 
532 public:
533 
535  const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
536  css::uno::Reference< css::drawing::XShapes > const & rShapes);
537  virtual ~SdXMLFloatingFrameShapeContext() override;
538 
539  virtual void SAL_CALL startFastElement(
540  sal_Int32 nElement,
541  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
542  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
543 
544  // this is called from the parent group for each unparsed attribute in the attribute list
546 };
547 
548 // draw:-frame
549 
551 {
552 private:
556 
557 protected:
559  void removeGraphicFromImportContext(const SvXMLImportContext& rContext) override;
560  OUString getGraphicPackageURLFromImportContext(const SvXMLImportContext& rContext) const override;
561  css::uno::Reference<css::graphic::XGraphic> getGraphicFromImportContext(const SvXMLImportContext& rContext) const override;
562 
563 public:
564 
566  const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
567  css::uno::Reference< css::drawing::XShapes > const & rShapes,
568  bool bTemporaryShape);
569  virtual ~SdXMLFrameShapeContext() override;
570 
571  virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
572  sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
573 
574  virtual void SAL_CALL startFastElement(
575  sal_Int32 nElement,
576  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
577  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
578 
580 };
581 
583 {
586 
587  std::vector< css::beans::PropertyValue > maCustomShapeGeometry;
588 
589 public:
590 
591 
593  const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
594  css::uno::Reference< css::drawing::XShapes > const & rShapes);
595  virtual ~SdXMLCustomShapeContext() override;
596 
597  virtual void SAL_CALL startFastElement(
598  sal_Int32 nElement,
599  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
600  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
601  virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
602  sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
603 
604  // this is called from the parent group for each unparsed attribute in the attribute list
606 };
607 
608 // draw:table
609 
611 {
612 public:
613 
615  const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList,
616  css::uno::Reference< css::drawing::XShapes > const & rShapes );
617  virtual ~SdXMLTableShapeContext() override;
618 
619  virtual void SAL_CALL startFastElement(
620  sal_Int32 nElement,
621  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
622  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
623 
624  virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
625  sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
626 
627  // this is called from the parent group for each unparsed attribute in the attribute list
629 
630 private:
633  bool maTemplateStylesUsed[6] = {};
634 };
635 
638 
639 #endif // INCLUDED_XMLOFF_SOURCE_DRAW_XIMPSHAP_HXX
640 
641 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void SetTransformation()
Definition: ximpshap.cxx:513
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:1313
SdXMLAppletShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:2701
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:1734
virtual ~SdXMLRectShapeContext() override
Definition: ximpshap.cxx:920
OUString maLayerName
Definition: ximpshap.hxx:70
css::uno::Sequence< css::beans::PropertyValue > maParams
Definition: ximpshap.hxx:501
SdXMLGraphicObjectShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:2265
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:939
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:2377
sal_Int32 mnZOrder
Definition: ximpshap.hxx:68
bool mbListContextPushed
whether to restore list context (#91964#)
Definition: ximpshap.hxx:62
virtual ~SdXMLPageShapeContext() override
Definition: ximpshap.cxx:2099
SvXMLImportContextRef mxReplImplContext
Definition: ximpshap.hxx:555
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:3577
void removeGraphicFromImportContext(const SvXMLImportContext &rContext) override
helper to get the created xShape instance, needs to be overridden
Definition: ximpshap.cxx:3175
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:1694
css::uno::Reference< css::text::XTextCursor > mxCursor
Definition: ximpshap.hxx:49
css::uno::Reference< css::io::XOutputStream > mxBase64Stream
Definition: ximpshap.hxx:440
css::uno::Reference< css::graphic::XGraphic > getGraphicFromImportContext(const SvXMLImportContext &rContext) const override
Definition: ximpshap.cxx:3220
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:2517
css::uno::Reference< css::container::XIdentifierContainer > mxGluePoints
Definition: ximpshap.hxx:52
virtual ~SdXMLPluginShapeContext() override
Definition: ximpshap.cxx:2838
bool isPresentationShape() const
Definition: ximpshap.cxx:891
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:2170
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:1999
virtual ~SdXMLGraphicObjectShapeContext() override
Definition: ximpshap.cxx:2405
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:2359
bool mbTextBox
If the text of this shape is handled by a Writer TextFrame.
Definition: ximpshap.hxx:82
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:3397
css::uno::Reference< css::text::XTextCursor > mxOldCursor
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:2713
SvXMLImport & GetImport()
Definition: xmlictxt.hxx:56
virtual ~SdXMLPathShapeContext() override
Definition: ximpshap.cxx:1308
virtual ~SdXMLEllipseShapeContext() override
Definition: ximpshap.cxx:1098
OUString msTemplateStyleName
Definition: ximpshap.hxx:632
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:1299
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:1632
virtual ~SdXMLLineShapeContext() override
Definition: ximpshap.cxx:986
virtual ~SdXMLMeasureShapeContext() override
Definition: ximpshap.cxx:1994
css::awt::Point maStart
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:2185
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:1983
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:3854
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:2729
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:2649
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:3119
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:172
OUString maTextStyleName
Definition: ximpshap.hxx:56
virtual ~SdXMLObjectShapeContext() override
Definition: ximpshap.cxx:2513
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:2284
css::awt::Point maEnd
Definition: ximpshap.hxx:321
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:1021
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:1082
virtual ~SdXMLCustomShapeContext() override
Definition: ximpshap.cxx:3520
void AddShape(css::uno::Reference< css::drawing::XShape > &xShape)
OUString maThumbnailURL
Definition: ximpshap.hxx:59
sal_Int16 mnRelWidth
Definition: ximpshap.hxx:74
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:1157
virtual ~SdXMLFrameShapeContext() override
Definition: ximpshap.cxx:3171
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:973
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:1646
virtual ~SdXMLConnectorShapeContext() override
Definition: ximpshap.cxx:1711
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:3540
bool mbClearDefaultAttributes
Definition: ximpshap.hxx:66
OUString maPresentationClass
Definition: ximpshap.hxx:57
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:3262
bool maTemplateStylesUsed[6]
Definition: ximpshap.hxx:633
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:320
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:2489
SvXMLEnumMapEntry< css::drawing::Alignment > const aXML_GlueAlignment_EnumMap[]
Definition: ximpshap.cxx:102
std::vector< css::beans::PropertyValue > maCustomShapeGeometry
Definition: ximpshap.hxx:587
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:3086
OUString maShapeId
Definition: ximpshap.hxx:69
css::uno::Reference< css::document::XActionLockable > mxLockable
Definition: ximpshap.hxx:53
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:1482
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:2113
SvXMLImportContextRef mxChartContext
Definition: ximpshap.hxx:414
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:2797
css::awt::Point maCaptionPoint
Definition: ximpshap.hxx:365
SdXMLPluginShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:2830
sal_Int16 mnRelHeight
Definition: ximpshap.hxx:75
bool mbIsUserTransformed
Definition: ximpshap.hxx:67
virtual ~SdXMLPolygonShapeContext() override
Definition: ximpshap.cxx:1223
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:1331
void addGluePoint(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
Definition: ximpshap.cxx:243
css::awt::Size maSize
Definition: ximpshap.hxx:73
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:3135
virtual ~SdXMLTextBoxShapeContext() override
Definition: ximpshap.cxx:1460
virtual ~SdXMLFloatingFrameShapeContext() override
Definition: ximpshap.cxx:3082
virtual ~SdXMLCaptionShapeContext() override
Definition: ximpshap.cxx:2181
virtual ~SdXMLAppletShapeContext() override
Definition: ximpshap.cxx:2709
OUString maDrawStyleName
Definition: ximpshap.hxx:55
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:1227
css::awt::Point maStart
Definition: ximpshap.hxx:283
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:3042
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:3825
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:3403
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:2937
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:1103
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:991
css::uno::Reference< css::xml::sax::XFastAttributeList > mxAttrList
Definition: ximpshap.hxx:51
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:1659
This class deliberately does not support XWeak, to improve performance when loading large documents...
Definition: xmlictxt.hxx:45
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:2613
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:2037
Map an XMLTokenEnum to an enum value.
Definition: ximpshap.hxx:40
css::awt::Point maPosition
Definition: ximpshap.hxx:76
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:3471
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:1196
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:2751
css::uno::Reference< css::drawing::XShapes > mxShapes
Definition: ximpshap.hxx:48
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:2066
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:3810
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:1827
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:2495
css::drawing::CircleKind meKind
Definition: ximpshap.hxx:173
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:2104
virtual ~SdXMLTableShapeContext() override
Definition: ximpshap.cxx:3722
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:1206
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:2420
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:3525
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:3154
XmlStyleFamily mnStyleFamily
Definition: ximpshap.hxx:64
void SetStyle(bool bSupportsStyle=true)
if bSupportsStyle is false, auto styles will be set but not a style
Definition: ximpshap.cxx:591
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:2842
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:2665
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:910
SdXMLObjectShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:2506
SvXMLImportContextRef mxImplContext
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:2481
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: ximpshap.cxx:3726
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &)
Definition: ximpshap.cxx:785
OUString getGraphicPackageURLFromImportContext(const SvXMLImportContext &rContext) const override
Definition: ximpshap.cxx:3240
SdXMLCustomShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:3492
css::uno::Reference< css::io::XOutputStream > mxBase64Stream
Definition: ximpshap.hxx:389
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:2242
virtual ~SdXMLControlShapeContext() override
Definition: ximpshap.cxx:1641
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:2089
OUString maShapeName
Definition: ximpshap.hxx:58
sal_Int32 mnPageNumber
Definition: ximpshap.hxx:344
basegfx::B2DHomMatrix maUsedTransformation
Definition: ximpshap.hxx:77
css::awt::Point maEnd
Definition: ximpshap.hxx:284
SvXMLImportContextRef mxTableImportContext
Definition: ximpshap.hxx:631
SdXMLFloatingFrameShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:3075
virtual ~SdXMLShapeContext() override
Definition: ximpshap.cxx:168
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:1465
SdXMLTableShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:3717
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:3699
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:925
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:326
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:2275
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:2411
virtual bool processAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &) override
Definition: ximpshap.cxx:2921
SdXMLImExTransform2D mnTransform
Definition: ximpshap.hxx:72
css::drawing::ConnectorType mnType
Definition: ximpshap.hxx:287
css::uno::Sequence< css::beans::PropertyValue > maParams
Definition: ximpshap.hxx:471
SdXMLTextBoxShapeContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
Definition: ximpshap.cxx:1450
const OUString & getMimeType() const
Definition: ximpshap.hxx:521
OUString maCustomShapeEngine
Definition: ximpshap.hxx:584