LibreOffice Module sw (master)  1
ww8attributeoutput.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_WW8ATTRIBUTEOUTPUT_HXX
21 #define INCLUDED_SW_SOURCE_FILTER_WW8_WW8ATTRIBUTEOUTPUT_HXX
22 
23 #include "attributeoutputbase.hxx"
24 #include "wrtww8.hxx"
25 #include <editeng/boxitem.hxx>
26 #include <sfx2/docfile.hxx>
27 
29 {
30 public:
32  virtual void RTLAndCJKState( bool bIsRTL, sal_uInt16 nScript ) override;
33 
35  virtual void StartParagraph( ww8::WW8TableNodeInfo::Pointer_t /*pTextNodeInfo*/ ) override {}
36 
38  virtual void EndParagraph( ww8::WW8TableNodeInfoInner::Pointer_t pTextNodeInfoInner ) override;
39 
41  virtual void SectionBreaks(const SwNode& /*rNode*/) override {}
42 
44  virtual void StartParagraphProperties() override {}
45 
47  virtual void EndParagraphProperties(const SfxItemSet& /*rParagraphMarkerProperties*/, const SwRedlineData* /*pRedlineData*/, const SwRedlineData* /*pRedlineParagraphMarkerDeleted*/, const SwRedlineData* /*pRedlineParagraphMarkerInserted*/) override {}
48 
50  virtual void EmptyParagraph() override;
51 
54  virtual void StartRun( const SwRedlineData* pRedlineData, sal_Int32 nPos, bool bSingleEmptyRun = false ) override;
55 
56  virtual void OnTOXEnding() override;
57 
61  virtual void EndRun(const SwTextNode* pNode, sal_Int32 nPos, bool bLastRun = false) override;
62 
64  virtual void StartRunProperties() override;
65 
67  virtual void EndRunProperties( const SwRedlineData* pRedlineData ) override;
68 
70  virtual void RunText( const OUString& rText, rtl_TextEncoding eCharSet = RTL_TEXTENCODING_UTF8 ) override;
71 
73  virtual void RawText(const OUString& rText, rtl_TextEncoding eCharSet) override;
74 
76  virtual void StartRuby( const SwTextNode& rNode, sal_Int32 nPos, const SwFormatRuby& rRuby ) override;
77 
79  virtual void EndRuby(const SwTextNode& rNode, sal_Int32 nPos) override;
80 
82  virtual bool StartURL( const OUString &rUrl, const OUString &rTarget ) override;
83 
85  virtual bool EndURL(bool) override;
86 
87  virtual void FieldVanish( const OUString& rText, ww::eField eType ) override;
88 
90  virtual void Redline( const SwRedlineData* pRedline ) override;
91 
92  virtual void FormatDrop( const SwTextNode& rNode, const SwFormatDrop &rSwFormatDrop, sal_uInt16 nStyle, ww8::WW8TableNodeInfo::Pointer_t pTextNodeInfo, ww8::WW8TableNodeInfoInner::Pointer_t pTextNodeInfoInner ) override;
93 
97  virtual void OutputFKP(bool bForce) override;
98 
100  virtual void ParagraphStyle( sal_uInt16 nStyle ) override;
101 
102  virtual void TableInfoCell( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) override;
103  virtual void TableInfoRow( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) override;
104  virtual void TableDefinition( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) override;
105  virtual void TableDefaultBorders( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) override;
106  virtual void TableBackgrounds( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) override;
107  virtual void TableRowRedline( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) override;
108  virtual void TableCellRedline( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) override;
109  virtual void TableHeight( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) override;
110  virtual void TableCanSplit( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) override;
111  virtual void TableBidi( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) override;
112  virtual void TableVerticalCell( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) override;
113  virtual void TableNodeInfoInner( ww8::WW8TableNodeInfoInner::Pointer_t pNodeInfoInner ) override;
114  virtual void TableOrientation( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner ) override;
115  virtual void TableSpacing( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner ) override;
116  virtual void TableRowEnd( sal_uInt32 nDepth ) override;
117 
119  virtual void StartStyles() override;
120 
122  virtual void EndStyles( sal_uInt16 nNumberOfStyles ) override;
123 
125  virtual void DefaultStyle() override;
126 
128  virtual void StartStyle( const OUString& rName, StyleType eType,
129  sal_uInt16 nBase, sal_uInt16 nNext, sal_uInt16 nWwIdi, sal_uInt16 nId,
130  bool bAutoUpdate ) override;
131 
133  virtual void EndStyle() override;
134 
136  virtual void StartStyleProperties( bool bParProp, sal_uInt16 nStyle ) override;
137 
139  virtual void EndStyleProperties( bool bParProp ) override;
140 
142  virtual void OutlineNumbering(sal_uInt8 nLvl) override;
143 
146  virtual void PageBreakBefore( bool bBreak ) override;
147 
150  virtual void SectionBreak( sal_uInt8 nC, const WW8_SepInfo* pSectionInfo = nullptr ) override;
151 
152  // preserve DOC page vertical alignment
153  virtual void TextVerticalAdjustment( const css::drawing::TextVerticalAdjust ) override;
154 
156  virtual void StartSection() override;
157 
158  // footnote / endnote section properties
159  virtual void SectFootnoteEndnotePr() override;
160 
164  virtual void EndSection() override {}
165 
167  virtual void SectionFormProtection( bool bProtected ) override;
168 
170  virtual void SectionLineNumbering( sal_uLong nRestartNo, const SwLineNumberInfo& rLnNumInfo ) override;
171 
173  virtual void SectionTitlePage() override;
174 
176  virtual void SectionPageBorders( const SwFrameFormat* pFormat, const SwFrameFormat* pFirstPageFormat ) override;
177 
179  virtual void SectionBiDi( bool bBiDi ) override;
180 
183  virtual void SectionPageNumbering( sal_uInt16 nNumType, const ::boost::optional<sal_uInt16>& oPageRestartNumber ) override;
184 
186  virtual void SectionType( sal_uInt8 nBreakCode ) override;
187 
189  virtual void NumberingDefinition( sal_uInt16 nId, const SwNumRule &rRule ) override;
190 
192  virtual void NumberingLevel( sal_uInt8 nLevel,
193  sal_uInt16 nStart,
194  sal_uInt16 nNumberingType,
195  SvxAdjust eAdjust,
196  const sal_uInt8 *pNumLvlPos,
197  sal_uInt8 nFollow,
198  const wwFont *pFont,
199  const SfxItemSet *pOutSet,
200  sal_Int16 nIndentAt,
201  sal_Int16 nFirstLineIndex,
202  sal_Int16 nListTabPos,
203  const OUString &rNumberingString,
204  const SvxBrushItem* pBrush) override; //For i120928,transfer graphic of bullet
205 
206 protected:
208  void OutputFlyFrame_Impl( const ww8::Frame& rFormat, const Point& rNdTopLeft ) override;
209 
211  virtual void CharCaseMap( const SvxCaseMapItem& ) override;
212 
214  virtual void CharColor( const SvxColorItem& ) override;
215 
217  virtual void CharContour( const SvxContourItem& ) override;
218 
220  virtual void CharCrossedOut( const SvxCrossedOutItem& rHt ) override;
221 
223  virtual void CharEscapement( const SvxEscapementItem& ) override;
224 
226  virtual void CharFont( const SvxFontItem& ) override;
227 
229  virtual void CharFontSize( const SvxFontHeightItem& ) override;
230 
232  virtual void CharKerning( const SvxKerningItem& ) override;
233 
235  virtual void CharLanguage( const SvxLanguageItem& ) override;
236 
238  virtual void CharPosture( const SvxPostureItem& ) override;
239 
241  virtual void CharShadow( const SvxShadowedItem& ) override;
242 
244  virtual void CharUnderline( const SvxUnderlineItem& ) override;
245 
247  virtual void CharWeight( const SvxWeightItem& ) override;
248 
250  virtual void CharAutoKern( const SvxAutoKernItem& ) override;
251 
253  virtual void CharAnimatedText( const SvxBlinkItem& ) override;
254 
256  virtual void CharBackground( const SvxBrushItem& ) override;
257 
259  virtual void CharFontCJK( const SvxFontItem& ) override;
260 
262  virtual void CharFontSizeCJK( const SvxFontHeightItem& rHt ) override { CharFontSize( rHt ); }
263 
265  virtual void CharLanguageCJK( const SvxLanguageItem& rHt ) override { CharLanguage( rHt ); }
266 
268  virtual void CharPostureCJK( const SvxPostureItem& rHt ) override { CharPosture( rHt ); }
269 
271  virtual void CharWeightCJK( const SvxWeightItem& rHt ) override { CharWeight( rHt ); }
272 
274  virtual void CharFontCTL( const SvxFontItem& ) override;
275 
277  virtual void CharFontSizeCTL( const SvxFontHeightItem& rHt ) override { CharFontSize( rHt ); }
278 
280  virtual void CharLanguageCTL( const SvxLanguageItem& rHt ) override { CharLanguage( rHt ); }
281 
283  virtual void CharPostureCTL( const SvxPostureItem& ) override;
284 
286  virtual void CharWeightCTL( const SvxWeightItem& ) override;
287 
289  virtual void CharBidiRTL( const SfxPoolItem& rHt ) override;
290 
292  virtual void CharIdctHint( const SfxPoolItem& rHt ) override;
293 
295  virtual void CharRotate( const SvxCharRotateItem& ) override;
296 
298  virtual void CharEmphasisMark( const SvxEmphasisMarkItem& rHt ) override;
299 
301  virtual void CharTwoLines( const SvxTwoLinesItem& ) override;
302 
304  virtual void CharScaleWidth( const SvxCharScaleWidthItem& ) override;
305 
307  virtual void CharRelief( const SvxCharReliefItem& ) override;
308 
310  virtual void CharHidden( const SvxCharHiddenItem& ) override;
311 
313  virtual void CharBorder( const ::editeng::SvxBorderLine* pAllBorder, const sal_uInt16 nDist, const bool bShadow ) override;
314 
316  virtual void CharHighlight( const SvxBrushItem& ) override;
317 
319  virtual void TextINetFormat( const SwFormatINetFormat& ) override;
320 
322  virtual void TextCharFormat( const SwFormatCharFormat& ) override;
323 
325  virtual void TextFootnote_Impl( const SwFormatFootnote& ) override;
326 
328  virtual void ParaLineSpacing_Impl( short nSpace, short nMulti ) override;
329 
331  virtual void ParaAdjust( const SvxAdjustItem& rHt ) override;
332 
334  virtual void ParaSplit( const SvxFormatSplitItem& ) override;
335 
337  virtual void ParaWidows( const SvxWidowsItem& rHt ) override;
338 
340  virtual void ParaTabStop( const SvxTabStopItem& rHt ) override;
341 
343  virtual void ParaHyphenZone( const SvxHyphenZoneItem& ) override;
344 
346  virtual void ParaNumRule_Impl( const SwTextNode *pTextNd, sal_Int32 nLvl, sal_Int32 nNumId ) override;
347 
349  virtual void ParaScriptSpace( const SfxBoolItem& ) override;
350 
352  virtual void ParaHangingPunctuation( const SfxBoolItem& ) override;
353 
355  virtual void ParaForbiddenRules( const SfxBoolItem& ) override;
356 
358  virtual void ParaVerticalAlign( const SvxParaVertAlignItem& ) override;
359 
361  virtual void ParaSnapToGrid( const SvxParaGridItem& ) override;
362 
364  virtual void FormatFrameSize( const SwFormatFrameSize& ) override;
365 
367  virtual void FormatPaperBin( const SvxPaperBinItem& ) override;
368 
370  virtual void FormatLRSpace( const SvxLRSpaceItem& ) override;
371 
373  virtual void FormatULSpace( const SvxULSpaceItem& rHt ) override;
374 
376  virtual void FormatSurround( const SwFormatSurround& ) override;
377 
379  virtual void FormatVertOrientation( const SwFormatVertOrient& ) override;
380 
382  virtual void FormatHorizOrientation( const SwFormatHoriOrient& ) override;
383 
385  virtual void FormatAnchor( const SwFormatAnchor& ) override;
386 
388  virtual void FormatBackground( const SvxBrushItem& ) override;
389 
391  virtual void FormatFillStyle( const XFillStyleItem& ) override;
392 
394  virtual void FormatFillGradient( const XFillGradientItem& ) override;
395 
397  virtual void FormatBox( const SvxBoxItem& ) override;
398 
400  virtual void FormatColumns_Impl( sal_uInt16 nCols, const SwFormatCol & rCol, bool bEven, SwTwips nPageSize ) override;
401 
403  virtual void FormatKeep( const SvxFormatKeepItem& ) override;
404 
406  virtual void FormatTextGrid( const SwTextGridItem& ) override;
407 
409  virtual void FormatLineNumbering( const SwFormatLineNumber& ) override;
410 
412  virtual void FormatFrameDirection( const SvxFrameDirectionItem& ) override;
413 
415  virtual void ParaGrabBag( const SfxGrabBagItem& ) override;
416 
418  virtual void CharGrabBag( const SfxGrabBagItem& ) override;
419 
420  // Sfx item RES_PARATR_OUTLINELEVEL
421  virtual void ParaOutlineLevel( const SfxUInt16Item& ) override;
422 
424  virtual void WriteExpand( const SwField* pField ) override;
425 
426  virtual void RefField ( const SwField& rField, const OUString& rRef ) override;
427  virtual void HiddenField( const SwField& rField ) override;
428  virtual void SetField( const SwField& rField, ww::eField eType, const OUString& rCmd ) override;
429  virtual void PostitField( const SwField* pField ) override;
430  virtual bool DropdownField( const SwField* pField ) override;
431  virtual bool PlaceholderField( const SwField* pField ) override;
432 
433  virtual bool AnalyzeURL( const OUString& rURL, const OUString& rTarget, OUString* pLinkURL, OUString* pMark ) override;
434 
435  virtual void WriteBookmarkInActParagraph( const OUString& rName, sal_Int32 nFirstRunPos, sal_Int32 nLastRunPos ) override;
436 
439 
445 
451 
456 
461  sal_uInt16 m_nFieldResults;
462 
464 
466  std::multimap<sal_Int32, OUString> m_aBookmarksOfParagraphStart;
467  std::multimap<sal_Int32, OUString> m_aBookmarksOfParagraphEnd;
468 
469 public:
470  explicit WW8AttributeOutput( WW8Export &rWW8Export )
471  : AttributeOutputBase(rWW8Export.GetWriter().GetMedia()->GetURLObject().GetMainURL(
472  INetURLObject::DecodeMechanism::NONE))
473  , m_rWW8Export(rWW8Export)
474  , nPOPosStdLen1(0)
475  , nPOPosStdLen2(0)
476  , m_nStyleStartSize(0)
477  , m_nStyleLenPos(0)
478  , m_nStyleCountPos(0)
479  , m_nFieldResults(0)
480  , mbOnTOXEnding(false)
481  {
482  }
483 
485  virtual WW8Export& GetExport() override { return m_rWW8Export; }
486 
487 protected:
489  void OutputWW8Attribute( sal_uInt8 nId, bool bVal );
490 
492  void OutputWW8AttributeCTL( sal_uInt8 nId, bool bVal );
493 
494  void TableCellBorders(
495  ww8::WW8TableNodeInfoInner::Pointer_t const & pTableTextNodeInfoInner );
496 
497 private:
498 
500  bool m_bFromEdge = false;
501 
502 };
503 
504 #endif // INCLUDED_SW_SOURCE_FILTER_WW8_WW8ATTRIBUTEOUTPUT_HXX
505 
506 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void FormatFrameSize(const SwFormatFrameSize &) override
Sfx item RES_FRM_SIZE.
Definition: ww8atr.cxx:3639
virtual void EndStyleProperties(bool bParProp) override
End of (paragraph or run) properties of a style.
Definition: wrtw8sty.cxx:544
virtual void OutputFKP(bool bForce) override
Output FKP (Formatted disK Page) - necessary for binary formats only.
Definition: ww8atr.cxx:1086
virtual void CharScaleWidth(const SvxCharScaleWidthItem &) override
Sfx item RES_CHRATR_SCALEW.
Definition: ww8atr.cxx:1450
virtual void ParagraphStyle(sal_uInt16 nStyle) override
Output style.
Definition: ww8atr.cxx:1096
virtual void CharShadow(const SvxShadowedItem &) override
Sfx item RES_CHRATR_SHADOWED.
Definition: ww8atr.cxx:1173
virtual void FormatColumns_Impl(sal_uInt16 nCols, const SwFormatCol &rCol, bool bEven, SwTwips nPageSize) override
Sfx item RES_COL.
Definition: ww8atr.cxx:4543
editeng::WordPageMargins m_pageMargins
virtual void ParaOutlineLevel(const SfxUInt16Item &) override
Sfx item RES_PARATR_OUTLINELEVEL.
Definition: ww8atr.cxx:4852
Exporter of the binary Word file formats.
Definition: wrtww8.hxx:987
virtual void FormatHorizOrientation(const SwFormatHoriOrient &) override
Sfx item RES_HORI_ORIENT.
Definition: ww8atr.cxx:4135
virtual void ParaHyphenZone(const SvxHyphenZoneItem &) override
Sfx item RES_PARATR_HYPHENZONE.
Definition: ww8atr.cxx:3254
virtual void TableInfoRow(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo) override
Definition: wrtww8.cxx:2027
virtual void CharHighlight(const SvxBrushItem &) override
Sfx item RES_CHRATR_HIGHLIGHT.
Definition: ww8atr.cxx:1250
virtual void FormatBackground(const SvxBrushItem &) override
Sfx item RES_BACKGROUND.
Definition: ww8atr.cxx:4204
sal_uInt16 m_nFieldResults
For output of run properties.
virtual void TableBackgrounds(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo) override
Definition: wrtww8.cxx:2593
virtual void ParaVerticalAlign(const SvxParaVertAlignItem &) override
Sfx item RES_PARATR_VERTALIGN.
Definition: ww8atr.cxx:3288
virtual void EndRun(const SwTextNode *pNode, sal_Int32 nPos, bool bLastRun=false) override
End of the text run.
Definition: ww8atr.cxx:1042
virtual void CharWeightCTL(const SvxWeightItem &) override
Sfx item RES_CHRATR_CTL_WEIGHT.
Definition: ww8atr.cxx:1147
virtual void CharBidiRTL(const SfxPoolItem &rHt) override
Sfx item RES_CHRATR_BidiRTL.
Definition: ww8atr.cxx:1481
virtual void CharRelief(const SvxCharReliefItem &) override
Sfx item RES_CHRATR_RELIEF.
Definition: ww8atr.cxx:1456
virtual void StartStyleProperties(bool bParProp, sal_uInt16 nStyle) override
Start of (paragraph or run) properties of a style.
Definition: wrtw8sty.cxx:507
virtual void RTLAndCJKState(bool bIsRTL, sal_uInt16 nScript) override
Export the state of RTL/CJK.
Definition: ww8atr.cxx:961
virtual void RawText(const OUString &rText, rtl_TextEncoding eCharSet) override
Output text (without markup).
Definition: ww8atr.cxx:1081
virtual void FormatPaperBin(const SvxPaperBinItem &) override
Sfx item RES_PAPER_BIN.
Definition: ww8atr.cxx:3957
sal_uInt16 m_nStyleStartSize
For output of styles.
virtual void PageBreakBefore(bool bBreak) override
Page break As a paragraph property - the paragraph should be on the next page.
Definition: ww8atr.cxx:3783
std::multimap< sal_Int32, OUString > m_aBookmarksOfParagraphEnd
virtual void EndStyles(sal_uInt16 nNumberOfStyles) override
End of the styles table.
Definition: wrtw8sty.cxx:672
virtual void TableDefinition(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo) override
Definition: wrtww8.cxx:2324
virtual bool AnalyzeURL(const OUString &rURL, const OUString &rTarget, OUString *pLinkURL, OUString *pMark) override
Definition: wrtw8nds.cxx:956
virtual void SectFootnoteEndnotePr() override
for footnote/endnote section properties
Definition: wrtw8sty.cxx:1323
virtual void CharFontSize(const SvxFontHeightItem &) override
Sfx item RES_CHRATR_FONTSIZE.
Definition: ww8atr.cxx:1428
virtual void Redline(const SwRedlineData *pRedline) override
Output redlining.
Definition: wrtw8nds.cxx:3327
sal_uIntPtr sal_uLong
virtual void CharPostureCJK(const SvxPostureItem &rHt) override
Sfx item RES_CHRATR_CJK_POSTURE.
Base class of all fields.
Definition: fldbas.hxx:280
virtual void OutlineNumbering(sal_uInt8 nLvl) override
Numbering rule and Id.
Definition: ww8atr.cxx:712
virtual void ParaHangingPunctuation(const SfxBoolItem &) override
Sfx item RES_PARATR_HANGINGPUNCTUATION.
Definition: ww8atr.cxx:3268
virtual void RunText(const OUString &rText, rtl_TextEncoding eCharSet=RTL_TEXTENCODING_UTF8) override
Output text.
Definition: ww8atr.cxx:1076
virtual void TableBidi(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo) override
Definition: wrtww8.cxx:2179
virtual void TextFootnote_Impl(const SwFormatFootnote &) override
Sfx item RES_TXTATR_FTN.
Definition: ww8atr.cxx:3457
virtual void TableCellRedline(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo) override
Definition: wrtww8.cxx:2195
virtual void CharEmphasisMark(const SvxEmphasisMarkItem &rHt) override
Sfx item RES_CHRATR_EMPHASIS_MARK.
Definition: ww8atr.cxx:1520
long SwTwips
Definition: swtypes.hxx:49
virtual void StartStyles() override
Start of the styles table.
Definition: wrtw8sty.cxx:650
virtual void FormatBox(const SvxBoxItem &) override
Sfx item RES_BOX.
Definition: ww8atr.cxx:4498
virtual void SectionBreak(sal_uInt8 nC, const WW8_SepInfo *pSectionInfo=nullptr) override
Write a section break msword::ColumnBreak or msword::PageBreak.
Definition: ww8atr.cxx:3886
virtual void SectionFormProtection(bool bProtected) override
Protection of forms.
Definition: wrtw8sty.cxx:1335
virtual void EndRunProperties(const SwRedlineData *pRedlineData) override
After we end outputting the attributes.
Definition: ww8atr.cxx:1055
sal_uInt16 nPOPosStdLen1
For output of styles.
virtual void CharWeightCJK(const SvxWeightItem &rHt) override
Sfx item RES_CHRATR_CJK_WEIGHT.
virtual void CharFontCTL(const SvxFontItem &) override
Sfx item RES_CHRATR_CTL_FONT.
Definition: ww8atr.cxx:1133
virtual void NumberingDefinition(sal_uInt16 nId, const SwNumRule &rRule) override
Definition of a numbering instance.
Definition: wrtw8num.cxx:214
virtual void SectionPageNumbering(sal_uInt16 nNumType, const ::boost::optional< sal_uInt16 > &oPageRestartNumber) override
The style of the page numbers.
Definition: wrtw8sty.cxx:1416
sal_uLong m_nStyleCountPos
For output of styles.
virtual void TableCanSplit(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo) override
Definition: wrtww8.cxx:2159
virtual void CharEscapement(const SvxEscapementItem &) override
Sfx item RES_CHRATR_ESCAPEMENT.
Definition: ww8atr.cxx:1382
virtual void TableVerticalCell(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo) override
Definition: wrtww8.cxx:2123
NONE
virtual void CharContour(const SvxContourItem &) override
Sfx item Sfx item RES_CHRATR_CONTOUR.
Definition: ww8atr.cxx:1168
virtual void SectionBreaks(const SwNode &) override
Called in order to output section breaks.
virtual void CharBackground(const SvxBrushItem &) override
Sfx item RES_CHRATR_BACKGROUND.
Definition: ww8atr.cxx:1582
virtual bool StartURL(const OUString &rUrl, const OUString &rTarget) override
Output URL start.
Definition: wrtw8nds.cxx:987
virtual void SectionLineNumbering(sal_uLong nRestartNo, const SwLineNumberInfo &rLnNumInfo) override
Numbering of the lines in the document.
Definition: wrtw8sty.cxx:1346
StyleType
eField
Definition: fields.hxx:26
virtual void FormatFillGradient(const XFillGradientItem &) override
Sfx item RES_FILL_GRADIENT.
Definition: ww8atr.cxx:4245
virtual void FormatVertOrientation(const SwFormatVertOrient &) override
Sfx item RES_VERT_ORIENT.
Definition: ww8atr.cxx:4102
virtual void TableDefaultBorders(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo) override
Definition: wrtww8.cxx:2537
virtual void ParaSplit(const SvxFormatSplitItem &) override
Sfx item RES_PARATR_SPLIT.
Definition: ww8atr.cxx:4857
virtual void CharTwoLines(const SvxTwoLinesItem &) override
Sfx item RES_CHRATR_TWO_LINES.
Definition: ww8atr.cxx:3482
virtual void FormatAnchor(const SwFormatAnchor &) override
Sfx item RES_ANCHOR.
Definition: ww8atr.cxx:4173
virtual void ParaGrabBag(const SfxGrabBagItem &) override
Sfx item RES_PARATR_GRABBAG.
Definition: ww8atr.cxx:4844
virtual void TableRowRedline(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo) override
Definition: wrtww8.cxx:2191
virtual void EndStyle() override
End of a style in the styles table.
Definition: wrtw8sty.cxx:390
virtual void SectionBiDi(bool bBiDi) override
Columns populated from right/numbers on the right side?
Definition: wrtw8sty.cxx:1410
virtual void DefaultStyle() override
Write default style.
Definition: wrtw8sty.cxx:571
Collects and outputs fonts.
Definition: wrtww8.hxx:299
virtual void TextVerticalAdjustment(const css::drawing::TextVerticalAdjust) override
Definition: wrtw8sty.cxx:1464
virtual void SetField(const SwField &rField, ww::eField eType, const OUString &rCmd) override
Definition: ww8atr.cxx:2606
WW8Export & m_rWW8Export
Reference to the export, where to get the data from.
Style of a layout element.
Definition: frmfmt.hxx:57
virtual void FormatDrop(const SwTextNode &rNode, const SwFormatDrop &rSwFormatDrop, sal_uInt16 nStyle, ww8::WW8TableNodeInfo::Pointer_t pTextNodeInfo, ww8::WW8TableNodeInfoInner::Pointer_t pTextNodeInfoInner) override
Definition: wrtw8nds.cxx:1766
virtual void FormatKeep(const SvxFormatKeepItem &) override
Sfx item RES_KEEP.
Definition: ww8atr.cxx:4654
SvxAdjust
virtual void StartRunProperties() override
Before we start outputting the attributes.
Definition: ww8atr.cxx:1007
virtual void EndParagraph(ww8::WW8TableNodeInfoInner::Pointer_t pTextNodeInfoInner) override
End of the paragraph.
Definition: ww8atr.cxx:981
virtual void TableOrientation(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner) override
Definition: wrtww8.cxx:2224
virtual void CharRotate(const SvxCharRotateItem &) override
Sfx item RES_CHRATR_ROTATE.
Definition: ww8atr.cxx:1498
FlyAnchors.
Definition: fmtanchr.hxx:34
virtual bool DropdownField(const SwField *pField) override
Definition: ww8atr.cxx:2640
virtual WW8Export & GetExport() override
Return the right export class.
virtual void CharLanguage(const SvxLanguageItem &) override
Sfx item RES_CHRATR_LANGUAGE.
Definition: ww8atr.cxx:1345
virtual void EndParagraphProperties(const SfxItemSet &, const SwRedlineData *, const SwRedlineData *, const SwRedlineData *) override
Called after we end outputting the attributes.
virtual void ParaNumRule_Impl(const SwTextNode *pTextNd, sal_Int32 nLvl, sal_Int32 nNumId) override
Sfx item RES_PARATR_NUMRULE.
Definition: ww8atr.cxx:3627
virtual void RefField(const SwField &rField, const OUString &rRef) override
Definition: ww8atr.cxx:2657
virtual void CharWeight(const SvxWeightItem &) override
Sfx item RES_CHRATR_WEIGHT.
Definition: ww8atr.cxx:1162
virtual void EndRuby(const SwTextNode &rNode, sal_Int32 nPos) override
Output ruby end.
Definition: wrtw8nds.cxx:859
virtual void CharHidden(const SvxCharHiddenItem &) override
Sfx item RES_CHRATR_HIDDEN.
Definition: ww8atr.cxx:1240
virtual void SectionTitlePage() override
Has different headers/footers for the title page.
Definition: wrtw8sty.cxx:1371
virtual void TableSpacing(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner) override
Definition: wrtww8.cxx:2286
virtual void WriteExpand(const SwField *pField) override
Write the expanded field.
Definition: ww8atr.cxx:2670
virtual void FormatTextGrid(const SwTextGridItem &) override
Sfx item RES_TEXTGRID.
Definition: ww8atr.cxx:3922
virtual void ParaForbiddenRules(const SfxBoolItem &) override
Sfx item RES_PARATR_FORBIDDEN_RULES.
Definition: ww8atr.cxx:3274
virtual void ParaTabStop(const SvxTabStopItem &rHt) override
Sfx item RES_PARATR_TABSTOP.
Definition: ww8atr.cxx:5104
virtual void CharBorder(const ::editeng::SvxBorderLine *pAllBorder, const sal_uInt16 nDist, const bool bShadow) override
Sfx item RES_CHRATR_BOX.
Definition: ww8atr.cxx:1245
void OutputWW8AttributeCTL(sal_uInt8 nId, bool bVal)
Output the bold etc. attributes, the Complex Text Layout version.
Definition: ww8atr.cxx:1112
virtual void TextCharFormat(const SwFormatCharFormat &) override
Sfx item RES_TXTATR_CHARFMT.
Definition: ww8atr.cxx:3469
virtual void CharGrabBag(const SfxGrabBagItem &) override
Sfx item RES_TXTATR_GRABBAG.
Definition: ww8atr.cxx:4848
void OutputWW8Attribute(sal_uInt8 nId, bool bVal)
Output the bold etc. attributes.
Definition: ww8atr.cxx:1105
virtual void FormatLineNumbering(const SwFormatLineNumber &) override
Sfx item RES_LINENUMBER.
Definition: ww8atr.cxx:4663
< purpose of derivation from SwClient: character style for displaying the numbers.
Definition: lineinfo.hxx:37
virtual void StartStyle(const OUString &rName, StyleType eType, sal_uInt16 nBase, sal_uInt16 nNext, sal_uInt16 nWwIdi, sal_uInt16 nId, bool bAutoUpdate) override
Start of a style in the styles table.
Definition: wrtw8sty.cxx:404
virtual void TextINetFormat(const SwFormatINetFormat &) override
Sfx item RES_TXTATR_INETFMT.
Definition: ww8atr.cxx:1600
virtual void CharColor(const SvxColorItem &) override
Sfx item Sfx item RES_CHRATR_COLOR.
Definition: ww8atr.cxx:1568
virtual void FormatLRSpace(const SvxLRSpaceItem &) override
Sfx item RES_LR_SPACE.
Definition: ww8atr.cxx:3980
virtual void CharFontSizeCJK(const SvxFontHeightItem &rHt) override
Sfx item RES_CHRATR_CJK_FONTSIZE.
SwTextNode is a paragraph in the document model.
Definition: ndtxt.hxx:79
virtual void WriteBookmarkInActParagraph(const OUString &rName, sal_Int32 nFirstRunPos, sal_Int32 nLastRunPos) override
Insert a bookmark inside the currently processed paragraph.
Definition: wrtw8nds.cxx:981
void TableCellBorders(ww8::WW8TableNodeInfoInner::Pointer_t const &pTableTextNodeInfoInner)
Definition: wrtww8.cxx:2564
virtual void CharCrossedOut(const SvxCrossedOutItem &rHt) override
Sfx item RES_CHRATR_CROSSEDOUT.
Definition: ww8atr.cxx:1199
virtual void CharKerning(const SvxKerningItem &) override
Sfx item RES_CHRATR_KERNING.
Definition: ww8atr.cxx:1178
virtual void HiddenField(const SwField &rField) override
Definition: ww8atr.cxx:2592
virtual void OnTOXEnding() override
Definition: ww8atr.cxx:1037
virtual void StartRuby(const SwTextNode &rNode, sal_Int32 nPos, const SwFormatRuby &rRuby) override
Output ruby start.
Definition: wrtw8nds.cxx:825
virtual void EndSection() override
End of the section properties.
unsigned char sal_uInt8
Make exporting a Writer Frame easy.
virtual void CharAnimatedText(const SvxBlinkItem &) override
Sfx item RES_CHRATR_BLINK.
Definition: ww8atr.cxx:1192
virtual void CharFont(const SvxFontItem &) override
Sfx item RES_CHRATR_FONT.
Definition: ww8atr.cxx:1122
virtual void CharLanguageCJK(const SvxLanguageItem &rHt) override
Sfx item RES_CHRATR_CJK_LANGUAGE.
virtual void StartParagraphProperties() override
Called before we start outputting the attributes.
virtual void FormatFrameDirection(const SvxFrameDirectionItem &) override
Sfx item RES_FRAMEDIR.
Definition: ww8atr.cxx:4801
virtual void TableNodeInfoInner(ww8::WW8TableNodeInfoInner::Pointer_t pNodeInfoInner) override
Definition: wrtww8.cxx:4147
virtual void ParaAdjust(const SvxAdjustItem &rHt) override
Sfx item RES_PARATR_ADJUST.
Definition: ww8atr.cxx:4736
WW8AttributeOutput(WW8Export &rWW8Export)
std::multimap< sal_Int32, OUString > m_aBookmarksOfParagraphStart
Bookmarks of the current paragraph.
virtual void StartParagraph(ww8::WW8TableNodeInfo::Pointer_t) override
Start of the paragraph.
std::shared_ptr< WW8TableNodeInfoInner > Pointer_t
virtual void StartSection() override
Start of the section properties.
Definition: wrtw8sty.cxx:1318
virtual void FormatFillStyle(const XFillStyleItem &) override
Sfx item RES_FILL_STYLE.
Definition: ww8atr.cxx:4223
virtual void ParaLineSpacing_Impl(short nSpace, short nMulti) override
Sfx item RES_PARATR_LINESPACING.
Definition: ww8atr.cxx:4673
virtual void ParaScriptSpace(const SfxBoolItem &) override
Sfx item RES_PARATR_SCRIPTSPACE.
Definition: ww8atr.cxx:3262
virtual void TableInfoCell(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo) override
Definition: wrtww8.cxx:2007
virtual void ParaSnapToGrid(const SvxParaGridItem &) override
Sfx item RES_PARATR_SNAPTOGRID.
Definition: ww8atr.cxx:3280
virtual void CharUnderline(const SvxUnderlineItem &) override
Sfx item RES_CHRATR_UNDERLINE.
Definition: ww8atr.cxx:1261
virtual void CharIdctHint(const SfxPoolItem &rHt) override
Sfx item RES_CHRATR_IdctHint.
Definition: ww8atr.cxx:1491
virtual void CharPostureCTL(const SvxPostureItem &) override
Sfx item RES_CHRATR_CTL_POSTURE.
Definition: ww8atr.cxx:1152
virtual void ParaWidows(const SvxWidowsItem &rHt) override
Sfx item RES_PARATR_WIDOWS.
Definition: ww8atr.cxx:4869
void GetWriter(const OUString &rFltName, const OUString &rBaseURL, WriterRef &xRet)
Return writer based on the name.
Definition: fltini.cxx:177
virtual void PostitField(const SwField *pField) override
Definition: ww8atr.cxx:2633
virtual void CharCaseMap(const SvxCaseMapItem &) override
Sfx item Sfx item RES_CHRATR_CASEMAP.
Definition: ww8atr.cxx:1218
virtual void SectionPageBorders(const SwFrameFormat *pFormat, const SwFrameFormat *pFirstPageFormat) override
Description of the page borders.
Definition: wrtw8sty.cxx:1378
virtual void CharPosture(const SvxPostureItem &) override
Sfx item RES_CHRATR_POSTURE.
Definition: ww8atr.cxx:1157
virtual void TableHeight(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo) override
Definition: wrtww8.cxx:2199
virtual void CharFontSizeCTL(const SvxFontHeightItem &rHt) override
Sfx item RES_CHRATR_CTL_FONTSIZE.
If SwFormatDrop is a Client, it is the CharFormat that describes the font for the DropCaps...
Definition: paratr.hxx:50
virtual void FormatSurround(const SwFormatSurround &) override
Sfx item RES_SURROUND.
Definition: ww8atr.cxx:4091
virtual void CharAutoKern(const SvxAutoKernItem &) override
Sfx item RES_CHRATR_AUTOKERN.
Definition: ww8atr.cxx:1185
virtual void CharFontCJK(const SvxFontItem &) override
Sfx item RES_CHRATR_CJK_FONT.
Definition: ww8atr.cxx:1140
void OutputFlyFrame_Impl(const ww8::Frame &rFormat, const Point &rNdTopLeft) override
Output frames - the implementation.
Definition: wrtw8nds.cxx:3218
virtual bool EndURL(bool) override
Output URL end.
Definition: wrtw8nds.cxx:1139
std::shared_ptr< WW8TableNodeInfo > Pointer_t
virtual void StartRun(const SwRedlineData *pRedlineData, sal_Int32 nPos, bool bSingleEmptyRun=false) override
Start of the text run.
Definition: ww8atr.cxx:1013
virtual void EmptyParagraph() override
Empty paragraph.
Definition: wrtw8nds.cxx:3032
virtual void SectionType(sal_uInt8 nBreakCode) override
The type of breaking.
Definition: wrtw8sty.cxx:1435
virtual void CharLanguageCTL(const SvxLanguageItem &rHt) override
Sfx item RES_CHRATR_CTL_LANGUAGE.
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.
Definition: wrtw8num.cxx:303
virtual void TableRowEnd(sal_uInt32 nDepth) override
Definition: ww8atr.cxx:3760
virtual void FormatULSpace(const SvxULSpaceItem &rHt) override
Sfx item RES_UL_SPACE.
Definition: ww8atr.cxx:4029
virtual void FieldVanish(const OUString &rText, ww::eField eType) override
Definition: wrtw8nds.cxx:1185
virtual bool PlaceholderField(const SwField *pField) override
Definition: ww8atr.cxx:2652
Base class of the Writer document model elements.
Definition: node.hxx:79