Kaydet (Commit) 4a68a5f3 authored tarafından Caolán McNamara's avatar Caolán McNamara

return status never checked

üst ccd71637
...@@ -639,7 +639,7 @@ public: ...@@ -639,7 +639,7 @@ public:
static sal_Bool MakeContentStream( SotStorage * pStor, const GDIMetaFile & ); static sal_Bool MakeContentStream( SotStorage * pStor, const GDIMetaFile & );
static sal_Bool ConvertToOle2( SvStream& rStm, sal_uInt32 nLen, const GDIMetaFile*, static sal_Bool ConvertToOle2( SvStream& rStm, sal_uInt32 nLen, const GDIMetaFile*,
const SotStorageRef & rDest ); const SotStorageRef & rDest );
static bool ReadDffString(SvStream& rSt, String& rTxt, DffRecordHeader aStrHd = DffRecordHeader()); static rtl::OUString ReadDffString(SvStream& rSt, DffRecordHeader aStrHd = DffRecordHeader());
static bool ReadObjText(SvStream& rSt, SdrObject* pObj); static bool ReadObjText(SvStream& rSt, SdrObject* pObj);
void SetModel(SdrModel* pModel, long nApplicationScale); void SetModel(SdrModel* pModel, long nApplicationScale);
......
...@@ -3736,23 +3736,22 @@ Color SvxMSDffManager::MSO_CLR_ToColor( sal_uInt32 nColorCode, sal_uInt16 nConte ...@@ -3736,23 +3736,22 @@ Color SvxMSDffManager::MSO_CLR_ToColor( sal_uInt32 nColorCode, sal_uInt16 nConte
return aColor; return aColor;
} }
bool SvxMSDffManager::ReadDffString(SvStream& rSt, String& rTxt, DffRecordHeader aStrHd) rtl::OUString SvxMSDffManager::ReadDffString(SvStream& rSt, DffRecordHeader aStrHd)
{ {
bool bRet=sal_False; String aRet;
if( aStrHd.nRecType == 0x0 && !ReadCommonRecordHeader(aStrHd, rSt) ) if( aStrHd.nRecType == 0x0 && !ReadCommonRecordHeader(aStrHd, rSt) )
rSt.Seek( aStrHd.nFilePos ); rSt.Seek( aStrHd.nFilePos );
else if ( aStrHd.nRecType == DFF_PST_TextBytesAtom || aStrHd.nRecType == DFF_PST_TextCharsAtom ) else if ( aStrHd.nRecType == DFF_PST_TextBytesAtom || aStrHd.nRecType == DFF_PST_TextCharsAtom )
{ {
bool bUniCode=aStrHd.nRecType==DFF_PST_TextCharsAtom; bool bUniCode=aStrHd.nRecType==DFF_PST_TextCharsAtom;
bRet=sal_True;
sal_uLong nBytes = aStrHd.nRecLen; sal_uLong nBytes = aStrHd.nRecLen;
MSDFFReadZString( rSt, rTxt, nBytes, bUniCode ); MSDFFReadZString( rSt, aRet, nBytes, bUniCode );
if( !bUniCode ) if( !bUniCode )
{ {
for ( xub_StrLen n = 0; n < nBytes; n++ ) for ( xub_StrLen n = 0; n < nBytes; n++ )
{ {
if( rTxt.GetChar( n ) == 0x0B ) if( aRet.GetChar( n ) == 0x0B )
rTxt.SetChar( n, ' ' ); // Weicher Umbruch aRet.SetChar( n, ' ' ); // Weicher Umbruch
// TODO: Zeilenumbruch im Absatz via Outliner setzen. // TODO: Zeilenumbruch im Absatz via Outliner setzen.
} }
} }
...@@ -3760,7 +3759,7 @@ bool SvxMSDffManager::ReadDffString(SvStream& rSt, String& rTxt, DffRecordHeader ...@@ -3760,7 +3759,7 @@ bool SvxMSDffManager::ReadDffString(SvStream& rSt, String& rTxt, DffRecordHeader
} }
else else
aStrHd.SeekToBegOfRecord( rSt ); aStrHd.SeekToBegOfRecord( rSt );
return bRet; return aRet;
} }
// sj: I just want to set a string for a text object that may contain multiple // sj: I just want to set a string for a text object that may contain multiple
...@@ -3881,7 +3880,7 @@ bool SvxMSDffManager::ReadObjText(SvStream& rSt, SdrObject* pObj) ...@@ -3881,7 +3880,7 @@ bool SvxMSDffManager::ReadObjText(SvStream& rSt, SdrObject* pObj)
//case TextSpecInfoAtom //case TextSpecInfoAtom
case DFF_PST_TextBytesAtom: case DFF_PST_TextBytesAtom:
case DFF_PST_TextCharsAtom: case DFF_PST_TextCharsAtom:
ReadDffString(rSt, aText, aHd); aText = ReadDffString(rSt, aHd);
break; break;
case DFF_PST_TextRulerAtom : case DFF_PST_TextRulerAtom :
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment