LibreOffice Module svx (master)  1
autoformathelper.cxx
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 #include <svx/autoformathelper.hxx>
21 #include <tools/stream.hxx>
22 #include <svl/legacyitem.hxx>
23 #include <editeng/legacyitem.hxx>
24 #include <svx/legacyitem.hxx>
25 #include <editeng/fontitem.hxx>
26 #include <editeng/fhgtitem.hxx>
27 #include <editeng/wghtitem.hxx>
28 #include <editeng/postitem.hxx>
29 #include <editeng/udlnitem.hxx>
31 #include <editeng/contouritem.hxx>
32 #include <editeng/shdditem.hxx>
33 #include <editeng/colritem.hxx>
34 #include <editeng/boxitem.hxx>
35 #include <editeng/lineitem.hxx>
36 #include <editeng/brushitem.hxx>
37 #include <editeng/adjustitem.hxx>
38 #include <editeng/justifyitem.hxx>
39 #include <svl/eitem.hxx>
40 #include <svx/algitem.hxx>
41 #include <svl/intitem.hxx>
42 #include <svx/rotmodit.hxx>
43 #include <osl/thread.h>
44 
46 
48 : nFontVersion(0),
49  nFontHeightVersion(0),
50  nWeightVersion(0),
51  nPostureVersion(0),
52  nUnderlineVersion(0),
53  nOverlineVersion(0),
54  nCrossedOutVersion(0),
55  nContourVersion(0),
56  nShadowedVersion(0),
57  nColorVersion(0),
58  nBoxVersion(0),
59  nLineVersion(0),
60  nBrushVersion(0),
61  nAdjustVersion(0),
62  nHorJustifyVersion(0),
63  nVerJustifyVersion(0),
64  nOrientationVersion(0),
65  nMarginVersion(0),
66  nBoolVersion(0),
67  nInt32Version(0),
68  nRotateModeVersion(0),
69  nNumFormatVersion(0)
70 {
71 }
72 
73 const sal_uInt16 AUTOFORMAT_ID_300OVRLN = 10031;
74 const sal_uInt16 AUTOFORMAT_ID_680DR14 = 10011;
75 const sal_uInt16 AUTOFORMAT_ID_504 = 9801;
76 
77 void AutoFormatVersions::LoadBlockA( SvStream& rStream, sal_uInt16 nVer )
78 {
79  rStream.ReadUInt16( nFontVersion );
80  rStream.ReadUInt16( nFontHeightVersion );
81  rStream.ReadUInt16( nWeightVersion );
82  rStream.ReadUInt16( nPostureVersion );
83  rStream.ReadUInt16( nUnderlineVersion );
84  if ( nVer >= AUTOFORMAT_ID_300OVRLN )
85  rStream.ReadUInt16( nOverlineVersion );
86  rStream.ReadUInt16( nCrossedOutVersion );
87  rStream.ReadUInt16( nContourVersion );
88  rStream.ReadUInt16( nShadowedVersion );
89  rStream.ReadUInt16( nColorVersion );
90  rStream.ReadUInt16( nBoxVersion );
91  if ( nVer >= AUTOFORMAT_ID_680DR14 )
92  rStream.ReadUInt16( nLineVersion );
93  rStream.ReadUInt16( nBrushVersion );
94  rStream.ReadUInt16( nAdjustVersion );
95 }
96 
97 void AutoFormatVersions::LoadBlockB( SvStream& rStream, sal_uInt16 nVer )
98 {
99  rStream.ReadUInt16( nHorJustifyVersion );
100  rStream.ReadUInt16( nVerJustifyVersion );
101  rStream.ReadUInt16( nOrientationVersion );
102  rStream.ReadUInt16( nMarginVersion );
103  rStream.ReadUInt16( nBoolVersion );
104  if ( nVer >= AUTOFORMAT_ID_504 )
105  {
106  rStream.ReadUInt16( nInt32Version );
107  rStream.ReadUInt16( nRotateModeVersion );
108  }
109  rStream.ReadUInt16( nNumFormatVersion );
110 }
111 
112 void AutoFormatVersions::WriteBlockA(SvStream& rStream, sal_uInt16 fileVersion)
113 {
114  rStream.WriteUInt16(legacy::SvxFont::GetVersion(fileVersion));
115  rStream.WriteUInt16(legacy::SvxFontHeight::GetVersion(fileVersion));
116  rStream.WriteUInt16(legacy::SvxWeight::GetVersion(fileVersion));
117  rStream.WriteUInt16(legacy::SvxPosture::GetVersion(fileVersion));
118  rStream.WriteUInt16(legacy::SvxTextLine::GetVersion(fileVersion));
119  rStream.WriteUInt16(legacy::SvxTextLine::GetVersion(fileVersion));
120  rStream.WriteUInt16(legacy::SvxCrossedOut::GetVersion(fileVersion));
121  rStream.WriteUInt16(legacy::SfxBool::GetVersion(fileVersion));
122  rStream.WriteUInt16(legacy::SfxBool::GetVersion(fileVersion));
123  rStream.WriteUInt16(legacy::SvxColor::GetVersion(fileVersion));
124  rStream.WriteUInt16(legacy::SvxBox::GetVersion(fileVersion));
125  rStream.WriteUInt16(legacy::SvxLine::GetVersion(fileVersion));
126  rStream.WriteUInt16(legacy::SvxBrush::GetVersion(fileVersion));
127  rStream.WriteUInt16(legacy::SvxAdjust::GetVersion(fileVersion));
128 }
129 
130 void AutoFormatVersions::WriteBlockB(SvStream& rStream, sal_uInt16 fileVersion)
131 {
132  rStream.WriteUInt16(legacy::SvxHorJustify::GetVersion(fileVersion));
133  rStream.WriteUInt16(legacy::SvxVerJustify::GetVersion(fileVersion));
134  rStream.WriteUInt16(legacy::SvxOrientation::GetVersion(fileVersion));
135  rStream.WriteUInt16(legacy::SvxMargin::GetVersion(fileVersion));
136  rStream.WriteUInt16(legacy::SfxBool::GetVersion(fileVersion));
137  rStream.WriteUInt16(legacy::CntInt32::GetVersion(fileVersion));
138  rStream.WriteUInt16(legacy::SvxRotateMode::GetVersion(fileVersion));
139  rStream.WriteUInt16( 0 ); // NumberFormat
140 }
141 
143 
144 void AutoFormatBase::SetFont( const SvxFontItem& rNew ) { m_aFont.reset(static_cast<SvxFontItem*>(rNew.Clone())); }
145 void AutoFormatBase::SetHeight( const SvxFontHeightItem& rNew ) { m_aHeight.reset(static_cast<SvxFontHeightItem*>(rNew.Clone())); }
146 void AutoFormatBase::SetWeight( const SvxWeightItem& rNew ) { m_aWeight.reset(static_cast<SvxWeightItem*>(rNew.Clone())); }
147 void AutoFormatBase::SetPosture( const SvxPostureItem& rNew ) { m_aPosture.reset(static_cast<SvxPostureItem*>(rNew.Clone())); }
148 void AutoFormatBase::SetCJKFont( const SvxFontItem& rNew ) { m_aCJKFont.reset(static_cast<SvxFontItem*>(rNew.Clone())); }
149 void AutoFormatBase::SetCJKHeight( const SvxFontHeightItem& rNew ) { m_aCJKHeight.reset(static_cast<SvxFontHeightItem*>(rNew.Clone())); }
150 void AutoFormatBase::SetCJKWeight( const SvxWeightItem& rNew ) { m_aCJKWeight.reset(static_cast<SvxWeightItem*>(rNew.Clone())); }
151 void AutoFormatBase::SetCJKPosture( const SvxPostureItem& rNew ) { m_aCJKPosture.reset(static_cast<SvxPostureItem*>(rNew.Clone())); }
152 void AutoFormatBase::SetCTLFont( const SvxFontItem& rNew ) { m_aCTLFont.reset(static_cast<SvxFontItem*>(rNew.Clone())); }
153 void AutoFormatBase::SetCTLHeight( const SvxFontHeightItem& rNew ) { m_aCTLHeight.reset(static_cast<SvxFontHeightItem*>(rNew.Clone())); }
154 void AutoFormatBase::SetCTLWeight( const SvxWeightItem& rNew ) { m_aCTLWeight.reset(static_cast<SvxWeightItem*>(rNew.Clone())); }
155 void AutoFormatBase::SetCTLPosture( const SvxPostureItem& rNew ) { m_aCTLPosture.reset(static_cast<SvxPostureItem*>(rNew.Clone())); }
156 void AutoFormatBase::SetUnderline( const SvxUnderlineItem& rNew ) { m_aUnderline.reset(static_cast<SvxUnderlineItem*>(rNew.Clone())); }
157 void AutoFormatBase::SetOverline( const SvxOverlineItem& rNew ) { m_aOverline.reset(static_cast<SvxOverlineItem*>(rNew.Clone())); }
158 void AutoFormatBase::SetCrossedOut( const SvxCrossedOutItem& rNew ) { m_aCrossedOut.reset(static_cast<SvxCrossedOutItem*>(rNew.Clone())); }
159 void AutoFormatBase::SetContour( const SvxContourItem& rNew ) { m_aContour.reset(static_cast<SvxContourItem*>(rNew.Clone())); }
160 void AutoFormatBase::SetShadowed( const SvxShadowedItem& rNew ) { m_aShadowed.reset(static_cast<SvxShadowedItem*>(rNew.Clone())); }
161 void AutoFormatBase::SetColor( const SvxColorItem& rNew ) { m_aColor.reset(static_cast<SvxColorItem*>(rNew.Clone())); }
162 void AutoFormatBase::SetBox( const SvxBoxItem& rNew ) { m_aBox.reset(static_cast<SvxBoxItem*>(rNew.Clone())); }
163 void AutoFormatBase::SetTLBR( const SvxLineItem& rNew ) { m_aTLBR.reset(static_cast<SvxLineItem*>(rNew.Clone())); }
164 void AutoFormatBase::SetBLTR( const SvxLineItem& rNew ) { m_aBLTR.reset(static_cast<SvxLineItem*>(rNew.Clone())); }
165 void AutoFormatBase::SetBackground( const SvxBrushItem& rNew ) { m_aBackground.reset(static_cast<SvxBrushItem*>(rNew.Clone())); }
166 void AutoFormatBase::SetAdjust( const SvxAdjustItem& rNew ) { m_aAdjust.reset(static_cast<SvxAdjustItem*>(rNew.Clone())); }
167 void AutoFormatBase::SetHorJustify( const SvxHorJustifyItem& rNew ) { m_aHorJustify.reset(static_cast<SvxHorJustifyItem*>(rNew.Clone())); }
168 void AutoFormatBase::SetVerJustify( const SvxVerJustifyItem& rNew ) { m_aVerJustify.reset(static_cast<SvxVerJustifyItem*>(rNew.Clone())); }
169 void AutoFormatBase::SetStacked( const SfxBoolItem& rNew ) { m_aStacked.reset(static_cast<SfxBoolItem*>(rNew.Clone())); }
170 void AutoFormatBase::SetMargin( const SvxMarginItem& rNew ) { m_aMargin.reset(static_cast<SvxMarginItem*>(rNew.Clone())); }
171 void AutoFormatBase::SetLinebreak( const SfxBoolItem& rNew ) { m_aLinebreak.reset(static_cast<SfxBoolItem*>(rNew.Clone())); }
172 void AutoFormatBase::SetRotateAngle( const SfxInt32Item& rNew ) { m_aRotateAngle.reset(static_cast<SfxInt32Item*>(rNew.Clone())); }
173 void AutoFormatBase::SetRotateMode( const SvxRotateModeItem& rNew ) { m_aRotateMode.reset(static_cast<SvxRotateModeItem*>(rNew.Clone())); }
174 
176 : m_aFont(),
177  m_aHeight(),
178  m_aWeight(),
179  m_aPosture(),
180  m_aCJKFont(),
181  m_aCJKHeight(),
182  m_aCJKWeight(),
183  m_aCJKPosture(),
184  m_aCTLFont(),
185  m_aCTLHeight(),
186  m_aCTLWeight(),
187  m_aCTLPosture(),
188  m_aUnderline(),
189  m_aOverline(),
190  m_aCrossedOut(),
191  m_aContour(),
192  m_aShadowed(),
193  m_aColor(),
194  m_aBox(),
195  m_aTLBR(),
196  m_aBLTR(),
197  m_aBackground(),
198  m_aAdjust(),
199  m_aHorJustify(),
200  m_aVerJustify(),
201  m_aStacked(),
202  m_aMargin(),
203  m_aLinebreak(),
204  m_aRotateAngle(),
205  m_aRotateMode()
206 {
207 }
208 
210 : m_aFont(static_cast<SvxFontItem*>(rNew.m_aFont->Clone())),
211  m_aHeight(static_cast<SvxFontHeightItem*>(rNew.m_aHeight->Clone())),
212  m_aWeight(static_cast<SvxWeightItem*>(rNew.m_aWeight->Clone())),
213  m_aPosture(static_cast<SvxPostureItem*>(rNew.m_aPosture->Clone())),
214  m_aCJKFont(static_cast<SvxFontItem*>(rNew.m_aCJKFont->Clone())),
215  m_aCJKHeight(static_cast<SvxFontHeightItem*>(rNew.m_aCJKHeight->Clone())),
216  m_aCJKWeight(static_cast<SvxWeightItem*>(rNew.m_aCJKWeight->Clone())),
217  m_aCJKPosture(static_cast<SvxPostureItem*>(rNew.m_aCJKPosture->Clone())),
218  m_aCTLFont(static_cast<SvxFontItem*>(rNew.m_aCTLFont->Clone())),
219  m_aCTLHeight(static_cast<SvxFontHeightItem*>(rNew.m_aCTLHeight->Clone())),
220  m_aCTLWeight(static_cast<SvxWeightItem*>(rNew.m_aCTLWeight->Clone())),
221  m_aCTLPosture(static_cast<SvxPostureItem*>(rNew.m_aCTLPosture->Clone())),
222  m_aUnderline(static_cast<SvxUnderlineItem*>(rNew.m_aUnderline->Clone())),
223  m_aOverline(static_cast<SvxOverlineItem*>(rNew.m_aOverline->Clone())),
224  m_aCrossedOut(static_cast<SvxCrossedOutItem*>(rNew.m_aCrossedOut->Clone())),
225  m_aContour(static_cast<SvxContourItem*>(rNew.m_aContour->Clone())),
226  m_aShadowed(static_cast<SvxShadowedItem*>(rNew.m_aShadowed->Clone())),
227  m_aColor(static_cast<SvxColorItem*>(rNew.m_aColor->Clone())),
228  m_aBox(static_cast<SvxBoxItem*>(rNew.m_aBox->Clone())),
229  m_aTLBR(static_cast<SvxLineItem*>(rNew.m_aTLBR->Clone())),
230  m_aBLTR(static_cast<SvxLineItem*>(rNew.m_aBLTR->Clone())),
231  m_aBackground(static_cast<SvxBrushItem*>(rNew.m_aBackground->Clone())),
232  m_aAdjust(static_cast<SvxAdjustItem*>(rNew.m_aAdjust->Clone())),
233  m_aHorJustify(static_cast<SvxHorJustifyItem*>(rNew.m_aHorJustify->Clone())),
234  m_aVerJustify(static_cast<SvxVerJustifyItem*>(rNew.m_aVerJustify->Clone())),
235  m_aStacked(static_cast<SfxBoolItem*>(rNew.m_aStacked->Clone())),
236  m_aMargin(static_cast<SvxMarginItem*>(rNew.m_aMargin->Clone())),
237  m_aLinebreak(static_cast<SfxBoolItem*>(rNew.m_aLinebreak->Clone())),
238  m_aRotateAngle(static_cast<SfxInt32Item*>(rNew.m_aRotateAngle->Clone())),
239  m_aRotateMode(static_cast<SvxRotateModeItem*>(rNew.m_aRotateMode->Clone()))
240 {
241 }
242 
244 {
245 }
246 
248 {
249  // check self-assignment
250  if(this == &rRef)
251  {
252  return *this;
253  }
254 
255  // copy local members - this will use ::Clone() on all involved Items
256  SetFont(rRef.GetFont());
257  SetHeight(rRef.GetHeight());
258  SetWeight(rRef.GetWeight());
259  SetPosture(rRef.GetPosture());
260  SetCJKFont(rRef.GetCJKFont());
261  SetCJKHeight(rRef.GetCJKHeight());
262  SetCJKWeight(rRef.GetCJKWeight());
264  SetCTLFont(rRef.GetCTLFont());
265  SetCTLHeight(rRef.GetCTLHeight());
266  SetCTLWeight(rRef.GetCTLWeight());
268  SetUnderline(rRef.GetUnderline());
269  SetOverline(rRef.GetOverline());
271  SetContour(rRef.GetContour());
272  SetShadowed(rRef.GetShadowed());
273  SetColor(rRef.GetColor());
274  SetBox(rRef.GetBox());
275  SetTLBR(rRef.GetTLBR());
276  SetBLTR(rRef.GetBLTR());
278  SetAdjust(rRef.GetAdjust());
281  SetStacked(rRef.GetStacked());
282  SetMargin(rRef.GetMargin());
283  SetLinebreak(rRef.GetLinebreak());
286 
287  return *this;
288 }
289 
290 const sal_uInt16 AUTOFORMAT_DATA_ID_641 = 10002;
291 const sal_uInt16 AUTOFORMAT_DATA_ID_300OVRLN = 10032;
292 const sal_uInt16 AUTOFORMAT_DATA_ID_680DR14 = 10012;
293 const sal_uInt16 AUTOFORMAT_DATA_ID_504 = 9802;
294 
295 bool AutoFormatBase::LoadBlockA( SvStream& rStream, const AutoFormatVersions& rVersions, sal_uInt16 nVer )
296 {
297  legacy::SvxFont::Create(*m_aFont, rStream, rVersions.nFontVersion);
298 
299  if( rStream.GetStreamCharSet() == m_aFont->GetCharSet() )
300  {
301  m_aFont->SetCharSet(::osl_getThreadTextEncoding());
302  }
303 
305  legacy::SvxWeight::Create(*m_aWeight, rStream, rVersions.nWeightVersion);
307 
308  // --- from 641 on: CJK and CTL font settings
309  if( AUTOFORMAT_DATA_ID_641 <= nVer )
310  {
311  legacy::SvxFont::Create(*m_aCJKFont, rStream, rVersions.nFontVersion);
315 
316  legacy::SvxFont::Create(*m_aCTLFont, rStream, rVersions.nFontVersion);
320  }
321 
323 
324  if( nVer >= AUTOFORMAT_DATA_ID_300OVRLN )
325  {
327  }
328 
330  legacy::SfxBool::Create(*m_aContour, rStream, rVersions.nContourVersion);
332  legacy::SvxColor::Create(*m_aColor, rStream, rVersions.nColorVersion);
333  legacy::SvxBox::Create(*m_aBox, rStream, rVersions.nBoxVersion);
334 
335  // --- from 680/dr14 on: diagonal frame lines
336  if( nVer >= AUTOFORMAT_DATA_ID_680DR14 )
337  {
338  legacy::SvxLine::Create(*m_aTLBR, rStream, rVersions.nLineVersion);
339  legacy::SvxLine::Create(*m_aBLTR, rStream, rVersions.nLineVersion);
340  }
341 
343  legacy::SvxAdjust::Create(*m_aAdjust, rStream, rVersions.nAdjustVersion);
344 
345  return ERRCODE_NONE == rStream.GetError();
346 }
347 
348 bool AutoFormatBase::LoadBlockB( SvStream& rStream, const AutoFormatVersions& rVersions, sal_uInt16 nVer )
349 {
352  SvxOrientationItem aOrientation( SvxCellOrientation::Standard, 0);
353  legacy::SvxOrientation::Create(aOrientation, rStream, rVersions.nOrientationVersion);
354  legacy::SvxMargin::Create(*m_aMargin, rStream, rVersions.nMarginVersion);
355  legacy::SfxBool::Create(*m_aLinebreak, rStream, rVersions.nBoolVersion);
356 
357  if ( nVer >= AUTOFORMAT_DATA_ID_504 )
358  {
361  }
362 
363  m_aStacked->SetValue( aOrientation.IsStacked() );
364  m_aRotateAngle->SetValue( aOrientation.GetRotation( m_aRotateAngle->GetValue() ) );
365 
366  return ERRCODE_NONE == rStream.GetError();
367 }
368 
369 bool AutoFormatBase::SaveBlockA( SvStream& rStream, sal_uInt16 fileVersion ) const
370 {
375 
376  // --- from 641 on: CJK and CTL font settings
381 
386 
388 
389  // --- from DEV300/overline2 on: overline support
396 
397  // --- from 680/dr14 on: diagonal frame lines
402 
403  return ERRCODE_NONE == rStream.GetError();
404 }
405 
406 bool AutoFormatBase::SaveBlockB( SvStream& rStream, sal_uInt16 fileVersion ) const
407 {
410  SvxOrientationItem aOrientation( m_aRotateAngle->GetValue(), m_aStacked->GetValue(), 0 );
411  legacy::SvxOrientation::Store(aOrientation, rStream, legacy::SvxOrientation::GetVersion(fileVersion));
414 
415  // Calc Rotation from SO5
418 
419  return ERRCODE_NONE == rStream.GetError();
420 }
421 
423 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< SvxBrushItem > m_aBackground
SvStream & Store(const SvxOrientationItem &rItem, SvStream &rStrm, sal_uInt16)
Definition: legacyitem.cxx:41
std::unique_ptr< SfxBoolItem > m_aStacked
const SvxRotateModeItem & GetRotateMode() const
sal_uInt16 GetVersion(sal_uInt16)
SvStream & Store(const SvxAdjustItem &rItem, SvStream &rStrm, sal_uInt16 nItemVersion)
sal_Int32 GetRotation(sal_Int32 nStdAngle) const
Returns the rotation this item represents (returns nStdAngle for STANDARD and STACKED state)...
Definition: algitem.cxx:147
void SetBackground(const SvxBrushItem &rNew)
std::unique_ptr< SvxPostureItem > m_aCTLPosture
const SfxBoolItem & GetLinebreak() const
void SetOverline(const SvxOverlineItem &rNew)
std::unique_ptr< SvxFontHeightItem > m_aHeight
sal_uInt16 GetVersion(sal_uInt16)
SvStream & WriteUInt16(sal_uInt16 nUInt16)
void SetCJKPosture(const SvxPostureItem &rNew)
void SetCJKFont(const SvxFontItem &rNew)
SvStream & Store(const CntInt32Item &rItem, SvStream &rStrm, sal_uInt16)
void SetMargin(const SvxMarginItem &rNew)
bool LoadBlockB(SvStream &rStream, const AutoFormatVersions &rVersions, sal_uInt16 nVer)
const sal_uInt16 AUTOFORMAT_ID_300OVRLN
SvStream & ReadUInt16(sal_uInt16 &rUInt16)
SvStream & Store(const SvxPostureItem &rItem, SvStream &rStrm, sal_uInt16)
std::unique_ptr< SfxInt32Item > m_aRotateAngle
void LoadBlockB(SvStream &rStream, sal_uInt16 nVer)
sal_uInt16 GetVersion(sal_uInt16 nFileFormatVersion)
std::unique_ptr< SvxFontItem > m_aFont
sal_uInt16 GetVersion(sal_uInt16)
Definition: legacyitem.cxx:50
void SetAdjust(const SvxAdjustItem &rNew)
std::unique_ptr< SvxContourItem > m_aContour
const sal_uInt16 AUTOFORMAT_DATA_ID_504
const SvxFontHeightItem & GetCTLHeight() const
const SvxShadowedItem & GetShadowed() const
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Color m_aColor
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
const SvxAdjustItem & GetAdjust() const
SvStream & Store(const SvxBrushItem &rItem, SvStream &rStrm, sal_uInt16)
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
SvStream & Store(const SvxFontHeightItem &rItem, SvStream &rStrm, sal_uInt16 nItemVersion)
const SvxWeightItem & GetCTLWeight() const
const SvxFontItem & GetCTLFont() const
const sal_uInt16 AUTOFORMAT_ID_504
std::unique_ptr< SvxFontHeightItem > m_aCJKHeight
bool SaveBlockB(SvStream &rStream, sal_uInt16 fileVersion) const
static void WriteBlockB(SvStream &rStream, sal_uInt16 fileVersion)
void SetContour(const SvxContourItem &rNew)
SvStream & Store(const SvxBoxItem &rItem, SvStream &rStrm, sal_uInt16 nItemVersion)
const SvxBrushItem & GetBackground() const
void Create(SfxBoolItem &rItem, SvStream &rStrm, sal_uInt16)
sal_uInt16 nVerJustifyVersion
void SetCTLPosture(const SvxPostureItem &rNew)
const SvxPostureItem & GetCTLPosture() const
SvStream & Store(const SvxTextLineItem &rItem, SvStream &rStrm, sal_uInt16)
void SetCTLWeight(const SvxWeightItem &rNew)
const SfxBoolItem & GetStacked() const
const SvxWeightItem & GetCJKWeight() const
static void WriteBlockA(SvStream &rStream, sal_uInt16 fileVersion)
const sal_uInt16 AUTOFORMAT_ID_680DR14
sal_uInt16 nHorJustifyVersion
void Create(SvxBrushItem &rItem, SvStream &rStrm, sal_uInt16 nItemVersion)
SvStream & Store(const SvxFontItem &rItem, SvStream &rStrm, sal_uInt16)
sal_uInt16 GetVersion(sal_uInt16)
std::unique_ptr< SvxUnderlineItem > m_aUnderline
std::unique_ptr< SvxShadowedItem > m_aShadowed
const SvxFontItem & GetFont() const
void Create(SvxBoxItem &rItem, SvStream &rStrm, sal_uInt16 nItemVersion)
void Create(SvxLineItem &rItem, SvStream &rStrm, sal_uInt16)
SvStream & Store(const SvxLineItem &rItem, SvStream &rStrm, sal_uInt16)
std::unique_ptr< SvxOverlineItem > m_aOverline
void SetHeight(const SvxFontHeightItem &rNew)
void Create(SvxFontHeightItem &rItem, SvStream &rStrm, sal_uInt16 nItemVersion)
ErrCode GetError() const
sal_uInt16 nOrientationVersion
void SetUnderline(const SvxUnderlineItem &rNew)
bool LoadBlockA(SvStream &rStream, const AutoFormatVersions &rVersions, sal_uInt16 nVer)
std::unique_ptr< SvxPostureItem > m_aCJKPosture
std::unique_ptr< SvxCrossedOutItem > m_aCrossedOut
std::unique_ptr< SvxHorJustifyItem > m_aHorJustify
void SetCJKWeight(const SvxWeightItem &rNew)
std::unique_ptr< SvxMarginItem > m_aMargin
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
sal_uInt16 GetVersion(sal_uInt16)
Definition: legacyitem.cxx:85
sal_uInt16 GetVersion(sal_uInt16)
const SvxUnderlineItem & GetUnderline() const
void SetLinebreak(const SfxBoolItem &rNew)
void SetTLBR(const SvxLineItem &rNew)
void Create(SvxColorItem &rItem, SvStream &rStrm, sal_uInt16)
sal_uInt16 nNumFormatVersion
virtual SfxPoolItem * Clone(SfxItemPool *=nullptr) const override
const SvxWeightItem & GetWeight() const
const sal_uInt16 AUTOFORMAT_DATA_ID_680DR14
std::unique_ptr< SfxBoolItem > m_aLinebreak
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
void SetVerJustify(const SvxVerJustifyItem &rNew)
void SetShadowed(const SvxShadowedItem &rNew)
const SvxContourItem & GetContour() const
AutoFormatBase & operator=(const AutoFormatBase &)
void Create(SvxFontItem &rItem, SvStream &rStrm, sal_uInt16)
void Create(SvxWeightItem &rItem, SvStream &rStrm, sal_uInt16)
void Create(SvxPostureItem &rItem, SvStream &rStrm, sal_uInt16)
SvStream & Store(const SvxHorJustifyItem &rItem, SvStream &rStrm, sal_uInt16)
bool IsStacked() const
Returns sal_True, if the item represents STACKED state.
Definition: algitem.cxx:142
void SetCrossedOut(const SvxCrossedOutItem &rNew)
sal_uInt16 nRotateModeVersion
Font m_aFont
void SetWeight(const SvxWeightItem &rNew)
Reference< XAnimationNode > Clone(const Reference< XAnimationNode > &xSourceNode, const SdPage *pSource, const SdPage *pTarget)
const SvxFontHeightItem & GetCJKHeight() const
void SetBox(const SvxBoxItem &rNew)
const sal_uInt16 AUTOFORMAT_DATA_ID_641
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: rotmodit.cxx:87
void LoadBlockA(SvStream &rStream, sal_uInt16 nVer)
void SetBLTR(const SvxLineItem &rNew)
std::unique_ptr< SvxLineItem > m_aTLBR
sal_uInt16 GetVersion(sal_uInt16)
std::unique_ptr< SvxBoxItem > m_aBox
void SetRotateMode(const SvxRotateModeItem &rNew)
std::unique_ptr< SvxVerJustifyItem > m_aVerJustify
std::unique_ptr< SvxWeightItem > m_aCTLWeight
sal_uInt16 GetVersion(sal_uInt16)
void SetCTLHeight(const SvxFontHeightItem &rNew)
void SetCJKHeight(const SvxFontHeightItem &rNew)
void Create(SvxOrientationItem &rItem, SvStream &rStrm, sal_uInt16)
Definition: legacyitem.cxx:34
SvStream & Store(const SfxBoolItem &rItem, SvStream &rStrm, sal_uInt16)
void Create(SvxAdjustItem &rItem, SvStream &rStrm, sal_uInt16 nItemVersion)
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
std::unique_ptr< SvxAdjustItem > m_aAdjust
SvStream & Store(const SvxWeightItem &rItem, SvStream &rStrm, sal_uInt16)
SvStream & Store(const SvxMarginItem &rItem, SvStream &rStrm, sal_uInt16)
Definition: legacyitem.cxx:73
const sal_uInt16 AUTOFORMAT_DATA_ID_300OVRLN
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
sal_uInt16 GetVersion(sal_uInt16)
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
bool SaveBlockA(SvStream &rStream, sal_uInt16 fileVersion) const
void SetHorJustify(const SvxHorJustifyItem &rNew)
std::unique_ptr< SvxFontItem > m_aCTLFont
sal_uInt16 GetVersion(sal_uInt16)
void Create(SvxTextLineItem &rItem, SvStream &rStrm, sal_uInt16)
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
const SvxPostureItem & GetCJKPosture() const
std::unique_ptr< SvxPostureItem > m_aPosture
SvStream & Store(const SvxVerJustifyItem &rItem, SvStream &rStrm, sal_uInt16)
void Create(SvxMarginItem &rItem, SvStream &rStrm, sal_uInt16)
Definition: legacyitem.cxx:55
void SetFont(const SvxFontItem &rNew)
const SvxVerJustifyItem & GetVerJustify() const
SvStream & Store(const SvxColorItem &rItem, SvStream &rStrm, sal_uInt16 nItemVersion)
void SetStacked(const SfxBoolItem &rNew)
sal_uInt16 GetVersion(sal_uInt16 nFileFormatVersion)
const SvxHorJustifyItem & GetHorJustify() const
void Create(SvxHorJustifyItem &rItem, SvStream &rStrm, sal_uInt16)
sal_uInt16 nCrossedOutVersion
const SvxCrossedOutItem & GetCrossedOut() const
Struct with version numbers of the Items.
void SetRotateAngle(const SfxInt32Item &rNew)
const SvxLineItem & GetBLTR() const
#define ERRCODE_NONE
const SvxOverlineItem & GetOverline() const
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
const SvxLineItem & GetTLBR() const
std::unique_ptr< SvxRotateModeItem > m_aRotateMode
std::unique_ptr< SvxLineItem > m_aBLTR
std::unique_ptr< SvxFontItem > m_aCJKFont
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
void Create(CntInt32Item &rItem, SvStream &rStrm, sal_uInt16)
rtl_TextEncoding GetStreamCharSet() const
sal_uInt16 GetVersion(sal_uInt16 nFileFormatVersion)
const SvxFontItem & GetCJKFont() const
std::unique_ptr< SvxColorItem > m_aColor
void Create(SvxCrossedOutItem &rItem, SvStream &rStrm, sal_uInt16)
sal_uInt16 nFontHeightVersion
std::unique_ptr< SvxWeightItem > m_aCJKWeight
sal_uInt16 GetVersion(sal_uInt16)
Definition: legacyitem.cxx:29
sal_uInt16 GetVersion(sal_uInt16)
sal_uInt16 GetVersion(sal_uInt16)
std::unique_ptr< SvxWeightItem > m_aWeight
sal_uInt16 GetVersion(sal_uInt16 nFileFormatVersion)
void SetPosture(const SvxPostureItem &rNew)
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
sal_uInt16 GetVersion(sal_uInt16)
void Create(SvxRotateModeItem &rItem, SvStream &rStrm, sal_uInt16)
Definition: legacyitem.cxx:90
void Create(SvxVerJustifyItem &rItem, SvStream &rStrm, sal_uInt16)
const SvxMarginItem & GetMargin() const
SvStream & Store(const SvxCrossedOutItem &rItem, SvStream &rStrm, sal_uInt16)
const SvxPostureItem & GetPosture() const
const SvxColorItem & GetColor() const
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
void SetCTLFont(const SvxFontItem &rNew)
std::unique_ptr< SvxFontHeightItem > m_aCTLHeight
virtual SfxPoolItem * Clone(SfxItemPool *=nullptr) const override
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
const SvxBoxItem & GetBox() const
const SvxFontHeightItem & GetHeight() const
SvStream & Store(const SvxRotateModeItem &rItem, SvStream &rStrm, sal_uInt16)
Definition: legacyitem.cxx:97
sal_uInt16 nUnderlineVersion
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: algitem.cxx:245
const SfxInt32Item & GetRotateAngle() const
void SetColor(const SvxColorItem &rNew)