LibreOffice Module xmloff (master)  1
xmlexp.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_XMLEXP_HXX
21 #define INCLUDED_XMLOFF_XMLEXP_HXX
22 
23 #include <sal/config.h>
24 #include <xmloff/dllapi.h>
25 #include <sal/types.h>
26 
27 #include <com/sun/star/lang/XUnoTunnel.hpp>
28 #include <rtl/ustring.hxx>
29 #include <xmloff/attrlist.hxx>
30 #include <xmloff/txtparae.hxx>
32 #include <xmloff/xmlnumfe.hxx>
33 #include <xmloff/xmlaustp.hxx>
34 #include <xmloff/shapeexport.hxx>
35 #include <xmloff/xmltoken.hxx>
38 #include <xmloff/xmluconv.hxx>
39 #include <com/sun/star/document/XFilter.hpp>
40 #include <com/sun/star/lang/XServiceInfo.hpp>
41 #include <com/sun/star/document/XExporter.hpp>
42 #include <com/sun/star/lang/XInitialization.hpp>
43 #include <com/sun/star/container/XNamed.hpp>
44 
45 #include <unotools/saveopt.hxx>
46 
47 #include <xmloff/XMLPageExport.hxx>
49 #include <cppuhelper/implbase.hxx>
50 #include <tools/fldunit.hxx>
51 #include <vcl/errcode.hxx>
52 
53 #include <vector>
54 #include <memory>
55 #include <o3tl/typed_flags_set.hxx>
56 
57 namespace com::sun::star::beans { class XPropertySet; }
58 namespace com::sun::star::document { class XEmbeddedObjectResolver; }
59 namespace com::sun::star::document { class XGraphicStorageHandler; }
60 namespace com::sun::star::embed { class XStorage; }
61 namespace com::sun::star::graphic { class XGraphic; }
62 namespace com::sun::star::lang { class XEventListener; }
63 namespace com::sun::star::task { class XStatusIndicator; }
64 namespace com::sun::star::uno { class XComponentContext; }
65 namespace com::sun::star::util { class XNumberFormatsSupplier; }
66 namespace com::sun::star::xml::sax { class XAttributeList; }
67 namespace com::sun::star::xml::sax { class XDocumentHandler; }
68 namespace com::sun::star::xml::sax { class XExtendedDocumentHandler; }
69 namespace com::sun::star::xml::sax { class XLocator; }
70 
71 class SvXMLNamespaceMap;
72 class SvXMLExport_Impl;
73 class ProgressBarHelper;
74 class XMLEventExport;
75 class XMLImageMapExport;
76 class XMLErrors;
77 class LanguageTag;
78 enum class SvXMLErrorFlags;
79 
80 // Shapes in Writer cannot be named via context menu (#i51726#)
82 
83 namespace com::sun::star {
84  namespace frame { class XModel; }
85  namespace lang { struct Locale; }
86 }
87 namespace comphelper { class UnoInterfaceToUniqueIdentifierMapper; }
88 
89 enum class SvXMLExportFlags {
90  NONE = 0,
91  META = 0x0001,
92  STYLES = 0x0002,
93  MASTERSTYLES = 0x0004,
94  AUTOSTYLES = 0x0008,
95  CONTENT = 0x0010,
96  SCRIPTS = 0x0020,
97  SETTINGS = 0x0040,
98  FONTDECLS = 0x0080,
99  EMBEDDED = 0x0100,
100  PRETTY = 0x0400,
101  OASIS = 0x8000,
102  ALL = 0x05ff
103 };
104 namespace o3tl
105 {
106  template<> struct typed_flags<SvXMLExportFlags> : is_typed_flags<SvXMLExportFlags, 0x85ff> {};
107 }
108 
109 class XMLOFF_DLLPUBLIC SvXMLExport : public cppu::WeakImplHelper<
110  css::document::XFilter,
111  css::lang::XServiceInfo,
112  css::document::XExporter,
113  css::lang::XInitialization,
114  css::container::XNamed,
115  css::lang::XUnoTunnel>
116 {
117  std::unique_ptr<SvXMLExport_Impl> mpImpl; // dummy
118 
119  css::uno::Reference< css::uno::XComponentContext > m_xContext;
121 
122  css::uno::Reference< css::frame::XModel > mxModel;
123  css::uno::Reference< css::xml::sax::XDocumentHandler > mxHandler; // the handlers
124  css::uno::Reference< css::xml::sax::XExtendedDocumentHandler > mxExtHandler;
125  css::uno::Reference< css::util::XNumberFormatsSupplier > mxNumberFormatsSupplier;
126  css::uno::Reference< css::document::XGraphicStorageHandler > mxGraphicStorageHandler;
127  css::uno::Reference< css::document::XEmbeddedObjectResolver > mxEmbeddedResolver;
128  css::uno::Reference< css::task::XStatusIndicator > mxStatusIndicator;
129  css::uno::Reference< css::beans::XPropertySet > mxExportInfo;
130  css::uno::Reference< css::lang::XEventListener > mxEventListener;
131 
132  rtl::Reference<SvXMLAttributeList> mxAttrList; // a common attribute list
133 
134  OUString msOrigFileName; // the original URL
135  OUString msFilterName;
136  OUString msImgFilterName;
137  std::unique_ptr<SvXMLNamespaceMap> mpNamespaceMap; // the namepspace map
138  SvXMLUnitConverter maUnitConv; // the unit converter
139  std::unique_ptr<SvXMLNumFmtExport> mpNumExport;
140  std::unique_ptr<ProgressBarHelper> mpProgressBarHelper;
141 
149  std::unique_ptr<XMLEventExport> mpEventExport;
150  std::unique_ptr<XMLImageMapExport> mpImageMapExport;
151  std::unique_ptr<XMLErrors> mpXMLErrors;
152 
154  SAL_DLLPRIVATE void InitCtor_();
155 
158 
159  const OUString msWS; // " "
160 
161  // Shapes in Writer cannot be named via context menu (#i51726#)
163  SAL_DLLPRIVATE void DetermineModelType_();
164 
165  SAL_DLLPRIVATE void ImplExportMeta(); // <office:meta>
166  SAL_DLLPRIVATE void ImplExportSettings(); // <office:settings>
167  SAL_DLLPRIVATE void ImplExportStyles(); // <office:styles>
168  SAL_DLLPRIVATE void ImplExportAutoStyles();
169  // <office:automatic-styles>
170  SAL_DLLPRIVATE void ImplExportMasterStyles();
171  // <office:master-styles>
172  SAL_DLLPRIVATE void ImplExportContent(); // <office:body>
173  virtual void SetBodyAttributes();
174  void GetViewSettingsAndViews(css::uno::Sequence<css::beans::PropertyValue>& rProps);
175 
176 protected:
177  void setExportFlags( SvXMLExportFlags nExportFlags ) { mnExportFlags = nExportFlags; }
178 
179  // Get (modifiable) namespace map
180  SvXMLNamespaceMap& GetNamespaceMap_() { return *mpNamespaceMap; }
181 
182  // get a new namespace map (used in starmath to have a default namespace)
183  void ResetNamespaceMap();
184 
187  virtual void ExportMeta_();
188 
191  virtual void ExportScripts_();
192 
196  virtual void ExportFontDecls_();
197 
201  virtual void ExportStyles_( bool bUsed );
202 
204  virtual void ExportAutoStyles_() = 0;
205 
207  virtual void ExportMasterStyles_() = 0;
208 
210  virtual void ExportContent_() = 0;
211 
212  OUString const & GetSourceShellID() const;
213  OUString const & GetDestinationShellID() const;
214 
215  // save linked sections? (may be false in global documents)
217 
218  virtual XMLTextParagraphExport* CreateTextParagraphExport();
219  virtual XMLShapeExport* CreateShapeExport();
220  virtual SvXMLAutoStylePoolP* CreateAutoStylePool();
221  SchXMLExportHelper* CreateChartExport();
222  virtual XMLPageExport* CreatePageExport();
223  virtual XMLFontAutoStylePool* CreateFontAutoStylePool();
224  xmloff::OFormLayerXMLExport* CreateFormExport();
225  virtual void GetViewSettings(css::uno::Sequence<css::beans::PropertyValue>& aProps);
226  virtual void GetConfigurationSettings(css::uno::Sequence<css::beans::PropertyValue>& aProps);
227 
229  {
231  css::uno::Sequence< css::beans::PropertyValue > aSettings;
232 
235  const css::uno::Sequence< css::beans::PropertyValue >& _rSettings )
236  :eGroupName( _eGroupName )
237  ,aSettings( _rSettings )
238  {
239  }
240  };
249  virtual sal_Int32 GetDocumentSpecificSettings( ::std::vector< SettingsGroup >& _out_rSettings );
250 
251  const css::uno::Reference< css::document::XEmbeddedObjectResolver >& GetEmbeddedResolver() const { return mxEmbeddedResolver; }
252  inline void SetEmbeddedResolver( css::uno::Reference< css::document::XEmbeddedObjectResolver > const & _xEmbeddedResolver );
253 
254  const css::uno::Reference<css::document::XGraphicStorageHandler> & GetGraphicStorageHandler() const
255  {
256  return mxGraphicStorageHandler;
257  }
258  void SetGraphicStorageHandler(css::uno::Reference<css::document::XGraphicStorageHandler> const & rxGraphicStorageHandler);
259 
260  void SetDocHandler( const css::uno::Reference< css::xml::sax::XDocumentHandler > &rHandler );
261 
263 public:
264 
265  SvXMLExport(
266  const css::uno::Reference< css::uno::XComponentContext >& xContext,
267  OUString const & implementationName,
268  sal_Int16 const eDefaultMeasureUnit /*css::util::MeasureUnit*/,
270  SvXMLExportFlags nExportFlag );
271 
272  SvXMLExport(
273  const css::uno::Reference< css::uno::XComponentContext >& xContext,
274  OUString const & implementationName,
275  const OUString& rFileName,
276  sal_Int16 const eDefaultMeasureUnit /*css::util::MeasureUnit*/,
277  const css::uno::Reference< css::xml::sax::XDocumentHandler > & rHandler);
278 
279  SvXMLExport(
280  const css::uno::Reference< css::uno::XComponentContext >& xContext,
281  OUString const & implementationName,
282  const OUString& rFileName,
283  const css::uno::Reference< css::xml::sax::XDocumentHandler > & rHandler,
284  const css::uno::Reference< css::frame::XModel > &,
285  FieldUnit const eDefaultFieldUnit,
286  SvXMLExportFlags nExportFlag );
287 
288  virtual ~SvXMLExport() override;
289 
290  virtual void collectAutoStyles();
291 
292  // XExporter
293  virtual void SAL_CALL setSourceDocument( const css::uno::Reference< css::lang::XComponent >& xDoc ) override;
294 
295  // XFilter
296  virtual sal_Bool SAL_CALL filter( const css::uno::Sequence< css::beans::PropertyValue >& aDescriptor ) override;
297  virtual void SAL_CALL cancel() override;
298 
299  // XInitialization
300  virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) override;
301 
302  // XNamed
303  virtual OUString SAL_CALL getName( ) override;
304  virtual void SAL_CALL setName( const OUString& aName ) override;
305 
306  // XServiceInfo
307  virtual OUString SAL_CALL getImplementationName( ) final override;
308  virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) final override;
309  virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) final override;
310 
311  // XUnoTunnel
312  UNO3_GETIMPLEMENTATION_DECL(SvXMLExport)
313 
324  OUString EnsureNamespace(OUString const & i_rNamespace );
325 
326  // Check if common attribute list is empty.
327 #ifndef DBG_UTIL
328  void CheckAttrList() { (void) this; /* avoid loplugin:staticmethods */ }
329 #else
330  void CheckAttrList();
331 #endif
332 
333  // Clear common attribute list.
334  void ClearAttrList();
335 
336  // Add an attribute to the common attribute list.
337  void AddAttributeASCII( sal_uInt16 nPrefix, const char *pName,
338  const char *pValue );
339  void AddAttribute( sal_uInt16 nPrefix, const char *pName,
340  const OUString& rValue );
341  void AddAttribute( sal_uInt16 nPrefix, const OUString& rName,
342  const OUString& rValue );
343  void AddAttribute( sal_uInt16 nPrefix,
345  const OUString& rValue );
346  void AddAttribute( sal_uInt16 nPrefix,
349  void AddAttribute( const OUString& rQName,
350  const OUString& rValue );
351  void AddAttribute( const OUString& rQName,
353 
366  void AddLanguageTagAttributes( sal_uInt16 nPrefix, sal_uInt16 nPrefixRfc,
367  const css::lang::Locale& rLocale, bool bWriteEmpty);
368 
372  void AddLanguageTagAttributes( sal_uInt16 nPrefix, sal_uInt16 nPrefixRfc,
373  const LanguageTag& rLanguageTag, bool bWriteEmpty );
374 
375  // add several attributes to the common attribute list
376  void AddAttributeList( const css::uno::Reference<
377  css::xml::sax::XAttributeList >& xAttrList );
378 
379  // Get common attribute list as implementation or interface.
380  SvXMLAttributeList &GetAttrList() { return *mxAttrList; }
381  css::uno::Reference< css::xml::sax::XAttributeList > GetXAttrList() { return mxAttrList.get(); }
382 
383  // Get document handler. This methods are not const, because the
384  // reference allows modifications through the handler.
385  const css::uno::Reference< css::xml::sax::XDocumentHandler > & GetDocHandler() const { return mxHandler; }
386 
387  // Get original URL.
388  const OUString& GetOrigFileName() const { return msOrigFileName; }
389 
390  // Get (const) namespace map.
391  const SvXMLNamespaceMap& GetNamespaceMap() const { return *mpNamespaceMap; }
392 
393  // Get unit converter
394  const SvXMLUnitConverter& GetMM100UnitConverter() const { return maUnitConv; }
395 
396  SvXMLUnitConverter& GetMM100UnitConverter() { return maUnitConv; }
397 
398  void addChaffWhenEncryptedStorage();
399 
400  // Export the document.
402 
403  void collectDataStyles(bool bFromUsedStyles);
404  virtual void addDataStyle(const sal_Int32 nNumberFormat, bool bTimeFormat = false );
405  virtual void exportDataStyles();
406  virtual void exportAutoDataStyles();
407  virtual OUString getDataStyleName(const sal_Int32 nNumberFormat, bool bTimeFormat = false ) const;
408  sal_Int32 dataStyleForceSystemLanguage(sal_Int32 nFormat) const;
409 
410  virtual void exportAnnotationMeta( const css::uno::Reference < css::drawing::XShape >& xShape);
411 
412  // Get XModel
413  const css::uno::Reference< css::frame::XModel > &
414  GetModel() const { return mxModel; }
415  // Get XNumberFormatsSupplier
416  css::uno::Reference< css::util::XNumberFormatsSupplier > & GetNumberFormatsSupplier() { return mxNumberFormatsSupplier; }
417  void SetNumberFormatsSupplier(const css::uno::Reference< css::util::XNumberFormatsSupplier >& _xNumberFormatSupplier)
418  {
419  mxNumberFormatsSupplier = _xNumberFormatSupplier;
420  if ( mxNumberFormatsSupplier.is() && mxHandler.is() )
421  mpNumExport.reset( new SvXMLNumFmtExport(*this, mxNumberFormatsSupplier) );
422  }
423 
424  // get export helper for text
425  inline rtl::Reference< XMLTextParagraphExport > const & GetTextParagraphExport();
426 
427  // get export helper for shapes
428  inline rtl::Reference< XMLShapeExport > const & GetShapeExport();
429 
430  // get auto style pool
431  inline rtl::Reference< SvXMLAutoStylePoolP > const & GetAutoStylePool();
432 
433  // get Page Export
434  inline rtl::Reference< XMLPageExport > const & GetPageExport();
435 
436  // get chart export helper
437  inline rtl::Reference< SchXMLExportHelper > const & GetChartExport();
438 
439  // get font auto style pool
440  inline rtl::Reference< XMLFontAutoStylePool > const & GetFontAutoStylePool();
441 
442  ProgressBarHelper* GetProgressBarHelper();
443 
444  // get Formlayer Export
445  inline rtl::Reference< xmloff::OFormLayerXMLExport > const & GetFormExport();
446  inline bool HasFormExport() const;
447 
448  // get XPropertySet with export information
449  const css::uno::Reference< css::beans::XPropertySet >& getExportInfo() const { return mxExportInfo; }
450 
451  const css::uno::Reference< css::task::XStatusIndicator >& GetStatusIndicator() const { return mxStatusIndicator; }
452 
455  XMLEventExport& GetEventExport();
456 
458  XMLImageMapExport& GetImageMapExport();
459 
460  OUString AddEmbeddedXGraphic(css::uno::Reference<css::graphic::XGraphic> const & rxGraphic, OUString & rOutMimeType, OUString const & rRequestedName = OUString());
461  bool AddEmbeddedXGraphicAsBase64(css::uno::Reference<css::graphic::XGraphic> const & rxGraphic);
462  bool GetGraphicMimeTypeFromStream(css::uno::Reference<css::graphic::XGraphic> const & rxGraphic, OUString & rOutMimeType);
463 
464  OUString AddEmbeddedObject(
465  const OUString& rEmbeddedObjectURL );
466  bool AddEmbeddedObjectAsBase64(
467  const OUString& rEmbeddedObjectURL );
468 
469  OUString EncodeStyleName( const OUString& rName,
470  bool *pEncoded=nullptr ) const;
471 
472  // save linked sections?
473  bool IsSaveLinkedSections() const { return mbSaveLinkedSections; }
474 
475  // get export flags
476  SvXMLExportFlags getExportFlags() const { return mnExportFlags; }
477 
478  void ExportEmbeddedOwnObject(
479  css::uno::Reference<css::lang::XComponent > const & rComp );
480 
481  OUString GetRelativeReference(const OUString& rValue);
482 
483  // methods for accessing the document handler and handling SAX errors
484  void StartElement(sal_uInt16 nPrefix,
486  bool bIgnWSOutside );
487  void StartElement(const OUString& rName,
488  bool bIgnWSOutside );
489  void Characters(const OUString& rChars);
490  void EndElement(sal_uInt16 nPrefix,
492  bool bIgnWSInside );
493  void EndElement(const OUString& rName,
494  bool bIgnWSInside );
495  void IgnorableWhitespace();
496 
502  void SetError(
504  sal_Int32 nId,
506  const css::uno::Sequence< OUString> & rMsgParams,
508  const OUString& rExceptionMessage,
510  const css::uno::Reference<css::xml::sax::XLocator> & rLocator );
511 
512  void SetError(
513  sal_Int32 nId,
514  const css::uno::Sequence< OUString> & rMsgParams);
515 
516  virtual void DisposingModel();
517 
518  ::comphelper::UnoInterfaceToUniqueIdentifierMapper& getInterfaceToIdentifierMapper();
519 
520  const css::uno::Reference< css::uno::XComponentContext >& getComponentContext() const { return m_xContext;}
521 
522  // Shapes in Writer cannot be named via context menu (#i51726#)
524  {
525  return meModelType;
526  }
527 
528  // Written OpenDocument file format doesn't fit to the created text document (#i69627#)
529  bool writeOutlineStyleAsNormalListStyle() const;
530 
531  css::uno::Reference< css::embed::XStorage > const & GetTargetStorage() const;
532 
534  char const* GetODFVersionAttributeValue() const;
535 
537  SvtSaveOptions::ODFSaneDefaultVersion getSaneDefaultVersion() const;
538 
539  // FIXME: this is only for legacy stuff that has not yet been adapted
540  // to implement XMetadatable; this can write duplicate IDs!
542  void SAL_DLLPRIVATE AddAttributeIdLegacy(
543  sal_uInt16 const nLegacyPrefix, OUString const& rValue);
544 
546  void AddAttributeXmlId(css::uno::Reference<css::uno::XInterface> const & i_xIfc);
547 
549  void AddAttributesRDFa( css::uno::Reference<css::text::XTextContent> const & i_xTextContent);
550 
551  bool exportTextNumberElement() const;
552 
554  bool SetNullDateOnUnitConverter();
555 
557  OUString const & GetImageFilterName() const;
558 };
559 
561 {
562  if( !mxTextParagraphExport.is() )
563  mxTextParagraphExport = CreateTextParagraphExport();
564 
565  return mxTextParagraphExport;
566 }
567 
569 {
570  if( !mxShapeExport.is() )
571  mxShapeExport = CreateShapeExport();
572 
573  return mxShapeExport;
574 }
575 
577 {
578  if( !mxAutoStylePool.is() )
579  mxAutoStylePool = CreateAutoStylePool();
580 
581  return mxAutoStylePool;
582 }
583 
585 {
586  if( !mxChartExport.is() )
587  mxChartExport = CreateChartExport();
588 
589  return mxChartExport;
590 }
591 
593 {
594  if( !mxPageExport.is() )
595  mxPageExport = CreatePageExport();
596 
597  return mxPageExport;
598 }
599 
601 {
602  if( !mxFontAutoStylePool.is() )
603  mxFontAutoStylePool = CreateFontAutoStylePool();
604 
605  return mxFontAutoStylePool;
606 }
607 
609 {
610  if( !mxFormExport.is() )
611  mxFormExport = CreateFormExport();
612 
613  return mxFormExport;
614 }
615 
616 inline bool SvXMLExport::HasFormExport() const
617 {
618  return mxFormExport.is();
619 }
620 
622  css::uno::Reference< css::document::XEmbeddedObjectResolver > const & _xEmbeddedResolver )
623 {
624  mxEmbeddedResolver = _xEmbeddedResolver;
625 }
626 
628  css::uno::Reference<css::document::XGraphicStorageHandler> const & rxGraphicStorageHandler)
629 {
630  mxGraphicStorageHandler = rxGraphicStorageHandler;
631 }
632 
633 // Helper class to export an element.
635 {
637  OUString maElementName;
638  const bool mbIgnoreWhitespaceInside :1;
639  const bool mbDoSomething :1;
640 
641  SAL_DLLPRIVATE
642  void StartElement(
643  const sal_uInt16 nPrefix,
644  const OUString& rName,
645  const bool bIgnoreWhitespaceOutside );
646 
647 public:
648 
649  // The constructor prints a start tag that has the common attributes
650  // of the XMLExport instance attached.
651  SvXMLElementExport( SvXMLExport& rExp, sal_uInt16 nPrefix,
652  const char *pName,
653  bool bIgnWSOutside, bool bIgnWSInside );
654  SvXMLElementExport( SvXMLExport& rExp, sal_uInt16 nPrefix,
655  const OUString& rName,
656  bool bIgnWSOutside, bool bIgnWSInside );
657  SvXMLElementExport( SvXMLExport& rExp, sal_uInt16 nPrefix,
659  bool bIgnWSOutside, bool bIgnWSInside );
660  SvXMLElementExport( SvXMLExport& rExp, const OUString& rQName,
661  bool bIgnWSOutside, bool bIgnWSInside );
662 
663  // These constructors do nothing if bDoSomething is not set
664  SvXMLElementExport( SvXMLExport& rExp, bool bDoSomething,
665  sal_uInt16 nPrefix,
667  bool bIgnWSOutside, bool bIgnWSInside );
668 
669  // The destructor prints an end tag.
671 };
672 
673 #endif // _XMLOFF_SVXMLEXP_HXX
674 
675 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SvXMLExportFlags mnExportFlags
Definition: xmlexp.hxx:156
FieldUnit
OUString maElementName
Definition: xmlexp.hxx:637
rtl::Reference< XMLShapeExport > const & GetShapeExport()
Definition: xmlexp.hxx:568
the SvXMLTypeConverter converts values of various types from their internal representation to the tex...
Definition: xmluconv.hxx:77
int SetError()
rtl::Reference< XMLTextParagraphExport > const & GetTextParagraphExport()
Definition: xmlexp.hxx:560
const SvXMLUnitConverter & GetMM100UnitConverter() const
Definition: xmlexp.hxx:394
SvXMLExportFlags
Definition: xmlexp.hxx:89
css::uno::Reference< css::beans::XPropertySet > mxExportInfo
Definition: xmlexp.hxx:129
The XMLErrors is used to collect all errors and warnings that occur for appropriate processing...
Definition: xmlerror.hxx:102
virtual SvXMLAutoStylePoolP * CreateAutoStylePool()
Definition: xmlexp.cxx:1701
css::uno::Reference< css::document::XGraphicStorageHandler > mxGraphicStorageHandler
Definition: xmlexp.hxx:126
SvXMLExport & mrExport
Definition: xmlexp.hxx:636
css::uno::Reference< css::xml::sax::XAttributeList > GetXAttrList()
Definition: xmlexp.hxx:381
OUString getImplementationName()
virtual XMLTextParagraphExport * CreateTextParagraphExport()
Definition: xmlexp.cxx:1691
std::unique_ptr< SvXMLNamespaceMap > mpNamespaceMap
Definition: xmlexp.hxx:137
const css::uno::Reference< css::xml::sax::XDocumentHandler > & GetDocHandler() const
Definition: xmlexp.hxx:385
OUString msFilterName
Definition: xmlexp.hxx:135
css::uno::Reference< css::document::XEmbeddedObjectResolver > mxEmbeddedResolver
Definition: xmlexp.hxx:127
rtl::Reference< XMLShapeExport > mxShapeExport
Definition: xmlexp.hxx:143
css::uno::Any const & rValue
Definition: ImageStyle.hxx:38
SvXMLAttributeList & GetAttrList()
Definition: xmlexp.hxx:380
const css::uno::Reference< css::frame::XModel > & GetModel() const
Definition: xmlexp.hxx:414
rtl::Reference< xmloff::OFormLayerXMLExport > mxFormExport
Definition: xmlexp.hxx:148
SchXMLExportHelper * CreateChartExport()
Definition: xmlexp.cxx:1715
exports com.sun.star. frame
xmloff::OFormLayerXMLExport * CreateFormExport()
Definition: xmlexp.cxx:1725
css::uno::Reference< css::task::XStatusIndicator > mxStatusIndicator
Definition: xmlexp.hxx:128
css::uno::Sequence< css::beans::PropertyValue > aSettings
Definition: xmlexp.hxx:231
void SetNumberFormatsSupplier(const css::uno::Reference< css::util::XNumberFormatsSupplier > &_xNumberFormatSupplier)
Definition: xmlexp.hxx:417
XMLTokenEnum
The enumeration of all XML tokens.
Definition: xmltoken.hxx:49
SvtModuleOptions::EFactory GetModelType() const
Definition: xmlexp.hxx:523
std::unique_ptr< SvXMLNumFmtExport > mpNumExport
Definition: xmlexp.hxx:139
bool mbAutoStylesCollected
Definition: xmlexp.hxx:262
rtl::Reference< XMLFontAutoStylePool > mxFontAutoStylePool
Definition: xmlexp.hxx:147
std::unique_ptr< ProgressBarHelper > mpProgressBarHelper
Definition: xmlexp.hxx:140
void SetEmbeddedResolver(css::uno::Reference< css::document::XEmbeddedObjectResolver > const &_xEmbeddedResolver)
Definition: xmlexp.hxx:621
rtl::Reference< SchXMLExportHelper > mxChartExport
Definition: xmlexp.hxx:145
sal_uInt16 char * pName
rtl::Reference< XMLTextParagraphExport > mxTextParagraphExport
Definition: xmlexp.hxx:142
class SAL_NO_VTABLE XPropertySet
RequestPriorityClass meClass
const css::uno::Reference< css::document::XGraphicStorageHandler > & GetGraphicStorageHandler() const
Definition: xmlexp.hxx:254
css::uno::Reference< css::xml::sax::XDocumentHandler > mxHandler
Definition: xmlexp.hxx:123
const OUString msWS
Definition: xmlexp.hxx:159
const css::uno::Reference< css::uno::XComponentContext > & getComponentContext() const
Definition: xmlexp.hxx:520
rtl::Reference< SchXMLExportHelper > const & GetChartExport()
Definition: xmlexp.hxx:584
css::uno::Reference< css::util::XNumberFormatsSupplier > & GetNumberFormatsSupplier()
Definition: xmlexp.hxx:416
OUString m_implementationName
Definition: xmlexp.hxx:120
virtual XMLPageExport * CreatePageExport()
Definition: xmlexp.cxx:1710
unsigned char sal_Bool
virtual XMLFontAutoStylePool * CreateFontAutoStylePool()
Definition: xmlexp.cxx:1720
std::unique_ptr< SvXMLExport_Impl > mpImpl
Definition: xmlexp.hxx:117
std::unique_ptr< XMLImageMapExport > mpImageMapExport
Definition: xmlexp.hxx:150
With this class you can export a element containing its data as element o...
SvXMLUnitConverter & GetMM100UnitConverter()
Definition: xmlexp.hxx:396
bool mbSaveLinkedSections
Definition: xmlexp.hxx:216
const css::uno::Reference< css::document::XEmbeddedObjectResolver > & GetEmbeddedResolver() const
Definition: xmlexp.hxx:251
const uno::Reference< uno::XComponentContext > m_xContext
const SvXMLNamespaceMap & GetNamespaceMap() const
Definition: xmlexp.hxx:391
::xmloff::token::XMLTokenEnum eGroupName
Definition: xmlexp.hxx:230
void SetGraphicStorageHandler(css::uno::Reference< css::document::XGraphicStorageHandler > const &rxGraphicStorageHandler)
Definition: xmlexp.hxx:627
const css::uno::Reference< css::beans::XPropertySet > & getExportInfo() const
Definition: xmlexp.hxx:449
OUString msImgFilterName
Definition: xmlexp.hxx:136
SvXMLUnitConverter maUnitConv
Definition: xmlexp.hxx:138
const OUString & GetOrigFileName() const
Definition: xmlexp.hxx:388
SvtModuleOptions::EFactory meModelType
Definition: xmlexp.hxx:162
rtl::Reference< XMLPageExport > mxPageExport
Definition: xmlexp.hxx:146
std::unique_ptr< XMLErrors > mpXMLErrors
Definition: xmlexp.hxx:151
SvXMLNamespaceMap & GetNamespaceMap_()
Definition: xmlexp.hxx:180
rtl::Reference< SvXMLAutoStylePoolP > const & GetAutoStylePool()
Definition: xmlexp.hxx:576
virtual XMLShapeExport * CreateShapeExport()
Definition: xmlexp.cxx:1696
rtl::Reference< XMLFontAutoStylePool > const & GetFontAutoStylePool()
Definition: xmlexp.hxx:600
exports com.sun.star. lang
rtl::Reference< SvXMLAutoStylePoolP > mxAutoStylePool
Definition: xmlexp.hxx:144
provides functionality for exporting a complete form layer.
SettingsGroup(const ::xmloff::token::XMLTokenEnum _eGroupName, const css::uno::Sequence< css::beans::PropertyValue > &_rSettings)
Definition: xmlexp.hxx:233
css::uno::Reference< css::lang::XEventListener > mxEventListener
Definition: xmlexp.hxx:130
css::uno::Reference< css::frame::XModel > mxModel
Definition: xmlexp.hxx:122
void setExportFlags(SvXMLExportFlags nExportFlags)
Definition: xmlexp.hxx:177
Export instances of EventsSupplier services.
rtl::Reference< XMLPageExport > const & GetPageExport()
Definition: xmlexp.hxx:592
bool IsSaveLinkedSections() const
Definition: xmlexp.hxx:473
SvXMLErrorFlags mnErrorFlags
Definition: xmlexp.hxx:157
rtl::Reference< xmloff::OFormLayerXMLExport > const & GetFormExport()
Definition: xmlexp.hxx:608
css::uno::Reference< css::util::XNumberFormatsSupplier > mxNumberFormatsSupplier
Definition: xmlexp.hxx:125
css::uno::Reference< css::xml::sax::XExtendedDocumentHandler > mxExtHandler
Definition: xmlexp.hxx:124
const css::uno::Reference< css::task::XStatusIndicator > & GetStatusIndicator() const
Definition: xmlexp.hxx:451
Export an ImageMap as defined by service com.sun.star.image.ImageMap to XML.
#define XMLOFF_DLLPUBLIC
Definition: dllapi.h:29
SvXMLExportFlags getExportFlags() const
Definition: xmlexp.hxx:476
std::unique_ptr< XMLEventExport > mpEventExport
Definition: xmlexp.hxx:149
bool HasFormExport() const
Definition: xmlexp.hxx:616
SvXMLErrorFlags
Definition: xmlerror.hxx:78
rtl::Reference< SvXMLAttributeList > mxAttrList
Definition: xmlexp.hxx:132
css::uno::Reference< css::uno::XComponentContext > m_xContext
Definition: xmlexp.hxx:119
OUString msOrigFileName
Definition: xmlexp.hxx:134
typedef void(CALLTYPE *GetFuncDataPtr)(sal_uInt16 &nNo