diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-17 14:55:13 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-17 15:20:43 +0200 |
commit | 9f23260105672903a047c2194a36ebd448fff135 (patch) | |
tree | 9408d894cebb45123235ae8a86700a0f8686d7af /editeng/source/items | |
parent | c007829a67456ef01b82b8368f7ed3e5a3026c95 (diff) |
SvStream: WriteUChar -> WriteBool
Change-Id: I89aa0e22c31d368ab36fe46917db6aacb11c7b14
Diffstat (limited to 'editeng/source/items')
-rw-r--r-- | editeng/source/items/bulitem.cxx | 6 | ||||
-rw-r--r-- | editeng/source/items/frmitems.cxx | 4 | ||||
-rw-r--r-- | editeng/source/items/textitem.cxx | 18 |
3 files changed, 14 insertions, 14 deletions
diff --git a/editeng/source/items/bulitem.cxx b/editeng/source/items/bulitem.cxx index 1a5738d9453d..b06466729bf4 100644 --- a/editeng/source/items/bulitem.cxx +++ b/editeng/source/items/bulitem.cxx @@ -54,9 +54,9 @@ void SvxBulletItem::StoreFont( SvStream& rStream, const vcl::Font& rFont ) // UNICODE: rStream << rFont.GetName(); rStream.WriteUniOrByteString(rFont.GetName(), rStream.GetStreamCharSet()); - rStream.WriteUChar( rFont.IsOutline() ); - rStream.WriteUChar( rFont.IsShadow() ); - rStream.WriteUChar( rFont.IsTransparent() ); + rStream.WriteBool( rFont.IsOutline() ); + rStream.WriteBool( rFont.IsShadow() ); + rStream.WriteBool( rFont.IsTransparent() ); } diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx index a25bc0a97290..32ccb2cc7a4e 100644 --- a/editeng/source/items/frmitems.cxx +++ b/editeng/source/items/frmitems.cxx @@ -1521,7 +1521,7 @@ SvStream& SvxShadowItem::Store( SvStream& rStrm , sal_uInt16 /*nItemVersion*/ ) { rStrm.WriteSChar( GetLocation() ) .WriteUInt16( GetWidth() ) - .WriteUChar( aShadowColor.GetTransparency() > 0 ); + .WriteBool( aShadowColor.GetTransparency() > 0 ); WriteColor( rStrm, GetColor() ); WriteColor( rStrm, GetColor() ); rStrm.WriteSChar( aShadowColor.GetTransparency() > 0 ? 0 : 1 ); //BRUSH_NULL : BRUSH_SOLID @@ -3874,7 +3874,7 @@ SfxPoolItem* SvxBrushItem::Create( SvStream& rStream, sal_uInt16 nVersion ) cons SvStream& SvxBrushItem::Store( SvStream& rStream , sal_uInt16 /*nItemVersion*/ ) const { - rStream.WriteUChar( false ); + rStream.WriteBool( false ); WriteColor( rStream, aColor ); WriteColor( rStream, aColor ); rStream.WriteSChar( aColor.GetTransparency() > 0 ? 0 : 1 ); //BRUSH_NULL : BRUSH_SOLID diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx index 7b3f647d8083..db11b63772b9 100644 --- a/editeng/source/items/textitem.cxx +++ b/editeng/source/items/textitem.cxx @@ -1611,7 +1611,7 @@ SfxPoolItem* SvxShadowedItem::Clone( SfxItemPool * ) const SvStream& SvxShadowedItem::Store( SvStream& rStrm , sal_uInt16 /*nItemVersion*/ ) const { - rStrm.WriteUChar( GetValue() ); + rStrm.WriteBool( GetValue() ); return rStrm; } @@ -1660,7 +1660,7 @@ SfxPoolItem* SvxAutoKernItem::Clone( SfxItemPool * ) const SvStream& SvxAutoKernItem::Store( SvStream& rStrm , sal_uInt16 /*nItemVersion*/ ) const { - rStrm.WriteUChar( GetValue() ); + rStrm.WriteBool( GetValue() ); return rStrm; } @@ -1710,7 +1710,7 @@ SfxPoolItem* SvxWordLineModeItem::Clone( SfxItemPool * ) const SvStream& SvxWordLineModeItem::Store( SvStream& rStrm , sal_uInt16 /*nItemVersion*/ ) const { - rStrm.WriteUChar( GetValue() ); + rStrm.WriteBool( GetValue() ); return rStrm; } @@ -1759,7 +1759,7 @@ SfxPoolItem* SvxContourItem::Clone( SfxItemPool * ) const SvStream& SvxContourItem::Store( SvStream& rStrm , sal_uInt16 /*nItemVersion*/ ) const { - rStrm.WriteUChar( GetValue() ); + rStrm.WriteBool( GetValue() ); return rStrm; } @@ -2567,7 +2567,7 @@ SfxPoolItem* SvxNoLinebreakItem::Clone( SfxItemPool* ) const SvStream& SvxNoLinebreakItem::Store( SvStream& rStrm , sal_uInt16 /*nItemVersion*/ ) const { - rStrm.WriteUChar( GetValue() ); + rStrm.WriteBool( GetValue() ); return rStrm; } @@ -2612,7 +2612,7 @@ SfxPoolItem* SvxNoHyphenItem::Clone( SfxItemPool* ) const SvStream& SvxNoHyphenItem::Store( SvStream& rStrm , sal_uInt16 /*nItemVersion*/ ) const { - rStrm.WriteUChar( GetValue() ); + rStrm.WriteBool( GetValue() ); return rStrm; } @@ -2700,7 +2700,7 @@ SfxPoolItem* SvxBlinkItem::Clone( SfxItemPool * ) const SvStream& SvxBlinkItem::Store( SvStream& rStrm , sal_uInt16 /*nItemVersion*/ ) const { - rStrm.WriteUChar( GetValue() ); + rStrm.WriteBool( GetValue() ); return rStrm; } @@ -2984,7 +2984,7 @@ SfxPoolItem* SvxTwoLinesItem::Create( SvStream & rStrm, sal_uInt16 /*nVer*/) con SvStream& SvxTwoLinesItem::Store(SvStream & rStrm, sal_uInt16 /*nIVer*/) const { - rStrm.WriteUChar( GetValue() ).WriteUInt16( GetStartBracket() ).WriteUInt16( GetEndBracket() ); + rStrm.WriteBool( GetValue() ).WriteUInt16( GetStartBracket() ).WriteUInt16( GetEndBracket() ); return rStrm; } @@ -3026,7 +3026,7 @@ SfxPoolItem* SvxCharRotateItem::Create( SvStream& rStrm, sal_uInt16 ) const SvStream& SvxCharRotateItem::Store( SvStream & rStrm, sal_uInt16 ) const { bool bFlag = IsFitToLine(); - rStrm.WriteUInt16( GetValue() ).WriteUChar( bFlag ); + rStrm.WriteUInt16( GetValue() ).WriteBool( bFlag ); return rStrm; } |