1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_SW_SOURCE_FILTER_WW8_ATTRIBUTEOUTPUTBASE_HXX
21 #define INCLUDED_SW_SOURCE_FILTER_WW8_ATTRIBUTEOUTPUTBASE_HXX
24 #include "WW8TableInfo.hxx"
27 #include <rtl/textenc.h>
28 #include <editeng/svxenum.hxx>
29 #include <tools/solar.h>
30 #include <boost/optional.hpp>
32 #include <com/sun/star/drawing/TextVerticalAdjust.hpp>
33 #include <swtypes.hxx>
34 #include <wrtswtbl.hxx>
36 #include <IDocumentRedlineAccess.hxx>
44 class SvxCrossedOutItem
;
45 class SvxEscapementItem
;
47 class SvxFontHeightItem
;
49 class SvxLanguageItem
;
51 class SvxShadowedItem
;
52 class SvxUnderlineItem
;
54 class SvxAutoKernItem
;
58 class XFillGradientItem
;
60 class SvxFontHeightItem
;
61 class SvxLanguageItem
;
65 class SvxFontHeightItem
;
66 class SvxLanguageItem
;
69 class SvxCharRotateItem
;
70 class SvxEmphasisMarkItem
;
71 class SvxTwoLinesItem
;
72 class SvxCharScaleWidthItem
;
73 class SvxCharReliefItem
;
74 class SvxCharHiddenItem
;
76 class SwFormatINetFormat
;
77 class SwFormatCharFormat
;
80 class SwFormatFootnote
;
81 class SvxLineSpacingItem
;
83 class SvxFormatSplitItem
;
86 class SvxHyphenZoneItem
;
91 class SvxParaVertAlignItem
;
92 class SvxParaGridItem
;
93 class SwFormatFrameSize
;
94 class SvxPaperBinItem
;
97 class SwFormatPageDesc
;
98 class SvxFormatBreakItem
;
99 class SwFormatSurround
;
100 class SwFormatVertOrient
;
101 class SwFormatHoriOrient
;
102 class SwFormatAnchor
;
106 class SvxFormatKeepItem
;
107 class SwTextGridItem
;
108 class SwFormatLineNumber
;
109 class SvxFrameDirectionItem
;
110 class SfxGrabBagItem
;
122 class SwLineNumberInfo
;
126 namespace editeng
{ class SvxBorderLine
; }
128 namespace rtl
{ class OUString
; }
130 class MSWordExportBase
;
132 namespace ww8
{ class Frame
; }
135 const sal_uInt8 ColumnBreak
= 0xE;
136 const sal_uInt8 PageBreak
= 0xC;
139 /// Type of a style in the style table.
147 class AttributeOutputBase
150 /// Export the state of RTL/CJK.
151 virtual void RTLAndCJKState( bool bIsRTL
, sal_uInt16 nScript
) = 0;
153 /// Start of the paragraph.
154 virtual void StartParagraph( ww8::WW8TableNodeInfo::Pointer_t pTextNodeInfo
) = 0;
156 /// End of the paragraph.
157 virtual void EndParagraph( ww8::WW8TableNodeInfoInner::Pointer_t pTextNodeInfoInner
) = 0;
159 /// Called in order to output section breaks.
160 virtual void SectionBreaks(const SwNode
& rNode
) = 0;
162 /// Called before we start outputting the attributes.
163 virtual void StartParagraphProperties() = 0;
165 /// Called after we end outputting the attributes.
166 virtual void EndParagraphProperties(const SfxItemSet
& rParagraphMarkerProperties
, const SwRedlineData
* pRedlineData
, const SwRedlineData
* pRedlineParagraphMarkerDeleted
, const SwRedlineData
* pRedlineParagraphMarkerInserted
) = 0;
169 virtual void EmptyParagraph() = 0;
171 /// Start of the text run.
172 virtual void StartRun( const SwRedlineData
* pRedlineData
, bool bSingleEmptyRun
= false ) = 0;
174 /// End of the text run.
175 virtual void EndRun() = 0;
177 /// Called before we start outputting the attributes.
178 virtual void StartRunProperties() = 0;
180 /// Called after we end outputting the attributes.
181 virtual void EndRunProperties( const SwRedlineData
* pRedlineData
) = 0;
183 /// docx requires footnoteRef/endnoteRef tag at the beginning of each of them
184 virtual void FootnoteEndnoteRefTag() {};
186 /// for docx footnotePr/endnotePr inside sectPr
187 virtual void SectFootnoteEndnotePr() {};
189 /// for docx w:commentReference
190 virtual void WritePostitFieldReference() {};
192 /// Output text (inside a run).
193 virtual void RunText( const OUString
& rText
, rtl_TextEncoding eCharSet
= RTL_TEXTENCODING_UTF8
) = 0;
195 /// Output text (without markup).
196 virtual void RawText(const OUString
& rText
, rtl_TextEncoding eCharSet
) = 0;
198 /// Output ruby start.
199 virtual void StartRuby( const SwTextNode
& rNode
, sal_Int32 nPos
, const SwFormatRuby
& rRuby
) = 0;
202 virtual void EndRuby() = 0;
204 /// Output URL start.
205 virtual bool StartURL( const OUString
& rUrl
, const OUString
& rTarget
) = 0;
208 virtual bool EndURL(bool isAtEndOfParagraph
) = 0;
210 virtual void FieldVanish( const OUString
& rText
, ww::eField eType
) = 0;
212 void StartTOX( const SwSection
& rSect
);
214 void EndTOX( const SwSection
& rSect
,bool bCareEnd
=true );
216 virtual void OnTOXEnding() {}
218 void TOXMark( const SwTextNode
& rNode
, const SwTOXMark
& rAttr
);
220 /// Output redlining.
221 virtual void Redline( const SwRedlineData
* pRedline
) = 0;
223 virtual void FormatDrop( const SwTextNode
& rNode
, const SwFormatDrop
& rSwFormatDrop
, sal_uInt16 nStyle
, ww8::WW8TableNodeInfo::Pointer_t pTextNodeInfo
, ww8::WW8TableNodeInfoInner::Pointer_t pTextNodeInfoInner
) = 0;
225 /// Output FKP (Formatted disK Page) - necessary for binary formats only.
226 /// FIXME having it in AttributeOutputBase is probably a hack, it
227 /// should be in WW8AttributeOutput only...
228 virtual void OutputFKP(bool /*bForce*/) {}
231 virtual void ParagraphStyle( sal_uInt16 nStyle
) = 0;
233 virtual void TableInfoCell( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo
) = 0;
235 virtual void TableInfoRow( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo
) = 0;
237 virtual void TableDefinition( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo
) = 0;
239 virtual void TableDefaultBorders( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo
) = 0;
241 virtual void TableBackgrounds( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo
) = 0;
243 virtual void TableRowRedline( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo
) = 0;
245 virtual void TableCellRedline( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo
) = 0;
247 virtual void TableHeight( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo
) = 0;
249 virtual void TableCanSplit( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo
) = 0;
251 virtual void TableBidi( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo
) = 0;
253 virtual void TableVerticalCell( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo
) = 0;
255 virtual void TableNodeInfoInner( ww8::WW8TableNodeInfoInner::Pointer_t pNodeInfoInner
) = 0;
257 virtual void TableOrientation( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner
) = 0;
259 virtual void TableSpacing( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner
) = 0;
261 virtual void TableRowEnd( sal_uInt32 nDepth
) = 0;
263 /// Start of the styles table.
264 virtual void StartStyles() = 0;
266 /// End of the styles table.
267 virtual void EndStyles( sal_uInt16 nNumberOfStyles
) = 0;
269 /// Write default style.
270 virtual void DefaultStyle() = 0;
272 /// Start of a style in the styles table.
273 virtual void StartStyle( const OUString
& rName
, StyleType eType
,
274 sal_uInt16 nBase
, sal_uInt16 nNext
, sal_uInt16 nWwId
, sal_uInt16 nId
,
275 bool bAutoUpdate
) = 0;
277 /// End of a style in the styles table.
278 virtual void EndStyle() = 0;
280 /// Start of (paragraph or run) properties of a style.
281 virtual void StartStyleProperties( bool bParProp
, sal_uInt16 nStyle
) = 0;
283 /// End of (paragraph or run) properties of a style.
284 virtual void EndStyleProperties( bool bParProp
) = 0;
286 /// Numbering rule and Id.
287 virtual void OutlineNumbering(sal_uInt8 nLvl
) = 0;
290 /// As a paragraph property - the paragraph should be on the next page.
291 virtual void PageBreakBefore( bool bBreak
) = 0;
293 /// Write a section break
294 /// msword::ColumnBreak or msword::PageBreak
295 virtual void SectionBreak( sal_uInt8 nC
, const WW8_SepInfo
* pSectionInfo
= nullptr ) = 0;
297 // preserve page vertical alignment
298 virtual void TextVerticalAdjustment( const css::drawing::TextVerticalAdjust
) {};
300 /// Start of the section properties.
301 virtual void StartSection() = 0;
303 /// End of the section properties.
304 virtual void EndSection() = 0;
306 /// Protection of forms.
307 virtual void SectionFormProtection( bool bProtected
) = 0;
309 /// Numbering of the lines in the document.
310 virtual void SectionLineNumbering( sal_uLong nRestartNo
, const SwLineNumberInfo
& rLnNumInfo
) = 0;
312 /// Has different headers/footers for the title page.
313 virtual void SectionTitlePage() = 0;
315 /// Set the state of the Fly at current position
316 virtual void SetStateOfFlyFrame( FlyProcessingState
/*nStateOfFlyFrame*/ ){};
317 /// If the node has an anchor linked.
318 virtual void SetAnchorIsLinkedToNode( bool /*bAnchorLinkedToNode*/){};
320 /// Is processing of fly postponed ?
321 virtual bool IsFlyProcessingPostponed(){ return false; };
323 /// Reset the flag for FlyProcessing
324 virtual void ResetFlyProcessingFlag(){};
326 /// Description of the page borders.
327 virtual void SectionPageBorders( const SwFrameFormat
* pFormat
, const SwFrameFormat
* pFirstPageFormat
) = 0;
329 /// Columns populated from right/numbers on the right side?
330 virtual void SectionBiDi( bool bBiDi
) = 0;
332 /// The style of the page numbers.
334 virtual void SectionPageNumbering( sal_uInt16 nNumType
, const ::boost::optional
<sal_uInt16
>& oPageRestartNumber
) = 0;
336 /// The type of breaking.
337 virtual void SectionType( sal_uInt8 nBreakCode
) = 0;
339 /// Definition of a numbering instance.
340 virtual void NumberingDefinition( sal_uInt16 nId
, const SwNumRule
&rRule
) = 0;
342 /// Start of the abstract numbering definition instance.
343 virtual void StartAbstractNumbering( sal_uInt16
/*nId*/ ) {}
345 /// End of the abstract numbering definition instance.
346 virtual void EndAbstractNumbering() {}
348 /// All the numbering level information.
349 virtual void NumberingLevel( sal_uInt8 nLevel
,
351 sal_uInt16 nNumberingType
,
353 const sal_uInt8
*pNumLvlPos
,
356 const SfxItemSet
*pOutSet
,
358 sal_Int16 nFirstLineIndex
,
359 sal_Int16 nListTabPos
,
360 const OUString
&rNumberingString
,
361 const SvxBrushItem
* pBrush
) = 0; // #i120928 export graphic of bullet
365 static void GetNumberPara( OUString
& rStr
, const SwField
& rField
);
367 /// Output frames - the implementation.
368 virtual void OutputFlyFrame_Impl( const ww8::Frame
& rFormat
, const Point
& rNdTopLeft
) = 0;
370 /// Sfx item Sfx item RES_CHRATR_CASEMAP
371 virtual void CharCaseMap( const SvxCaseMapItem
& ) = 0;
373 /// Sfx item Sfx item RES_CHRATR_COLOR
374 virtual void CharColor( const SvxColorItem
& ) = 0;
376 /// Sfx item Sfx item RES_CHRATR_CONTOUR
377 virtual void CharContour( const SvxContourItem
& ) = 0;
379 /// Sfx item RES_CHRATR_CROSSEDOUT
380 virtual void CharCrossedOut( const SvxCrossedOutItem
& ) = 0;
382 /// Sfx item RES_CHRATR_ESCAPEMENT
383 virtual void CharEscapement( const SvxEscapementItem
& ) = 0;
385 /// Sfx item RES_CHRATR_FONT
386 virtual void CharFont( const SvxFontItem
& ) = 0;
388 /// Sfx item RES_CHRATR_FONTSIZE
389 virtual void CharFontSize( const SvxFontHeightItem
& ) = 0;
391 /// Sfx item RES_CHRATR_KERNING
392 virtual void CharKerning( const SvxKerningItem
& ) = 0;
394 /// Sfx item RES_CHRATR_LANGUAGE
395 virtual void CharLanguage( const SvxLanguageItem
& ) = 0;
397 /// Sfx item RES_CHRATR_POSTURE
398 virtual void CharPosture( const SvxPostureItem
& ) = 0;
400 /// Sfx item RES_CHRATR_SHADOWED
401 virtual void CharShadow( const SvxShadowedItem
& ) = 0;
403 /// Sfx item RES_CHRATR_UNDERLINE
404 virtual void CharUnderline( const SvxUnderlineItem
& ) = 0;
406 /// Sfx item RES_CHRATR_WEIGHT
407 virtual void CharWeight( const SvxWeightItem
& ) = 0;
409 /// Sfx item RES_CHRATR_AUTOKERN
410 virtual void CharAutoKern( const SvxAutoKernItem
& ) = 0;
412 /// Sfx item RES_CHRATR_BLINK
413 virtual void CharAnimatedText( const SvxBlinkItem
& ) = 0;
415 /// Sfx item RES_CHRATR_BACKGROUND
416 void CharBackgroundBase( const SvxBrushItem
& );
417 virtual void CharBackground( const SvxBrushItem
& ) = 0;
419 /// Sfx item RES_CHRATR_CJK_FONT
420 virtual void CharFontCJK( const SvxFontItem
& ) = 0;
422 /// Sfx item RES_CHRATR_CJK_FONTSIZE
423 virtual void CharFontSizeCJK( const SvxFontHeightItem
& ) = 0;
425 /// Sfx item RES_CHRATR_CJK_LANGUAGE
426 virtual void CharLanguageCJK( const SvxLanguageItem
& ) = 0;
428 /// Sfx item RES_CHRATR_CJK_POSTURE
429 virtual void CharPostureCJK( const SvxPostureItem
& ) = 0;
431 /// Sfx item RES_CHRATR_CJK_WEIGHT
432 virtual void CharWeightCJK( const SvxWeightItem
& ) = 0;
434 /// Sfx item RES_CHRATR_CTL_FONT
435 virtual void CharFontCTL( const SvxFontItem
& ) = 0;
437 /// Sfx item RES_CHRATR_CTL_FONTSIZE
438 virtual void CharFontSizeCTL( const SvxFontHeightItem
& ) = 0;
440 /// Sfx item RES_CHRATR_CTL_LANGUAGE
441 virtual void CharLanguageCTL( const SvxLanguageItem
& ) = 0;
443 /// Sfx item RES_CHRATR_CTL_POSTURE
444 virtual void CharPostureCTL( const SvxPostureItem
& ) = 0;
446 /// Sfx item RES_CHRATR_CTL_WEIGHT
447 virtual void CharWeightCTL( const SvxWeightItem
& ) = 0;
449 /// Sfx item RES_CHRATR_BidiRTL
450 virtual void CharBidiRTL( const SfxPoolItem
& ) = 0;
452 /// Sfx item RES_CHRATR_IdctHint
453 virtual void CharIdctHint( const SfxPoolItem
& ) = 0;
455 /// Sfx item RES_CHRATR_ROTATE
456 virtual void CharRotate( const SvxCharRotateItem
& ) = 0;
458 /// Sfx item RES_CHRATR_EMPHASIS_MARK
459 virtual void CharEmphasisMark( const SvxEmphasisMarkItem
& ) = 0;
461 /// Sfx item RES_CHRATR_TWO_LINES
462 virtual void CharTwoLines( const SvxTwoLinesItem
& ) = 0;
464 /// Sfx item RES_CHRATR_SCALEW
465 virtual void CharScaleWidth( const SvxCharScaleWidthItem
& ) = 0;
467 /// Sfx item RES_CHRATR_RELIEF
468 virtual void CharRelief( const SvxCharReliefItem
& ) = 0;
470 /// Sfx item RES_CHRATR_HIDDEN
471 virtual void CharHidden( const SvxCharHiddenItem
& ) = 0;
473 /// Sfx item RES_CHRATR_BOX
474 void FormatCharBorder( const SvxBoxItem
& rBox
);
475 virtual void CharBorder( const ::editeng::SvxBorderLine
* pAllBorder
, const sal_uInt16 nDist
, const bool bShadow
) = 0;
477 /// Sfx item RES_CHRATR_HIGHLIGHT
478 virtual void CharHighlight( const SvxBrushItem
& ) = 0;
480 /// Sfx item RES_TXTATR_INETFMT
481 virtual void TextINetFormat( const SwFormatINetFormat
& ) = 0;
483 /// Sfx item RES_TXTATR_CHARFMT
484 virtual void TextCharFormat( const SwFormatCharFormat
& ) = 0;
486 /// Sfx item RES_TXTATR_FIELD, RES_TXTATR_ANNOTATION and RES_TXTATR_INPUTFIELD
487 void TextField( const SwFormatField
& );
489 /// Sfx item RES_TXTATR_FLYCNT
490 void TextFlyContent( const SwFormatFlyCnt
& );
492 /// Sfx item RES_TXTATR_FTN
494 /// This one is common for both WW8AttributeOutput as well as
495 /// DocxAttributeOutput.
496 void TextFootnote( const SwFormatFootnote
& );
498 /// Sfx item RES_TXTATR_FTN
499 virtual void TextFootnote_Impl( const SwFormatFootnote
& ) = 0;
501 /// Sfx item RES_PARATR_LINESPACING
502 void ParaLineSpacing( const SvxLineSpacingItem
& );
504 /// Count the values in ParaLineSpacing, and pass theme here.
505 virtual void ParaLineSpacing_Impl( short nSpace
, short nMulti
) = 0;
507 /// Sfx item RES_PARATR_ADJUST
508 virtual void ParaAdjust( const SvxAdjustItem
& ) = 0;
510 /// Sfx item RES_PARATR_SPLIT
511 virtual void ParaSplit( const SvxFormatSplitItem
& ) = 0;
513 /// Sfx item RES_PARATR_WIDOWS
514 virtual void ParaWidows( const SvxWidowsItem
& ) = 0;
516 /// Sfx item RES_PARATR_TABSTOP
517 virtual void ParaTabStop( const SvxTabStopItem
& ) = 0;
519 /// Sfx item RES_PARATR_HYPHENZONE
520 virtual void ParaHyphenZone( const SvxHyphenZoneItem
& ) = 0;
522 /// Sfx item RES_PARATR_NUMRULE
523 void ParaNumRule( const SwNumRuleItem
& );
525 /// Numbering - the implementation.
526 virtual void ParaNumRule_Impl( const SwTextNode
*pTextNd
, sal_Int32 nLvl
, sal_Int32 nNumId
) = 0;
528 /// Sfx item RES_PARATR_SCRIPTSPACE
529 virtual void ParaScriptSpace( const SfxBoolItem
& ) = 0;
531 /// Sfx item RES_PARATR_HANGINGPUNCTUATION
532 virtual void ParaHangingPunctuation( const SfxBoolItem
& ) = 0;
534 /// Sfx item RES_PARATR_FORBIDDEN_RULES
535 virtual void ParaForbiddenRules( const SfxBoolItem
& ) = 0;
537 /// Sfx item RES_PARATR_VERTALIGN
538 virtual void ParaVerticalAlign( const SvxParaVertAlignItem
& ) = 0;
540 /// Sfx item RES_PARATR_SNAPTOGRID
541 virtual void ParaSnapToGrid( const SvxParaGridItem
& ) = 0;
543 /// Sfx item RES_FRM_SIZE
544 virtual void FormatFrameSize( const SwFormatFrameSize
& ) = 0;
546 /// Sfx item RES_PAPER_BIN
547 virtual void FormatPaperBin( const SvxPaperBinItem
& ) = 0;
549 /// Sfx item RES_LR_SPACE
550 virtual void FormatLRSpace( const SvxLRSpaceItem
& ) = 0;
552 /// Sfx item RES_UL_SPACE
553 virtual void FormatULSpace( const SvxULSpaceItem
& ) = 0;
555 /// Sfx item RES_PAGEDESC
556 void FormatPageDescription( const SwFormatPageDesc
& );
558 /// Sfx item RES_BREAK
559 void FormatBreak( const SvxFormatBreakItem
& );
561 /// Sfx item RES_SURROUND
562 virtual void FormatSurround( const SwFormatSurround
& ) = 0;
564 /// Sfx item RES_VERT_ORIENT
565 virtual void FormatVertOrientation( const SwFormatVertOrient
& ) = 0;
567 /// Sfx item RES_HORI_ORIENT
568 virtual void FormatHorizOrientation( const SwFormatHoriOrient
& ) = 0;
570 /// Sfx item RES_ANCHOR
571 virtual void FormatAnchor( const SwFormatAnchor
& ) = 0;
573 /// Sfx item RES_BACKGROUND
574 virtual void FormatBackground( const SvxBrushItem
& ) = 0;
576 /// Sfx item RES_FILL_STYLE
577 virtual void FormatFillStyle( const XFillStyleItem
& ) = 0;
579 /// Sfx item RES_FILL_GRADIENT
580 virtual void FormatFillGradient( const XFillGradientItem
& ) = 0;
583 virtual void FormatBox( const SvxBoxItem
& ) = 0;
586 void FormatColumns( const SwFormatCol
& );
588 virtual void FormatColumns_Impl( sal_uInt16 nCols
, const SwFormatCol
& rCol
, bool bEven
, SwTwips nPageSize
) = 0;
590 /// Sfx item RES_KEEP
591 virtual void FormatKeep( const SvxFormatKeepItem
& ) = 0;
593 /// Compute the grid character pitch
594 sal_uInt32
GridCharacterPitch( const SwTextGridItem
& rGrid
) const;
596 /// Sfx item RES_TEXTGRID
597 virtual void FormatTextGrid( const SwTextGridItem
& ) = 0;
599 /// Sfx item RES_LINENUMBER
600 virtual void FormatLineNumbering( const SwFormatLineNumber
& ) = 0;
602 /// Sfx item RES_FRAMEDIR
603 virtual void FormatFrameDirection( const SvxFrameDirectionItem
& ) = 0;
605 /// Sfx item RES_PARATR_GRABBAG
606 virtual void ParaGrabBag( const SfxGrabBagItem
& ) = 0;
608 /// Sfx item RES_CHRATR_GRABBAG
609 virtual void CharGrabBag( const SfxGrabBagItem
& ) = 0;
611 /// Sfx item RES_PARATR_OUTLINELEVEL
612 virtual void ParaOutlineLevel( const SfxUInt16Item
& ) = 0;
614 /// Write the expanded field
615 virtual void WriteExpand( const SwField
* pField
) = 0;
617 virtual void RefField( const SwField
& rField
, const OUString
& rRef
) = 0;
618 virtual void HiddenField( const SwField
& rField
) = 0;
619 virtual void SetField( const SwField
& rField
, ww::eField eType
, const OUString
& rCmd
) = 0;
620 virtual void PostitField( const SwField
* pField
) = 0;
621 virtual bool DropdownField( const SwField
* pField
) = 0;
622 virtual bool PlaceholderField( const SwField
* pField
) = 0;
624 virtual bool AnalyzeURL( const OUString
& rUrl
, const OUString
& rTarget
, OUString
* pLinkURL
, OUString
* pMark
);
626 ww8::GridColsPtr
GetGridCols( ww8::WW8TableNodeInfoInner::Pointer_t
const & pTableTextNodeInfoInner
);
627 ww8::WidthsPtr
GetColumnWidths( ww8::WW8TableNodeInfoInner::Pointer_t
const & pTableTextNodeInfoInner
);
630 AttributeOutputBase() {}
631 virtual ~AttributeOutputBase() {}
633 /// Return the right export class.
634 virtual MSWordExportBase
& GetExport() = 0;
637 const MSWordExportBase
& GetExport() const { return const_cast< AttributeOutputBase
* >( this )->GetExport(); }
639 /// Call the right virtual function according to the type of the item.
640 void OutputItem( const SfxPoolItem
& rHt
);
642 /// Use OutputItem() on an item set - for styles.
643 void OutputStyleItemSet( const SfxItemSet
& rSet
, bool bTestForDefault
);
646 void OutputFlyFrame( const ww8::Frame
& rFormat
);
648 void GetTablePageSize
649 ( ww8::WW8TableNodeInfoInner
* pTableTextNodeInfoInner
,
650 long& rPageSize
, bool& rRelBoxSize
);
652 /// Exports the definition (image, size) of a single numbering picture bullet.
653 virtual void BulletDefinition(int /*nId*/, const Graphic
& /*rGraphic*/, Size
/*aSize*/) {}
655 // Returns whether or not the 'SwTextNode' has a paragraph marker inserted \ deleted (using 'track changes')
656 const SwRedlineData
* GetParagraphMarkerRedline( const SwTextNode
& rNode
, RedlineType_t aRedlineType
);
659 #endif // INCLUDED_SW_SOURCE_FILTER_WW8_ATTRIBUTEOUTPUTBASE_HXX
661 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */