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
21#include <tools/stream.hxx>
22#include <svl/legacyitem.hxx>
24#include <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>
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>
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
73const sal_uInt16 AUTOFORMAT_ID_300OVRLN = 10031;
74const sal_uInt16 AUTOFORMAT_ID_680DR14 = 10011;
75const sal_uInt16 AUTOFORMAT_ID_504 = 9801;
76
77void AutoFormatVersions::LoadBlockA( SvStream& rStream, sal_uInt16 nVer )
78{
79 rStream.ReadUInt16( nFontVersion );
81 rStream.ReadUInt16( nWeightVersion );
82 rStream.ReadUInt16( nPostureVersion );
84 if ( nVer >= AUTOFORMAT_ID_300OVRLN )
87 rStream.ReadUInt16( nContourVersion );
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
97void AutoFormatVersions::LoadBlockB( SvStream& rStream, sal_uInt16 nVer )
98{
102 rStream.ReadUInt16( nMarginVersion );
103 rStream.ReadUInt16( nBoolVersion );
104 if ( nVer >= AUTOFORMAT_ID_504 )
105 {
106 rStream.ReadUInt16( nInt32Version );
108 }
109 rStream.ReadUInt16( nNumFormatVersion );
110}
111
112void AutoFormatVersions::WriteBlockA(SvStream& rStream, sal_uInt16 fileVersion)
113{
114 rStream.WriteUInt16(legacy::SvxFont::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));
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
130void AutoFormatVersions::WriteBlockB(SvStream& rStream, sal_uInt16 fileVersion)
131{
135 rStream.WriteUInt16(legacy::SvxMargin::GetVersion(fileVersion));
136 rStream.WriteUInt16(legacy::SfxBool::GetVersion(fileVersion));
137 rStream.WriteUInt16(legacy::CntInt32::GetVersion(fileVersion));
139 rStream.WriteUInt16( 0 ); // NumberFormat
140}
141
143
144void AutoFormatBase::SetFont( const SvxFontItem& rNew ) { m_aFont.reset(rNew.Clone()); }
145void AutoFormatBase::SetHeight( const SvxFontHeightItem& rNew ) { m_aHeight.reset(rNew.Clone()); }
146void AutoFormatBase::SetWeight( const SvxWeightItem& rNew ) { m_aWeight.reset(rNew.Clone()); }
147void AutoFormatBase::SetPosture( const SvxPostureItem& rNew ) { m_aPosture.reset(rNew.Clone()); }
148void AutoFormatBase::SetCJKFont( const SvxFontItem& rNew ) { m_aCJKFont.reset(rNew.Clone()); }
150void AutoFormatBase::SetCJKWeight( const SvxWeightItem& rNew ) { m_aCJKWeight.reset(rNew.Clone()); }
152void AutoFormatBase::SetCTLFont( const SvxFontItem& rNew ) { m_aCTLFont.reset(rNew.Clone()); }
154void AutoFormatBase::SetCTLWeight( const SvxWeightItem& rNew ) { m_aCTLWeight.reset(rNew.Clone()); }
157void AutoFormatBase::SetOverline( const SvxOverlineItem& rNew ) { m_aOverline.reset(rNew.Clone()); }
159void AutoFormatBase::SetContour( const SvxContourItem& rNew ) { m_aContour.reset(rNew.Clone()); }
160void AutoFormatBase::SetShadowed( const SvxShadowedItem& rNew ) { m_aShadowed.reset(rNew.Clone()); }
161void AutoFormatBase::SetColor( const SvxColorItem& rNew ) { m_aColor.reset(rNew.Clone()); }
162void AutoFormatBase::SetBox( const SvxBoxItem& rNew ) { m_aBox.reset(rNew.Clone()); }
163void AutoFormatBase::SetTLBR( const SvxLineItem& rNew ) { m_aTLBR.reset(rNew.Clone()); }
164void AutoFormatBase::SetBLTR( const SvxLineItem& rNew ) { m_aBLTR.reset(rNew.Clone()); }
165void AutoFormatBase::SetBackground( const SvxBrushItem& rNew ) { m_aBackground.reset(rNew.Clone()); }
166void AutoFormatBase::SetAdjust( const SvxAdjustItem& rNew ) { m_aAdjust.reset(rNew.Clone()); }
169void AutoFormatBase::SetStacked( const SfxBoolItem& rNew ) { m_aStacked.reset(rNew.Clone()); }
170void AutoFormatBase::SetMargin( const SvxMarginItem& rNew ) { m_aMargin.reset(rNew.Clone()); }
171void AutoFormatBase::SetLinebreak( const SfxBoolItem& rNew ) { m_aLinebreak.reset(rNew.Clone()); }
174
176{
177}
178
180: m_aFont(rNew.m_aFont->Clone()),
181 m_aHeight(rNew.m_aHeight->Clone()),
182 m_aWeight(rNew.m_aWeight->Clone()),
183 m_aPosture(rNew.m_aPosture->Clone()),
184 m_aCJKFont(rNew.m_aCJKFont->Clone()),
185 m_aCJKHeight(rNew.m_aCJKHeight->Clone()),
186 m_aCJKWeight(rNew.m_aCJKWeight->Clone()),
187 m_aCJKPosture(rNew.m_aCJKPosture->Clone()),
188 m_aCTLFont(rNew.m_aCTLFont->Clone()),
189 m_aCTLHeight(rNew.m_aCTLHeight->Clone()),
190 m_aCTLWeight(rNew.m_aCTLWeight->Clone()),
191 m_aCTLPosture(rNew.m_aCTLPosture->Clone()),
192 m_aUnderline(rNew.m_aUnderline->Clone()),
193 m_aOverline(rNew.m_aOverline->Clone()),
194 m_aCrossedOut(rNew.m_aCrossedOut->Clone()),
195 m_aContour(rNew.m_aContour->Clone()),
196 m_aShadowed(rNew.m_aShadowed->Clone()),
197 m_aColor(rNew.m_aColor->Clone()),
198 m_aBox(rNew.m_aBox->Clone()),
199 m_aTLBR(rNew.m_aTLBR->Clone()),
200 m_aBLTR(rNew.m_aBLTR->Clone()),
201 m_aBackground(rNew.m_aBackground->Clone()),
202 m_aAdjust(rNew.m_aAdjust->Clone()),
203 m_aHorJustify(rNew.m_aHorJustify->Clone()),
204 m_aVerJustify(rNew.m_aVerJustify->Clone()),
205 m_aStacked(rNew.m_aStacked->Clone()),
206 m_aMargin(rNew.m_aMargin->Clone()),
207 m_aLinebreak(rNew.m_aLinebreak->Clone()),
208 m_aRotateAngle(rNew.m_aRotateAngle->Clone()),
209 m_aRotateMode(rNew.m_aRotateMode->Clone())
210{
211}
212
214{
215}
216
218{
219 // check self-assignment
220 if(this == &rRef)
221 {
222 return *this;
223 }
224
225 // copy local members - this will use ::Clone() on all involved Items
226 SetFont(rRef.GetFont());
227 SetHeight(rRef.GetHeight());
228 SetWeight(rRef.GetWeight());
229 SetPosture(rRef.GetPosture());
230 SetCJKFont(rRef.GetCJKFont());
234 SetCTLFont(rRef.GetCTLFont());
239 SetOverline(rRef.GetOverline());
241 SetContour(rRef.GetContour());
242 SetShadowed(rRef.GetShadowed());
243 SetColor(rRef.GetColor());
244 SetBox(rRef.GetBox());
245 SetTLBR(rRef.GetTLBR());
246 SetBLTR(rRef.GetBLTR());
248 SetAdjust(rRef.GetAdjust());
251 SetStacked(rRef.GetStacked());
252 SetMargin(rRef.GetMargin());
256
257 return *this;
258}
259
260const sal_uInt16 AUTOFORMAT_DATA_ID_641 = 10002;
261const sal_uInt16 AUTOFORMAT_DATA_ID_300OVRLN = 10032;
262const sal_uInt16 AUTOFORMAT_DATA_ID_680DR14 = 10012;
263const sal_uInt16 AUTOFORMAT_DATA_ID_504 = 9802;
264
265bool AutoFormatBase::LoadBlockA( SvStream& rStream, const AutoFormatVersions& rVersions, sal_uInt16 nVer )
266{
267 legacy::SvxFont::Create(*m_aFont, rStream, rVersions.nFontVersion);
268
269 if( rStream.GetStreamCharSet() == m_aFont->GetCharSet() )
270 {
271 m_aFont->SetCharSet(::osl_getThreadTextEncoding());
272 }
273
277
278 // --- from 641 on: CJK and CTL font settings
279 if( AUTOFORMAT_DATA_ID_641 <= nVer )
280 {
281 legacy::SvxFont::Create(*m_aCJKFont, rStream, rVersions.nFontVersion);
285
286 legacy::SvxFont::Create(*m_aCTLFont, rStream, rVersions.nFontVersion);
290 }
291
293
294 if( nVer >= AUTOFORMAT_DATA_ID_300OVRLN )
295 {
297 }
298
302 legacy::SvxColor::Create(*m_aColor, rStream, rVersions.nColorVersion);
303 legacy::SvxBox::Create(*m_aBox, rStream, rVersions.nBoxVersion);
304
305 // --- from 680/dr14 on: diagonal frame lines
306 if( nVer >= AUTOFORMAT_DATA_ID_680DR14 )
307 {
308 legacy::SvxLine::Create(*m_aTLBR, rStream, rVersions.nLineVersion);
309 legacy::SvxLine::Create(*m_aBLTR, rStream, rVersions.nLineVersion);
310 }
311
314
315 return ERRCODE_NONE == rStream.GetError();
316}
317
318bool AutoFormatBase::LoadBlockB( SvStream& rStream, const AutoFormatVersions& rVersions, sal_uInt16 nVer )
319{
322 SvxOrientationItem aOrientation( SvxCellOrientation::Standard, TypedWhichId<SvxOrientationItem>(0));
323 legacy::SvxOrientation::Create(aOrientation, rStream, rVersions.nOrientationVersion);
326
327 if ( nVer >= AUTOFORMAT_DATA_ID_504 )
328 {
331 }
332
333 m_aStacked->SetValue( aOrientation.IsStacked() );
334 m_aRotateAngle->SetValue( aOrientation.GetRotation( Degree100(m_aRotateAngle->GetValue()) ).get() );
335
336 return ERRCODE_NONE == rStream.GetError();
337}
338
339bool AutoFormatBase::SaveBlockA( SvStream& rStream, sal_uInt16 fileVersion ) const
340{
345
346 // --- from 641 on: CJK and CTL font settings
351
356
358
359 // --- from DEV300/overline2 on: overline support
366
367 // --- from 680/dr14 on: diagonal frame lines
372
373 return ERRCODE_NONE == rStream.GetError();
374}
375
376bool AutoFormatBase::SaveBlockB( SvStream& rStream, sal_uInt16 fileVersion ) const
377{
380 SvxOrientationItem aOrientation( Degree100(m_aRotateAngle->GetValue()), m_aStacked->GetValue(), TypedWhichId<SvxOrientationItem>(0) );
381 legacy::SvxOrientation::Store(aOrientation, rStream, legacy::SvxOrientation::GetVersion(fileVersion));
384
385 // Calc Rotation from SO5
388
389 return ERRCODE_NONE == rStream.GetError();
390}
391
393/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const sal_uInt16 AUTOFORMAT_DATA_ID_300OVRLN
const sal_uInt16 AUTOFORMAT_DATA_ID_504
const sal_uInt16 AUTOFORMAT_DATA_ID_641
const sal_uInt16 AUTOFORMAT_ID_300OVRLN
const sal_uInt16 AUTOFORMAT_ID_504
const sal_uInt16 AUTOFORMAT_DATA_ID_680DR14
const sal_uInt16 AUTOFORMAT_ID_680DR14
std::unique_ptr< SvxFontHeightItem > m_aCJKHeight
void SetColor(const SvxColorItem &rNew)
void SetRotateMode(const SvxRotateModeItem &rNew)
std::unique_ptr< SvxAdjustItem > m_aAdjust
const SfxBoolItem & GetStacked() const
const SvxContourItem & GetContour() const
void SetMargin(const SvxMarginItem &rNew)
std::unique_ptr< SvxShadowedItem > m_aShadowed
std::unique_ptr< SvxLineItem > m_aBLTR
bool SaveBlockB(SvStream &rStream, sal_uInt16 fileVersion) const
const SvxColorItem & GetColor() const
std::unique_ptr< SvxCrossedOutItem > m_aCrossedOut
void SetCJKWeight(const SvxWeightItem &rNew)
std::unique_ptr< SfxBoolItem > m_aLinebreak
const SvxWeightItem & GetWeight() const
std::unique_ptr< SvxPostureItem > m_aCTLPosture
const SfxBoolItem & GetLinebreak() const
std::unique_ptr< SvxWeightItem > m_aWeight
void SetCJKHeight(const SvxFontHeightItem &rNew)
const SvxBoxItem & GetBox() const
void SetBackground(const SvxBrushItem &rNew)
std::unique_ptr< SvxPostureItem > m_aCJKPosture
std::unique_ptr< SvxFontHeightItem > m_aHeight
void SetShadowed(const SvxShadowedItem &rNew)
bool LoadBlockB(SvStream &rStream, const AutoFormatVersions &rVersions, sal_uInt16 nVer)
std::unique_ptr< SvxBrushItem > m_aBackground
const SvxFontHeightItem & GetCJKHeight() const
bool SaveBlockA(SvStream &rStream, sal_uInt16 fileVersion) const
const SvxWeightItem & GetCTLWeight() const
std::unique_ptr< SfxBoolItem > m_aStacked
const SvxFontItem & GetCTLFont() const
void SetHorJustify(const SvxHorJustifyItem &rNew)
std::unique_ptr< SvxVerJustifyItem > m_aVerJustify
const SvxLineItem & GetTLBR() const
void SetHeight(const SvxFontHeightItem &rNew)
std::unique_ptr< SvxOverlineItem > m_aOverline
void SetCJKPosture(const SvxPostureItem &rNew)
const SvxPostureItem & GetPosture() const
std::unique_ptr< SfxInt32Item > m_aRotateAngle
const SvxFontItem & GetFont() const
const SvxWeightItem & GetCJKWeight() const
void SetBox(const SvxBoxItem &rNew)
const SvxRotateModeItem & GetRotateMode() const
std::unique_ptr< SvxFontItem > m_aCJKFont
const SvxPostureItem & GetCJKPosture() const
const SvxOverlineItem & GetOverline() const
bool LoadBlockA(SvStream &rStream, const AutoFormatVersions &rVersions, sal_uInt16 nVer)
const SvxFontItem & GetCJKFont() const
const SvxAdjustItem & GetAdjust() const
void SetContour(const SvxContourItem &rNew)
void SetCTLFont(const SvxFontItem &rNew)
const SvxLineItem & GetBLTR() const
std::unique_ptr< SvxMarginItem > m_aMargin
void SetOverline(const SvxOverlineItem &rNew)
std::unique_ptr< SvxColorItem > m_aColor
void SetWeight(const SvxWeightItem &rNew)
std::unique_ptr< SvxFontHeightItem > m_aCTLHeight
const SvxShadowedItem & GetShadowed() const
void SetUnderline(const SvxUnderlineItem &rNew)
std::unique_ptr< SvxBoxItem > m_aBox
void SetBLTR(const SvxLineItem &rNew)
std::unique_ptr< SvxFontItem > m_aCTLFont
const SvxFontHeightItem & GetCTLHeight() const
const SvxBrushItem & GetBackground() const
void SetStacked(const SfxBoolItem &rNew)
void SetCTLPosture(const SvxPostureItem &rNew)
std::unique_ptr< SvxWeightItem > m_aCTLWeight
void SetPosture(const SvxPostureItem &rNew)
const SvxFontHeightItem & GetHeight() const
void SetCJKFont(const SvxFontItem &rNew)
void SetLinebreak(const SfxBoolItem &rNew)
void SetCTLWeight(const SvxWeightItem &rNew)
const SvxHorJustifyItem & GetHorJustify() const
const SvxVerJustifyItem & GetVerJustify() const
void SetCrossedOut(const SvxCrossedOutItem &rNew)
std::unique_ptr< SvxFontItem > m_aFont
std::unique_ptr< SvxContourItem > m_aContour
std::unique_ptr< SvxPostureItem > m_aPosture
const SfxInt32Item & GetRotateAngle() const
const SvxPostureItem & GetCTLPosture() const
void SetAdjust(const SvxAdjustItem &rNew)
std::unique_ptr< SvxWeightItem > m_aCJKWeight
const SvxCrossedOutItem & GetCrossedOut() const
std::unique_ptr< SvxRotateModeItem > m_aRotateMode
void SetFont(const SvxFontItem &rNew)
AutoFormatBase & operator=(const AutoFormatBase &)
std::unique_ptr< SvxUnderlineItem > m_aUnderline
void SetTLBR(const SvxLineItem &rNew)
std::unique_ptr< SvxLineItem > m_aTLBR
void SetRotateAngle(const SfxInt32Item &rNew)
const SvxMarginItem & GetMargin() const
const SvxUnderlineItem & GetUnderline() const
void SetCTLHeight(const SvxFontHeightItem &rNew)
std::unique_ptr< SvxHorJustifyItem > m_aHorJustify
void SetVerJustify(const SvxVerJustifyItem &rNew)
virtual SfxBoolItem * Clone(SfxItemPool *=nullptr) const override
virtual SfxInt32Item * Clone(SfxItemPool *=nullptr) const override
SvStream & WriteUInt16(sal_uInt16 nUInt16)
rtl_TextEncoding GetStreamCharSet() const
ErrCode GetError() const
SvStream & ReadUInt16(sal_uInt16 &rUInt16)
virtual SvxAdjustItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual SvxBoxItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual SvxBrushItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual SvxColorItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual SvxContourItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual SvxCrossedOutItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual SvxFontHeightItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual SvxFontItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual SvxHorJustifyItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual SvxLineItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual SvxMarginItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: algitem.cxx:229
Degree100 GetRotation(Degree100 nStdAngle) const
Returns the rotation this item represents (returns nStdAngle for STANDARD and STACKED state).
Definition: algitem.cxx:132
bool IsStacked() const
Returns sal_True, if the item represents STACKED state.
Definition: algitem.cxx:127
virtual SvxOverlineItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual SvxPostureItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual SvxRotateModeItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: rotmodit.cxx:82
virtual SvxShadowedItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual SvxUnderlineItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual SvxVerJustifyItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual SvxWeightItem * Clone(SfxItemPool *pPool=nullptr) const override
Color m_aColor
#define ERRCODE_NONE
Font m_aFont
sal_uInt16 GetVersion(sal_uInt16)
SvStream & Store(const CntInt32Item &rItem, SvStream &rStrm, sal_uInt16)
void Create(CntInt32Item &rItem, SvStream &rStrm, sal_uInt16)
sal_uInt16 GetVersion(sal_uInt16)
SvStream & Store(const SfxBoolItem &rItem, SvStream &rStrm, sal_uInt16)
void Create(SfxBoolItem &rItem, SvStream &rStrm, sal_uInt16)
sal_uInt16 GetVersion(sal_uInt16 nFileFormatVersion)
void Create(SvxAdjustItem &rItem, SvStream &rStrm, sal_uInt16 nItemVersion)
SvStream & Store(const SvxAdjustItem &rItem, SvStream &rStrm, sal_uInt16 nItemVersion)
SvStream & Store(const SvxBoxItem &rItem, SvStream &rStrm, sal_uInt16 nItemVersion)
sal_uInt16 GetVersion(sal_uInt16 nFileFormatVersion)
void Create(SvxBoxItem &rItem, SvStream &rStrm, sal_uInt16 nItemVersion)
sal_uInt16 GetVersion(sal_uInt16)
SvStream & Store(const SvxBrushItem &rItem, SvStream &rStrm, sal_uInt16)
void Create(SvxBrushItem &rItem, SvStream &rStrm, sal_uInt16 nItemVersion)
SvStream & Store(const SvxColorItem &rItem, SvStream &rStrm, sal_uInt16 nItemVersion)
void Create(SvxColorItem &rItem, SvStream &rStrm, sal_uInt16)
sal_uInt16 GetVersion(sal_uInt16 nFileFormatVersion)
void Create(SvxCrossedOutItem &rItem, SvStream &rStrm, sal_uInt16)
SvStream & Store(const SvxCrossedOutItem &rItem, SvStream &rStrm, sal_uInt16)
sal_uInt16 GetVersion(sal_uInt16)
void Create(SvxFontHeightItem &rItem, SvStream &rStrm, sal_uInt16 nItemVersion)
SvStream & Store(const SvxFontHeightItem &rItem, SvStream &rStrm, sal_uInt16 nItemVersion)
sal_uInt16 GetVersion(sal_uInt16 nFileFormatVersion)
SvStream & Store(const SvxFontItem &rItem, SvStream &rStrm, sal_uInt16)
void Create(SvxFontItem &rItem, SvStream &rStrm, sal_uInt16)
sal_uInt16 GetVersion(sal_uInt16)
SvStream & Store(const SvxHorJustifyItem &rItem, SvStream &rStrm, sal_uInt16)
void Create(SvxHorJustifyItem &rItem, SvStream &rStrm, sal_uInt16)
sal_uInt16 GetVersion(sal_uInt16)
void Create(SvxLineItem &rItem, SvStream &rStrm, sal_uInt16)
sal_uInt16 GetVersion(sal_uInt16)
SvStream & Store(const SvxLineItem &rItem, SvStream &rStrm, sal_uInt16)
SvStream & Store(const SvxMarginItem &rItem, SvStream &rStrm, sal_uInt16)
Definition: legacyitem.cxx:73
sal_uInt16 GetVersion(sal_uInt16)
Definition: legacyitem.cxx:50
void Create(SvxMarginItem &rItem, SvStream &rStrm, sal_uInt16)
Definition: legacyitem.cxx:55
SvStream & Store(const SvxOrientationItem &rItem, SvStream &rStrm, sal_uInt16)
Definition: legacyitem.cxx:41
void Create(SvxOrientationItem &rItem, SvStream &rStrm, sal_uInt16)
Definition: legacyitem.cxx:34
sal_uInt16 GetVersion(sal_uInt16)
Definition: legacyitem.cxx:29
void Create(SvxPostureItem &rItem, SvStream &rStrm, sal_uInt16)
SvStream & Store(const SvxPostureItem &rItem, SvStream &rStrm, sal_uInt16)
sal_uInt16 GetVersion(sal_uInt16)
void Create(SvxRotateModeItem &rItem, SvStream &rStrm, sal_uInt16)
Definition: legacyitem.cxx:90
SvStream & Store(const SvxRotateModeItem &rItem, SvStream &rStrm, sal_uInt16)
Definition: legacyitem.cxx:97
sal_uInt16 GetVersion(sal_uInt16)
Definition: legacyitem.cxx:85
sal_uInt16 GetVersion(sal_uInt16)
void Create(SvxTextLineItem &rItem, SvStream &rStrm, sal_uInt16)
SvStream & Store(const SvxTextLineItem &rItem, SvStream &rStrm, sal_uInt16)
void Create(SvxVerJustifyItem &rItem, SvStream &rStrm, sal_uInt16)
sal_uInt16 GetVersion(sal_uInt16)
SvStream & Store(const SvxVerJustifyItem &rItem, SvStream &rStrm, sal_uInt16)
SvStream & Store(const SvxWeightItem &rItem, SvStream &rStrm, sal_uInt16)
sal_uInt16 GetVersion(sal_uInt16)
void Create(SvxWeightItem &rItem, SvStream &rStrm, sal_uInt16)
css::uno::Reference< css::animations::XAnimationNode > Clone(const css::uno::Reference< css::animations::XAnimationNode > &xSourceNode, const SdPage *pSource=nullptr, const SdPage *pTarget=nullptr)
Struct with version numbers of the Items.
sal_uInt16 nRotateModeVersion
sal_uInt16 nUnderlineVersion
sal_uInt16 nFontHeightVersion
sal_uInt16 nHorJustifyVersion
sal_uInt16 nOrientationVersion
static void WriteBlockB(SvStream &rStream, sal_uInt16 fileVersion)
static void WriteBlockA(SvStream &rStream, sal_uInt16 fileVersion)
void LoadBlockB(SvStream &rStream, sal_uInt16 nVer)
sal_uInt16 nCrossedOutVersion
void LoadBlockA(SvStream &rStream, sal_uInt16 nVer)
sal_uInt16 nVerJustifyVersion
sal_uInt16 nNumFormatVersion
UNDERLYING_TYPE get() const