Line data Source code
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 :
26 : class WW8AttributeOutput : public AttributeOutputBase
27 : {
28 : public:
29 : /// Export the state of RTL/CJK.
30 : virtual void RTLAndCJKState( bool bIsRTL, sal_uInt16 nScript ) SAL_OVERRIDE;
31 :
32 : /// Start of the paragraph.
33 684 : virtual void StartParagraph( ww8::WW8TableNodeInfo::Pointer_t /*pTextNodeInfo*/ ) SAL_OVERRIDE {}
34 :
35 : /// End of the paragraph.
36 : virtual void EndParagraph( ww8::WW8TableNodeInfoInner::Pointer_t pTextNodeInfoInner ) SAL_OVERRIDE;
37 :
38 : /// Called in order to output section breaks.
39 684 : virtual void SectionBreaks(const SwTxtNode& /*rNode*/) SAL_OVERRIDE {}
40 :
41 : /// Called before we start outputting the attributes.
42 684 : virtual void StartParagraphProperties() SAL_OVERRIDE {}
43 :
44 : /// Called after we end outputting the attributes.
45 684 : virtual void EndParagraphProperties(const SfxItemSet& /*rParagraphMarkerProperties*/, const SwRedlineData* /*pRedlineData*/, const SwRedlineData* /*pRedlineParagraphMarkerDeleted*/, const SwRedlineData* /*pRedlineParagraphMarkerInserted*/) SAL_OVERRIDE {}
46 :
47 : /// Empty paragraph.
48 : virtual void EmptyParagraph() SAL_OVERRIDE;
49 :
50 : /// Start of the text run.
51 : ///
52 : virtual void StartRun( const SwRedlineData* pRedlineData, bool bSingleEmptyRun = false ) SAL_OVERRIDE;
53 :
54 : virtual void OnTOXEnding() SAL_OVERRIDE;
55 :
56 : /// End of the text run.
57 : ///
58 : /// No-op for binary filters.
59 802 : virtual void EndRun() SAL_OVERRIDE {}
60 :
61 : /// Before we start outputting the attributes.
62 : virtual void StartRunProperties() SAL_OVERRIDE;
63 :
64 : /// After we end outputting the attributes.
65 : virtual void EndRunProperties( const SwRedlineData* pRedlineData ) SAL_OVERRIDE;
66 :
67 : /// Output text.
68 : virtual void RunText( const OUString& rText, rtl_TextEncoding eCharSet ) SAL_OVERRIDE;
69 :
70 : /// Output text (without markup).
71 : virtual void RawText( const OUString& rText, bool bForceUnicode, rtl_TextEncoding eCharSet ) SAL_OVERRIDE;
72 :
73 : /// Output ruby start.
74 : virtual void StartRuby( const SwTxtNode& rNode, sal_Int32 nPos, const SwFmtRuby& rRuby ) SAL_OVERRIDE;
75 :
76 : /// Output ruby end.
77 : virtual void EndRuby() SAL_OVERRIDE;
78 :
79 : /// Output URL start.
80 : virtual bool StartURL( const OUString &rUrl, const OUString &rTarget ) SAL_OVERRIDE;
81 :
82 : /// Output URL end.
83 : virtual bool EndURL(bool) SAL_OVERRIDE;
84 :
85 : virtual void FieldVanish( const OUString& rTxt, ww::eField eType ) SAL_OVERRIDE;
86 :
87 : /// Output redlining.
88 : virtual void Redline( const SwRedlineData* pRedline ) SAL_OVERRIDE;
89 :
90 : virtual void FormatDrop( const SwTxtNode& rNode, const SwFmtDrop &rSwFmtDrop, sal_uInt16 nStyle, ww8::WW8TableNodeInfo::Pointer_t pTextNodeInfo, ww8::WW8TableNodeInfoInner::Pointer_t pTextNodeInfoInner ) SAL_OVERRIDE;
91 :
92 : /// Output FKP (Formatted disK Page) - necessary for binary formats only.
93 : /// FIXME having it in AttributeOutputBase is probably a hack, it
94 : /// should be in WW8AttributeOutput only...
95 : virtual void OutputFKP(bool bForce = false) SAL_OVERRIDE;
96 :
97 : /// Output style.
98 : virtual void ParagraphStyle( sal_uInt16 nStyle ) SAL_OVERRIDE;
99 :
100 : virtual void TableInfoCell( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) SAL_OVERRIDE;
101 : virtual void TableInfoRow( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) SAL_OVERRIDE;
102 : virtual void TableDefinition( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) SAL_OVERRIDE;
103 : virtual void TableDefaultBorders( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) SAL_OVERRIDE;
104 : virtual void TableBackgrounds( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) SAL_OVERRIDE;
105 : virtual void TableRowRedline( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) SAL_OVERRIDE;
106 : virtual void TableCellRedline( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) SAL_OVERRIDE;
107 : virtual void TableHeight( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) SAL_OVERRIDE;
108 : virtual void TableCanSplit( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) SAL_OVERRIDE;
109 : virtual void TableBidi( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) SAL_OVERRIDE;
110 : virtual void TableVerticalCell( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfo ) SAL_OVERRIDE;
111 : virtual void TableNodeInfo( ww8::WW8TableNodeInfo::Pointer_t pNodeInfo ) SAL_OVERRIDE;
112 : virtual void TableNodeInfoInner( ww8::WW8TableNodeInfoInner::Pointer_t pNodeInfoInner ) SAL_OVERRIDE;
113 : virtual void TableOrientation( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner ) SAL_OVERRIDE;
114 : virtual void TableSpacing( ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner ) SAL_OVERRIDE;
115 : virtual void TableRowEnd( sal_uInt32 nDepth = 1 ) SAL_OVERRIDE;
116 :
117 : /// Start of the styles table.
118 : virtual void StartStyles() SAL_OVERRIDE;
119 :
120 : /// End of the styles table.
121 : virtual void EndStyles( sal_uInt16 nNumberOfStyles ) SAL_OVERRIDE;
122 :
123 : /// Write default style.
124 : virtual void DefaultStyle( sal_uInt16 nStyle ) SAL_OVERRIDE;
125 :
126 : /// Start of a style in the styles table.
127 : virtual void StartStyle( const OUString& rName, StyleType eType,
128 : sal_uInt16 nBase, sal_uInt16 nNext, sal_uInt16 nWwIdi, sal_uInt16 nId,
129 : bool bAutoUpdate ) SAL_OVERRIDE;
130 :
131 : /// End of a style in the styles table.
132 : virtual void EndStyle() SAL_OVERRIDE;
133 :
134 : /// Start of (paragraph or run) properties of a style.
135 : virtual void StartStyleProperties( bool bParProp, sal_uInt16 nStyle ) SAL_OVERRIDE;
136 :
137 : /// End of (paragraph or run) properties of a style.
138 : virtual void EndStyleProperties( bool bParProp ) SAL_OVERRIDE;
139 :
140 : /// Numbering rule and Id.
141 : virtual void OutlineNumbering( sal_uInt8 nLvl, const SwNumFmt &rNFmt, const SwFmt &rFmt ) SAL_OVERRIDE;
142 :
143 : /// Page break
144 : /// As a paragraph property - the paragraph should be on the next page.
145 : virtual void PageBreakBefore( bool bBreak ) SAL_OVERRIDE;
146 :
147 : /// Write a section break
148 : /// msword::ColumnBreak or msword::PageBreak
149 : virtual void SectionBreak( sal_uInt8 nC, const WW8_SepInfo* pSectionInfo = NULL ) SAL_OVERRIDE;
150 :
151 : /// Start of the section properties.
152 : virtual void StartSection() SAL_OVERRIDE;
153 :
154 : /// End of the section properties.
155 : ///
156 : /// No-op for binary filters.
157 40 : virtual void EndSection() SAL_OVERRIDE {}
158 :
159 : /// Protection of forms.
160 : virtual void SectionFormProtection( bool bProtected ) SAL_OVERRIDE;
161 :
162 : /// Numbering of the lines in the document.
163 : virtual void SectionLineNumbering( sal_uLong nRestartNo, const SwLineNumberInfo& rLnNumInfo ) SAL_OVERRIDE;
164 :
165 : /// Has different headers/footers for the title page.
166 : virtual void SectionTitlePage() SAL_OVERRIDE;
167 :
168 : /// Description of the page borders.
169 : virtual void SectionPageBorders( const SwFrmFmt* pFmt, const SwFrmFmt* pFirstPageFmt ) SAL_OVERRIDE;
170 :
171 : /// Columns populated from right/numbers on the right side?
172 : virtual void SectionBiDi( bool bBiDi ) SAL_OVERRIDE;
173 :
174 : /// The style of the page numbers.
175 : ///
176 : virtual void SectionPageNumbering( sal_uInt16 nNumType, ::boost::optional<sal_uInt16> oPageRestartNumber ) SAL_OVERRIDE;
177 :
178 : /// The type of breaking.
179 : virtual void SectionType( sal_uInt8 nBreakCode ) SAL_OVERRIDE;
180 :
181 : /// Special header/footer flags, needed for old versions only.
182 : virtual void SectionWW6HeaderFooterFlags( sal_uInt8 nHeadFootFlags ) SAL_OVERRIDE;
183 :
184 : /// Definition of a numbering instance.
185 : virtual void NumberingDefinition( sal_uInt16 nId, const SwNumRule &rRule ) SAL_OVERRIDE;
186 :
187 : /// All the numbering level information.
188 : virtual void NumberingLevel( sal_uInt8 nLevel,
189 : sal_uInt16 nStart,
190 : sal_uInt16 nNumberingType,
191 : SvxAdjust eAdjust,
192 : const sal_uInt8 *pNumLvlPos,
193 : sal_uInt8 nFollow,
194 : const wwFont *pFont,
195 : const SfxItemSet *pOutSet,
196 : sal_Int16 nIndentAt,
197 : sal_Int16 nFirstLineIndex,
198 : sal_Int16 nListTabPos,
199 : const OUString &rNumberingString,
200 : const SvxBrushItem* pBrush = 0) SAL_OVERRIDE; //For i120928,transfer graphic of bullet
201 :
202 : protected:
203 : /// Output frames - the implementation.
204 : void OutputFlyFrame_Impl( const sw::Frame& rFmt, const Point& rNdTopLeft ) SAL_OVERRIDE;
205 :
206 : /// Sfx item Sfx item RES_CHRATR_CASEMAP
207 : virtual void CharCaseMap( const SvxCaseMapItem& ) SAL_OVERRIDE;
208 :
209 : /// Sfx item Sfx item RES_CHRATR_COLOR
210 : virtual void CharColor( const SvxColorItem& ) SAL_OVERRIDE;
211 :
212 : /// Sfx item Sfx item RES_CHRATR_CONTOUR
213 : virtual void CharContour( const SvxContourItem& ) SAL_OVERRIDE;
214 :
215 : /// Sfx item RES_CHRATR_CROSSEDOUT
216 : virtual void CharCrossedOut( const SvxCrossedOutItem& rHt ) SAL_OVERRIDE;
217 :
218 : /// Sfx item RES_CHRATR_ESCAPEMENT
219 : virtual void CharEscapement( const SvxEscapementItem& ) SAL_OVERRIDE;
220 :
221 : /// Sfx item RES_CHRATR_FONT
222 : virtual void CharFont( const SvxFontItem& ) SAL_OVERRIDE;
223 :
224 : /// Sfx item RES_CHRATR_FONTSIZE
225 : virtual void CharFontSize( const SvxFontHeightItem& ) SAL_OVERRIDE;
226 :
227 : /// Sfx item RES_CHRATR_KERNING
228 : virtual void CharKerning( const SvxKerningItem& ) SAL_OVERRIDE;
229 :
230 : /// Sfx item RES_CHRATR_LANGUAGE
231 : virtual void CharLanguage( const SvxLanguageItem& ) SAL_OVERRIDE;
232 :
233 : /// Sfx item RES_CHRATR_POSTURE
234 : virtual void CharPosture( const SvxPostureItem& ) SAL_OVERRIDE;
235 :
236 : /// Sfx item RES_CHRATR_SHADOWED
237 : virtual void CharShadow( const SvxShadowedItem& ) SAL_OVERRIDE;
238 :
239 : /// Sfx item RES_CHRATR_UNDERLINE
240 : virtual void CharUnderline( const SvxUnderlineItem& ) SAL_OVERRIDE;
241 :
242 : /// Sfx item RES_CHRATR_WEIGHT
243 : virtual void CharWeight( const SvxWeightItem& ) SAL_OVERRIDE;
244 :
245 : /// Sfx item RES_CHRATR_AUTOKERN
246 : virtual void CharAutoKern( const SvxAutoKernItem& ) SAL_OVERRIDE;
247 :
248 : /// Sfx item RES_CHRATR_BLINK
249 : virtual void CharAnimatedText( const SvxBlinkItem& ) SAL_OVERRIDE;
250 :
251 : /// Sfx item RES_CHRATR_BACKGROUND
252 : virtual void CharBackground( const SvxBrushItem& ) SAL_OVERRIDE;
253 :
254 : /// Sfx item RES_CHRATR_CJK_FONT
255 : virtual void CharFontCJK( const SvxFontItem& ) SAL_OVERRIDE;
256 :
257 : /// Sfx item RES_CHRATR_CJK_FONTSIZE
258 0 : virtual void CharFontSizeCJK( const SvxFontHeightItem& rHt ) SAL_OVERRIDE { CharFontSize( rHt ); }
259 :
260 : /// Sfx item RES_CHRATR_CJK_LANGUAGE
261 86 : virtual void CharLanguageCJK( const SvxLanguageItem& rHt ) SAL_OVERRIDE { CharLanguage( rHt ); }
262 :
263 : /// Sfx item RES_CHRATR_CJK_POSTURE
264 0 : virtual void CharPostureCJK( const SvxPostureItem& rHt ) SAL_OVERRIDE { CharPosture( rHt ); }
265 :
266 : /// Sfx item RES_CHRATR_CJK_WEIGHT
267 0 : virtual void CharWeightCJK( const SvxWeightItem& rHt ) SAL_OVERRIDE { CharWeight( rHt ); }
268 :
269 : /// Sfx item RES_CHRATR_CTL_FONT
270 : virtual void CharFontCTL( const SvxFontItem& ) SAL_OVERRIDE;
271 :
272 : /// Sfx item RES_CHRATR_CTL_FONTSIZE
273 390 : virtual void CharFontSizeCTL( const SvxFontHeightItem& rHt ) SAL_OVERRIDE { CharFontSize( rHt ); }
274 :
275 : /// Sfx item RES_CHRATR_CTL_LANGUAGE
276 70 : virtual void CharLanguageCTL( const SvxLanguageItem& rHt ) SAL_OVERRIDE { CharLanguage( rHt ); }
277 :
278 : /// Sfx item RES_CHRATR_CTL_POSTURE
279 : virtual void CharPostureCTL( const SvxPostureItem& ) SAL_OVERRIDE;
280 :
281 : /// Sfx item RES_CHRATR_CTL_WEIGHT
282 : virtual void CharWeightCTL( const SvxWeightItem& ) SAL_OVERRIDE;
283 :
284 : /// Sfx item RES_CHRATR_BidiRTL
285 : virtual void CharBidiRTL( const SfxPoolItem& rHt ) SAL_OVERRIDE;
286 :
287 : /// Sfx item RES_CHRATR_IdctHint
288 : virtual void CharIdctHint( const SfxPoolItem& rHt ) SAL_OVERRIDE;
289 :
290 : /// Sfx item RES_CHRATR_ROTATE
291 : virtual void CharRotate( const SvxCharRotateItem& ) SAL_OVERRIDE;
292 :
293 : /// Sfx item RES_CHRATR_EMPHASIS_MARK
294 : virtual void CharEmphasisMark( const SvxEmphasisMarkItem& rHt ) SAL_OVERRIDE;
295 :
296 : /// Sfx item RES_CHRATR_TWO_LINES
297 : virtual void CharTwoLines( const SvxTwoLinesItem& ) SAL_OVERRIDE;
298 :
299 : /// Sfx item RES_CHRATR_SCALEW
300 : virtual void CharScaleWidth( const SvxCharScaleWidthItem& ) SAL_OVERRIDE;
301 :
302 : /// Sfx item RES_CHRATR_RELIEF
303 : virtual void CharRelief( const SvxCharReliefItem& ) SAL_OVERRIDE;
304 :
305 : /// Sfx item RES_CHRATR_HIDDEN
306 : virtual void CharHidden( const SvxCharHiddenItem& ) SAL_OVERRIDE;
307 :
308 : /// Sfx item RES_CHRATR_BOX
309 : virtual void CharBorder( const ::editeng::SvxBorderLine* pAllBorder, const sal_uInt16 nDist, const bool bShadow ) SAL_OVERRIDE;
310 :
311 : /// Sfx item RES_CHRATR_HIGHLIGHT
312 0 : virtual void CharHighlight( const SvxBrushItem& ) SAL_OVERRIDE {};
313 :
314 : /// Sfx item RES_TXTATR_INETFMT
315 : virtual void TextINetFormat( const SwFmtINetFmt& ) SAL_OVERRIDE;
316 :
317 : /// Sfx item RES_TXTATR_CHARFMT
318 : virtual void TextCharFormat( const SwFmtCharFmt& ) SAL_OVERRIDE;
319 :
320 : /// Sfx item RES_TXTATR_FTN
321 : virtual void TextFootnote_Impl( const SwFmtFtn& ) SAL_OVERRIDE;
322 :
323 : /// Sfx item RES_PARATR_LINESPACING
324 : virtual void ParaLineSpacing_Impl( short nSpace, short nMulti ) SAL_OVERRIDE;
325 :
326 : /// Sfx item RES_PARATR_ADJUST
327 : virtual void ParaAdjust( const SvxAdjustItem& rHt ) SAL_OVERRIDE;
328 :
329 : /// Sfx item RES_PARATR_SPLIT
330 : virtual void ParaSplit( const SvxFmtSplitItem& ) SAL_OVERRIDE;
331 :
332 : /// Sfx item RES_PARATR_WIDOWS
333 : virtual void ParaWidows( const SvxWidowsItem& rHt ) SAL_OVERRIDE;
334 :
335 : /// Sfx item RES_PARATR_TABSTOP
336 : virtual void ParaTabStop( const SvxTabStopItem& rHt ) SAL_OVERRIDE;
337 :
338 : /// Sfx item RES_PARATR_HYPHENZONE
339 : virtual void ParaHyphenZone( const SvxHyphenZoneItem& ) SAL_OVERRIDE;
340 :
341 : /// Sfx item RES_PARATR_NUMRULE
342 : virtual void ParaNumRule_Impl( const SwTxtNode *pTxtNd, sal_Int32 nLvl, sal_Int32 nNumId ) SAL_OVERRIDE;
343 :
344 : /// Sfx item RES_PARATR_SCRIPTSPACE
345 : virtual void ParaScriptSpace( const SfxBoolItem& ) SAL_OVERRIDE;
346 :
347 : /// Sfx item RES_PARATR_HANGINGPUNCTUATION
348 : virtual void ParaHangingPunctuation( const SfxBoolItem& ) SAL_OVERRIDE;
349 :
350 : /// Sfx item RES_PARATR_FORBIDDEN_RULES
351 : virtual void ParaForbiddenRules( const SfxBoolItem& ) SAL_OVERRIDE;
352 :
353 : /// Sfx item RES_PARATR_VERTALIGN
354 : virtual void ParaVerticalAlign( const SvxParaVertAlignItem& ) SAL_OVERRIDE;
355 :
356 : /// Sfx item RES_PARATR_SNAPTOGRID
357 : virtual void ParaSnapToGrid( const SvxParaGridItem& ) SAL_OVERRIDE;
358 :
359 : /// Sfx item RES_FRM_SIZE
360 : virtual void FormatFrameSize( const SwFmtFrmSize& ) SAL_OVERRIDE;
361 :
362 : /// Sfx item RES_PAPER_BIN
363 : virtual void FormatPaperBin( const SvxPaperBinItem& ) SAL_OVERRIDE;
364 :
365 : /// Sfx item RES_LR_SPACE
366 : virtual void FormatLRSpace( const SvxLRSpaceItem& ) SAL_OVERRIDE;
367 :
368 : /// Sfx item RES_UL_SPACE
369 : virtual void FormatULSpace( const SvxULSpaceItem& rHt ) SAL_OVERRIDE;
370 :
371 : /// Sfx item RES_SURROUND
372 : virtual void FormatSurround( const SwFmtSurround& ) SAL_OVERRIDE;
373 :
374 : /// Sfx item RES_VERT_ORIENT
375 : virtual void FormatVertOrientation( const SwFmtVertOrient& ) SAL_OVERRIDE;
376 :
377 : /// Sfx item RES_HORI_ORIENT
378 : virtual void FormatHorizOrientation( const SwFmtHoriOrient& ) SAL_OVERRIDE;
379 :
380 : /// Sfx item RES_ANCHOR
381 : virtual void FormatAnchor( const SwFmtAnchor& ) SAL_OVERRIDE;
382 :
383 : /// Sfx item RES_BACKGROUND
384 : virtual void FormatBackground( const SvxBrushItem& ) SAL_OVERRIDE;
385 :
386 : /// Sfx item RES_FILL_STYLE
387 : virtual void FormatFillStyle( const XFillStyleItem& ) SAL_OVERRIDE;
388 :
389 : /// Sfx item RES_FILL_GRADIENT
390 : virtual void FormatFillGradient( const XFillGradientItem& ) SAL_OVERRIDE;
391 :
392 : /// Sfx item RES_BOX
393 : virtual void FormatBox( const SvxBoxItem& ) SAL_OVERRIDE;
394 :
395 : /// Sfx item RES_COL
396 : virtual void FormatColumns_Impl( sal_uInt16 nCols, const SwFmtCol & rCol, bool bEven, SwTwips nPageSize ) SAL_OVERRIDE;
397 :
398 : /// Sfx item RES_KEEP
399 : virtual void FormatKeep( const SvxFmtKeepItem& ) SAL_OVERRIDE;
400 :
401 : /// Sfx item RES_TEXTGRID
402 : virtual void FormatTextGrid( const SwTextGridItem& ) SAL_OVERRIDE;
403 :
404 : /// Sfx item RES_LINENUMBER
405 : virtual void FormatLineNumbering( const SwFmtLineNumber& ) SAL_OVERRIDE;
406 :
407 : /// Sfx item RES_FRAMEDIR
408 : virtual void FormatFrameDirection( const SvxFrameDirectionItem& ) SAL_OVERRIDE;
409 :
410 : /// Sfx item RES_PARATR_GRABBAG
411 : virtual void ParaGrabBag( const SfxGrabBagItem& ) SAL_OVERRIDE;
412 :
413 : /// Sfx item RES_TXTATR_GRABBAG
414 : virtual void CharGrabBag( const SfxGrabBagItem& ) SAL_OVERRIDE;
415 :
416 : // Sfx item RES_PARATR_OUTLINELEVEL
417 : virtual void ParaOutlineLevel( const SfxUInt16Item& ) SAL_OVERRIDE;
418 :
419 : /// Write the expanded field
420 : virtual void WriteExpand( const SwField* pFld ) SAL_OVERRIDE;
421 :
422 : virtual void RefField ( const SwField& rFld, const OUString& rRef ) SAL_OVERRIDE;
423 : virtual void HiddenField( const SwField& rFld ) SAL_OVERRIDE;
424 : virtual void SetField( const SwField& rFld, ww::eField eType, const OUString& rCmd ) SAL_OVERRIDE;
425 : virtual void PostitField( const SwField* pFld ) SAL_OVERRIDE;
426 : virtual bool DropdownField( const SwField* pFld ) SAL_OVERRIDE;
427 : virtual bool PlaceholderField( const SwField* pFld ) SAL_OVERRIDE;
428 :
429 : virtual bool AnalyzeURL( const OUString& rURL, const OUString& rTarget, OUString* pLinkURL, OUString* pMark ) SAL_OVERRIDE;
430 :
431 : /// Reference to the export, where to get the data from
432 : WW8Export &m_rWW8Export;
433 :
434 : /// For output of styles.
435 : ///
436 : /// We have to remember these positions between the StartStyle() and
437 : /// EndStyle().
438 : sal_uInt16 nPOPosStdLen1, nPOPosStdLen2;
439 :
440 : /// For output of styles.
441 : ///
442 : /// We have to remember this position between StartStyleProperties() and
443 : /// EndStyleProperties().
444 : sal_uInt16 m_nStyleStartSize, m_nStyleLenPos;
445 :
446 : /// For output of styles.
447 : ///
448 : /// Used between StartStyles() and EndStyles().
449 : sal_uLong m_nStyAnzPos;
450 :
451 : /// For output of run properties.
452 : ///
453 : /// We have to remember the number of field results, and do not export end
454 : /// of the field results if we were forced to split text.
455 : sal_uInt16 m_nFieldResults;
456 :
457 : bool mbOnTOXEnding;
458 :
459 : public:
460 34 : WW8AttributeOutput( WW8Export &rWW8Export )
461 : : AttributeOutputBase()
462 : , m_rWW8Export(rWW8Export)
463 : , nPOPosStdLen1(0)
464 : , nPOPosStdLen2(0)
465 : , m_nStyleStartSize(0)
466 : , m_nStyleLenPos(0)
467 : , m_nStyAnzPos(0)
468 : , m_nFieldResults(0)
469 34 : , mbOnTOXEnding(false)
470 : {
471 34 : }
472 :
473 68 : virtual ~WW8AttributeOutput() {}
474 :
475 : /// Return the right export class.
476 2138 : virtual WW8Export& GetExport() SAL_OVERRIDE { return m_rWW8Export; }
477 : const WW8Export& GetExport() const { return m_rWW8Export; }
478 :
479 : protected:
480 : /// Output the bold etc. attributes
481 : void OutputWW8Attribute( sal_uInt8 nId, bool bVal );
482 :
483 : /// Output the bold etc. attributes, the Complex Text Layout version
484 : void OutputWW8AttributeCTL( sal_uInt8 nId, bool bVal );
485 :
486 : void TableCellBorders(
487 : ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner );
488 :
489 : };
490 :
491 : #endif // INCLUDED_SW_SOURCE_FILTER_WW8_WW8ATTRIBUTEOUTPUT_HXX
492 :
493 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|