LibreOffice Module sw (master)  1
docxattributeoutput.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_SW_SOURCE_FILTER_WW8_DOCXATTRIBUTEOUTPUT_HXX
21 #define INCLUDED_SW_SOURCE_FILTER_WW8_DOCXATTRIBUTEOUTPUT_HXX
22 
23 #include <memory>
24 #include <string_view>
25 
26 #include "attributeoutputbase.hxx"
27 #include "fields.hxx"
28 #include <IMark.hxx>
29 #include "docxexport.hxx"
30 #include <wrtswtbl.hxx>
31 
32 #include <editeng/boxitem.hxx>
33 #include <sax/fshelper.hxx>
34 #include <sax/fastattribs.hxx>
35 #include <vcl/vclenum.hxx>
36 #include <svx/xenum.hxx>
37 
38 #include <fldbas.hxx>
39 
40 #include <vector>
41 #include <optional>
42 #include <o3tl/sorted_vector.hxx>
43 #include <oox/export/vmlexport.hxx>
44 #include <oox/export/drawingml.hxx>
45 #include "docxtablestyleexport.hxx"
46 
47 #include <com/sun/star/table/BorderLine2.hpp>
48 #include <com/sun/star/drawing/FillStyle.hpp>
49 
50 class SwGrfNode;
51 class SdrObject;
52 enum class SvxBoxItemLine;
53 
54 namespace docx { class FootnotesList; }
55 namespace oox::drawingml { class DrawingML; }
56 
57 struct FieldInfos
58 {
59  std::shared_ptr<const SwField> pField;
60  const ::sw::mark::IFieldmark* pFieldmark;
62  bool bOpen;
63  bool bSep;
64  bool bClose;
65  OUString sCmd;
67  : pFieldmark(nullptr), eType(ww::eUNKNOWN)
68  , bOpen(false), bSep(false), bClose(false)
69  {}
70 };
71 
73 {
78 };
79 
91 {
92  sal_Int32 tag = 0;
93  bool bUseStartEnd = false;
94  bool bWriteTag = true;
95  bool bWriteDistance = false;
96  SvxShadowLocation aShadowLocation = SvxShadowLocation::NONE;
97  std::shared_ptr<editeng::WordBorderDistances> pDistances;
98 };
99 
101 
106 {
109 
112 
114  sal_uInt32 m_nTableDepth;
115 
117  : m_bTableCellOpen(false),
118  m_bTableCellParaSdtOpen(false),
119  m_nTableDepth(0)
120  {
121  }
122 };
123 
126 {
127 public:
129  virtual void RTLAndCJKState( bool bIsRTL, sal_uInt16 nScript ) override;
130 
132  virtual sal_Int32 StartParagraph(ww8::WW8TableNodeInfo::Pointer_t pTextNodeInfo,
133  bool bGenerateParaId) override;
134 
136  virtual void EndParagraph( ww8::WW8TableNodeInfoInner::Pointer_t pTextNodeInfoInner ) override;
137 
139  virtual void EmptyParagraph() override;
140 
142  virtual void SectionBreaks(const SwNode& rNode) override;
143 
145  virtual void StartParagraphProperties() override;
146 
148  virtual void EndParagraphProperties(const SfxItemSet& rParagraphMarkerProperties, const SwRedlineData* pRedlineData, const SwRedlineData* pRedlineParagraphMarkerDeleted, const SwRedlineData* pRedlineParagraphMarkerInserted) override;
149 
151  virtual void StartRun( const SwRedlineData* pRedlineData, sal_Int32 nPos, bool bSingleEmptyRun = false ) override;
152 
154  virtual void EndRun(const SwTextNode* pNode, sal_Int32 nPos, bool bLastRun = false) override;
155 
157  virtual void StartRunProperties() override;
158 
160  virtual void EndRunProperties( const SwRedlineData* pRedlineData ) override;
161 
162  virtual bool FootnoteEndnoteRefTag() override;
163 
164  virtual void SectFootnoteEndnotePr() override;
165 
166  virtual void WritePostitFieldReference() override;
167 
169  virtual void RunText( const OUString& rText, rtl_TextEncoding eCharSet = RTL_TEXTENCODING_UTF8 ) override;
170 
172  virtual void RawText(const OUString& rText, rtl_TextEncoding eCharSet) override;
173 
175  virtual void StartRuby( const SwTextNode& rNode, sal_Int32 nPos, const SwFormatRuby& rRuby ) override;
176 
178  virtual void EndRuby(const SwTextNode& rNode, sal_Int32 nPos) override;
179 
181  virtual bool StartURL( const OUString& rUrl, const OUString& rTarget ) override;
182 
184  virtual bool EndURL(bool) override;
185 
186  virtual void FieldVanish(const OUString& rText, ww::eField eType, OUString const*) override;
187 
191  virtual void Redline( const SwRedlineData* pRedline ) override;
192 
197  void StartRedline( const SwRedlineData * pRedlineData );
198 
202  void EndRedline( const SwRedlineData * pRedlineData );
203 
204  virtual void SetStateOfFlyFrame( FlyProcessingState nStateOfFlyFrame ) override;
205  virtual void SetAnchorIsLinkedToNode( bool bAnchorLinkedToNode ) override;
206  virtual bool IsFlyProcessingPostponed() override;
207  virtual void ResetFlyProcessingFlag() override;
208 
209  virtual void FormatDrop( const SwTextNode& rNode, const SwFormatDrop& rSwFormatDrop, sal_uInt16 nStyle, ww8::WW8TableNodeInfo::Pointer_t pTextNodeInfo, ww8::WW8TableNodeInfoInner::Pointer_t pTextNodeInfoInner ) override;
210 
212  virtual void ParagraphStyle( sal_uInt16 nStyle ) override;
213 
214  virtual void TableInfoCell( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner ) override;
215  virtual void TableInfoRow( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner ) override;
216  virtual void TableDefinition( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner ) override;
217  virtual void TableDefaultBorders( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner ) override;
218  void TableDefaultCellMargins( ww8::WW8TableNodeInfoInner::Pointer_t const & pTableTextNodeInfoInner );
219  virtual void TableBackgrounds( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner ) override;
220  virtual void TableRowRedline( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner ) override;
221  virtual void TableCellRedline( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner ) override;
222  virtual void TableHeight( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner ) override;
223  virtual void TableCanSplit( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner ) override;
224  virtual void TableBidi( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner ) override;
225  virtual void TableVerticalCell( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner ) override;
226  virtual void TableNodeInfoInner( ww8::WW8TableNodeInfoInner::Pointer_t pNodeInfoInner ) override;
227  virtual void TableOrientation( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner ) override;
228  virtual void TableSpacing( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner ) override;
229  virtual void TableRowEnd( sal_uInt32 nDepth ) override;
230 
232  virtual void StartStyles() override;
233 
235  virtual void EndStyles( sal_uInt16 nNumberOfStyles ) override;
236 
238  virtual void DefaultStyle() override;
239 
241  void DocDefaults( );
242 
244  void LatentStyles();
245 
251  void OutputDefaultItem(const SfxPoolItem& rHt);
252 
254  virtual void StartStyle( const OUString& rName, StyleType eType,
255  sal_uInt16 nBase, sal_uInt16 nNext, sal_uInt16 nWwId, sal_uInt16 nId,
256  bool bAutoUpdate ) override;
257 
259  virtual void EndStyle() override;
260 
262  virtual void StartStyleProperties( bool bParProp, sal_uInt16 nStyle ) override;
263 
265  virtual void EndStyleProperties( bool bParProp ) override;
266 
268  virtual void OutlineNumbering(sal_uInt8 nLvl) override;
269 
272  virtual void PageBreakBefore( bool bBreak ) override;
273 
277  virtual void SectionBreak( sal_uInt8 nC, bool bBreakAfter, const WW8_SepInfo* pSectionInfo = nullptr, bool bExtraPageBreak = false ) override;
278 
279  // preserve DOCX page vertical alignment
280  virtual void TextVerticalAdjustment( const css::drawing::TextVerticalAdjust ) override;
281 
283  virtual void StartSection() override;
284 
286  virtual void EndSection() override;
287 
289  virtual void SectionFormProtection( bool bProtected ) override;
290 
292  virtual void SectionLineNumbering( sal_uLong nRestartNo, const SwLineNumberInfo& rLnNumInfo ) override;
293 
295  virtual void SectionTitlePage() override;
296 
298  virtual void SectionPageBorders( const SwFrameFormat* pFormat, const SwFrameFormat* pFirstPageFormat ) override;
299 
301  virtual void SectionBiDi( bool bBiDi ) override;
302 
305  virtual void SectionPageNumbering( sal_uInt16 nNumType, const ::std::optional<sal_uInt16>& oPageRestartNumber ) override;
306 
308  virtual void SectionType( sal_uInt8 nBreakCode ) override;
309 
311  void StartFont( const OUString& rFamilyName ) const;
312 
314  void EndFont() const;
315 
317  void FontAlternateName( const OUString& rName ) const;
318 
320  void FontCharset( sal_uInt8 nCharSet, rtl_TextEncoding nEncoding ) const;
321 
323  void FontFamilyType( FontFamily eFamily ) const;
324 
326  void FontPitchType( FontPitch ePitch ) const;
327 
329  void EmbedFont( std::u16string_view name, FontFamily family, FontPitch pitch );
330 
332  virtual void NumberingDefinition( sal_uInt16 nId, const SwNumRule &rRule ) override;
333 
335  virtual void OverrideNumberingDefinition( SwNumRule const& rRule,
336  sal_uInt16 nNum, sal_uInt16 nAbstractNum,
337  const std::map< size_t, size_t > & rLevelOverrides ) override;
338 
340  virtual void StartAbstractNumbering( sal_uInt16 nId ) override;
341 
343  virtual void EndAbstractNumbering() override;
344 
346  virtual void NumberingLevel( sal_uInt8 nLevel,
347  sal_uInt16 nStart,
348  sal_uInt16 nNumberingType,
349  SvxAdjust eAdjust,
350  const sal_uInt8 *pNumLvlPos,
351  sal_uInt8 nFollow,
352  const wwFont *pFont,
353  const SfxItemSet *pOutSet,
354  sal_Int16 nIndentAt,
355  sal_Int16 nFirstLineIndex,
356  sal_Int16 nListTabPos,
357  const OUString &rNumberingString,
358  const SvxBrushItem* pBrush ) override;
359 
360  void WriteField_Impl(const SwField* pField, ww::eField eType,
361  const OUString& rFieldCmd, FieldFlags nMode,
362  OUString const* pBookmarkName = nullptr);
363  void WriteFormData_Impl( const ::sw::mark::IFieldmark& rFieldmark );
364 
365  void WriteBookmarks_Impl( std::vector< OUString >& rStarts, std::vector< OUString >& rEnds );
366  void WriteFinalBookmarks_Impl( std::vector< OUString >& rStarts, std::vector< OUString >& rEnds );
367  void WriteAnnotationMarks_Impl( std::vector< OUString >& rStarts, std::vector< OUString >& rEnds );
368  void PushRelIdCache();
370  void EndParaSdtBlock();
371 
372  void WriteFloatingTable(ww8::Frame const* pParentFrame);
373 
374 private:
382 
387 
395 
400 
407  void FlyFrameGraphic( const SwGrfNode* pGrfNode, const Size& rSize, const SwFlyFrameFormat* pOLEFrameFormat, SwOLENode* pOLENode, const SdrObject* pSdrObj = nullptr);
408  void WriteSrcRect(const css::uno::Reference<css::beans::XPropertySet>& xShapePropSet,
409  const SwFrameFormat* pFrameFormat);
410  void WriteOLE2Obj( const SdrObject* pSdrObj, SwOLENode& rNode, const Size& rSize, const SwFlyFrameFormat* pFlyFrameFormat, const sal_Int8 nFormulaAlignment);
411  bool WriteOLEChart( const SdrObject* pSdrObj, const Size& rSize, const SwFlyFrameFormat* pFlyFrameFormat);
412  bool WriteOLEMath( const SwOLENode& rNode, const sal_Int8 nAlign );
413  void PostponeOLE( SwOLENode& rNode, const Size& rSize, const SwFlyFrameFormat* pFlyFrameFormat );
414  void WriteOLE( SwOLENode& rNode, const Size& rSize, const SwFlyFrameFormat* rFlyFrameFormat );
415  void WriteOLEShape(const SwFlyFrameFormat& rFrameFormat, const Size& rSize,
416  const OString& rShapeId, const OUString& rImageId);
417  static OString GetOLEStyle(const SwFlyFrameFormat& rFormat, const Size& rSize);
418  void ExportOLESurround(const SwFormatSurround& rWrap);
419 
420  void WriteActiveXControl(const SdrObject* pObject, const SwFrameFormat& rFrameFormat, bool bInsideRun);
421  bool ExportAsActiveXControl(const SdrObject* pObject) const;
422 
423  void InitTableHelper( ww8::WW8TableNodeInfoInner::Pointer_t const & pTableTextNodeInfoInner );
424  void StartTable( ww8::WW8TableNodeInfoInner::Pointer_t const & pTableTextNodeInfoInner );
425  void StartTableRow( ww8::WW8TableNodeInfoInner::Pointer_t const & pTableTextNodeInfoInner );
426  void StartTableCell( ww8::WW8TableNodeInfoInner::Pointer_t const & pTableTextNodeInfoInner, sal_uInt32 nCell, sal_uInt32 nRow );
427  void TableCellProperties( ww8::WW8TableNodeInfoInner::Pointer_t const & pTableTextNodeInfoInner, sal_uInt32 nCell, sal_uInt32 nRow );
428  void EndTableCell( sal_uInt32 nCell );
429  void EndTableRow( );
430  void EndTable();
431  void SyncNodelessCells(ww8::WW8TableNodeInfoInner::Pointer_t const & pInner, sal_Int32 nCell, sal_uInt32 nRow);
432  void PopulateFrameProperties(const SwFrameFormat* pFrameFormat, const Size& rSize);
433  static bool TextBoxIsFramePr(const SwFrameFormat& rFrameFormat);
435  void FinishTableRowCell( ww8::WW8TableNodeInfoInner::Pointer_t const & pInner, bool bForceEmptyParagraph = false );
436 
437  void WriteFFData( const FieldInfos& rInfos );
439 
440  void EmbedFontStyle( std::u16string_view name, int tag, FontFamily family, FontItalic italic, FontWeight weight,
441  FontPitch pitch );
442 
450  static OString TransHighlightColor( sal_uInt8 nIco );
451 protected:
452 
454  virtual void OutputFlyFrame_Impl( const ww8::Frame& rFormat, const Point& rNdTopLeft ) override;
455 
457  virtual void CharCaseMap( const SvxCaseMapItem& rCaseMap ) override;
458 
460  virtual void CharColor( const SvxColorItem& rColor) override;
461 
463  virtual void CharContour( const SvxContourItem& rContour ) override;
464 
466  virtual void CharCrossedOut( const SvxCrossedOutItem& rCrossedOut ) override;
467 
469  virtual void CharEscapement( const SvxEscapementItem& rEscapement ) override;
470 
472  virtual void CharFont( const SvxFontItem& rFont ) override;
473 
475  virtual void CharFontSize( const SvxFontHeightItem& rFontSize ) override;
476 
478  virtual void CharKerning( const SvxKerningItem& rKerning ) override;
479 
481  virtual void CharLanguage( const SvxLanguageItem& rLanguage ) override;
482 
484  virtual void CharPosture( const SvxPostureItem& rPosture ) override;
485 
487  virtual void CharShadow( const SvxShadowedItem& rShadow ) override;
488 
490  virtual void CharUnderline( const SvxUnderlineItem& rUnderline ) override;
491 
493  virtual void CharWeight( const SvxWeightItem& rWeight ) override;
494 
496  virtual void CharAutoKern( const SvxAutoKernItem& ) override;
497 
499  virtual void CharAnimatedText( const SvxBlinkItem& rBlink ) override;
500 
502  virtual void CharBackground( const SvxBrushItem& rBrush ) override;
503 
505  virtual void CharFontCJK( const SvxFontItem& rFont ) override;
506 
508  virtual void CharFontSizeCJK( const SvxFontHeightItem& rFontSize ) override { CharFontSize( rFontSize ); }
509 
511  virtual void CharLanguageCJK( const SvxLanguageItem& rLanguageItem ) override { CharLanguage( rLanguageItem ); }
512 
514  virtual void CharPostureCJK( const SvxPostureItem& rPosture ) override;
515 
517  virtual void CharWeightCJK( const SvxWeightItem& rWeight ) override;
518 
520  virtual void CharFontCTL( const SvxFontItem& rFont ) override;
521 
523  virtual void CharFontSizeCTL( const SvxFontHeightItem& rFontSize ) override { CharFontSize( rFontSize ); }
524 
526  virtual void CharLanguageCTL( const SvxLanguageItem& rLanguageItem ) override { CharLanguage( rLanguageItem); }
527 
529  virtual void CharPostureCTL( const SvxPostureItem& rWeight ) override;
530 
532  virtual void CharWeightCTL( const SvxWeightItem& rWeight ) override;
533 
535  virtual void CharBidiRTL( const SfxPoolItem& ) override;
536 
538  virtual void CharIdctHint( const SfxPoolItem& ) override;
539 
541  virtual void CharRotate( const SvxCharRotateItem& rRotate ) override;
542 
544  virtual void CharEmphasisMark( const SvxEmphasisMarkItem& rEmphasisMark ) override;
545 
547  virtual void CharTwoLines( const SvxTwoLinesItem& rTwoLines ) override;
548 
550  virtual void CharScaleWidth( const SvxCharScaleWidthItem& rScaleWidth ) override;
551 
553  virtual void CharRelief( const SvxCharReliefItem& rRelief) override;
554 
556  virtual void CharHidden( const SvxCharHiddenItem& rHidden ) override;
557 
559  virtual void CharBorder( const ::editeng::SvxBorderLine* pAllBorder, const sal_uInt16 nDist, const bool bShadow ) override;
560 
562  virtual void CharHighlight( const SvxBrushItem& rHighlight ) override;
563 
565  virtual void TextINetFormat( const SwFormatINetFormat& ) override;
566 
568  virtual void TextCharFormat( const SwFormatCharFormat& ) override;
569 
571  virtual void TextFootnote_Impl( const SwFormatFootnote& ) override;
572 
575 
577  virtual void ParaLineSpacing_Impl( short nSpace, short nMulti ) override;
578 
580  virtual void ParaAdjust( const SvxAdjustItem& rAdjust ) override;
581 
583  virtual void ParaSplit( const SvxFormatSplitItem& rSplit ) override;
584 
586  virtual void ParaWidows( const SvxWidowsItem& rWidows ) override;
587 
589  virtual void ParaTabStop( const SvxTabStopItem& rTabStop ) override;
590 
592  virtual void ParaHyphenZone( const SvxHyphenZoneItem& ) override;
593 
595  virtual void ParaNumRule_Impl( const SwTextNode *pTextNd, sal_Int32 nLvl, sal_Int32 nNumId ) override;
596 
598  virtual void ParaScriptSpace( const SfxBoolItem& ) override;
599 
601  virtual void ParaHangingPunctuation( const SfxBoolItem& ) override;
602 
604  virtual void ParaForbiddenRules( const SfxBoolItem& ) override;
605 
607  virtual void ParaVerticalAlign( const SvxParaVertAlignItem& rAlign ) override;
608 
610  virtual void ParaSnapToGrid( const SvxParaGridItem& ) override;
611 
613  virtual void FormatFrameSize( const SwFormatFrameSize& ) override;
614 
616  virtual void FormatPaperBin( const SvxPaperBinItem& ) override;
617 
619  virtual void FormatLRSpace( const SvxLRSpaceItem& rLRSpace ) override;
620 
622  virtual void FormatULSpace( const SvxULSpaceItem& rULSpace ) override;
623 
625  virtual void FormatSurround( const SwFormatSurround& ) override;
626 
628  virtual void FormatVertOrientation( const SwFormatVertOrient& ) override;
629 
631  virtual void FormatHorizOrientation( const SwFormatHoriOrient& ) override;
632 
634  virtual void FormatAnchor( const SwFormatAnchor& ) override;
635 
637  virtual void FormatBackground( const SvxBrushItem& ) override;
638 
640  virtual void FormatFillStyle( const XFillStyleItem& ) override;
641 
643  virtual void FormatFillGradient( const XFillGradientItem& ) override;
644 
646  virtual void FormatBox( const SvxBoxItem& ) override;
647 
649  virtual void FormatColumns_Impl( sal_uInt16 nCols, const SwFormatCol & rCol, bool bEven, SwTwips nPageSize ) override;
650 
652  virtual void FormatKeep( const SvxFormatKeepItem& ) override;
653 
655  virtual void FormatTextGrid( const SwTextGridItem& ) override;
656 
658  virtual void FormatLineNumbering( const SwFormatLineNumber& ) override;
659 
661  virtual void FormatFrameDirection( const SvxFrameDirectionItem& ) override;
662 
664  virtual void ParaGrabBag( const SfxGrabBagItem& ) override;
665 
667  virtual void CharGrabBag( const SfxGrabBagItem& ) override;
668 
669  // Sfx item RES_PARATR_OUTLINELEVEL
670  virtual void ParaOutlineLevel( const SfxUInt16Item& ) override;
671 
673  virtual void WriteExpand( const SwField* pField ) override;
674 
675  virtual void RefField( const SwField& rField, const OUString& rRef ) override;
676  virtual void HiddenField( const SwField& rField ) override;
677  virtual void SetField( const SwField& rField, ww::eField eType, const OUString& rCmd ) override;
678  virtual void PostitField( const SwField* pField ) override;
679  virtual bool DropdownField( const SwField* pField ) override;
680  virtual bool PlaceholderField( const SwField* pField ) override;
681 
682  virtual bool AnalyzeURL( const OUString& rURL, const OUString& rTarget, OUString* pLinkURL, OUString* pMark ) override;
683 
684  virtual void WriteBookmarkInActParagraph( const OUString& rName, sal_Int32 nFirstRunPos, sal_Int32 nLastRunPos ) override;
685 
686  void SectionRtlGutter( const SfxBoolItem& rRtlGutter) override;
687 
690 
693 
696 
697 private:
698 
699  void DoWriteBookmarkTagStart(const OUString & bookmarkName);
700  void DoWriteBookmarkTagEnd(sal_Int32 nId);
701  void DoWriteBookmarksStart(std::vector<OUString>& rStarts);
702  void DoWriteBookmarksEnd(std::vector<OUString>& rEnds);
703  void DoWriteBookmarkStartIfExist(sal_Int32 nRunPos);
704  void DoWriteBookmarkEndIfExist(sal_Int32 nRunPos);
705 
706  void DoWritePermissionTagStart(const OUString & permission);
707  void DoWritePermissionTagEnd(const OUString & permission);
709  void DoWritePermissionsEnd();
710 
711  void DoWriteAnnotationMarks( );
712  void WritePostponedGraphic();
713  void WritePostponedMath(const SwOLENode* pObject, sal_Int8 /*nAlign*/);
714  void WritePostponedFormControl(const SdrObject* pObject);
715  void WritePostponedActiveXControl(bool bInsideRun);
716  void WritePostponedDiagram();
717  void WritePostponedChart();
718  void WritePostponedOLE();
721 
722  void WriteSdtBlock(sal_Int32& nSdtPrToken,
726  OUString& rSdtPrAlias,
727  bool bPara);
729  void EndSdtBlock();
730 
731  void WriteFormDateStart(const OUString& sFullDate, const OUString& sDateFormat, const OUString& sLang);
732  void WriteSdtDropDownStart(std::u16string_view rName, OUString const& rSelected, uno::Sequence<OUString> const& rListItems);
733  void WriteSdtDropDownEnd(OUString const& rSelected, uno::Sequence<OUString> const& rListItems);
734  void WriteSdtEnd();
735 
736  void StartField_Impl( const SwTextNode* pNode, sal_Int32 nPos, FieldInfos const & rInfos, bool bWriteRun = false );
737  void DoWriteCmd( const OUString& rCmd );
738  void CmdField_Impl( const SwTextNode* pNode, sal_Int32 nPos, FieldInfos const & rInfos, bool bWriteRun );
739  void CmdEndField_Impl( const SwTextNode* pNode, sal_Int32 nPos, bool bWriteRun );
740  void EndField_Impl( const SwTextNode* pNode, sal_Int32 nPos, FieldInfos& rInfos );
741  void DoWriteFieldRunProperties( const SwTextNode* pNode, sal_Int32 nPos, bool bWriteCombChars = false );
742 
743  static void AddToAttrList( rtl::Reference<sax_fastparser::FastAttributeList>& pAttrList, sal_Int32 nAttrName, const char* sAttrValue );
744  static void AddToAttrList( rtl::Reference<sax_fastparser::FastAttributeList>& pAttrList, sal_Int32 nArgs, ... );
745 
766  std::unique_ptr<docx::FootnotesList> m_pFootnotesList;
767  std::unique_ptr<docx::FootnotesList> m_pEndnotesList;
770  std::unique_ptr< const WW8_SepInfo > m_pSectionInfo;
771 
774 
776  sal_Int32 m_nRedlineId;
777 
782 
785 
789 
792 
795  std::vector< FieldInfos > m_Fields;
796  OUString m_sFieldBkm;
797  sal_Int32 m_nNextBookmarkId;
799 
801  sal_Int32 m_nNextParaId = 1; // MUST be greater than 0
802 
803  OUString m_sRawText;
804 
806  std::vector<OUString> m_rBookmarksStart;
807  std::vector<OUString> m_rBookmarksEnd;
808 
810  std::vector<OUString> m_rFinalBookmarksStart;
811  std::vector<OUString> m_rFinalBookmarksEnd;
812 
814  std::multimap<sal_Int32, OUString> m_aBookmarksOfParagraphStart;
815  std::multimap<sal_Int32, OUString> m_aBookmarksOfParagraphEnd;
816 
818  std::vector<OUString> m_rPermissionsStart;
819  std::vector<OUString> m_rPermissionsEnd;
820 
822  std::vector<OString> m_rAnnotationMarksStart;
823  std::vector<OString> m_rAnnotationMarksEnd;
824 
826  std::map<OUString, sal_Int32> m_rOpenedBookmarksIds;
827 
830 
832  std::map<OString, sal_Int32> m_rOpenedAnnotationMarksIds;
833 
836 
839  std::map<OUString, std::vector<OString> > m_aSeqBookmarksNames;
840 
842  std::vector<css::beans::PropertyValue> m_aTextEffectsGrabBag;
843 
845  std::unique_ptr<SwWriteTable> m_xTableWrt;
846 
848 
854 
855  // Remember that a column break has to be opened at the
856  // beginning of the next paragraph
858 
859  // Remember that a page break has to be opened at the
860  // beginning of the next paragraph
862 
863  // This paragraph must end with page break
864  bool m_bPageBreakAfter = false;
865 
866  std::stack< std::vector<ww8::Frame> > m_aFramesOfParagraph;
868  sal_Int32 m_nTextFrameLevel;
869 
870  // close of hyperlink needed
874  // Count nested HyperLinks
875  sal_Int32 m_nHyperLinkCount;
877 
878  // If the exported numbering rule defines the outlines
880 
882  {
883  PostponedGraphic( const SwGrfNode* n, Size s, const SdrObject* sObj )
884  : grfNode( n ), size( s ), pSdrObj(sObj) {};
885 
886  const SwGrfNode* grfNode;
889  };
890  std::unique_ptr< std::vector<PostponedGraphic> > m_pPostponedGraphic;
892  {
893  PostponedDiagram( const SdrObject* o, const SwFrameFormat* frm ) : object( o ), frame( frm ) {};
894  const SdrObject* object;
896  };
897  std::unique_ptr< std::vector<PostponedDiagram> > m_pPostponedDiagrams;
898 
900  {
901  PostponedDrawing( const SdrObject* sdrObj, const SwFrameFormat* frm) : object( sdrObj ), frame( frm ) {};
902  const SdrObject* object;
904  };
905  std::unique_ptr< std::vector<PostponedDrawing> > m_pPostponedDMLDrawings;
906  std::unique_ptr< std::vector<PostponedDrawing> > m_pPostponedCustomShape;
907 
909  {
910  PostponedOLE( SwOLENode* rObject, const Size& rSize, const SwFlyFrameFormat* rFrame ) : object( rObject ), size( rSize ), frame( rFrame ) {};
911  SwOLENode* object;
912  const Size size;
914  };
915  std::unique_ptr< std::vector<PostponedOLE> > m_pPostponedOLEs;
916 
918  {
921  };
922  std::vector<PostponedMathObjects> m_aPostponedMaths;
924  unsigned int m_nChartCount;
926  {
927  PostponedChart( const SdrObject* sdrObject, const Size& rSize, const SwFlyFrameFormat* rFrame ) : object(sdrObject), size(rSize), frame(rFrame) {};
928  const SdrObject* object;
929  const Size size;
931  };
932  std::vector<PostponedChart> m_aPostponedCharts;
933  std::vector<const SdrObject*> m_aPostponedFormControls;
934  std::vector<PostponedDrawing> m_aPostponedActiveXControls;
936 
938  sal_Int32 id;
939  sal_Int32 lastParaId = 0; // [MS-DOCX] 2.5.3.1 CT_CommentEx needs paraId attribute
940  };
942  std::vector<std::pair<const SwPostItField*, PostItDOCXData>> m_postitFields;
944  unsigned int m_postitFieldsMaxId;
948  {
949  OString relId;
950  OString fontKey;
951  };
952 
953  std::unique_ptr<TableReference> m_tableReference;
954 
955  std::map< OUString, EmbeddedFontRef > fontFilesMap; // font file url to data
956 
957  // Remember first cell (used for default borders/margins) of each table
958  std::vector<ww8::WW8TableNodeInfoInner::Pointer_t> tableFirstCells;
959  // Remember last open and closed cells on each level
960  std::vector<sal_Int32> lastOpenCell;
961  std::vector<sal_Int32> lastClosedCell;
962 
963  std::optional<css::drawing::FillStyle> m_oFillStyle;
966 
968 
969  std::shared_ptr<DocxTableStyleExport> m_pTableStyleExport;
970  // flag to check if auto spacing was set in original file
972  // store hardcoded value which was set during import.
974 
975  std::pair<OString, OUString> getExistingGraphicRelId(BitmapChecksum aChecksum);
976  void cacheGraphicRelId(BitmapChecksum nChecksum, OString const & rRelId, OUString const & rFileName);
977 
979  std::stack< std::map<BitmapChecksum, std::pair<OString, OUString>> > m_aRelIdCache;
980 
982  std::stack< std::map<BitmapChecksum, std::pair<OUString, OUString>> > m_aSdrRelIdCache;
983 
990  sal_Int32 m_nRunSdtPrToken;
1002 
1003  std::vector<std::map<SvxBoxItemLine, css::table::BorderLine2>> m_aTableStyleConfs;
1004 
1005 public:
1006  DocxAttributeOutput( DocxExport &rExport, const ::sax_fastparser::FSHelperPtr& pSerializer, oox::drawingml::DrawingML* pDrawingML );
1007 
1008  virtual ~DocxAttributeOutput() override;
1009 
1011  virtual DocxExport& GetExport() override;
1012  const DocxExport& GetExport() const { return const_cast< DocxAttributeOutput* >( this )->GetExport(); }
1013 
1015  void SetSerializer( ::sax_fastparser::FSHelperPtr const & pSerializer );
1016 
1018  const ::sax_fastparser::FSHelperPtr& GetSerializer( ) const { return m_pSerializer; }
1019 
1021  bool HasFootnotes() const;
1022 
1024  bool HasEndnotes() const;
1025 
1027  void FootnotesEndnotes( bool bFootnotes );
1028 
1030  static void WriteFootnoteEndnotePr( ::sax_fastparser::FSHelperPtr const & fs, int tag, const SwEndNoteInfo& info, int listtag );
1031 
1032  bool HasPostitFields() const;
1033  enum class hasResolved { no, yes };
1036 
1038  virtual void WriteOutliner(const OutlinerParaObject& rParaObj) override;
1039  virtual void WriteVMLTextBox(css::uno::Reference<css::drawing::XShape> xShape) override;
1041  virtual void WriteTextBox(css::uno::Reference<css::drawing::XShape> xShape) override;
1042  virtual OUString FindRelId(BitmapChecksum nChecksum) override;
1043  virtual OUString FindFileName(BitmapChecksum nChecksum) override;
1044  virtual void CacheRelId(BitmapChecksum nChecksum, const OUString& rRelId, const OUString& rFileName) override;
1045  virtual css::uno::Reference<css::text::XTextFrame> GetUnoTextFrame(
1046  css::uno::Reference<css::drawing::XShape> xShape) override;
1047  virtual oox::drawingml::DrawingML& GetDrawingML() override;
1048  virtual bool MaybeOutputBrushItem(SfxItemSet const&) override;
1049 
1050  void BulletDefinition(int nId, const Graphic& rGraphic, Size aSize) override;
1051 
1052  void SetWritingHeaderFooter( bool bWritingHeaderFooter ) { m_bWritingHeaderFooter = bWritingHeaderFooter; }
1054  void SetAlternateContentChoiceOpen( bool bAltContentChoiceOpen ) { m_bAlternateContentChoiceOpen = bAltContentChoiceOpen; }
1056  void GetSdtEndBefore(const SdrObject* pSdrObj);
1057  bool IsFirstParagraph() const { return m_bIsFirstParagraph; }
1058 
1062  void popFromTableExportContext(DocxTableExportContext const & rContext);
1063 };
1064 
1070 {
1075  sal_uInt32 m_nTableDepth;
1076  DocxTableExportContext(DocxAttributeOutput& rOutput) : m_rOutput(rOutput) { m_rOutput.pushToTableExportContext(*this); }
1078 };
1079 
1080 namespace docx {
1081 
1083 
1084 }
1085 
1086 #endif // INCLUDED_SW_SOURCE_FILTER_WW8_DOCXATTRIBUTEOUTPUT_HXX
1087 
1088 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< docx::FootnotesList > m_pEndnotesList
virtual void TableRowRedline(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner) override
std::stack< std::vector< ww8::Frame > > m_aFramesOfParagraph
virtual void StartAbstractNumbering(sal_uInt16 nId) override
Start of the abstract numbering definition instance.
void WritePostponedActiveXControl(bool bInsideRun)
virtual void TableCanSplit(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner) override
void DoWritePermissionTagEnd(const OUString &permission)
virtual void WriteVMLTextBox(css::uno::Reference< css::drawing::XShape > xShape) override
DocxAttributeOutput & m_rOutput
bool HasFootnotes() const
Do we have any footnotes?
std::multimap< sal_Int32, OUString > m_aBookmarksOfParagraphEnd
sal_uInt64 BitmapChecksum
virtual bool PlaceholderField(const SwField *pField) override
virtual void NumberingDefinition(sal_uInt16 nId, const SwNumRule &rRule) override
Definition of a numbering instance.
virtual void TextCharFormat(const SwFormatCharFormat &) override
Sfx item RES_TXTATR_CHARFMT.
virtual oox::drawingml::DrawingML & GetDrawingML() override
std::map< OUString, sal_Int32 > m_rOpenedBookmarksIds
Maps of the bookmarks ids.
The class that has handlers for various resource types when exporting as DOCX.
OUString m_aStartedParagraphSdtPrAlias
Same as m_aParagraphSdtPrAlias, but its content is available till the SDT is closed.
virtual void FormatPaperBin(const SvxPaperBinItem &) override
Sfx item RES_PAPER_BIN.
virtual bool DropdownField(const SwField *pField) override
virtual void StartRun(const SwRedlineData *pRedlineData, sal_Int32 nPos, bool bSingleEmptyRun=false) override
Start of the text run.
virtual void SectionBiDi(bool bBiDi) override
Columns populated from right/numbers on the right side?
virtual void SetStateOfFlyFrame(FlyProcessingState nStateOfFlyFrame) override
Set the state of the Fly at current position.
DocxColBreakStatus m_nColBreakStatus
virtual void CharLanguageCJK(const SvxLanguageItem &rLanguageItem) override
Sfx item RES_CHRATR_CJK_LANGUAGE.
static void AddToAttrList(rtl::Reference< sax_fastparser::FastAttributeList > &pAttrList, sal_Int32 nAttrName, const char *sAttrValue)
void SectionRtlGutter(const SfxBoolItem &rRtlGutter) override
RES_RTL_GUTTER.
OUString m_aParagraphSdtPrAlias
Value of the paragraph SDT element.
std::vector< FieldInfos > m_Fields
virtual ~DocxAttributeOutput() override
virtual void CharPostureCJK(const SvxPostureItem &rPosture) override
Sfx item RES_CHRATR_CJK_POSTURE.
virtual void CharEmphasisMark(const SvxEmphasisMarkItem &rEmphasisMark) override
Sfx item RES_CHRATR_EMPHASIS_MARK.
virtual void CharUnderline(const SvxUnderlineItem &rUnderline) override
Sfx item RES_CHRATR_UNDERLINE.
virtual void TableBackgrounds(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner) override
DocxColBreakStatus
void OutputDefaultItem(const SfxPoolItem &rHt)
Similar to OutputItem(), but write something only if it is not the default.
virtual void ParaHyphenZone(const SvxHyphenZoneItem &) override
Sfx item RES_PARATR_HYPHENZONE.
signed char sal_Int8
virtual void CharFontCJK(const SvxFontItem &rFont) override
Sfx item RES_CHRATR_CJK_FONT.
void WriteSdtDropDownStart(std::u16string_view rName, OUString const &rSelected, uno::Sequence< OUString > const &rListItems)
void StartTableRow(ww8::WW8TableNodeInfoInner::Pointer_t const &pTableTextNodeInfoInner)
virtual void CharKerning(const SvxKerningItem &rKerning) override
Sfx item RES_CHRATR_KERNING.
virtual void SectionType(sal_uInt8 nBreakCode) override
The type of breaking.
virtual void CharHidden(const SvxCharHiddenItem &rHidden) override
Sfx item RES_CHRATR_HIDDEN.
sal_uInt32 m_nTableDepth
Remember the current table depth.
void StartTableCell(ww8::WW8TableNodeInfoInner::Pointer_t const &pTableTextNodeInfoInner, sal_uInt32 nCell, sal_uInt32 nRow)
sal_uIntPtr sal_uLong
DocxExport & m_rExport
Reference to the export, where to get the data from.
bool m_bTableCellOpen
Remember if we are in an open cell, or not.
sal_Int32 m_nParagraphSdtPrToken
members to control the existence of grabbagged SDT properties in the paragraph
virtual void ParaSplit(const SvxFormatSplitItem &rSplit) override
Sfx item RES_PARATR_SPLIT.
void EndFont() const
End the font.
Base class of all fields.
Definition: fldbas.hxx:289
FilterGroup & rTarget
virtual void FormatLineNumbering(const SwFormatLineNumber &) override
Sfx item RES_LINENUMBER.
virtual void RunText(const OUString &rText, rtl_TextEncoding eCharSet=RTL_TEXTENCODING_UTF8) override
Output text (inside a run).
rtl::Reference< sax_fastparser::FastAttributeList > m_pRunSdtPrDataBindingAttrs
virtual void CharWeightCTL(const SvxWeightItem &rWeight) override
Sfx item RES_CHRATR_CTL_WEIGHT.
unsigned int m_postitFieldsMaxId
Number of postit fields which already have a commentReference written.
bool m_bTableCellParaSdtOpen
If paragraph sdt got opened in this table cell.
sal_Int16 nId
void WriteFloatingTable(ww8::Frame const *pParentFrame)
All the information that should be stashed away when we're in the middle of of a table export and sti...
DocxTableExportContext(DocxAttributeOutput &rOutput)
virtual void CharFontSizeCJK(const SvxFontHeightItem &rFontSize) override
Sfx item RES_CHRATR_CJK_FONTSIZE.
virtual void SetAnchorIsLinkedToNode(bool bAnchorLinkedToNode) override
If the node has an anchor linked.
virtual void FormatColumns_Impl(sal_uInt16 nCols, const SwFormatCol &rCol, bool bEven, SwTwips nPageSize) override
Sfx item RES_COL.
void pushToTableExportContext(DocxTableExportContext &rContext)
Stores the table export state to the passed context and resets own state.
std::pair< OString, OUString > getExistingGraphicRelId(BitmapChecksum aChecksum)
std::vector< std::pair< const SwPostItField *, PostItDOCXData > > m_postitFields
Maps postit fields to ID's, used in commentRangeStart/End, commentReference and comment.xml.
void EndField_Impl(const SwTextNode *pNode, sal_Int32 nPos, FieldInfos &rInfos)
virtual void StartStyle(const OUString &rName, StyleType eType, sal_uInt16 nBase, sal_uInt16 nNext, sal_uInt16 nWwId, sal_uInt16 nId, bool bAutoUpdate) override
Start of a style in the styles table.
virtual void TableDefaultBorders(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner) override
virtual void TableInfoCell(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner) override
virtual void ParaAdjust(const SvxAdjustItem &rAdjust) override
Sfx item RES_PARATR_ADJUST.
virtual void TableVerticalCell(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner) override
rtl::Reference< sax_fastparser::FastAttributeList > m_pParagraphSdtPrDataBindingAttrs
bool m_bWritingHeaderFooter
Flag indicating that the header \ footer are being written.
virtual void CharPostureCTL(const SvxPostureItem &rWeight) override
Sfx item RES_CHRATR_CTL_POSTURE.
std::vector< PostponedDrawing > m_aPostponedActiveXControls
virtual void PageBreakBefore(bool bBreak) override
Page break As a paragraph property - the paragraph should be on the next page.
virtual void FormatKeep(const SvxFormatKeepItem &) override
Sfx item RES_KEEP.
void popFromTableExportContext(DocxTableExportContext const &rContext)
Restores from the remembered state.
bool ExportAsActiveXControl(const SdrObject *pObject) const
void SyncNodelessCells(ww8::WW8TableNodeInfoInner::Pointer_t const &pInner, sal_Int32 nCell, sal_uInt32 nRow)
const ::sax_fastparser::FSHelperPtr & GetSerializer() const
Occasionally need to use this serializer from the outside.
The class that does all the actual DOCX export-related work.
Definition: docxexport.hxx:65
EmbeddedObjectRef * pObject
bool m_bOpenedSectPr
Flag indicating that the section properties are being written.
virtual void EndRun(const SwTextNode *pNode, sal_Int32 nPos, bool bLastRun=false) override
End of the text run.
void DoWritePermissionsStart()
Write the start permissions.
virtual void CharFontCTL(const SvxFontItem &rFont) override
Sfx item RES_CHRATR_CTL_FONT.
virtual void SectionBreaks(const SwNode &rNode) override
Called in order to output section breaks.
virtual void ResetFlyProcessingFlag() override
Reset the flag for FlyProcessing.
virtual void CharBidiRTL(const SfxPoolItem &) override
Sfx item RES_CHRATR_BidiRTL.
std::vector< sal_Int32 > lastOpenCell
virtual void FormatTextGrid(const SwTextGridItem &) override
Sfx item RES_TEXTGRID.
virtual void WriteOutliner(const OutlinerParaObject &rParaObj) override
VMLTextExport.
std::unique_ptr< std::vector< PostponedOLE > > m_pPostponedOLEs
bool m_bParagraphSdtHasId
Currently paragraph SDT has a child element.
rtl::Reference< sax_fastparser::FastAttributeList > m_pBackgroundAttrList
Attributes of the paragraph background.
rtl::Reference< sax_fastparser::FastAttributeList > m_pParagraphSdtPrTokenAttributes
virtual void SectionPageBorders(const SwFrameFormat *pFormat, const SwFrameFormat *pFirstPageFormat) override
Description of the page borders.
FlyProcessingState m_nStateOfFlyFrame
State of the Fly at current position.
std::stack< std::map< BitmapChecksum, std::pair< OString, OUString > > > m_aRelIdCache
RelId <-> Graphic* cache, so that in case of alternate content, the same graphic only gets written on...
std::optional< css::drawing::FillStyle > m_oFillStyle
bool WriteOLEMath(const SwOLENode &rNode, const sal_Int8 nAlign)
static void WriteFootnoteEndnotePr(::sax_fastparser::FSHelperPtr const &fs, int tag, const SwEndNoteInfo &info, int listtag)
writes the footnotePr/endnotePr (depending on tag) section
virtual void ParaOutlineLevel(const SfxUInt16Item &) override
virtual void ParaWidows(const SvxWidowsItem &rWidows) override
Sfx item RES_PARATR_WIDOWS.
PostponedChart(const SdrObject *sdrObject, const Size &rSize, const SwFlyFrameFormat *rFrame)
FieldFlags
Definition: wrtww8.hxx:141
std::unique_ptr< std::vector< PostponedDrawing > > m_pPostponedCustomShape
virtual void ParaForbiddenRules(const SfxBoolItem &) override
Sfx item RES_PARATR_FORBIDDEN_RULES.
std::vector< OUString > m_rFinalBookmarksEnd
bool m_bHadSectPr
Did we have a section break in this paragraph? Set by StartSection(), reset by the next StartParagrap...
OString m_sLastOpenedBookmark
Name of the last opened bookmark.
virtual void StartRunProperties() override
Called before we start outputting the attributes.
virtual void EndStyles(sal_uInt16 nNumberOfStyles) override
End of the styles table.
std::map< OUString, EmbeddedFontRef > fontFilesMap
std::unique_ptr< const WW8_SepInfo > m_pSectionInfo
void WriteOLEShape(const SwFlyFrameFormat &rFrameFormat, const Size &rSize, const OString &rShapeId, const OUString &rImageId)
eUNKNOWN
rtl::Reference< sax_fastparser::FastAttributeList > m_pCharLangAttrList
virtual bool StartURL(const OUString &rUrl, const OUString &rTarget) override
Output URL start.
void CmdField_Impl(const SwTextNode *pNode, sal_Int32 nPos, FieldInfos const &rInfos, bool bWriteRun)
std::vector< css::beans::PropertyValue > m_aTextEffectsGrabBag
GrabBag for text effects like glow, shadow, ...
virtual void EndRuby(const SwTextNode &rNode, sal_Int32 nPos) override
Output ruby end.
void StartFont(const OUString &rFamilyName) const
Start the font.
std::unique_ptr< docx::FootnotesList > m_pFootnotesList
o3tl::sorted_vector< const SwFrameFormat * > m_aFloatingTablesOfParagraph
StyleType
void EndSdtBlock()
Closes a currently open SDT block.
std::vector< PostponedMathObjects > m_aPostponedMaths
virtual OUString FindRelId(BitmapChecksum nChecksum) override
virtual void ParaHangingPunctuation(const SfxBoolItem &) override
Sfx item RES_PARATR_HANGINGPUNCTUATION.
void StartRedline(const SwRedlineData *pRedlineData)
Output redlining.
std::map< OUString, std::vector< OString > > m_aSeqBookmarksNames
If there are bookmarks around sequence fields, this map contains the names of these bookmarks for eac...
oox::drawingml::DrawingML & m_rDrawingML
DrawingML access.
virtual void TableOrientation(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner) override
virtual void FormatHorizOrientation(const SwFormatHoriOrient &) override
Sfx item RES_HORI_ORIENT.
sal_Int16 nNumType
void DoWriteBookmarkTagEnd(sal_Int32 nId)
std::vector< sal_Int32 > lastClosedCell
virtual void WriteExpand(const SwField *pField) override
Write the expanded field.
void DoWriteBookmarksEnd(std::vector< OUString > &rEnds)
export the end bookmarks
virtual void ParaScriptSpace(const SfxBoolItem &) override
Sfx item RES_PARATR_SCRIPTSPACE.
virtual void ParagraphStyle(sal_uInt16 nStyle) override
Output style.
rtl::Reference< sax_fastparser::FastAttributeList > m_pRunSdtPrTokenChildren
Collects and outputs fonts.
Definition: wrtww8.hxx:295
rtl::Reference< sax_fastparser::FastAttributeList > m_pEastAsianLayoutAttrList
void DocDefaults()
Write Doc Defaults.
void WriteSdtBlock(sal_Int32 &nSdtPrToken, rtl::Reference< sax_fastparser::FastAttributeList > &pSdtPrTokenChildren, rtl::Reference< sax_fastparser::FastAttributeList > &pSdtPrTokenAttributes, rtl::Reference< sax_fastparser::FastAttributeList > &pSdtPrDataBindingAttrs, OUString &rSdtPrAlias, bool bPara)
rtl::Reference< FastAttributeList > SurroundToVMLWrap(SwFormatSurround const &rSurround)
virtual void OutputFlyFrame_Impl(const ww8::Frame &rFormat, const Point &rNdTopLeft) override
Output frames - the implementation.
void WriteFFData(const FieldInfos &rInfos)
bool IsAlternateContentChoiceOpen() const
virtual void TextFootnote_Impl(const SwFormatFootnote &) override
Sfx item RES_TXTATR_FTN.
DocumentType eType
void WriteFinalBookmarks_Impl(std::vector< OUString > &rStarts, std::vector< OUString > &rEnds)
const SwField * pendingPlaceholder
virtual void RefField(const SwField &rField, const OUString &rRef) override
sal_uInt32 tag
std::vector< OUString > m_rFinalBookmarksStart
Bookmarks to output at the end.
void WriteField_Impl(const SwField *pField, ww::eField eType, const OUString &rFieldCmd, FieldFlags nMode, OUString const *pBookmarkName=nullptr)
virtual void CharCrossedOut(const SvxCrossedOutItem &rCrossedOut) override
Sfx item RES_CHRATR_CROSSEDOUT.
std::shared_ptr< WW8TableInfo > Pointer_t
virtual css::uno::Reference< css::text::XTextFrame > GetUnoTextFrame(css::uno::Reference< css::drawing::XShape > xShape) override
std::vector< std::map< SvxBoxItemLine, css::table::BorderLine2 > > m_aTableStyleConfs
Style of a layout element.
Definition: frmfmt.hxx:58
void DoWriteFieldRunProperties(const SwTextNode *pNode, sal_Int32 nPos, bool bWriteCombChars=false)
Writes properties for run that is used to separate field implementation.
virtual void SectionTitlePage() override
Has different headers/footers for the title page.
void ExportOLESurround(const SwFormatSurround &rWrap)
std::vector< const SdrObject * > m_aPostponedFormControls
void WriteActiveXControl(const SdrObject *pObject, const SwFrameFormat &rFrameFormat, bool bInsideRun)
SvxAdjust
std::unique_ptr< std::vector< PostponedGraphic > > m_pPostponedGraphic
bool HasEndnotes() const
Do we have any endnotes?
void WriteFormData_Impl(const ::sw::mark::IFieldmark &rFieldmark)
virtual void EndRunProperties(const SwRedlineData *pRedlineData) override
Called after we end outputting the attributes.
virtual void FormatFillStyle(const XFillStyleItem &) override
Sfx item RES_FILL_STYLE.
virtual void SectFootnoteEndnotePr() override
for footnote/endnote section properties
virtual void EndSection() override
End of the section properties.
std::unique_ptr< SwWriteTable > m_xTableWrt
The current table helper.
void FootnotesEndnotes(bool bFootnotes)
Output the content of the footnotes.xml resp. endnotes.xml.
void FontAlternateName(const OUString &rName) const
Alternate name for the font.
sal_Int32 m_nRedlineId
Id of the redline.
virtual bool IsFlyProcessingPostponed() override
Is processing of fly postponed ?
virtual void PostitField(const SwField *pField) override
virtual void EndAbstractNumbering() override
End of the abstract numbering definition instance.
sal_Int32 m_nNextParaId
[MS-DOCX] section 2.6.2.3
void DoWritePermissionTagStart(const OUString &permission)
void WriteBookmarks_Impl(std::vector< OUString > &rStarts, std::vector< OUString > &rEnds)
virtual void TextINetFormat(const SwFormatINetFormat &) override
Sfx item RES_TXTATR_INETFMT.
std::stack< std::map< BitmapChecksum, std::pair< OUString, OUString > > > m_aSdrRelIdCache
RelId <-> BitmapChecksum cache, similar to m_aRelIdCache, but used for non-Writer graphics...
DocxAttributeOutput(DocxExport &rExport, const ::sax_fastparser::FSHelperPtr &pSerializer, oox::drawingml::DrawingML *pDrawingML)
virtual void CacheRelId(BitmapChecksum nChecksum, const OUString &rRelId, const OUString &rFileName) override
void DoWriteCmd(const OUString &rCmd)
FlyAnchors.
Definition: fmtanchr.hxx:34
void InitTableHelper(ww8::WW8TableNodeInfoInner::Pointer_t const &pTableTextNodeInfoInner)
std::shared_ptr< editeng::WordBorderDistances > pDistances
virtual void StartSection() override
Start of the section properties.
void WriteOLE(SwOLENode &rNode, const Size &rSize, const SwFlyFrameFormat *rFlyFrameFormat)
void WriteAnnotationMarks_Impl(std::vector< OUString > &rStarts, std::vector< OUString > &rEnds)
virtual void WriteTextBox(css::uno::Reference< css::drawing::XShape > xShape) override
DMLTextExport.
void EmbedFont(std::u16string_view name, FontFamily family, FontPitch pitch)
Write out the font into the document, if it's an embedded font.
std::vector< ww8::WW8TableNodeInfoInner::Pointer_t > tableFirstCells
void InitCollectedParagraphProperties()
Initialize the structures where we are going to collect some of the paragraph properties.
virtual void CharAnimatedText(const SvxBlinkItem &rBlink) override
Sfx item RES_CHRATR_BLINK.
void EndParaSdtBlock()
End possibly opened paragraph sdt block.
PostponedGraphic(const SwGrfNode *n, Size s, const SdrObject *sObj)
virtual void FieldVanish(const OUString &rText, ww::eField eType, OUString const *) override
virtual void NumberingLevel(sal_uInt8 nLevel, sal_uInt16 nStart, sal_uInt16 nNumberingType, SvxAdjust eAdjust, const sal_uInt8 *pNumLvlPos, sal_uInt8 nFollow, const wwFont *pFont, const SfxItemSet *pOutSet, sal_Int16 nIndentAt, sal_Int16 nFirstLineIndex, sal_Int16 nListTabPos, const OUString &rNumberingString, const SvxBrushItem *pBrush) override
All the numbering level information.
virtual void DefaultStyle() override
Write default style.
virtual void TableSpacing(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner) override
void TableCellProperties(ww8::WW8TableNodeInfoInner::Pointer_t const &pTableTextNodeInfoInner, sal_uInt32 nCell, sal_uInt32 nRow)
OString m_sLastOpenedAnnotationMark
Name of the last opened annotation mark.
virtual void EmptyParagraph() override
Empty paragraph.
bool WriteOLEChart(const SdrObject *pSdrObj, const Size &rSize, const SwFlyFrameFormat *pFlyFrameFormat)
rtl::Reference< sax_fastparser::FastAttributeList > m_pFontsAttrList
std::shared_ptr< DocxTableStyleExport > m_pTableStyleExport
virtual void FormatVertOrientation(const SwFormatVertOrient &) override
Sfx item RES_VERT_ORIENT.
void WriteSdtDropDownEnd(OUString const &rSelected, uno::Sequence< OUString > const &rListItems)
virtual void FormatFrameSize(const SwFormatFrameSize &) override
Sfx item RES_FRM_SIZE.
FontPitch
const SwRedlineData * m_pRedlineData
Redline data to remember in the text run.
const DocxExport & GetExport() const
std::shared_ptr< FastSerializerHelper > FSHelperPtr
virtual void OverrideNumberingDefinition(SwNumRule const &rRule, sal_uInt16 nNum, sal_uInt16 nAbstractNum, const std::map< size_t, size_t > &rLevelOverrides) override
Numbering definition that overrides abstract numbering definition.
std::vector< OUString > m_rPermissionsStart
Permissions to output.
virtual bool FootnoteEndnoteRefTag() override
docx requires footnoteRef/endnoteRef tag at the beginning of each of them
virtual void CharEscapement(const SvxEscapementItem &rEscapement) override
Sfx item RES_CHRATR_ESCAPEMENT.
virtual void WriteBookmarkInActParagraph(const OUString &rName, sal_Int32 nFirstRunPos, sal_Int32 nLastRunPos) override
Insert a bookmark inside the currently processed paragraph.
virtual void RawText(const OUString &rText, rtl_TextEncoding eCharSet) override
Output text (without markup).
void EndTableCell(sal_uInt32 nCell)
unsigned int m_nChartCount
count charts consistently for unit tests
void SetAlternateContentChoiceOpen(bool bAltContentChoiceOpen)
tools::Long SwTwips
Definition: swtypes.hxx:49
virtual void CharWeight(const SvxWeightItem &rWeight) override
Sfx item RES_CHRATR_WEIGHT.
void WritePostponedFormControl(const SdrObject *pObject)
void StartTable(ww8::WW8TableNodeInfoInner::Pointer_t const &pTableTextNodeInfoInner)
< purpose of derivation from SwClient: character style for displaying the numbers.
Definition: lineinfo.hxx:37
virtual void TableCellRedline(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner) override
SvxShadowLocation aShadowLocation
virtual void SectionFormProtection(bool bProtected) override
Protection of forms.
void FontPitchType(FontPitch ePitch) const
Font pitch.
rtl::Reference< sax_fastparser::FastAttributeList > m_pSectionSpacingAttrList
virtual void FormatLRSpace(const SvxLRSpaceItem &rLRSpace) override
Sfx item RES_LR_SPACE.
void InitCollectedRunProperties()
Initialize the structures where we are going to collect some of the run properties.
virtual void CharLanguage(const SvxLanguageItem &rLanguage) override
Sfx item RES_CHRATR_LANGUAGE.
A structure that holds flags for the table export.
FontFamily
virtual bool AnalyzeURL(const OUString &rURL, const OUString &rTarget, OUString *pLinkURL, OUString *pMark) override
sal_Int32 m_nRunSdtPrToken
members to control the existence of grabbagged SDT properties in the text run
rtl::Reference< sax_fastparser::FastAttributeList > m_pParagraphSpacingAttrList
virtual void EndStyleProperties(bool bParProp) override
End of (paragraph or run) properties of a style.
virtual void TableHeight(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner) override
virtual void SectionBreak(sal_uInt8 nC, bool bBreakAfter, const WW8_SepInfo *pSectionInfo=nullptr, bool bExtraPageBreak=false) override
Write a section break msword::ColumnBreak or msword::PageBreak bBreakAfter: the break must be schedul...
static bool TextBoxIsFramePr(const SwFrameFormat &rFrameFormat)
std::unique_ptr< TableReference > m_tableReference
std::shared_ptr< const SwField > pField
SwTextNode is a paragraph in the document model.
Definition: ndtxt.hxx:79
void SetWritingHeaderFooter(bool bWritingHeaderFooter)
std::multimap< sal_Int32, OUString > m_aBookmarksOfParagraphStart
Bookmarks of the current paragraph.
virtual void TextVerticalAdjustment(const css::drawing::TextVerticalAdjust) override
bool m_bPreventDoubleFieldsHandling
Field data to remember in the text run.
FontWeight
virtual OUString FindFileName(BitmapChecksum nChecksum) override
virtual void CharShadow(const SvxShadowedItem &rShadow) override
Sfx item RES_CHRATR_SHADOWED.
virtual void CharLanguageCTL(const SvxLanguageItem &rLanguageItem) override
Sfx item RES_CHRATR_CTL_LANGUAGE.
void DoWritePermissionsEnd()
export the end permissions
A structure that holds information about the options selected when outputting a border to DOCX...
void EndRedline(const SwRedlineData *pRedlineData)
Output redlining.
virtual void CharRelief(const SvxCharReliefItem &rRelief) override
Sfx item RES_CHRATR_RELIEF.
PostponedDrawing(const SdrObject *sdrObj, const SwFrameFormat *frm)
virtual void FormatSurround(const SwFormatSurround &) override
Sfx item RES_SURROUND.
virtual void TableInfoRow(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner) override
virtual void CharGrabBag(const SfxGrabBagItem &) override
Sfx item RES_CHRATR_GRABBAG.
FlyProcessingState
enum to state the present state of the fly
Definition: wrtww8.hxx:164
void DoWriteBookmarksStart(std::vector< OUString > &rStarts)
Write the start bookmarks.
virtual void FormatBackground(const SvxBrushItem &) override
Sfx item RES_BACKGROUND.
unsigned char sal_uInt8
Make exporting a Writer Frame easy.
virtual void CharTwoLines(const SvxTwoLinesItem &rTwoLines) override
Sfx item RES_CHRATR_TWO_LINES.
void WriteCollectedRunProperties()
Output what we collected during the run properties output.
virtual void FormatDrop(const SwTextNode &rNode, const SwFormatDrop &rSwFormatDrop, sal_uInt16 nStyle, ww8::WW8TableNodeInfo::Pointer_t pTextNodeInfo, ww8::WW8TableNodeInfoInner::Pointer_t pTextNodeInfoInner) override
virtual void FormatAnchor(const SwFormatAnchor &) override
Sfx item RES_ANCHOR.
virtual void ParaGrabBag(const SfxGrabBagItem &) override
Sfx item RES_PARATR_GRABBAG.
virtual bool MaybeOutputBrushItem(SfxItemSet const &) override
virtual void FormatBox(const SvxBoxItem &) override
Sfx item RES_BOX.
void GetSdtEndBefore(const SdrObject *pSdrObj)
void cacheGraphicRelId(BitmapChecksum nChecksum, OString const &rRelId, OUString const &rFileName)
void FootnoteEndnoteReference()
Output the footnote/endnote reference (if there's one to output).
virtual void EndParagraph(ww8::WW8TableNodeInfoInner::Pointer_t pTextNodeInfoInner) override
End of the paragraph.
void PopulateFrameProperties(const SwFrameFormat *pFrameFormat, const Size &rSize)
virtual void SetField(const SwField &rField, ww::eField eType, const OUString &rCmd) override
virtual sal_Int32 StartParagraph(ww8::WW8TableNodeInfo::Pointer_t pTextNodeInfo, bool bGenerateParaId) override
Start of the paragraph.
virtual void CharFont(const SvxFontItem &rFont) override
Sfx item RES_CHRATR_FONT.
SvxBoxItemLine
void FontCharset(sal_uInt8 nCharSet, rtl_TextEncoding nEncoding) const
Font charset.
virtual void CharBorder(const ::editeng::SvxBorderLine *pAllBorder, const sal_uInt16 nDist, const bool bShadow) override
Sfx item RES_CHRATR_BOX.
virtual void FormatFillGradient(const XFillGradientItem &) override
Sfx item RES_FILL_GRADIENT.
virtual void ParaSnapToGrid(const SvxParaGridItem &) override
Sfx item RES_PARATR_SNAPTOGRID.
void EmbedFontStyle(std::u16string_view name, int tag, FontFamily family, FontItalic italic, FontWeight weight, FontPitch pitch)
virtual void ParaTabStop(const SvxTabStopItem &rTabStop) override
Sfx item RES_PARATR_TABSTOP.
static OString TransHighlightColor(sal_uInt8 nIco)
Translate an ico value to the corresponding HighlightColorValues enumaration item.
virtual void ParaVerticalAlign(const SvxParaVertAlignItem &rAlign) override
Sfx item RES_PARATR_VERTALIGN.
virtual void SectionPageNumbering(sal_uInt16 nNumType, const ::std::optional< sal_uInt16 > &oPageRestartNumber) override
The style of the page numbers.
std::shared_ptr< WW8TableNodeInfoInner > Pointer_t
const char * name
virtual bool EndURL(bool) override
Output URL end.
virtual void TableDefinition(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner) override
virtual void CharAutoKern(const SvxAutoKernItem &) override
Sfx item RES_CHRATR_AUTOKERN.
virtual void CharScaleWidth(const SvxCharScaleWidthItem &rScaleWidth) override
Sfx item RES_CHRATR_SCALEW.
static OString GetOLEStyle(const SwFlyFrameFormat &rFormat, const Size &rSize)
void LatentStyles()
Write latent styles.
std::vector< OString > m_rAnnotationMarksEnd
bool m_bIgnoreNextFill
If FormatBox() already handled fill style / gradient.
virtual void CharCaseMap(const SvxCaseMapItem &rCaseMap) override
Sfx item Sfx item RES_CHRATR_CASEMAP.
virtual void StartStyles() override
Start of the styles table.
void StartField_Impl(const SwTextNode *pNode, sal_Int32 nPos, FieldInfos const &rInfos, bool bWriteRun=false)
PostponedOLE(SwOLENode *rObject, const Size &rSize, const SwFlyFrameFormat *rFrame)
virtual void CharColor(const SvxColorItem &rColor) override
Sfx item Sfx item RES_CHRATR_COLOR.
std::vector< OUString > m_rPermissionsEnd
virtual void CharFontSize(const SvxFontHeightItem &rFontSize) override
Sfx item RES_CHRATR_FONTSIZE.
virtual void CharFontSizeCTL(const SvxFontHeightItem &rFontSize) override
Sfx item RES_CHRATR_CTL_FONTSIZE.
virtual void CharHighlight(const SvxBrushItem &rHighlight) override
Sfx item RES_CHRATR_HIGHLIGHT.
std::unique_ptr< std::vector< PostponedDrawing > > m_pPostponedDMLDrawings
std::vector< PostponedChart > m_aPostponedCharts
virtual void CharBackground(const SvxBrushItem &rBrush) override
Sfx item RES_CHRATR_BACKGROUND.
void PostponeOLE(SwOLENode &rNode, const Size &rSize, const SwFlyFrameFormat *pFlyFrameFormat)
virtual void RTLAndCJKState(bool bIsRTL, sal_uInt16 nScript) override
Export the state of RTL/CJK.
std::unique_ptr< std::vector< PostponedDiagram > > m_pPostponedDiagrams
virtual void StartParagraphProperties() override
Called before we start outputting the attributes.
virtual void CharPosture(const SvxPostureItem &rPosture) override
Sfx item RES_CHRATR_POSTURE.
bool m_bEndCharSdt
If the current SDT around runs should be ended before the current run.
void FlyFrameGraphic(const SwGrfNode *pGrfNode, const Size &rSize, const SwFlyFrameFormat *pOLEFrameFormat, SwOLENode *pOLENode, const SdrObject *pSdrObj=nullptr)
Output graphic fly frames or replacement graphics for OLE nodes.
virtual void EndStyle() override
End of a style in the styles table.
virtual void CharRotate(const SvxCharRotateItem &rRotate) override
Sfx item RES_CHRATR_ROTATE.
virtual void ParaLineSpacing_Impl(short nSpace, short nMulti) override
Sfx item RES_PARATR_LINESPACING.
void BulletDefinition(int nId, const Graphic &rGraphic, Size aSize) override
Exports the definition (image, size) of a single numbering picture bullet.
virtual void SectionLineNumbering(sal_uLong nRestartNo, const SwLineNumberInfo &rLnNumInfo) override
Numbering of the lines in the document.
bool m_bStartedParaSdt
If an SDT around paragraphs is currently open.
rtl::Reference< sax_fastparser::FastAttributeList > m_pHyperlinkAttrList
void CmdEndField_Impl(const SwTextNode *pNode, sal_Int32 nPos, bool bWriteRun)
virtual DocxExport & GetExport() override
Return the right export class.
virtual void ParaNumRule_Impl(const SwTextNode *pTextNd, sal_Int32 nLvl, sal_Int32 nNumId) override
Sfx item RES_PARATR_NUMRULE.
void WriteCollectedParagraphProperties()
Output what we collected during the run properties output.
const ::sw::mark::IFieldmark * pFieldmark
If SwFormatDrop is a Client, it is the CharFormat that describes the font for the DropCaps...
Definition: paratr.hxx:62
virtual void CharWeightCJK(const SvxWeightItem &rWeight) override
Sfx item RES_CHRATR_CJK_WEIGHT.
void FinishTableRowCell(ww8::WW8TableNodeInfoInner::Pointer_t const &pInner, bool bForceEmptyParagraph=false)
End cell, row, and even the entire table if necessary.
void WriteFormDateStart(const OUString &sFullDate, const OUString &sDateFormat, const OUString &sLang)
virtual void TableBidi(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner) override
void DoWriteBookmarkTagStart(const OUString &bookmarkName)
virtual void StartRuby(const SwTextNode &rNode, sal_Int32 nPos, const SwFormatRuby &rRuby) override
Output ruby start.
virtual void Redline(const SwRedlineData *pRedline) override
Output redlining.
virtual void TableNodeInfoInner(ww8::WW8TableNodeInfoInner::Pointer_t pNodeInfoInner) override
::sax_fastparser::FSHelperPtr m_pSerializer
Fast serializer to output the data.
void WriteSrcRect(const css::uno::Reference< css::beans::XPropertySet > &xShapePropSet, const SwFrameFormat *pFrameFormat)
rtl::Reference< sax_fastparser::FastAttributeList > m_pParagraphSdtPrTokenChildren
bool m_bRunTextIsOn
Flag indicating that the Run Text is being written.
std::vector< OUString > m_rBookmarksEnd
void TableDefaultCellMargins(ww8::WW8TableNodeInfoInner::Pointer_t const &pTableTextNodeInfoInner)
bool m_bStartedCharSdt
If an SDT around runs is currently open.
virtual void CharIdctHint(const SfxPoolItem &) override
Sfx item RES_CHRATR_IdctHint.
virtual void OutlineNumbering(sal_uInt8 nLvl) override
Numbering rule and Id.
virtual void TableRowEnd(sal_uInt32 nDepth) override
virtual void StartStyleProperties(bool bParProp, sal_uInt16 nStyle) override
Start of (paragraph or run) properties of a style.
void WriteOLE2Obj(const SdrObject *pSdrObj, SwOLENode &rNode, const Size &rSize, const SwFlyFrameFormat *pFlyFrameFormat, const sal_Int8 nFormulaAlignment)
std::vector< OString > m_rAnnotationMarksStart
Annotation marks to output.
bool GetWritingHeaderFooter() const
std::shared_ptr< WW8TableNodeInfo > Pointer_t
editeng::WordPageMargins m_pageMargins
void WritePostponedMath(const SwOLENode *pObject, sal_Int8)
virtual void CharContour(const SvxContourItem &rContour) override
Sfx item Sfx item RES_CHRATR_CONTOUR.
virtual void WritePostitFieldReference() override
for docx w:commentReference
virtual void HiddenField(const SwField &rField) override
virtual void FormatULSpace(const SvxULSpaceItem &rULSpace) override
Sfx item RES_UL_SPACE.
std::vector< OUString > m_rBookmarksStart
Bookmarks to output.
ww8::WW8TableInfo::Pointer_t m_pTableInfo
void SetSerializer(::sax_fastparser::FSHelperPtr const &pSerializer)
For e.g. the output of the styles, we need to switch the serializer to another one.
sal_uInt16 nPos
void DoWriteBookmarkStartIfExist(sal_Int32 nRunPos)
bool m_bWritingField
Flag indicating that multiple runs of a field are being written.
virtual void FormatFrameDirection(const SvxFrameDirectionItem &) override
Sfx item RES_FRAMEDIR.
PostponedDiagram(const SdrObject *o, const SwFrameFormat *frm)
FontItalic
rtl::Reference< sax_fastparser::FastAttributeList > m_pColorAttrList
Attributes of the run color.
std::map< OString, sal_Int32 > m_rOpenedAnnotationMarksIds
Maps of the annotation marks ids.
virtual void EndParagraphProperties(const SfxItemSet &rParagraphMarkerProperties, const SwRedlineData *pRedlineData, const SwRedlineData *pRedlineParagraphMarkerDeleted, const SwRedlineData *pRedlineParagraphMarkerInserted) override
Called after we end outputting the attributes.
SvxShadowLocation
void FontFamilyType(FontFamily eFamily) const
Font family.
void DoWriteBookmarkEndIfExist(sal_Int32 nRunPos)
Base class of the Writer document model elements.
Definition: node.hxx:80