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; }
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 FindTextStyleAndHyperlink(
186 const css::uno::Reference< css::beans::XPropertySet > & rPropSet,
187 bool& rbHyperlink,
188 bool& rbHasCharStyle,
189 bool& rbHasAutoStyle,
190 const XMLPropertyState** pAddState = nullptr) const;
191 bool addHyperlinkAttributes(
192 const css::uno::Reference< css::beans::XPropertySet > & rPropSet,
193 const css::uno::Reference< css::beans::XPropertyState > & rPropState,
194 const css::uno::Reference< css::beans::XPropertySetInfo > & rPropSetInfo );
195
196 void exportTextRangeEnumeration(
197 const css::uno::Reference< css::container::XEnumeration > & rRangeEnum,
198 bool bAutoStyles, bool bProgress, bool & rPrevCharIsSpace);
199
200protected:
201
202 XMLShapeExportFlags addTextFrameAttributes(
203 const css::uno::Reference< css::beans::XPropertySet >& rPropSet,
204 bool bShape,
205 basegfx::B2DPoint* pCenter = nullptr,
206 OUString *pMinHeightValue = nullptr,
207 OUString *pMinWidthValue = nullptr );
208
209 virtual void exportStyleAttributes(
210 const css::uno::Reference< css::style::XStyle > & rStyle ) override;
211
212 void exportPageFrames( bool bProgress );
213 void exportFrameFrames( bool bAutoStyles, bool bProgress,
214 const css::uno::Reference< css::text::XTextFrame > *pParentTxtFrame );
215
216 void exportNumStyles( bool bUsed );
217
219 const css::uno::Reference <
220 css::text::XText > & rText,
221 bool bAutoStyles, bool bProgress, bool bExportParagraph, TextPNS eExtensionNS = TextPNS::ODF );
222
224 const css::uno::Reference< css::text::XText > & rText,
225 const css::uno::Reference< css::text::XTextSection > & rBaseSection,
226 bool bAutoStyles, bool bProgress, bool bExportParagraph );
227
228 void exportTextContentEnumeration(
229 const css::uno::Reference< css::container::XEnumeration > & rContentEnum,
230 bool bAutoStyles,
231 const css::uno::Reference< css::text::XTextSection > & rBaseSection,
232 bool bProgress,
233 bool bExportParagraph = true,
234 const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet = nullptr,
235 TextPNS eExtensionNS = TextPNS::ODF);
236 void exportParagraph(
237 const css::uno::Reference< css::text::XTextContent > & rTextContent,
238 bool bAutoStyles, bool bProgress,
239 bool bExportParagraph,
240 MultiPropertySetHelper& rPropSetHelper,
241 TextPNS eExtensionNS);
242
243 virtual void exportTable(
244 const css::uno::Reference< css::text::XTextContent > & rTextContent,
245 bool bAutoStyles, bool bProgress );
246
248 const css::uno::Reference< css::text::XTextRange > & rTextRange,
249 bool bAutoStyles, bool bProgress, bool * pPrevCharIsSpace);
250
252 const css::uno::Reference< css::text::XTextField> & xTextField,
253 const bool bAutoStyles, const bool bProgress,
254 const bool bRecursive, bool * pPrevCharIsSpace);
255
256 void exportAnyTextFrame(
257 const css::uno::Reference< css::text::XTextContent > & rTextContent,
258 FrameType eTxpe,
259 bool bAutoStyles, bool bProgress, bool bExportContent,
260 const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet );
261 void _exportTextFrame(
262 const css::uno::Reference< css::beans::XPropertySet > & rPropSet,
263 const css::uno::Reference< css::beans::XPropertySetInfo > & rPropSetInfo,
264 bool bProgress );
265 inline void exportTextFrame(
266 const css::uno::Reference< css::text::XTextContent > & rTextContent,
267 bool bAutoStyles, bool bProgress, bool bExportContent,
268 const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet = nullptr );
269 inline void exportShape(
270 const css::uno::Reference< css::text::XTextContent > & rTextContent,
271 bool bAutoStyles,
272 const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet = nullptr );
273
274 void exportContour(
275 const css::uno::Reference< css::beans::XPropertySet > & rPropSet,
276 const css::uno::Reference< css::beans::XPropertySetInfo > & rPropSetInfo );
277 void _exportTextGraphic(
278 const css::uno::Reference< css::beans::XPropertySet > & rPropSet,
279 const css::uno::Reference< css::beans::XPropertySetInfo > & rPropSetInfo );
280 inline void exportTextGraphic(
281 const css::uno::Reference< css::text::XTextContent > & rTextContent,
282 bool bAutoStyles,
283 const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet = nullptr );
284
285 virtual void _collectTextEmbeddedAutoStyles(
286 const css::uno::Reference< css::beans::XPropertySet > & rPropSet );
287 virtual void _exportTextEmbedded(
288 const css::uno::Reference< css::beans::XPropertySet > & rPropSet,
289 const css::uno::Reference< css::beans::XPropertySetInfo > & rPropSetInfo );
290 inline void exportTextEmbedded(
291 const css::uno::Reference< css::text::XTextContent > & rTextContent,
292 bool bAutoStyles,
293 const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet = nullptr );
294
296 void exportTextFootnote(
297 const css::uno::Reference< css::beans::XPropertySet > & rPropSet,
298 const OUString& sString,
299 bool bAutoStyles, bool bProgress );
300
302 void exportTextFootnoteHelper(
303 const css::uno::Reference< css::text::XFootnote > & rPropSet,
304 const css::uno::Reference< css::text::XText> & rText,
305 const OUString& sString,
306 bool bAutoStyles,
307 bool bIsEndnote, bool bProgress );
308
310 void exportTextFootnoteConfiguration();
311
312 void exportTextFootnoteConfigurationHelper(
313 const css::uno::Reference< css::beans::XPropertySet> & rFootnoteSupplier,
314 bool bIsEndnote);
315
316 void exportTextMark(
317 const css::uno::Reference< css::beans::XPropertySet> & xPropSet,
318 const OUString& rProperty,
319 const enum ::xmloff::token::XMLTokenEnum pElements[],
320 bool bAutoStyles);
321
322 void exportSoftPageBreak();
323
324 void exportTextLineBreak(const css::uno::Reference<css::beans::XPropertySet>& xPropSet);
325
326 void exportTextRange(
327 const css::uno::Reference< css::text::XTextRange > & rTextRange,
328 bool bAutoStyles,
329 bool& rPrevCharWasSpace,
330 FieldmarkType& openFieldmarkType );
331
332 void exportListChange( const XMLTextNumRuleInfo& rPrvInfo,
333 const XMLTextNumRuleInfo& rNextInfo );
334
338 css::uno::Reference< css::text::XTextSection > & rOldSection,
339 const css::uno::Reference< css::text::XTextSection > & rNewSection,
340 const XMLTextNumRuleInfo& rOldList,
341 const XMLTextNumRuleInfo& rNewList,
342 bool bAutoStyles );
343
347 css::uno::Reference< css::text::XTextSection > & rOldSection,
348 const css::uno::Reference< css::text::XTextContent > & rNewContent,
349 const XMLTextNumRuleInfo& rOldList,
350 const XMLTextNumRuleInfo& rNewList,
351 bool bAutoStyles );
353 css::uno::Reference< css::text::XTextSection > & rOldSection,
354 MultiPropertySetHelper& rPropSetHelper,
355 sal_Int16 nTextSectionId,
356 const css::uno::Reference< css::text::XTextContent > & rNewContent,
357 const XMLTextNumRuleInfo& rOldList,
358 const XMLTextNumRuleInfo& rNewList,
359 bool bAutoStyles );
360
362 void exportRuby(
363 const css::uno::Reference< css::beans::XPropertySet> & rPortionPropSet,
364 bool bAutoStyles );
365
367 void exportMeta(
368 const css::uno::Reference< css::beans::XPropertySet> & i_xPortion,
369 bool i_bAutoStyles, bool i_isProgress, bool & rPrevCharIsSpace);
370
372 void ExportContentControl(const css::uno::Reference<css::beans::XPropertySet>& xPortion,
373 bool bAutoStyles, bool isProgress, bool& rPrevCharIsSpace);
374
375 bool isAutoStylesCollected() const { return mbCollected; }
376
377 virtual void exportTableAutoStyles();
378
379public:
380
382 SvXMLExport& rExp,
384 );
385 virtual ~XMLTextParagraphExport() override;
386
388 void Add(
389 XmlStyleFamily nFamily,
390 MultiPropertySetHelper& rPropSetHelper,
391 const css::uno::Reference< css::beans::XPropertySet > & rPropSet );
392 void Add(
393 XmlStyleFamily nFamily,
394 const css::uno::Reference< css::beans::XPropertySet > & rPropSet,
395 o3tl::span<const XMLPropertyState> aAddStates = {}, bool bDontSeek = false );
396
398 OUString Find(
399 XmlStyleFamily nFamily,
400 const css::uno::Reference< css::beans::XPropertySet > & rPropSet,
401 const OUString& rParent,
402 const o3tl::span<const XMLPropertyState> aAddStates = {} ) const;
403
404 static SvXMLExportPropertyMapper *CreateShapeExtPropMapper(
405 SvXMLExport& rExport );
406 static SvXMLExportPropertyMapper *CreateCharExtPropMapper(
407 SvXMLExport& rExport);
408 static SvXMLExportPropertyMapper *CreateParaExtPropMapper(
409 SvXMLExport& rExport);
410 static SvXMLExportPropertyMapper *CreateParaDefaultExtPropMapper(
411 SvXMLExport& rExport);
412
413 // This methods exports all (or all used) styles
414 void exportTextStyles( bool bUsed, bool bProg );
415
417 void exportTextDeclarations();
418
421 const css::uno::Reference< css::text::XText > & rText );
422
424 void exportUsedDeclarations();
425
428 void exportTrackedChanges(bool bAutoStyle);
429
432 void exportTrackedChanges(const css::uno::Reference< css::text::XText > & rText,
433 bool bAutoStyle );
434
440 void recordTrackedChangesForXText(
441 const css::uno::Reference< css::text::XText > & rText );
442
443
447 void recordTrackedChangesNoXText();
448
449
450 // This method exports the given OUString
451 void exportCharacterData(
452 const OUString& rText,
453 bool& rPrevCharWasSpace);
454
455 // This method collects all automatic styles for the given XText
457 const css::uno::Reference< css::text::XText > & rText,
458 bool bIsProgress = false,
459 bool bExportParagraph = true )
460 {
461 exportText( rText, true, bIsProgress, bExportParagraph );
462 }
463
465 const css::uno::Reference< css::text::XText > & rText,
466 const css::uno::Reference< css::text::XTextSection > & rBaseSection,
467 bool bIsProgress )
468 {
469 exportText( rText, rBaseSection, true, bIsProgress, true/*bExportParagraph*/ );
470 }
471
472 // It the model implements the xAutoStylesSupplier interface, the automatic
473 // styles can exported without iterating over the text portions
474 void collectTextAutoStylesOptimized( bool bIsProgress );
475
476 // This method exports all automatic styles that have been collected.
477 void exportTextAutoStyles();
478
479 void exportEvents( const css::uno::Reference< css::beans::XPropertySet > & rPropSet );
480
481 // Implement Title/Description Elements UI (#i73249#)
482 void exportTitleAndDescription( const css::uno::Reference< css::beans::XPropertySet > & rPropSet,
483 const css::uno::Reference< css::beans::XPropertySetInfo > & rPropSetInfo );
484
485 // This method exports the given XText
487 const css::uno::Reference< css::text::XText > & rText,
488 bool bIsProgress = false,
489 bool bExportParagraph = true, TextPNS eExtensionNS = TextPNS::ODF)
490 {
491 exportText( rText, false, bIsProgress, bExportParagraph, eExtensionNS );
492 }
493
495 const css::uno::Reference< css::text::XText > & rText,
496 const css::uno::Reference< css::text::XTextSection > & rBaseSection,
497 bool bIsProgress)
498 {
499 exportText( rText, rBaseSection, false, bIsProgress, true/*bExportParagraph*/ );
500 }
501
502 void exportFramesBoundToPage( bool bIsProgress )
503 {
504 exportPageFrames( bIsProgress );
505 }
506 inline const XMLTextListAutoStylePool& GetListAutoStylePool() const;
507
508 void SetBlockMode( bool bSet ) { bBlock = bSet; }
509 bool IsBlockMode() const { return bBlock; }
510
511
513 {
514 return xParaPropMapper;
515 }
516
517
529 void PreventExportOfControlsInMuteSections(
530 const css::uno::Reference< css::container::XIndexAccess> & rShapes,
532
533 SinglePropertySetInfoCache& GetCharStyleNamesPropInfoCache() { return aCharStyleNamesPropInfoCache; }
534
535 void PushNewTextListsHelper();
536
537 void PopTextListsHelper();
538
539private:
541};
542
543inline const XMLTextListAutoStylePool&
545{
546 return maListAutoPool;
547}
548
550 const css::uno::Reference< css::text::XTextContent > & rTextContent,
551 bool bAutoStyles, bool bIsProgress, bool bExportContent,
552 const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet)
553{
554 exportAnyTextFrame( rTextContent, FrameType::Text, bAutoStyles, bIsProgress,
555 bExportContent, pRangePropSet );
556}
557
559 const css::uno::Reference< css::text::XTextContent > & rTextContent,
560 bool bAutoStyles,
561 const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet )
562{
563 exportAnyTextFrame( rTextContent, FrameType::Graphic, bAutoStyles, false,
564 true, pRangePropSet );
565}
566
568 const css::uno::Reference< css::text::XTextContent > & rTextContent,
569 bool bAutoStyles,
570 const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet )
571{
572 exportAnyTextFrame( rTextContent, FrameType::Embedded, bAutoStyles, false,
573 true, pRangePropSet );
574}
575
577 const css::uno::Reference< css::text::XTextContent > & rTextContent,
578 bool bAutoStyles,
579 const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet )
580{
581 exportAnyTextFrame( rTextContent, FrameType::Shape, bAutoStyles, false,
582 true, pRangePropSet );
583}
584
585#endif
586
587/* 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:494
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:502
SinglePropertySetInfoCache & GetCharStyleNamesPropInfoCache()
Definition: txtparae.hxx:533
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:549
void exportShape(const css::uno::Reference< css::text::XTextContent > &rTextContent, bool bAutoStyles, const css::uno::Reference< css::beans::XPropertySet > *pRangePropSet=nullptr)
Definition: txtparae.hxx:576
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:464
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:558
void SetBlockMode(bool bSet)
Definition: txtparae.hxx:508
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:567
const rtl::Reference< SvXMLExportPropertyMapper > & GetParaPropMapper() const
Definition: txtparae.hxx:162
bool IsBlockMode() const
Definition: txtparae.hxx:509
const rtl::Reference< SvXMLExportPropertyMapper > & GetSectionPropMapper() const
Definition: txtparae.hxx:176
XMLTextListAutoStylePool maListAutoPool
Definition: txtparae.hxx:94
const XMLTextListAutoStylePool & GetListAutoStylePool() const
Definition: txtparae.hxx:544
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:375
void collectTextAutoStyles(const css::uno::Reference< css::text::XText > &rText, bool bIsProgress=false, bool bExportParagraph=true)
Definition: txtparae.hxx:456
const rtl::Reference< SvXMLExportPropertyMapper > & GetParagraphPropertyMapper() const
Definition: txtparae.hxx:512
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:486
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:2830
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