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