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