summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-17 14:55:13 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-17 15:20:43 +0200
commit9f23260105672903a047c2194a36ebd448fff135 (patch)
tree9408d894cebb45123235ae8a86700a0f8686d7af /editeng
parentc007829a67456ef01b82b8368f7ed3e5a3026c95 (diff)
SvStream: WriteUChar -> WriteBool
Change-Id: I89aa0e22c31d368ab36fe46917db6aacb11c7b14
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/editobj.cxx6
-rw-r--r--editeng/source/items/bulitem.cxx6
-rw-r--r--editeng/source/items/frmitems.cxx4
-rw-r--r--editeng/source/items/textitem.cxx18
4 files changed, 17 insertions, 17 deletions
diff --git a/editeng/source/editeng/editobj.cxx b/editeng/source/editeng/editobj.cxx
index 2f4c3d4a2062..c62dbb68458a 100644
--- a/editeng/source/editeng/editobj.cxx
+++ b/editeng/source/editeng/editobj.cxx
@@ -1100,7 +1100,7 @@ void EditTextObjectImpl::StoreData( SvStream& rOStream ) const
sal_uInt16 nVer = 602;
rOStream.WriteUInt16( nVer );
- rOStream.WriteUChar( bOwnerOfPool );
+ rOStream.WriteBool( bOwnerOfPool );
// First store the pool, later only the Surregate
if ( bOwnerOfPool )
@@ -1243,10 +1243,10 @@ void EditTextObjectImpl::StoreData( SvStream& rOStream ) const
rOStream.WriteUInt16( nUserType );
rOStream.WriteUInt32( nObjSettings );
- rOStream.WriteUChar( bVertical );
+ rOStream.WriteBool( bVertical );
rOStream.WriteUInt16( static_cast<sal_uInt16>(nScriptType) );
- rOStream.WriteUChar( bStoreUnicodeStrings );
+ rOStream.WriteBool( bStoreUnicodeStrings );
if ( bStoreUnicodeStrings )
{
for ( size_t nPara = 0; nPara < nParagraphs_Stream; nPara++ )
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;
}