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 constexpr OUStringLiteral gsAnchorCharStyleName = u"AnchorCharStyleName";
134  static constexpr OUStringLiteral gsBeginNotice = u"BeginNotice";
135  static constexpr OUStringLiteral gsCategory = u"Category";
136  static constexpr OUStringLiteral gsCharStyleName = u"CharStyleName";
137  static constexpr OUStringLiteral gsCharStyleNames = u"CharStyleNames";
138  static constexpr OUStringLiteral gsEndNotice = u"EndNotice";
139  static constexpr OUStringLiteral gsFootnote = u"Footnote";
140  static constexpr OUStringLiteral gsFootnoteCounting = u"FootnoteCounting";
141  static constexpr OUStringLiteral gsNumberingType = u"NumberingType";
142  static constexpr OUStringLiteral gsPageDescName = u"PageDescName";
143  static constexpr OUStringLiteral gsPageStyleName = u"PageStyleName";
144  static constexpr OUStringLiteral gsParaStyleName = u"ParaStyleName";
145  static constexpr OUStringLiteral gsPositionEndOfDoc = u"PositionEndOfDoc";
146  static constexpr OUStringLiteral gsPrefix = u"Prefix";
147  static constexpr OUStringLiteral gsReferenceId = u"ReferenceId";
148  static constexpr OUStringLiteral gsStartAt = u"StartAt";
149  static constexpr OUStringLiteral gsSuffix = u"Suffix";
150  static constexpr OUStringLiteral gsTextEndnoteService = u"com.sun.star.text.Endnote";
151  static constexpr OUStringLiteral gsTextSection = u"TextSection";
152 
153 protected:
154  static constexpr OUStringLiteral gsFrameStyleName = u"FrameStyleName";
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  bool isAutoStylesCollected() const { return mbCollected; }
369 
370  virtual void exportTableAutoStyles();
371 
372 public:
373 
375  SvXMLExport& rExp,
376  SvXMLAutoStylePoolP & rASP
377  );
378  virtual ~XMLTextParagraphExport() override;
379 
381  void Add(
382  XmlStyleFamily nFamily,
383  MultiPropertySetHelper& rPropSetHelper,
384  const css::uno::Reference< css::beans::XPropertySet > & rPropSet );
385  void Add(
386  XmlStyleFamily nFamily,
387  const css::uno::Reference< css::beans::XPropertySet > & rPropSet,
388  const XMLPropertyState** pAddState = nullptr, bool bDontSeek = false );
389 
391  OUString Find(
392  XmlStyleFamily nFamily,
393  const css::uno::Reference< css::beans::XPropertySet > & rPropSet,
394  const OUString& rParent,
395  const XMLPropertyState** pAddState = nullptr ) const;
396 
397  static SvXMLExportPropertyMapper *CreateShapeExtPropMapper(
398  SvXMLExport& rExport );
399  static SvXMLExportPropertyMapper *CreateCharExtPropMapper(
401  static SvXMLExportPropertyMapper *CreateParaExtPropMapper(
403  static SvXMLExportPropertyMapper *CreateParaDefaultExtPropMapper(
405 
406  // This methods exports all (or all used) styles
407  void exportTextStyles( bool bUsed, bool bProg );
408 
410  void exportTextDeclarations();
411 
413  void exportTextDeclarations(
414  const css::uno::Reference< css::text::XText > & rText );
415 
417  void exportUsedDeclarations();
418 
421  void exportTrackedChanges(bool bAutoStyle);
422 
425  void exportTrackedChanges(const css::uno::Reference< css::text::XText > & rText,
426  bool bAutoStyle );
427 
433  void recordTrackedChangesForXText(
434  const css::uno::Reference< css::text::XText > & rText );
435 
436 
440  void recordTrackedChangesNoXText();
441 
442 
443  // This method exports the given OUString
444  void exportCharacterData(
445  const OUString& rText,
446  bool& rPrevCharWasSpace);
447 
448  // This method collects all automatic styles for the given XText
450  const css::uno::Reference< css::text::XText > & rText,
451  bool bIsProgress = false,
452  bool bExportParagraph = true )
453  {
454  exportText( rText, true, bIsProgress, bExportParagraph );
455  }
456 
458  const css::uno::Reference< css::text::XText > & rText,
459  const css::uno::Reference< css::text::XTextSection > & rBaseSection,
460  bool bIsProgress )
461  {
462  exportText( rText, rBaseSection, true, bIsProgress, true/*bExportParagraph*/ );
463  }
464 
465  // It the model implements the xAutoStylesSupplier interface, the automatic
466  // styles can exported without iterating over the text portions
467  void collectTextAutoStylesOptimized( bool bIsProgress );
468 
469  // This method exports all automatic styles that have been collected.
470  void exportTextAutoStyles();
471 
472  void exportEvents( const css::uno::Reference< css::beans::XPropertySet > & rPropSet );
473 
474  // Implement Title/Description Elements UI (#i73249#)
475  void exportTitleAndDescription( const css::uno::Reference< css::beans::XPropertySet > & rPropSet,
476  const css::uno::Reference< css::beans::XPropertySetInfo > & rPropSetInfo );
477 
478  // This method exports the given XText
480  const css::uno::Reference< css::text::XText > & rText,
481  bool bIsProgress = false,
482  bool bExportParagraph = true, TextPNS eExtensionNS = TextPNS::ODF)
483  {
484  exportText( rText, false, bIsProgress, bExportParagraph, eExtensionNS );
485  }
486 
488  const css::uno::Reference< css::text::XText > & rText,
489  const css::uno::Reference< css::text::XTextSection > & rBaseSection,
490  bool bIsProgress)
491  {
492  exportText( rText, rBaseSection, false, bIsProgress, true/*bExportParagraph*/ );
493  }
494 
495  void exportFramesBoundToPage( bool bIsProgress )
496  {
497  exportPageFrames( bIsProgress );
498  }
499  inline const XMLTextListAutoStylePool& GetListAutoStylePool() const;
500 
501  void SetBlockMode( bool bSet ) { bBlock = bSet; }
502  bool IsBlockMode() const { return bBlock; }
503 
504 
506  {
507  return xParaPropMapper;
508  }
509 
510 
522  void PreventExportOfControlsInMuteSections(
523  const css::uno::Reference< css::container::XIndexAccess> & rShapes,
524  const rtl::Reference<xmloff::OFormLayerXMLExport>& xFormExport );
525 
526  SinglePropertySetInfoCache& GetCharStyleNamesPropInfoCache() { return aCharStyleNamesPropInfoCache; }
527 
528  void PushNewTextListsHelper();
529 
530  void PopTextListsHelper();
531 
532 private:
534 };
535 
536 inline const XMLTextListAutoStylePool&
538 {
539  return maListAutoPool;
540 }
541 
543  const css::uno::Reference< css::text::XTextContent > & rTextContent,
544  bool bAutoStyles, bool bIsProgress, bool bExportContent,
545  const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet)
546 {
547  exportAnyTextFrame( rTextContent, FrameType::Text, bAutoStyles, bIsProgress,
548  bExportContent, pRangePropSet );
549 }
550 
552  const css::uno::Reference< css::text::XTextContent > & rTextContent,
553  bool bAutoStyles,
554  const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet )
555 {
556  exportAnyTextFrame( rTextContent, FrameType::Graphic, bAutoStyles, false,
557  true, pRangePropSet );
558 }
559 
561  const css::uno::Reference< css::text::XTextContent > & rTextContent,
562  bool bAutoStyles,
563  const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet )
564 {
565  exportAnyTextFrame( rTextContent, FrameType::Embedded, bAutoStyles, false,
566  true, pRangePropSet );
567 }
568 
570  const css::uno::Reference< css::text::XTextContent > & rTextContent,
571  bool bAutoStyles,
572  const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet )
573 {
574  exportAnyTextFrame( rTextContent, FrameType::Shape, bAutoStyles, false,
575  true, pRangePropSet );
576 }
577 
578 #endif
579 
580 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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
SinglePropertySetInfoCache & GetCharStyleNamesPropInfoCache()
Definition: txtparae.hxx:526
const SvXMLAutoStylePoolP & GetAutoStylePool() const
Definition: txtparae.hxx:158
::std::vector< std::unique_ptr< XMLTextListsHelper > > maTextListsHelperStack
Definition: txtparae.hxx:110
void collectTextAutoStyles(const css::uno::Reference< css::text::XText > &rText, bool bIsProgress=false, bool bExportParagraph=true)
Definition: txtparae.hxx:449
rtl::Reference< SvXMLExportPropertyMapper > xParaPropMapper
Definition: txtparae.hxx:83
const rtl::Reference< SvXMLExportPropertyMapper > & GetParaPropMapper() const
Definition: txtparae.hxx:161
bool isAutoStylesCollected() const
Definition: txtparae.hxx:368
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
void exportText(const css::uno::Reference< css::text::XText > &rText, const css::uno::Reference< css::text::XTextSection > &rBaseSection, bool bIsProgress)
Definition: txtparae.hxx:487
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:542
XmlStyleFamily
Definition: families.hxx:47
bool IsBlockMode() const
Definition: txtparae.hxx:502
TextPNS
Definition: txtparae.hxx:70
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:495
void SetBlockMode(bool bSet)
Definition: txtparae.hxx:501
XMLTextListsHelper * mpTextListsHelper
Definition: txtparae.hxx:109
XMLTokenEnum
The enumeration of all XML tokens.
Definition: xmltoken.hxx:49
exports com.sun.star. text
The MultiPropertySetHelper performs the following functions:
XMLTextListAutoStylePool maListAutoPool
Definition: txtparae.hxx:93
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:569
float u
This class handles the export of sections and indices (which are, internally, just sections)...
void exportText(SvXMLExport &rExport, const OUString &rText, bool bConvertTabsLFs)
const rtl::Reference< SvXMLExportPropertyMapper > & GetAutoFramePropMapper() const
Definition: txtparae.hxx:171
void exportText(const css::uno::Reference< css::text::XText > &rText, bool bIsProgress=false, bool bExportParagraph=true, TextPNS eExtensionNS=TextPNS::ODF)
Definition: txtparae.hxx:479
constexpr OUStringLiteral gsCharStyleName(u"CharStyleName")
const rtl::Reference< SvXMLExportPropertyMapper > & GetParagraphPropertyMapper() const
Definition: txtparae.hxx:505
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:551
const ::std::unique_ptr< ::xmloff::BoundFrameSets > pBoundFrameSets
Definition: txtparae.hxx:90
constexpr OUStringLiteral gsNumberingType(u"NumberingType")
std::unique_ptr< XMLTextFieldExport > pFieldExport
Definition: txtparae.hxx:91
rtl::Reference< SvXMLExportPropertyMapper > xSectionPropMapper
Definition: txtparae.hxx:87
const XMLTextListAutoStylePool & GetListAutoStylePool() const
Definition: txtparae.hxx:537
void exportTextEmbedded(const css::uno::Reference< css::text::XTextContent > &rTextContent, bool bAutoStyles, const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet=nullptr)
Definition: txtparae.hxx:560
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
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:2778
#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:457
rtl::Reference< SvXMLExportPropertyMapper > xRubyPropMapper
Definition: txtparae.hxx:88