LibreOffice Module sw (master) 1
attributeoutputbase.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_ATTRIBUTEOUTPUTBASE_HXX
21#define INCLUDED_SW_SOURCE_FILTER_WW8_ATTRIBUTEOUTPUTBASE_HXX
22
23#include "WW8TableInfo.hxx"
24#include "wrtww8.hxx"
25
26#include <rtl/textenc.h>
27#include <editeng/svxenum.hxx>
28#include <tools/solar.h>
29#include <optional>
30
31#include <com/sun/star/drawing/TextVerticalAdjust.hpp>
32#include <swtypes.hxx>
33#include <fldbas.hxx>
34#include <utility>
35
36class Point;
37class SvxCaseMapItem;
38class SvxColorItem;
39class SvxContourItem;
42class SvxFontItem;
44class SvxKerningItem;
45class SvxLanguageItem;
46class SvxPostureItem;
47class SvxShadowedItem;
49class SvxWeightItem;
50class SvxAutoKernItem;
51class SvxBlinkItem;
52class SvxBrushItem;
53class XFillStyleItem;
55class SvxFontItem;
57class SvxLanguageItem;
58class SvxPostureItem;
59class SvxWeightItem;
60class SvxFontItem;
62class SvxLanguageItem;
63class SvxPostureItem;
64class SvxWeightItem;
67class SvxTwoLinesItem;
71class SvxBoxItem;
74class SwFormatField;
75class SwFormatFlyCnt;
78class SvxAdjustItem;
80class SvxWidowsItem;
81class SvxTabStopItem;
83class SwNumRuleItem;
84class SfxBoolItem;
85class SfxPoolItem;
86class SfxItemSet;
88class SvxParaGridItem;
90class SvxPaperBinItem;
91class SvxLRSpaceItem;
92class SvxULSpaceItem;
98class SwFormatAnchor;
99class SvxBrushItem;
100class SvxBoxItem;
101class SwFormatCol;
103class SwTextGridItem;
106class SfxGrabBagItem;
107class SfxUInt16Item;
108class SwFormatRuby;
109class SwTextNode;
110class SwTOXMark;
111class SwRedlineData;
112class SwSection;
113class SwFormatDrop;
114class SwFrameFormat;
115class SwNumFormat;
116class SwFormat;
117struct WW8_SepInfo;
118class SwLineNumberInfo;
119class SwNumRule;
120class wwFont;
121
122namespace editeng { class SvxBorderLine; }
123
124namespace rtl { class OUString; }
125
126class MSWordExportBase;
127
128namespace ww8 { class Frame; }
129
130namespace msword {
132 const sal_uInt8 PageBreak = 0xC;
133}
134
137{
142
144{
145private:
146 OUString m_sBaseURL; // To be used in ConvertURL
147
148 OUString ConvertURL( const OUString& rUrl, bool bAbsoluteOut );
149
150public:
152 virtual void RTLAndCJKState( bool bIsRTL, sal_uInt16 nScript ) = 0;
153
155 virtual sal_Int32 StartParagraph( ww8::WW8TableNodeInfo::Pointer_t pTextNodeInfo, bool bGenerateParaId ) = 0;
156
158 virtual void EndParagraph( ww8::WW8TableNodeInfoInner::Pointer_t pTextNodeInfoInner ) = 0;
159
161 virtual void SectionBreaks(const SwNode& rNode) = 0;
162
164 virtual void StartParagraphProperties() = 0;
165
167 virtual void EndParagraphProperties(const SfxItemSet& rParagraphMarkerProperties, const SwRedlineData* pRedlineData, const SwRedlineData* pRedlineParagraphMarkerDeleted, const SwRedlineData* pRedlineParagraphMarkerInserted) = 0;
168
170 virtual void EmptyParagraph() = 0;
171
173 virtual void StartRun( const SwRedlineData* pRedlineData, sal_Int32 nPos, bool bSingleEmptyRun = false ) = 0;
174
176 virtual void EndRun( const SwTextNode* pNode, sal_Int32 nPos, sal_Int32 nLen, bool bLastRun = false ) = 0;
177
179 virtual void StartRunProperties() = 0;
180
182 virtual void EndRunProperties( const SwRedlineData* pRedlineData ) = 0;
183
185 virtual bool FootnoteEndnoteRefTag() { return false; };
186
188 virtual void SectFootnoteEndnotePr() {};
189
191 virtual void WritePostitFieldReference() {};
192
194 virtual void RunText( const OUString& rText, rtl_TextEncoding eCharSet = RTL_TEXTENCODING_UTF8 ) = 0;
195
197 virtual void RawText(const OUString& rText, rtl_TextEncoding eCharSet) = 0;
198
200 virtual void StartRuby( const SwTextNode& rNode, sal_Int32 nPos, const SwFormatRuby& rRuby ) = 0;
201
203 virtual void EndRuby( const SwTextNode& rNode, sal_Int32 nPos ) = 0;
204
206 virtual bool StartURL( const OUString& rUrl, const OUString& rTarget ) = 0;
207
209 virtual bool EndURL(bool isAtEndOfParagraph) = 0;
210
211 virtual void FieldVanish(const OUString& rText, ww::eField eType, OUString const* pBookmarkName) = 0;
212
214 void GenerateBookmarksForSequenceField(const SwTextNode& rNode, SwWW8AttrIter& rAttrIter);
215
216 void StartTOX( const SwSection& rSect );
217
218 void EndTOX( const SwSection& rSect,bool bCareEnd=true );
219
220 virtual void OnTOXEnding() {}
221
222 void TOXMark( const SwTextNode& rNode, const SwTOXMark& rAttr );
223
225 virtual void Redline( const SwRedlineData* pRedline ) = 0;
226
227 virtual void FormatDrop( const SwTextNode& rNode, const SwFormatDrop& rSwFormatDrop, sal_uInt16 nStyle, ww8::WW8TableNodeInfo::Pointer_t pTextNodeInfo, ww8::WW8TableNodeInfoInner::Pointer_t pTextNodeInfoInner ) = 0;
228
232 virtual void OutputFKP(bool /*bForce*/) {}
233
235 virtual void ParagraphStyle( sal_uInt16 nStyle ) = 0;
236
237 virtual void TableInfoCell( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) = 0;
238
239 virtual void TableInfoRow( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) = 0;
240
241 virtual void TableDefinition( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) = 0;
242
243 virtual void TableDefaultBorders( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) = 0;
244
245 virtual void TableBackgrounds( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) = 0;
246
247 virtual void TableRowRedline( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) = 0;
248
249 virtual void TableCellRedline( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) = 0;
250
251 virtual void TableHeight( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) = 0;
252
253 virtual void TableCanSplit( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) = 0;
254
255 virtual void TableBidi( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) = 0;
256
257 virtual void TableVerticalCell( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) = 0;
258
260
261 virtual void TableOrientation( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner ) = 0;
262
263 virtual void TableSpacing( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner ) = 0;
264
265 virtual void TableRowEnd( sal_uInt32 nDepth ) = 0;
266
268 virtual void StartStyles() = 0;
269
271 virtual void EndStyles( sal_uInt16 nNumberOfStyles ) = 0;
272
274 virtual void DefaultStyle() = 0;
275
277 virtual void StartStyle( const OUString& rName, StyleType eType,
278 sal_uInt16 nBase, sal_uInt16 nNext, sal_uInt16 nLink, sal_uInt16 nWwId, sal_uInt16 nId,
279 bool bAutoUpdate ) = 0;
280
282 virtual void EndStyle() = 0;
283
285 virtual void StartStyleProperties( bool bParProp, sal_uInt16 nStyle ) = 0;
286
288 virtual void EndStyleProperties( bool bParProp ) = 0;
289
291 virtual void OutlineNumbering(sal_uInt8 nLvl) = 0;
292
295 virtual void PageBreakBefore( bool bBreak ) = 0;
296
300 virtual void SectionBreak( sal_uInt8 nC, bool bBreakAfter, const WW8_SepInfo* pSectionInfo = nullptr, bool bExtraPageBreak = false ) = 0;
301
302 // preserve page vertical alignment
303 virtual void TextVerticalAdjustment( const css::drawing::TextVerticalAdjust) {};
304
306 virtual void StartSection() = 0;
307
309 virtual void EndSection() = 0;
310
312 virtual void SectionFormProtection( bool bProtected ) = 0;
313
315 virtual void SectionLineNumbering( sal_uLong nRestartNo, const SwLineNumberInfo& rLnNumInfo ) = 0;
316
318 virtual void SectionTitlePage() = 0;
319
321 virtual void SetStateOfFlyFrame( FlyProcessingState /*nStateOfFlyFrame*/ ){};
323 virtual void SetAnchorIsLinkedToNode( bool /*bAnchorLinkedToNode*/){};
324
326 virtual bool IsFlyProcessingPostponed(){ return false; };
327
329 virtual void ResetFlyProcessingFlag(){};
330
332 virtual void SectionPageBorders( const SwFrameFormat* pFormat, const SwFrameFormat* pFirstPageFormat ) = 0;
333
335 virtual void SectionBiDi( bool bBiDi ) = 0;
336
339 virtual void SectionPageNumbering( sal_uInt16 nNumType, const ::std::optional<sal_uInt16>& oPageRestartNumber ) = 0;
340
342 virtual void SectionType( sal_uInt8 nBreakCode ) = 0;
343
345 virtual void NumberingDefinition( sal_uInt16 nId, const SwNumRule &rRule ) = 0;
346
348 virtual void OverrideNumberingDefinition(SwNumRule const&, sal_uInt16 /*nNum*/, sal_uInt16 /*nAbstractNum*/,
349 const std::map< size_t, size_t > & /*rLevelOverrides*/)
350 { assert(false); } // TODO implement for WW8/RTF
351
353 virtual void StartAbstractNumbering( sal_uInt16 /*nId*/ ) {}
354
356 virtual void EndAbstractNumbering() {}
357
359 virtual void NumberingLevel( sal_uInt8 nLevel,
360 sal_uInt16 nStart,
361 sal_uInt16 nNumberingType,
362 SvxAdjust eAdjust,
363 const sal_uInt8 *pNumLvlPos,
364 sal_uInt8 nFollow,
365 const wwFont *pFont,
366 const SfxItemSet *pOutSet,
367 sal_Int16 nIndentAt,
368 sal_Int16 nFirstLineIndex,
369 sal_Int16 nListTabPos,
370 const OUString &rNumberingString,
371 const SvxBrushItem* pBrush) = 0; // #i120928 export graphic of bullet
372
373protected:
374
375 static void GetNumberPara( OUString& rStr, const SwField& rField );
376
378 virtual void OutputFlyFrame_Impl( const ww8::Frame& rFormat, const Point& rNdTopLeft ) = 0;
379
381 virtual void CharCaseMap( const SvxCaseMapItem& ) = 0;
382
384 virtual void CharColor( const SvxColorItem& ) = 0;
385
387 virtual void CharContour( const SvxContourItem& ) = 0;
388
390 virtual void CharCrossedOut( const SvxCrossedOutItem& ) = 0;
391
393 virtual void CharEscapement( const SvxEscapementItem& ) = 0;
394
396 virtual void CharFont( const SvxFontItem& ) = 0;
397
399 virtual void CharFontSize( const SvxFontHeightItem& ) = 0;
400
402 virtual void CharKerning( const SvxKerningItem& ) = 0;
403
405 virtual void CharLanguage( const SvxLanguageItem& ) = 0;
406
408 virtual void CharPosture( const SvxPostureItem& ) = 0;
409
411 virtual void CharShadow( const SvxShadowedItem& ) = 0;
412
414 virtual void CharUnderline( const SvxUnderlineItem& ) = 0;
415
417 virtual void CharWeight( const SvxWeightItem& ) = 0;
418
420 virtual void CharAutoKern( const SvxAutoKernItem& ) = 0;
421
423 virtual void CharAnimatedText( const SvxBlinkItem& ) = 0;
424
426 void CharBackgroundBase( const SvxBrushItem& );
427 virtual void CharBackground( const SvxBrushItem& ) = 0;
428
430 virtual void CharFontCJK( const SvxFontItem& ) = 0;
431
433 virtual void CharFontSizeCJK( const SvxFontHeightItem& ) = 0;
434
436 virtual void CharLanguageCJK( const SvxLanguageItem& ) = 0;
437
439 virtual void CharPostureCJK( const SvxPostureItem& ) = 0;
440
442 virtual void CharWeightCJK( const SvxWeightItem& ) = 0;
443
445 virtual void CharFontCTL( const SvxFontItem& ) = 0;
446
448 virtual void CharFontSizeCTL( const SvxFontHeightItem& ) = 0;
449
451 virtual void CharLanguageCTL( const SvxLanguageItem& ) = 0;
452
454 virtual void CharPostureCTL( const SvxPostureItem& ) = 0;
455
457 virtual void CharWeightCTL( const SvxWeightItem& ) = 0;
458
460 virtual void CharBidiRTL( const SfxPoolItem& ) = 0;
461
463 virtual void CharIdctHint( const SfxPoolItem& ) = 0;
464
466 virtual void CharRotate( const SvxCharRotateItem& ) = 0;
467
469 virtual void CharEmphasisMark( const SvxEmphasisMarkItem& ) = 0;
470
472 virtual void CharTwoLines( const SvxTwoLinesItem& ) = 0;
473
475 virtual void CharScaleWidth( const SvxCharScaleWidthItem& ) = 0;
476
478 virtual void CharRelief( const SvxCharReliefItem& ) = 0;
479
481 virtual void CharHidden( const SvxCharHiddenItem& ) = 0;
482
484 void FormatCharBorder( const SvxBoxItem& rBox );
485 virtual void CharBorder( const ::editeng::SvxBorderLine* pAllBorder, const sal_uInt16 nDist, const bool bShadow ) = 0;
486
488 virtual void CharHighlight( const SvxBrushItem& ) = 0;
489
491 virtual void TextINetFormat( const SwFormatINetFormat& ) = 0;
492
494 virtual void TextCharFormat( const SwFormatCharFormat& ) = 0;
495
497 void TextField( const SwFormatField& );
498
500 void TextFlyContent( const SwFormatFlyCnt& );
501
506 void TextFootnote( const SwFormatFootnote& );
507
509 virtual void TextFootnote_Impl( const SwFormatFootnote& ) = 0;
510
512 virtual void TextLineBreak(const SwFormatLineBreak&) = 0;
513
515 void ParaLineSpacing( const SvxLineSpacingItem& );
516
518 virtual void ParaLineSpacing_Impl( short nSpace, short nMulti ) = 0;
519
521 virtual void ParaAdjust( const SvxAdjustItem& ) = 0;
522
524 virtual void ParaSplit( const SvxFormatSplitItem& ) = 0;
525
527 virtual void ParaWidows( const SvxWidowsItem& ) = 0;
528
530 virtual void ParaTabStop( const SvxTabStopItem& ) = 0;
531
533 virtual void ParaHyphenZone( const SvxHyphenZoneItem& ) = 0;
534
536 void ParaNumRule( const SwNumRuleItem& );
537
539 virtual void ParaNumRule_Impl( const SwTextNode *pTextNd, sal_Int32 nLvl, sal_Int32 nNumId ) = 0;
540
542 virtual void ParaScriptSpace( const SfxBoolItem& ) = 0;
543
545 virtual void ParaHangingPunctuation( const SfxBoolItem& ) = 0;
546
548 virtual void ParaForbiddenRules( const SfxBoolItem& ) = 0;
549
551 virtual void ParaVerticalAlign( const SvxParaVertAlignItem& ) = 0;
552
554 virtual void ParaSnapToGrid( const SvxParaGridItem& ) = 0;
555
557 virtual void FormatFrameSize( const SwFormatFrameSize& ) = 0;
558
560 virtual void FormatPaperBin( const SvxPaperBinItem& ) = 0;
561
563 virtual void FormatLRSpace( const SvxLRSpaceItem& ) = 0;
564
566 virtual void FormatULSpace( const SvxULSpaceItem& ) = 0;
567
570
572 void FormatBreak( const SvxFormatBreakItem& );
573
575 virtual void FormatSurround( const SwFormatSurround& ) = 0;
576
578 virtual void FormatVertOrientation( const SwFormatVertOrient& ) = 0;
579
581 virtual void FormatHorizOrientation( const SwFormatHoriOrient& ) = 0;
582
584 virtual void FormatAnchor( const SwFormatAnchor& ) = 0;
585
587 virtual void FormatBackground( const SvxBrushItem& ) = 0;
588
590 virtual void FormatFillStyle( const XFillStyleItem& ) = 0;
591
593 virtual void FormatFillGradient( const XFillGradientItem& ) = 0;
594
596 virtual void FormatBox( const SvxBoxItem& ) = 0;
597
599 void FormatColumns( const SwFormatCol& );
600
601 virtual void FormatColumns_Impl( sal_uInt16 nCols, const SwFormatCol & rCol, bool bEven, SwTwips nPageSize ) = 0;
602
604 virtual void FormatKeep( const SvxFormatKeepItem& ) = 0;
605
607 sal_uInt32 GridCharacterPitch( const SwTextGridItem& rGrid ) const;
608
610 virtual void FormatTextGrid( const SwTextGridItem& ) = 0;
611
613 virtual void FormatLineNumbering( const SwFormatLineNumber& ) = 0;
614
616 virtual void FormatFrameDirection( const SvxFrameDirectionItem& ) = 0;
617
619 virtual void ParaGrabBag( const SfxGrabBagItem& ) = 0;
620
622 virtual void CharGrabBag( const SfxGrabBagItem& ) = 0;
623
625 void ParaOutlineLevelBase( const SfxUInt16Item& rItem );
626 virtual void ParaOutlineLevel( const SfxUInt16Item& ) = 0;
627
629 virtual void WriteExpand( const SwField* pField ) = 0;
630
631 virtual void RefField( const SwField& rField, const OUString& rRef ) = 0;
632 virtual void HiddenField( const SwField& rField ) = 0;
633 virtual void SetField( const SwField& rField, ww::eField eType, const OUString& rCmd ) = 0;
634 virtual void PostitField( const SwField* pField ) = 0;
635 virtual bool DropdownField( const SwField* pField ) = 0;
636 virtual bool PlaceholderField( const SwField* pField ) = 0;
637
638 virtual bool AnalyzeURL( const OUString& rUrl, const OUString& rTarget, OUString* pLinkURL, OUString* pMark );
639
641 virtual void WriteBookmarkInActParagraph( const OUString& rName, sal_Int32 nFirstRunPos, sal_Int32 nLastRunPos ) = 0;
642
643 ww8::GridColsPtr GetGridCols( ww8::WW8TableNodeInfoInner::Pointer_t const & pTableTextNodeInfoInner );
645
647 virtual void SectionRtlGutter(const SfxBoolItem& rRtlGutter) = 0;
648
649public:
650 AttributeOutputBase(OUString sBaseURL)
651 : m_sBaseURL(std::move(sBaseURL))
652 {
653 }
655
658
660 const MSWordExportBase& GetExport() const { return const_cast< AttributeOutputBase* >( this )->GetExport(); }
661
663 void OutputItem( const SfxPoolItem& rHt );
664
666 void OutputStyleItemSet( const SfxItemSet& rSet, bool bTestForDefault );
667
669 void OutputFlyFrame( const ww8::Frame& rFormat );
670
672 ( ww8::WW8TableNodeInfoInner const * pTableTextNodeInfoInner,
673 tools::Long& rPageSize, bool& rRelBoxSize );
674
675 virtual bool MaybeOutputBrushItem(SfxItemSet const&) { return false; }
676
678 virtual void BulletDefinition(int /*nId*/, const Graphic& /*rGraphic*/, Size /*aSize*/) {}
679
680 // Returns whether or not the 'SwTextNode' has a paragraph marker inserted \ deleted (using 'track changes')
681 const SwRedlineData* GetParagraphMarkerRedline( const SwTextNode& rNode, RedlineType aRedlineType );
682};
683
685{
686 sal_Int32 m_nJC;
688 sal_uInt32 m_nRubyHeight;
689 sal_uInt32 m_nBaseHeight;
691
692public:
693 WW8Ruby(const SwTextNode& rNode, const SwFormatRuby& rRuby, const MSWordExportBase& rExport );
694 sal_Int32 GetJC() const { return m_nJC; }
695 char GetDirective() const { return m_cDirective; }
696 sal_uInt32 GetRubyHeight() const { return m_nRubyHeight; }
697 sal_uInt32 GetBaseHeight() const { return m_nBaseHeight; }
698 OUString const & GetFontFamily() const { return m_sFontFamily; }
699};
700#endif // INCLUDED_SW_SOURCE_FILTER_WW8_ATTRIBUTEOUTPUTBASE_HXX
701
702/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
@ STYLE_TYPE_CHAR
@ STYLE_TYPE_PARA
@ STYLE_TYPE_LIST
virtual void RawText(const OUString &rText, rtl_TextEncoding eCharSet)=0
Output text (without markup).
virtual void StartRuby(const SwTextNode &rNode, sal_Int32 nPos, const SwFormatRuby &rRuby)=0
Output ruby start.
virtual void FormatKeep(const SvxFormatKeepItem &)=0
Sfx item RES_KEEP.
virtual void FieldVanish(const OUString &rText, ww::eField eType, OUString const *pBookmarkName)=0
void OutputFlyFrame(const ww8::Frame &rFormat)
Output frames.
Definition: wrtw8nds.cxx:3483
virtual void ParaTabStop(const SvxTabStopItem &)=0
Sfx item RES_PARATR_TABSTOP.
virtual void DefaultStyle()=0
Write default style.
virtual void NumberingDefinition(sal_uInt16 nId, const SwNumRule &rRule)=0
Definition of a numbering instance.
virtual void ParagraphStyle(sal_uInt16 nStyle)=0
Output style.
virtual void EndSection()=0
End of the section properties.
virtual void CharCaseMap(const SvxCaseMapItem &)=0
Sfx item Sfx item RES_CHRATR_CASEMAP.
virtual void StartStyle(const OUString &rName, StyleType eType, sal_uInt16 nBase, sal_uInt16 nNext, sal_uInt16 nLink, sal_uInt16 nWwId, sal_uInt16 nId, bool bAutoUpdate)=0
Start of a style in the styles table.
virtual void FormatFillStyle(const XFillStyleItem &)=0
Sfx item RES_FILL_STYLE.
virtual void TextLineBreak(const SwFormatLineBreak &)=0
RES_TXTATR_LINEBREAK, i.e. clearing breaks.
virtual void SectionPageNumbering(sal_uInt16 nNumType, const ::std::optional< sal_uInt16 > &oPageRestartNumber)=0
The style of the page numbers.
virtual void TextINetFormat(const SwFormatINetFormat &)=0
Sfx item RES_TXTATR_INETFMT.
virtual void CharWeightCTL(const SvxWeightItem &)=0
Sfx item RES_CHRATR_CTL_WEIGHT.
virtual void ParaHyphenZone(const SvxHyphenZoneItem &)=0
Sfx item RES_PARATR_HYPHENZONE.
virtual void SetStateOfFlyFrame(FlyProcessingState)
Set the state of the Fly at current position.
virtual void WriteExpand(const SwField *pField)=0
Write the expanded field.
virtual void EndStyles(sal_uInt16 nNumberOfStyles)=0
End of the styles table.
virtual void ParaSplit(const SvxFormatSplitItem &)=0
Sfx item RES_PARATR_SPLIT.
virtual void CharBorder(const ::editeng::SvxBorderLine *pAllBorder, const sal_uInt16 nDist, const bool bShadow)=0
virtual void SectFootnoteEndnotePr()
for footnote/endnote section properties
virtual void SectionBiDi(bool bBiDi)=0
Columns populated from right/numbers on the right side?
virtual void CharFontSize(const SvxFontHeightItem &)=0
Sfx item RES_CHRATR_FONTSIZE.
virtual void EndParagraphProperties(const SfxItemSet &rParagraphMarkerProperties, const SwRedlineData *pRedlineData, const SwRedlineData *pRedlineParagraphMarkerDeleted, const SwRedlineData *pRedlineParagraphMarkerInserted)=0
Called after we end outputting the attributes.
virtual void TableBidi(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo)=0
virtual void CharFontSizeCJK(const SvxFontHeightItem &)=0
Sfx item RES_CHRATR_CJK_FONTSIZE.
virtual void TableCellRedline(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo)=0
virtual void EmptyParagraph()=0
Empty paragraph.
virtual bool MaybeOutputBrushItem(SfxItemSet const &)
virtual void CharFontSizeCTL(const SvxFontHeightItem &)=0
Sfx item RES_CHRATR_CTL_FONTSIZE.
void GenerateBookmarksForSequenceField(const SwTextNode &rNode, SwWW8AttrIter &rAttrIter)
MSO uses bookmarks to reference sequence fields, so we need to generate these additional bookmarks du...
Definition: ww8atr.cxx:2082
virtual void TableSpacing(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner)=0
virtual void CharKerning(const SvxKerningItem &)=0
Sfx item RES_CHRATR_KERNING.
virtual void StartStyleProperties(bool bParProp, sal_uInt16 nStyle)=0
Start of (paragraph or run) properties of a style.
virtual sal_Int32 StartParagraph(ww8::WW8TableNodeInfo::Pointer_t pTextNodeInfo, bool bGenerateParaId)=0
Start of the paragraph.
void ParaNumRule(const SwNumRuleItem &)
Sfx item RES_PARATR_NUMRULE.
Definition: ww8atr.cxx:3667
virtual void CharBidiRTL(const SfxPoolItem &)=0
Sfx item RES_CHRATR_BidiRTL.
virtual void CharPostureCJK(const SvxPostureItem &)=0
Sfx item RES_CHRATR_CJK_POSTURE.
virtual void FormatSurround(const SwFormatSurround &)=0
Sfx item RES_SURROUND.
virtual void ParaAdjust(const SvxAdjustItem &)=0
Sfx item RES_PARATR_ADJUST.
void TextFlyContent(const SwFormatFlyCnt &)
Sfx item RES_TXTATR_FLYCNT.
Definition: ww8atr.cxx:3358
virtual void Redline(const SwRedlineData *pRedline)=0
Output redlining.
virtual void EndParagraph(ww8::WW8TableNodeInfoInner::Pointer_t pTextNodeInfoInner)=0
End of the paragraph.
void TextField(const SwFormatField &)
Sfx item RES_TXTATR_FIELD, RES_TXTATR_ANNOTATION and RES_TXTATR_INPUTFIELD.
Definition: ww8atr.cxx:2831
virtual void SectionPageBorders(const SwFrameFormat *pFormat, const SwFrameFormat *pFirstPageFormat)=0
Description of the page borders.
virtual bool EndURL(bool isAtEndOfParagraph)=0
Output URL end.
virtual void BulletDefinition(int, const Graphic &, Size)
Exports the definition (image, size) of a single numbering picture bullet.
virtual void FormatBackground(const SvxBrushItem &)=0
Sfx item RES_BACKGROUND.
virtual void TableInfoRow(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo)=0
virtual void ParaOutlineLevel(const SfxUInt16Item &)=0
virtual void CharFontCTL(const SvxFontItem &)=0
Sfx item RES_CHRATR_CTL_FONT.
void CharBackgroundBase(const SvxBrushItem &)
Sfx item RES_CHRATR_BACKGROUND.
Definition: ww8atr.cxx:5739
virtual void RunText(const OUString &rText, rtl_TextEncoding eCharSet=RTL_TEXTENCODING_UTF8)=0
Output text (inside a run).
virtual void SetAnchorIsLinkedToNode(bool)
If the node has an anchor linked.
virtual void TableDefinition(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo)=0
virtual void FormatTextGrid(const SwTextGridItem &)=0
Sfx item RES_TEXTGRID.
virtual void ParaScriptSpace(const SfxBoolItem &)=0
Sfx item RES_PARATR_SCRIPTSPACE.
void FormatPageDescription(const SwFormatPageDesc &)
Sfx item RES_PAGEDESC.
Definition: ww8atr.cxx:3929
virtual void CharLanguage(const SvxLanguageItem &)=0
Sfx item RES_CHRATR_LANGUAGE.
virtual bool FootnoteEndnoteRefTag()
docx requires footnoteRef/endnoteRef tag at the beginning of each of them
virtual void SetField(const SwField &rField, ww::eField eType, const OUString &rCmd)=0
virtual void EndStyleProperties(bool bParProp)=0
End of (paragraph or run) properties of a style.
virtual void ParaVerticalAlign(const SvxParaVertAlignItem &)=0
Sfx item RES_PARATR_VERTALIGN.
virtual void FormatPaperBin(const SvxPaperBinItem &)=0
Sfx item RES_PAPER_BIN.
virtual void CharWeight(const SvxWeightItem &)=0
Sfx item RES_CHRATR_WEIGHT.
virtual void SectionFormProtection(bool bProtected)=0
Protection of forms.
void TOXMark(const SwTextNode &rNode, const SwTOXMark &rAttr)
Definition: wrtw8nds.cxx:1289
virtual bool IsFlyProcessingPostponed()
Is processing of fly postponed ?
virtual void CharColor(const SvxColorItem &)=0
Sfx item Sfx item RES_CHRATR_COLOR.
virtual bool DropdownField(const SwField *pField)=0
virtual void TableDefaultBorders(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo)=0
virtual void SectionType(sal_uInt8 nBreakCode)=0
The type of breaking.
void OutputStyleItemSet(const SfxItemSet &rSet, bool bTestForDefault)
Use OutputItem() on an item set - for styles.
Definition: ww8atr.cxx:5629
virtual void FormatColumns_Impl(sal_uInt16 nCols, const SwFormatCol &rCol, bool bEven, SwTwips nPageSize)=0
void EndTOX(const SwSection &rSect, bool bCareEnd=true)
Definition: ww8atr.cxx:2584
virtual void CharAnimatedText(const SvxBlinkItem &)=0
Sfx item RES_CHRATR_BLINK.
virtual void PageBreakBefore(bool bBreak)=0
Page break As a paragraph property - the paragraph should be on the next page.
virtual void WriteBookmarkInActParagraph(const OUString &rName, sal_Int32 nFirstRunPos, sal_Int32 nLastRunPos)=0
Insert a bookmark inside the currently processed paragraph.
virtual void EndRun(const SwTextNode *pNode, sal_Int32 nPos, sal_Int32 nLen, bool bLastRun=false)=0
End of the text run.
virtual bool StartURL(const OUString &rUrl, const OUString &rTarget)=0
Output URL start.
virtual void SectionLineNumbering(sal_uLong nRestartNo, const SwLineNumberInfo &rLnNumInfo)=0
Numbering of the lines in the document.
virtual void ParaHangingPunctuation(const SfxBoolItem &)=0
Sfx item RES_PARATR_HANGINGPUNCTUATION.
virtual void ResetFlyProcessingFlag()
Reset the flag for FlyProcessing.
virtual void SectionTitlePage()=0
Has different headers/footers for the title page.
virtual void CharWeightCJK(const SvxWeightItem &)=0
Sfx item RES_CHRATR_CJK_WEIGHT.
virtual void StartStyles()=0
Start of the styles table.
virtual void FormatFrameDirection(const SvxFrameDirectionItem &)=0
Sfx item RES_FRAMEDIR.
virtual void CharRotate(const SvxCharRotateItem &)=0
Sfx item RES_CHRATR_ROTATE.
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)=0
All the numbering level information.
virtual void ParaForbiddenRules(const SfxBoolItem &)=0
Sfx item RES_PARATR_FORBIDDEN_RULES.
virtual void FormatAnchor(const SwFormatAnchor &)=0
Sfx item RES_ANCHOR.
virtual bool AnalyzeURL(const OUString &rUrl, const OUString &rTarget, OUString *pLinkURL, OUString *pMark)
Definition: wrtw8nds.cxx:959
virtual void TableInfoCell(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo)=0
void FormatBreak(const SvxFormatBreakItem &)
Sfx item RES_BREAK.
Definition: ww8atr.cxx:3952
virtual void ParaWidows(const SvxWidowsItem &)=0
Sfx item RES_PARATR_WIDOWS.
virtual void StartSection()=0
Start of the section properties.
virtual void FormatFillGradient(const XFillGradientItem &)=0
Sfx item RES_FILL_GRADIENT.
virtual void StartRunProperties()=0
Called before we start outputting the attributes.
virtual void RTLAndCJKState(bool bIsRTL, sal_uInt16 nScript)=0
Export the state of RTL/CJK.
virtual void FormatDrop(const SwTextNode &rNode, const SwFormatDrop &rSwFormatDrop, sal_uInt16 nStyle, ww8::WW8TableNodeInfo::Pointer_t pTextNodeInfo, ww8::WW8TableNodeInfoInner::Pointer_t pTextNodeInfoInner)=0
virtual void CharIdctHint(const SfxPoolItem &)=0
Sfx item RES_CHRATR_IdctHint.
virtual void StartParagraphProperties()=0
Called before we start outputting the attributes.
virtual void TextCharFormat(const SwFormatCharFormat &)=0
Sfx item RES_TXTATR_CHARFMT.
virtual void CharShadow(const SvxShadowedItem &)=0
Sfx item RES_CHRATR_SHADOWED.
virtual void CharRelief(const SvxCharReliefItem &)=0
Sfx item RES_CHRATR_RELIEF.
virtual bool PlaceholderField(const SwField *pField)=0
virtual void RefField(const SwField &rField, const OUString &rRef)=0
virtual void CharUnderline(const SvxUnderlineItem &)=0
Sfx item RES_CHRATR_UNDERLINE.
virtual void FormatHorizOrientation(const SwFormatHoriOrient &)=0
Sfx item RES_HORI_ORIENT.
virtual void CharHighlight(const SvxBrushItem &)=0
Sfx item RES_CHRATR_HIGHLIGHT.
virtual void OverrideNumberingDefinition(SwNumRule const &, sal_uInt16, sal_uInt16, const std::map< size_t, size_t > &)
Numbering definition that overrides abstract numbering definition.
virtual void WritePostitFieldReference()
for docx w:commentReference
virtual void CharBackground(const SvxBrushItem &)=0
virtual void TableHeight(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo)=0
virtual void TableOrientation(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner)=0
ww8::WidthsPtr GetColumnWidths(ww8::WW8TableNodeInfoInner::Pointer_t const &pTableTextNodeInfoInner)
Definition: wrtww8.cxx:2436
void FormatCharBorder(const SvxBoxItem &rBox)
Sfx item RES_CHRATR_BOX.
Definition: ww8atr.cxx:5674
void ParaOutlineLevelBase(const SfxUInt16Item &rItem)
Sfx item RES_PARATR_OUTLINELEVEL.
Definition: ww8atr.cxx:3650
virtual void OutputFKP(bool)
Output FKP (Formatted disK Page) - necessary for binary formats only.
virtual void StartRun(const SwRedlineData *pRedlineData, sal_Int32 nPos, bool bSingleEmptyRun=false)=0
Start of the text run.
virtual void FormatFrameSize(const SwFormatFrameSize &)=0
Sfx item RES_FRM_SIZE.
virtual MSWordExportBase & GetExport()=0
Return the right export class.
virtual void ParaLineSpacing_Impl(short nSpace, short nMulti)=0
Count the values in ParaLineSpacing, and pass theme here.
void ParaLineSpacing(const SvxLineSpacingItem &)
Sfx item RES_PARATR_LINESPACING.
Definition: ww8atr.cxx:4881
virtual void FormatVertOrientation(const SwFormatVertOrient &)=0
Sfx item RES_VERT_ORIENT.
virtual void FormatLRSpace(const SvxLRSpaceItem &)=0
Sfx item RES_LR_SPACE.
AttributeOutputBase(OUString sBaseURL)
virtual void CharTwoLines(const SvxTwoLinesItem &)=0
Sfx item RES_CHRATR_TWO_LINES.
virtual void CharPosture(const SvxPostureItem &)=0
Sfx item RES_CHRATR_POSTURE.
void OutputItem(const SfxPoolItem &rHt)
Call the right virtual function according to the type of the item.
Definition: ww8atr.cxx:5377
static void GetNumberPara(OUString &rStr, const SwField &rField)
Definition: ww8atr.cxx:2643
sal_uInt32 GridCharacterPitch(const SwTextGridItem &rGrid) const
Compute the grid character pitch.
Definition: ww8atr.cxx:4048
virtual void StartAbstractNumbering(sal_uInt16)
Start of the abstract numbering definition instance.
virtual void CharPostureCTL(const SvxPostureItem &)=0
Sfx item RES_CHRATR_CTL_POSTURE.
virtual void EndRuby(const SwTextNode &rNode, sal_Int32 nPos)=0
Output ruby end.
virtual void CharGrabBag(const SfxGrabBagItem &)=0
Sfx item RES_CHRATR_GRABBAG.
const MSWordExportBase & GetExport() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
virtual void CharCrossedOut(const SvxCrossedOutItem &)=0
Sfx item RES_CHRATR_CROSSEDOUT.
virtual void FormatBox(const SvxBoxItem &)=0
Sfx item RES_BOX.
void StartTOX(const SwSection &rSect)
Definition: ww8atr.cxx:2252
OUString ConvertURL(const OUString &rUrl, bool bAbsoluteOut)
Definition: wrtw8nds.cxx:931
void GetTablePageSize(ww8::WW8TableNodeInfoInner const *pTableTextNodeInfoInner, tools::Long &rPageSize, bool &rRelBoxSize)
Definition: wrtww8.cxx:2442
virtual void CharAutoKern(const SvxAutoKernItem &)=0
Sfx item RES_CHRATR_AUTOKERN.
virtual void FormatULSpace(const SvxULSpaceItem &)=0
Sfx item RES_UL_SPACE.
virtual void PostitField(const SwField *pField)=0
void TextFootnote(const SwFormatFootnote &)
Sfx item RES_TXTATR_FTN.
Definition: ww8atr.cxx:3550
virtual void ParaNumRule_Impl(const SwTextNode *pTextNd, sal_Int32 nLvl, sal_Int32 nNumId)=0
Numbering - the implementation.
virtual void TableCanSplit(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo)=0
void FormatColumns(const SwFormatCol &)
Sfx item RES_COL.
Definition: ww8atr.cxx:4781
virtual void CharHidden(const SvxCharHiddenItem &)=0
Sfx item RES_CHRATR_HIDDEN.
virtual void EndAbstractNumbering()
End of the abstract numbering definition instance.
virtual void HiddenField(const SwField &rField)=0
virtual void TableVerticalCell(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo)=0
virtual void TextVerticalAdjustment(const css::drawing::TextVerticalAdjust)
virtual void EndStyle()=0
End of a style in the styles table.
virtual void OutputFlyFrame_Impl(const ww8::Frame &rFormat, const Point &rNdTopLeft)=0
Output frames - the implementation.
virtual void TableRowRedline(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo)=0
virtual void SectionBreaks(const SwNode &rNode)=0
Called in order to output section breaks.
virtual void ParaGrabBag(const SfxGrabBagItem &)=0
Sfx item RES_PARATR_GRABBAG.
virtual void CharContour(const SvxContourItem &)=0
Sfx item Sfx item RES_CHRATR_CONTOUR.
virtual void CharFontCJK(const SvxFontItem &)=0
Sfx item RES_CHRATR_CJK_FONT.
virtual void CharLanguageCJK(const SvxLanguageItem &)=0
Sfx item RES_CHRATR_CJK_LANGUAGE.
virtual void CharScaleWidth(const SvxCharScaleWidthItem &)=0
Sfx item RES_CHRATR_SCALEW.
virtual void CharFont(const SvxFontItem &)=0
Sfx item RES_CHRATR_FONT.
ww8::GridColsPtr GetGridCols(ww8::WW8TableNodeInfoInner::Pointer_t const &pTableTextNodeInfoInner)
Definition: wrtww8.cxx:2431
virtual void EndRunProperties(const SwRedlineData *pRedlineData)=0
Called after we end outputting the attributes.
virtual void TableBackgrounds(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo)=0
virtual void ParaSnapToGrid(const SvxParaGridItem &)=0
Sfx item RES_PARATR_SNAPTOGRID.
virtual void CharEmphasisMark(const SvxEmphasisMarkItem &)=0
Sfx item RES_CHRATR_EMPHASIS_MARK.
virtual void CharEscapement(const SvxEscapementItem &)=0
Sfx item RES_CHRATR_ESCAPEMENT.
virtual void CharLanguageCTL(const SvxLanguageItem &)=0
Sfx item RES_CHRATR_CTL_LANGUAGE.
virtual void TextFootnote_Impl(const SwFormatFootnote &)=0
Sfx item RES_TXTATR_FTN.
virtual void SectionBreak(sal_uInt8 nC, bool bBreakAfter, const WW8_SepInfo *pSectionInfo=nullptr, bool bExtraPageBreak=false)=0
Write a section break msword::ColumnBreak or msword::PageBreak bBreakAfter: the break must be schedul...
virtual void OutlineNumbering(sal_uInt8 nLvl)=0
Numbering rule and Id.
virtual void FormatLineNumbering(const SwFormatLineNumber &)=0
Sfx item RES_LINENUMBER.
const SwRedlineData * GetParagraphMarkerRedline(const SwTextNode &rNode, RedlineType aRedlineType)
Definition: ww8atr.cxx:5720
virtual void SectionRtlGutter(const SfxBoolItem &rRtlGutter)=0
RES_RTL_GUTTER.
virtual void TableRowEnd(sal_uInt32 nDepth)=0
virtual void TableNodeInfoInner(ww8::WW8TableNodeInfoInner::Pointer_t pNodeInfoInner)=0
Base class for WW8Export and DocxExport.
Definition: wrtww8.hxx:451
Base class of all fields.
Definition: fldbas.hxx:292
FlyAnchors.
Definition: fmtanchr.hxx:37
If SwFormatDrop is a Client, it is the CharFormat that describes the font for the DropCaps.
Definition: paratr.hxx:63
Format of a fly content.
Definition: fmtflcnt.hxx:33
SfxPoolItem subclass that wraps an SwLineBreakClear.
Pagedescriptor Client of SwPageDesc that is "described" by the attribute.
Definition: fmtpdsc.hxx:36
Base class for various Writer styles.
Definition: format.hxx:47
Style of a layout element.
Definition: frmfmt.hxx:62
< purpose of derivation from SwClient: character style for displaying the numbers.
Definition: lineinfo.hxx:39
Base class of the Writer document model elements.
Definition: node.hxx:84
SwTextNode is a paragraph in the document model.
Definition: ndtxt.hxx:89
sal_uInt32 GetBaseHeight() const
sal_Int32 GetJC() const
sal_uInt32 GetRubyHeight() const
OUString const & GetFontFamily() const
char GetDirective() const
sal_uInt32 m_nRubyHeight
WW8Ruby(const SwTextNode &rNode, const SwFormatRuby &rRuby, const MSWordExportBase &rExport)
Definition: wrtw8nds.cxx:3576
sal_uInt32 m_nBaseHeight
OUString m_sFontFamily
Make exporting a Writer Frame easy.
std::shared_ptr< WW8TableNodeInfoInner > Pointer_t
std::shared_ptr< WW8TableNodeInfo > Pointer_t
Collects and outputs fonts.
Definition: wrtww8.hxx:297
RedlineType
const sal_uInt8 ColumnBreak
const sal_uInt8 PageBreak
long Long
StyleType
std::shared_ptr< GridCols > GridColsPtr
std::shared_ptr< Widths > WidthsPtr
sal_uIntPtr sal_uLong
SvxAdjust
tools::Long SwTwips
Definition: swtypes.hxx:51
unsigned char sal_uInt8
FlyProcessingState
enum to state the present state of the fly
Definition: wrtww8.hxx:166