diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-12-21 10:29:33 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-12-21 10:29:33 +0000 |
commit | fffae28952f20fed693df4de8b8645cf0aedabfa (patch) | |
tree | 401f5ce0e113adc69199f43b79ff542f012d1d3c /editeng | |
parent | 6fd747bf0e1f8374d52e26e823d2186275d5e8fb (diff) |
bah, need to tweak for pre c++0x
This reverts commit d00fc0e293852cfc019ffaffa65bee327397677b.
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editobj.cxx | 6 | ||||
-rw-r--r-- | editeng/source/items/bulitem.cxx | 12 | ||||
-rw-r--r-- | editeng/source/items/flditem.cxx | 4 | ||||
-rw-r--r-- | editeng/source/items/frmitems.cxx | 8 | ||||
-rw-r--r-- | editeng/source/items/numitem.cxx | 6 | ||||
-rw-r--r-- | editeng/source/items/textitem.cxx | 16 |
6 files changed, 26 insertions, 26 deletions
diff --git a/editeng/source/editeng/editobj.cxx b/editeng/source/editeng/editobj.cxx index 8435e66d923f..0fd144b42514 100644 --- a/editeng/source/editeng/editobj.cxx +++ b/editeng/source/editeng/editobj.cxx @@ -1230,7 +1230,7 @@ void BinTextObject::CreateData( SvStream& rIStream ) pC->GetText() = rtl::OStringToOUString(aByteString, eSrcEncoding); // StyleName and Family... - rIStream.ReadUniOrByteString( pC->GetStyle(), eSrcEncoding ); + rIStream.ReadByteString( pC->GetStyle(), eSrcEncoding ); sal_uInt16 nStyleFamily; rIStream >> nStyleFamily; pC->GetFamily() = (SfxStyleFamily)nStyleFamily; @@ -1522,10 +1522,10 @@ void BinTextObject::CreateData300( SvStream& rIStream ) ContentInfo* pC = CreateAndInsertContent(); // The Text... - rIStream.ReadUniOrByteString( pC->GetText(), rIStream.GetStreamCharSet() ); + rIStream.ReadByteString( pC->GetText() ); // StyleName and Family... - rIStream.ReadUniOrByteString( pC->GetStyle(), rIStream.GetStreamCharSet() ); + rIStream.ReadByteString( pC->GetStyle() ); sal_uInt16 nStyleFamily; rIStream >> nStyleFamily; pC->GetFamily() = (SfxStyleFamily)nStyleFamily; diff --git a/editeng/source/items/bulitem.cxx b/editeng/source/items/bulitem.cxx index caca392a6d18..2d0e066e4091 100644 --- a/editeng/source/items/bulitem.cxx +++ b/editeng/source/items/bulitem.cxx @@ -64,7 +64,7 @@ void SvxBulletItem::StoreFont( SvStream& rStream, const Font& rFont ) nTemp = (sal_uInt16)rFont.GetItalic(); rStream << nTemp; // UNICODE: rStream << rFont.GetName(); - rStream.WriteUniOrByteString(rFont.GetName(), rStream.GetStreamCharSet()); + rStream.WriteByteString(rFont.GetName()); rStream << rFont.IsOutline(); rStream << rFont.IsShadow(); @@ -94,7 +94,7 @@ Font SvxBulletItem::CreateFont( SvStream& rStream, sal_uInt16 nVer ) // UNICODE: rStream >> aName; aFont.SetName( aName ); String aName; - rStream.ReadUniOrByteString(aName, rStream.GetStreamCharSet()); + rStream.ReadByteString(aName); aFont.SetName( aName ); if( nVer == 1 ) @@ -217,10 +217,10 @@ SvxBulletItem::SvxBulletItem( SvStream& rStrm, sal_uInt16 _nWhich ) : rStrm >> nScale; // UNICODE: rStrm >> aPrevText; - rStrm.ReadUniOrByteString(aPrevText, rStrm.GetStreamCharSet()); + rStrm.ReadByteString(aPrevText); // UNICODE: rStrm >> aFollowText; - rStrm.ReadUniOrByteString(aFollowText, rStrm.GetStreamCharSet()); + rStrm.ReadByteString(aFollowText); nValidMask = 0xFFFF; } @@ -416,10 +416,10 @@ SvStream& SvxBulletItem::Store( SvStream& rStrm, sal_uInt16 /*nItemVersion*/ ) c rStrm << nScale; // UNICODE: rStrm << aPrevText; - rStrm.WriteUniOrByteString(aPrevText, rStrm.GetStreamCharSet()); + rStrm.WriteByteString(aPrevText); // UNICODE: rStrm << aFollowText; - rStrm.WriteUniOrByteString(aFollowText, rStrm.GetStreamCharSet()); + rStrm.WriteByteString(aFollowText); return rStrm; } diff --git a/editeng/source/items/flditem.cxx b/editeng/source/items/flditem.cxx index bafb976f057b..56b2d71f68fa 100644 --- a/editeng/source/items/flditem.cxx +++ b/editeng/source/items/flditem.cxx @@ -735,7 +735,7 @@ void SvxExtFileField::Load( SvPersistStream & rStm ) sal_uInt16 nType, nFormat; // UNICODE: rStm >> aFile; - rStm.ReadUniOrByteString(aFile, rStm.GetStreamCharSet()); + rStm.ReadByteString(aFile); rStm >> nType; rStm >> nFormat; @@ -749,7 +749,7 @@ void SvxExtFileField::Load( SvPersistStream & rStm ) void SvxExtFileField::Save( SvPersistStream & rStm ) { // UNICODE: rStm << aFile; - rStm.WriteUniOrByteString(aFile, rStm.GetStreamCharSet()); + rStm.WriteByteString(aFile); rStm << (sal_uInt16) eType; rStm << (sal_uInt16) eFormat; diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx index 18af4a61ec7b..addb3f630a68 100644 --- a/editeng/source/items/frmitems.cxx +++ b/editeng/source/items/frmitems.cxx @@ -3443,7 +3443,7 @@ SvxBrushItem::SvxBrushItem( SvStream& rStream, sal_uInt16 nVersion, { String aRel; // UNICODE: rStream >> aRel; - rStream.ReadUniOrByteString(aRel, rStream.GetStreamCharSet()); + rStream.ReadByteString(aRel); // TODO/MBA: how can we get a BaseURL here?! OSL_FAIL("No BaseURL!"); @@ -3456,7 +3456,7 @@ SvxBrushItem::SvxBrushItem( SvStream& rStream, sal_uInt16 nVersion, { pStrFilter = new String; // UNICODE: rStream >> *pStrFilter; - rStream.ReadUniOrByteString(*pStrFilter, rStream.GetStreamCharSet()); + rStream.ReadByteString(*pStrFilter); } rStream >> nPos; @@ -3834,12 +3834,12 @@ SvStream& SvxBrushItem::Store( SvStream& rStream , sal_uInt16 /*nItemVersion*/ ) // TODO/MBA: how to get a BaseURL?! String aRel = INetURLObject::GetRelURL( String(), *pStrLink ); // UNICODE: rStream << aRel; - rStream.WriteUniOrByteString(aRel, rStream.GetStreamCharSet()); + rStream.WriteByteString(aRel); } if ( pStrFilter ) { // UNICODE: rStream << *pStrFilter; - rStream.WriteUniOrByteString(*pStrFilter, rStream.GetStreamCharSet()); + rStream.WriteByteString(*pStrFilter); } rStream << (sal_Int8)eGraphicPos; return rStream; diff --git a/editeng/source/items/numitem.cxx b/editeng/source/items/numitem.cxx index 01fc4630ff23..8f71ff238b11 100644 --- a/editeng/source/items/numitem.cxx +++ b/editeng/source/items/numitem.cxx @@ -219,9 +219,9 @@ SvStream& SvxNumberFormat::Store(SvStream &rStream, FontToSubsFontConverter pC rStream << nCharTextDistance; rtl_TextEncoding eEnc = osl_getThreadTextEncoding(); - rStream.WriteUniOrByteString(sPrefix, eEnc); - rStream.WriteUniOrByteString(sSuffix, eEnc); - rStream.WriteUniOrByteString(sCharStyleName, eEnc); + rStream.WriteByteString(sPrefix, eEnc); + rStream.WriteByteString(sSuffix, eEnc); + rStream.WriteByteString(sCharStyleName, eEnc); if(pGraphicBrush) { rStream << (sal_uInt16)1; diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx index e3069074573a..4f5dc8dc29e6 100644 --- a/editeng/source/items/textitem.cxx +++ b/editeng/source/items/textitem.cxx @@ -398,16 +398,16 @@ SvStream& SvxFontItem::Store( SvStream& rStrm , sal_uInt16 /*nItemVersion*/ ) co String aStoreFamilyName( GetFamilyName() ); if( bToBats ) aStoreFamilyName = String( "StarBats", sizeof("StarBats")-1, RTL_TEXTENCODING_ASCII_US ); - rStrm.WriteUniOrByteString(aStoreFamilyName, rStrm.GetStreamCharSet()); - rStrm.WriteUniOrByteString(GetStyleName(), rStrm.GetStreamCharSet()); + rStrm.WriteByteString(aStoreFamilyName); + rStrm.WriteByteString(GetStyleName()); // cach for EditEngine, only set while creating clipboard stream. if ( bEnableStoreUnicodeNames ) { sal_uInt32 nMagic = STORE_UNICODE_MAGIC_MARKER; rStrm << nMagic; - rStrm.WriteUniOrByteString( aStoreFamilyName, RTL_TEXTENCODING_UNICODE ); - rStrm.WriteUniOrByteString( GetStyleName(), RTL_TEXTENCODING_UNICODE ); + rStrm.WriteByteString( aStoreFamilyName, RTL_TEXTENCODING_UNICODE ); + rStrm.WriteByteString( GetStyleName(), RTL_TEXTENCODING_UNICODE ); } return rStrm; @@ -424,10 +424,10 @@ SfxPoolItem* SvxFontItem::Create(SvStream& rStrm, sal_uInt16) const rStrm >> eFontTextEncoding; // UNICODE: rStrm >> aName; - rStrm.ReadUniOrByteString(aName, rStrm.GetStreamCharSet()); + rStrm.ReadByteString(aName); // UNICODE: rStrm >> aStyle; - rStrm.ReadUniOrByteString(aStyle, rStrm.GetStreamCharSet()); + rStrm.ReadByteString(aStyle); // Set the "correct" textencoding eFontTextEncoding = (sal_uInt8)GetSOLoadTextEncoding( eFontTextEncoding, (sal_uInt16)rStrm.GetVersion() ); @@ -442,8 +442,8 @@ SfxPoolItem* SvxFontItem::Create(SvStream& rStrm, sal_uInt16) const rStrm >> nMagic; if ( nMagic == STORE_UNICODE_MAGIC_MARKER ) { - rStrm.ReadUniOrByteString( aName, RTL_TEXTENCODING_UNICODE ); - rStrm.ReadUniOrByteString( aStyle, RTL_TEXTENCODING_UNICODE ); + rStrm.ReadByteString( aName, RTL_TEXTENCODING_UNICODE ); + rStrm.ReadByteString( aStyle, RTL_TEXTENCODING_UNICODE ); } else { |