LibreOffice Module xmloff (master)  1
txtparae.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_TXTPARAE_HXX
21 #define INCLUDED_XMLOFF_TXTPARAE_HXX
22 
23 #include <sal/config.h>
24 #include <rtl/ref.hxx>
25 #include <xmloff/dllapi.h>
26 #include <rtl/ustring.hxx>
27 #include <com/sun/star/uno/Reference.h>
28 #include <xmloff/styleexp.hxx>
29 #include <xmloff/xmltoken.hxx>
32 #include <memory>
33 #include <vector>
34 
35 class XMLTextListsHelper;
36 class SvXMLExport;
38 class XMLTextFieldExport;
39 class XMLTextNumRuleInfo;
40 class XMLSectionExport;
41 class XMLIndexMarkExport;
42 class XMLRedlineExport;
43 struct XMLPropertyState;
45 enum class XMLShapeExportFlags;
47 
48 namespace com::sun::star
49 {
50  namespace beans { class XPropertySet; class XPropertyState;
51  class XPropertySetInfo; }
52  namespace container { class XEnumeration; class XIndexAccess; }
53  namespace text { class XTextContent; class XTextRange; class XText;
54  class XFootnote; class XTextFrame; class XTextSection;
55  class XTextField; }
56 }
57 
58 namespace xmloff
59 {
60  class OFormLayerXMLExport;
61  class BoundFrameSets;
62 
63 }
64 
65 namespace basegfx
66 {
67  class B2DPoint;
68 }
69 
70 enum class TextPNS
71 {
72  ODF,
73  EXTENSION
74 };
75 
77 {
78  struct Impl;
79  std::unique_ptr<Impl> m_xImpl;
80 
81 // SvXMLExport& rExport;
89 
90  const ::std::unique_ptr< ::xmloff::BoundFrameSets > pBoundFrameSets;
91  std::unique_ptr<XMLTextFieldExport> pFieldExport;
92  std::unique_ptr<std::vector<OUString>> pListElements;
94  std::unique_ptr<XMLSectionExport> pSectionExport;
95  std::unique_ptr<XMLIndexMarkExport> pIndexMarkExport;
96 
98  std::unique_ptr<XMLRedlineExport> pRedlineExport;
99 
100  bool bProgress;
101 
102  bool bBlock;
103 
104  // keep track of open rubies
105  OUString sOpenRubyText;
107  bool bOpenRuby;
108 
110  ::std::vector< std::unique_ptr<XMLTextListsHelper> > maTextListsHelperStack;
111 
113 
114  enum class FrameType { Text, Graphic, Embedded, Shape };
115 public:
116 
117  enum FieldmarkType { NONE, TEXT, CHECK }; // Used for simulating fieldmarks in OpenDocument 1.n Strict (for n <= 2). CHECK currently ignored.
118 
119 
120  void exportTextRangeSpan(
121  const css::uno::Reference< css::text::XTextRange > & rTextRange,
122  css::uno::Reference< css::beans::XPropertySet > const & xPropSet,
123  css::uno::Reference < css::beans::XPropertySetInfo > & xPropSetInfo,
124  const bool bIsUICharStyle,
125  const bool bHasAutoStyle,
126  const OUString& sStyle,
127  bool& rPrevCharIsSpace,
128  FieldmarkType& openFieldMark);
129 
130 private:
131 
132  // Implement Title/Description Elements UI (#i73249#)
133  static const OUStringLiteral gsAnchorCharStyleName;
134  static const OUStringLiteral gsBeginNotice;
135  static const OUStringLiteral gsCategory;
136  static const OUStringLiteral gsCharStyleName;
137  static const OUStringLiteral gsCharStyleNames;
138  static const OUStringLiteral gsEndNotice;
139  static const OUStringLiteral gsFootnote;
140  static const OUStringLiteral gsFootnoteCounting;
141  static const OUStringLiteral gsNumberingType;
142  static const OUStringLiteral gsPageDescName;
143  static const OUStringLiteral gsPageStyleName;
144  static const OUStringLiteral gsParaStyleName;
145  static const OUStringLiteral gsPositionEndOfDoc;
146  static const OUStringLiteral gsPrefix;
147  static const OUStringLiteral gsReferenceId;
148  static const OUStringLiteral gsStartAt;
149  static const OUStringLiteral gsSuffix;
150  static const OUStringLiteral gsTextEndnoteService;
151  static const OUStringLiteral gsTextSection;
152 
153 protected:
154  static const OUStringLiteral gsFrameStyleName;
156 
157  SvXMLAutoStylePoolP& GetAutoStylePool() { return rAutoStylePool; }
158  const SvXMLAutoStylePoolP& GetAutoStylePool() const { return rAutoStylePool; }
159 
160 public:
162  {
163  return xParaPropMapper;
164  }
165 
167  {
168  return xTextPropMapper;
169  }
170 
172  {
173  return xAutoFramePropMapper;
174  }
176  {
177  return xSectionPropMapper;
178  }
180  {
181  return xRubyPropMapper;
182  }
183 
184  OUString FindTextStyleAndHyperlink(
185  const css::uno::Reference< css::beans::XPropertySet > & rPropSet,
186  bool& rbHyperlink,
187  bool& rbHasCharStyle,
188  bool& rbHasAutoStyle,
189  const XMLPropertyState** pAddState = nullptr) const;
190  bool addHyperlinkAttributes(
191  const css::uno::Reference< css::beans::XPropertySet > & rPropSet,
192  const css::uno::Reference< css::beans::XPropertyState > & rPropState,
193  const css::uno::Reference< css::beans::XPropertySetInfo > & rPropSetInfo );
194 
195  void exportTextRangeEnumeration(
196  const css::uno::Reference< css::container::XEnumeration > & rRangeEnum,
197  bool bAutoStyles, bool bProgress, bool & rPrevCharIsSpace);
198 
199 protected:
200 
201  XMLShapeExportFlags addTextFrameAttributes(
202  const css::uno::Reference< css::beans::XPropertySet >& rPropSet,
203  bool bShape,
204  basegfx::B2DPoint* pCenter = nullptr,
205  OUString *pMinHeightValue = nullptr,
206  OUString *pMinWidthValue = nullptr );
207 
208  virtual void exportStyleAttributes(
209  const css::uno::Reference< css::style::XStyle > & rStyle ) override;
210 
211  void exportPageFrames( bool bProgress );
212  void exportFrameFrames( bool bAutoStyles, bool bProgress,
213  const css::uno::Reference< css::text::XTextFrame > *pParentTxtFrame );
214 
215  void exportNumStyles( bool bUsed );
216 
217  void exportText(
218  const css::uno::Reference <
219  css::text::XText > & rText,
220  bool bAutoStyles, bool bProgress, bool bExportParagraph, TextPNS eExtensionNS = TextPNS::ODF );
221 
222  void exportText(
223  const css::uno::Reference< css::text::XText > & rText,
224  const css::uno::Reference< css::text::XTextSection > & rBaseSection,
225  bool bAutoStyles, bool bProgress, bool bExportParagraph );
226 
227  void exportTextContentEnumeration(
228  const css::uno::Reference< css::container::XEnumeration > & rContentEnum,
229  bool bAutoStyles,
230  const css::uno::Reference< css::text::XTextSection > & rBaseSection,
231  bool bProgress,
232  bool bExportParagraph = true,
233  const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet = nullptr,
234  TextPNS eExtensionNS = TextPNS::ODF);
235  void exportParagraph(
236  const css::uno::Reference< css::text::XTextContent > & rTextContent,
237  bool bAutoStyles, bool bProgress,
238  bool bExportParagraph,
239  MultiPropertySetHelper& rPropSetHelper,
240  TextPNS eExtensionNS);
241 
242  virtual void exportTable(
243  const css::uno::Reference< css::text::XTextContent > & rTextContent,
244  bool bAutoStyles, bool bProgress );
245 
246  void exportTextField(
247  const css::uno::Reference< css::text::XTextRange > & rTextRange,
248  bool bAutoStyles, bool bProgress, bool * pPrevCharIsSpace);
249 
250  void exportTextField(
251  const css::uno::Reference< css::text::XTextField> & xTextField,
252  const bool bAutoStyles, const bool bProgress,
253  const bool bRecursive, bool * pPrevCharIsSpace);
254 
255  void exportAnyTextFrame(
256  const css::uno::Reference< css::text::XTextContent > & rTextContent,
257  FrameType eTxpe,
258  bool bAutoStyles, bool bProgress, bool bExportContent,
259  const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet );
260  void _exportTextFrame(
261  const css::uno::Reference< css::beans::XPropertySet > & rPropSet,
262  const css::uno::Reference< css::beans::XPropertySetInfo > & rPropSetInfo,
263  bool bProgress );
264  inline void exportTextFrame(
265  const css::uno::Reference< css::text::XTextContent > & rTextContent,
266  bool bAutoStyles, bool bProgress, bool bExportContent,
267  const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet = nullptr );
268  inline void exportShape(
269  const css::uno::Reference< css::text::XTextContent > & rTextContent,
270  bool bAutoStyles,
271  const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet = nullptr );
272 
273  void exportContour(
274  const css::uno::Reference< css::beans::XPropertySet > & rPropSet,
275  const css::uno::Reference< css::beans::XPropertySetInfo > & rPropSetInfo );
276  void _exportTextGraphic(
277  const css::uno::Reference< css::beans::XPropertySet > & rPropSet,
278  const css::uno::Reference< css::beans::XPropertySetInfo > & rPropSetInfo );
279  inline void exportTextGraphic(
280  const css::uno::Reference< css::text::XTextContent > & rTextContent,
281  bool bAutoStyles,
282  const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet = nullptr );
283 
284  virtual void _collectTextEmbeddedAutoStyles(
285  const css::uno::Reference< css::beans::XPropertySet > & rPropSet );
286  virtual void _exportTextEmbedded(
287  const css::uno::Reference< css::beans::XPropertySet > & rPropSet,
288  const css::uno::Reference< css::beans::XPropertySetInfo > & rPropSetInfo );
289  inline void exportTextEmbedded(
290  const css::uno::Reference< css::text::XTextContent > & rTextContent,
291  bool bAutoStyles,
292  const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet = nullptr );
293 
295  void exportTextFootnote(
296  const css::uno::Reference< css::beans::XPropertySet > & rPropSet,
297  const OUString& sString,
298  bool bAutoStyles, bool bProgress );
299 
301  void exportTextFootnoteHelper(
302  const css::uno::Reference< css::text::XFootnote > & rPropSet,
303  const css::uno::Reference< css::text::XText> & rText,
304  const OUString& sString,
305  bool bAutoStyles,
306  bool bIsEndnote, bool bProgress );
307 
309  void exportTextFootnoteConfiguration();
310 
311  void exportTextFootnoteConfigurationHelper(
312  const css::uno::Reference< css::beans::XPropertySet> & rFootnoteSupplier,
313  bool bIsEndnote);
314 
315  void exportTextMark(
316  const css::uno::Reference< css::beans::XPropertySet> & xPropSet,
317  const OUString& rProperty,
318  const enum ::xmloff::token::XMLTokenEnum pElements[],
319  bool bAutoStyles);
320 
321  void exportSoftPageBreak();
322 
323  void exportTextRange(
324  const css::uno::Reference< css::text::XTextRange > & rTextRange,
325  bool bAutoStyles,
326  bool& rPrevCharWasSpace,
327  FieldmarkType& openFieldmarkType );
328 
329  void exportListChange( const XMLTextNumRuleInfo& rPrvInfo,
330  const XMLTextNumRuleInfo& rNextInfo );
331 
334  void exportListAndSectionChange(
335  css::uno::Reference< css::text::XTextSection > & rOldSection,
336  const css::uno::Reference< css::text::XTextSection > & rNewSection,
337  const XMLTextNumRuleInfo& rOldList,
338  const XMLTextNumRuleInfo& rNewList,
339  bool bAutoStyles );
340 
343  void exportListAndSectionChange(
344  css::uno::Reference< css::text::XTextSection > & rOldSection,
345  const css::uno::Reference< css::text::XTextContent > & rNewContent,
346  const XMLTextNumRuleInfo& rOldList,
347  const XMLTextNumRuleInfo& rNewList,
348  bool bAutoStyles );
349  void exportListAndSectionChange(
350  css::uno::Reference< css::text::XTextSection > & rOldSection,
351  MultiPropertySetHelper& rPropSetHelper,
352  sal_Int16 nTextSectionId,
353  const css::uno::Reference< css::text::XTextContent > & rNewContent,
354  const XMLTextNumRuleInfo& rOldList,
355  const XMLTextNumRuleInfo& rNewList,
356  bool bAutoStyles );
357 
359  void exportRuby(
360  const css::uno::Reference< css::beans::XPropertySet> & rPortionPropSet,
361  bool bAutoStyles );
362 
364  void exportMeta(
365  const css::uno::Reference< css::beans::XPropertySet> & i_xPortion,
366  bool i_bAutoStyles, bool i_isProgress, bool & rPrevCharIsSpace);
367 
368 public:
369 
371  SvXMLExport& rExp,
372  SvXMLAutoStylePoolP & rASP
373  );
374  virtual ~XMLTextParagraphExport() override;
375 
377  void Add(
378  XmlStyleFamily nFamily,
379  MultiPropertySetHelper& rPropSetHelper,
380  const css::uno::Reference< css::beans::XPropertySet > & rPropSet );
381  void Add(
382  XmlStyleFamily nFamily,
383  const css::uno::Reference< css::beans::XPropertySet > & rPropSet,
384  const XMLPropertyState** pAddState = nullptr, bool bDontSeek = false );
385 
387  OUString Find(
388  XmlStyleFamily nFamily,
389  const css::uno::Reference< css::beans::XPropertySet > & rPropSet,
390  const OUString& rParent,
391  const XMLPropertyState** pAddState = nullptr ) const;
392 
393  static SvXMLExportPropertyMapper *CreateShapeExtPropMapper(
394  SvXMLExport& rExport );
395  static SvXMLExportPropertyMapper *CreateCharExtPropMapper(
397  static SvXMLExportPropertyMapper *CreateParaExtPropMapper(
399  static SvXMLExportPropertyMapper *CreateParaDefaultExtPropMapper(
401 
402  // This methods exports all (or all used) styles
403  void exportTextStyles( bool bUsed, bool bProg );
404 
406  void exportTextDeclarations();
407 
409  void exportTextDeclarations(
410  const css::uno::Reference< css::text::XText > & rText );
411 
413  void exportUsedDeclarations();
414 
417  void exportTrackedChanges(bool bAutoStyle);
418 
421  void exportTrackedChanges(const css::uno::Reference< css::text::XText > & rText,
422  bool bAutoStyle );
423 
429  void recordTrackedChangesForXText(
430  const css::uno::Reference< css::text::XText > & rText );
431 
432 
436  void recordTrackedChangesNoXText();
437 
438 
439  // This method exports the given OUString
440  void exportCharacterData(
441  const OUString& rText,
442  bool& rPrevCharWasSpace);
443 
444  // This method collects all automatic styles for the given XText
446  const css::uno::Reference< css::text::XText > & rText,
447  bool bIsProgress = false,
448  bool bExportParagraph = true )
449  {
450  exportText( rText, true, bIsProgress, bExportParagraph );
451  }
452 
454  const css::uno::Reference< css::text::XText > & rText,
455  const css::uno::Reference< css::text::XTextSection > & rBaseSection,
456  bool bIsProgress )
457  {
458  exportText( rText, rBaseSection, true, bIsProgress, true/*bExportParagraph*/ );
459  }
460 
461  // It the model implements the xAutoStylesSupplier interface, the automatic
462  // styles can exported without iterating over the text portions
463  void collectTextAutoStylesOptimized( bool bIsProgress );
464 
465  // This method exports all automatic styles that have been collected.
466  void exportTextAutoStyles();
467 
468  void exportEvents( const css::uno::Reference< css::beans::XPropertySet > & rPropSet );
469 
470  // Implement Title/Description Elements UI (#i73249#)
471  void exportTitleAndDescription( const css::uno::Reference< css::beans::XPropertySet > & rPropSet,
472  const css::uno::Reference< css::beans::XPropertySetInfo > & rPropSetInfo );
473 
474  // This method exports the given XText
476  const css::uno::Reference< css::text::XText > & rText,
477  bool bIsProgress = false,
478  bool bExportParagraph = true, TextPNS eExtensionNS = TextPNS::ODF)
479  {
480  exportText( rText, false, bIsProgress, bExportParagraph, eExtensionNS );
481  }
482 
484  const css::uno::Reference< css::text::XText > & rText,
485  const css::uno::Reference< css::text::XTextSection > & rBaseSection,
486  bool bIsProgress)
487  {
488  exportText( rText, rBaseSection, false, bIsProgress, true/*bExportParagraph*/ );
489  }
490 
491  void exportFramesBoundToPage( bool bIsProgress )
492  {
493  exportPageFrames( bIsProgress );
494  }
495  inline const XMLTextListAutoStylePool& GetListAutoStylePool() const;
496 
497  void SetBlockMode( bool bSet ) { bBlock = bSet; }
498  bool IsBlockMode() const { return bBlock; }
499 
500 
502  {
503  return xParaPropMapper;
504  }
505 
506 
518  void PreventExportOfControlsInMuteSections(
519  const css::uno::Reference< css::container::XIndexAccess> & rShapes,
520  const rtl::Reference<xmloff::OFormLayerXMLExport>& xFormExport );
521 
522  SinglePropertySetInfoCache& GetCharStyleNamesPropInfoCache() { return aCharStyleNamesPropInfoCache; }
523 
524  void PushNewTextListsHelper();
525 
526  void PopTextListsHelper();
527 
528 private:
530 };
531 
532 inline const XMLTextListAutoStylePool&
534 {
535  return maListAutoPool;
536 }
537 
539  const css::uno::Reference< css::text::XTextContent > & rTextContent,
540  bool bAutoStyles, bool bIsProgress, bool bExportContent,
541  const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet)
542 {
543  exportAnyTextFrame( rTextContent, FrameType::Text, bAutoStyles, bIsProgress,
544  bExportContent, pRangePropSet );
545 }
546 
548  const css::uno::Reference< css::text::XTextContent > & rTextContent,
549  bool bAutoStyles,
550  const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet )
551 {
552  exportAnyTextFrame( rTextContent, FrameType::Graphic, bAutoStyles, false,
553  true, pRangePropSet );
554 }
555 
557  const css::uno::Reference< css::text::XTextContent > & rTextContent,
558  bool bAutoStyles,
559  const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet )
560 {
561  exportAnyTextFrame( rTextContent, FrameType::Embedded, bAutoStyles, false,
562  true, pRangePropSet );
563 }
564 
566  const css::uno::Reference< css::text::XTextContent > & rTextContent,
567  bool bAutoStyles,
568  const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet )
569 {
570  exportAnyTextFrame( rTextContent, FrameType::Shape, bAutoStyles, false,
571  true, pRangePropSet );
572 }
573 
574 #endif
575 
576 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
static const OUStringLiteral gsCategory
Definition: txtparae.hxx:135
rtl::Reference< SvXMLExportPropertyMapper > xFramePropMapper
Definition: txtparae.hxx:85
std::unique_ptr< XMLSectionExport > pSectionExport
Definition: txtparae.hxx:94
SvXMLAutoStylePoolP & GetAutoStylePool()
Definition: txtparae.hxx:157
rtl::Reference< SvXMLExportPropertyMapper > xAutoFramePropMapper
Definition: txtparae.hxx:86
static const OUStringLiteral gsCharStyleNames
Definition: txtparae.hxx:137
SinglePropertySetInfoCache & GetCharStyleNamesPropInfoCache()
Definition: txtparae.hxx:522
const SvXMLAutoStylePoolP & GetAutoStylePool() const
Definition: txtparae.hxx:158
static const OUStringLiteral gsSuffix
Definition: txtparae.hxx:149
::std::vector< std::unique_ptr< XMLTextListsHelper > > maTextListsHelperStack
Definition: txtparae.hxx:110
static const OUStringLiteral gsFootnote
Definition: txtparae.hxx:139
void collectTextAutoStyles(const css::uno::Reference< css::text::XText > &rText, bool bIsProgress=false, bool bExportParagraph=true)
Definition: txtparae.hxx:445
rtl::Reference< SvXMLExportPropertyMapper > xParaPropMapper
Definition: txtparae.hxx:83
const rtl::Reference< SvXMLExportPropertyMapper > & GetParaPropMapper() const
Definition: txtparae.hxx:161
OUString sOpenRubyCharStyle
Definition: txtparae.hxx:106
std::unique_ptr< XMLRedlineExport > pRedlineExport
may be NULL (if no redlines should be exported; e.g. in block mode)
Definition: txtparae.hxx:98
CHECK
information about list and list style for a certain paragraph
static const OUStringLiteral gsPositionEndOfDoc
Definition: txtparae.hxx:145
static const OUStringLiteral gsTextEndnoteService
Definition: txtparae.hxx:150
void exportText(const css::uno::Reference< css::text::XText > &rText, const css::uno::Reference< css::text::XTextSection > &rBaseSection, bool bIsProgress)
Definition: txtparae.hxx:483
NONE
exports com.sun.star. container
void exportTextFrame(const css::uno::Reference< css::text::XTextContent > &rTextContent, bool bAutoStyles, bool bProgress, bool bExportContent, const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet=nullptr)
Definition: txtparae.hxx:538
XmlStyleFamily
Definition: families.hxx:47
bool IsBlockMode() const
Definition: txtparae.hxx:498
TextPNS
Definition: txtparae.hxx:70
static const OUStringLiteral gsTextSection
Definition: txtparae.hxx:151
const rtl::Reference< SvXMLExportPropertyMapper > & GetRubyPropMapper() const
Definition: txtparae.hxx:179
This class handles the export of index marks for table of content, alphabetical and user index...
std::unique_ptr< std::vector< OUString > > pListElements
Definition: txtparae.hxx:92
void exportFramesBoundToPage(bool bIsProgress)
Definition: txtparae.hxx:491
void SetBlockMode(bool bSet)
Definition: txtparae.hxx:497
XMLTextListsHelper * mpTextListsHelper
Definition: txtparae.hxx:109
XMLTokenEnum
The enumeration of all XML tokens.
Definition: xmltoken.hxx:49
static const OUStringLiteral gsPrefix
Definition: txtparae.hxx:146
exports com.sun.star. text
The MultiPropertySetHelper performs the following functions:
XMLTextListAutoStylePool maListAutoPool
Definition: txtparae.hxx:93
static const OUStringLiteral gsAnchorCharStyleName
Definition: txtparae.hxx:133
static const OUStringLiteral gsNumberingType
Definition: txtparae.hxx:141
virtual void exportStyleAttributes(const css::uno::Reference< css::style::XStyle > &rStyle)
Definition: styleexp.cxx:73
class SAL_NO_VTABLE XPropertySet
rtl::Reference< SvXMLExportPropertyMapper > xTextPropMapper
Definition: txtparae.hxx:84
const rtl::Reference< SvXMLExportPropertyMapper > & GetTextPropMapper() const
Definition: txtparae.hxx:166
const rtl::Reference< SvXMLExportPropertyMapper > & GetSectionPropMapper() const
Definition: txtparae.hxx:175
void exportShape(const css::uno::Reference< css::text::XTextContent > &rTextContent, bool bAutoStyles, const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet=nullptr)
Definition: txtparae.hxx:565
static const OUStringLiteral gsReferenceId
Definition: txtparae.hxx:147
static const OUStringLiteral gsCharStyleName
Definition: txtparae.hxx:136
static const OUStringLiteral gsEndNotice
Definition: txtparae.hxx:138
This class handles the export of sections and indices (which are, internally, just sections)...
static const OUStringLiteral gsPageStyleName
Definition: txtparae.hxx:143
void exportText(SvXMLExport &rExport, const OUString &rText, bool bConvertTabsLFs)
const rtl::Reference< SvXMLExportPropertyMapper > & GetAutoFramePropMapper() const
Definition: txtparae.hxx:171
static const OUStringLiteral gsFrameStyleName
Definition: txtparae.hxx:154
void exportText(const css::uno::Reference< css::text::XText > &rText, bool bIsProgress=false, bool bExportParagraph=true, TextPNS eExtensionNS=TextPNS::ODF)
Definition: txtparae.hxx:475
const rtl::Reference< SvXMLExportPropertyMapper > & GetParagraphPropertyMapper() const
Definition: txtparae.hxx:501
exports com.sun.star. beans
void exportTextGraphic(const css::uno::Reference< css::text::XTextContent > &rTextContent, bool bAutoStyles, const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet=nullptr)
Definition: txtparae.hxx:547
const ::std::unique_ptr< ::xmloff::BoundFrameSets > pBoundFrameSets
Definition: txtparae.hxx:90
static const OUStringLiteral gsParaStyleName
Definition: txtparae.hxx:144
std::unique_ptr< XMLTextFieldExport > pFieldExport
Definition: txtparae.hxx:91
rtl::Reference< SvXMLExportPropertyMapper > xSectionPropMapper
Definition: txtparae.hxx:87
const XMLTextListAutoStylePool & GetListAutoStylePool() const
Definition: txtparae.hxx:533
static const OUStringLiteral gsPageDescName
Definition: txtparae.hxx:142
static const OUStringLiteral gsFootnoteCounting
Definition: txtparae.hxx:140
static const OUStringLiteral gsBeginNotice
Definition: txtparae.hxx:134
void exportTextEmbedded(const css::uno::Reference< css::text::XTextContent > &rTextContent, bool bAutoStyles, const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet=nullptr)
Definition: txtparae.hxx:556
XMLShapeExportFlags
Definition: shapeexport.hxx:48
Smart struct to transport an Any with an index to the appropriate property-name.
Definition: maptype.hxx:122
SvXMLAutoStylePoolP & rAutoStylePool
Definition: txtparae.hxx:82
static const OUStringLiteral gsStartAt
Definition: txtparae.hxx:148
std::unique_ptr< XMLIndexMarkExport > pIndexMarkExport
Definition: txtparae.hxx:95
std::unique_ptr< Impl > m_xImpl
Definition: txtparae.hxx:78
SinglePropertySetInfoCache aCharStyleNamesPropInfoCache
Definition: txtparae.hxx:155
css::uno::Any const SvXMLExport & rExport
Definition: ImageStyle.hxx:38
void exportAnyTextFrame(const css::uno::Reference< css::text::XTextContent > &rTextContent, FrameType eTxpe, bool bAutoStyles, bool bProgress, bool bExportContent, const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet)
Definition: txtparae.cxx:2786
#define XMLOFF_DLLPUBLIC
Definition: dllapi.h:29
This class handles the export of redline portions.
void collectTextAutoStyles(const css::uno::Reference< css::text::XText > &rText, const css::uno::Reference< css::text::XTextSection > &rBaseSection, bool bIsProgress)
Definition: txtparae.hxx:453
rtl::Reference< SvXMLExportPropertyMapper > xRubyPropMapper
Definition: txtparae.hxx:88