Kaydet (Commit) 60bbbcab authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Remove SvStorageStream alias

Change-Id: I9d835e6032e2366e5357240609ff0e60273d475b
üst bb2174d8
...@@ -221,7 +221,6 @@ typedef tools::SvRef<SotStorage> SotStorageRef; ...@@ -221,7 +221,6 @@ typedef tools::SvRef<SotStorage> SotStorageRef;
#define SvStorage SotStorage #define SvStorage SotStorage
#define SvStorageRef SotStorageRef #define SvStorageRef SotStorageRef
#define SvStorageStream SotStorageStream
#endif // _SVSTOR_HXX #endif // _SVSTOR_HXX
......
...@@ -304,7 +304,7 @@ bool Section::GetDictionary( Dictionary& rDict ) ...@@ -304,7 +304,7 @@ bool Section::GetDictionary( Dictionary& rDict )
return bRetValue; return bRetValue;
} }
void Section::Read( SvStorageStream *pStrm ) void Section::Read( SotStorageStream *pStrm )
{ {
sal_uInt32 i, nSecOfs, nSecSize, nPropCount, nPropId, nPropOfs, nPropType, nPropSize, nCurrent, nVectorCount, nTemp, nStrmSize; sal_uInt32 i, nSecOfs, nSecSize, nPropCount, nPropId, nPropOfs, nPropType, nPropSize, nCurrent, nVectorCount, nTemp, nStrmSize;
nSecOfs = pStrm->Tell(); nSecOfs = pStrm->Tell();
......
...@@ -133,7 +133,7 @@ class Section ...@@ -133,7 +133,7 @@ class Section
bool GetProperty( sal_uInt32 nId, PropItem& rPropItem ); bool GetProperty( sal_uInt32 nId, PropItem& rPropItem );
bool GetDictionary( Dictionary& rDict ); bool GetDictionary( Dictionary& rDict );
const sal_uInt8* GetFMTID() const { return aFMTID; }; const sal_uInt8* GetFMTID() const { return aFMTID; };
void Read( SvStorageStream* pStrm ); void Read( SotStorageStream* pStrm );
}; };
class PropRead class PropRead
......
...@@ -37,7 +37,7 @@ bool GetMathTypeVersion( SotStorage* pStor, sal_uInt8 &nVersion ) ...@@ -37,7 +37,7 @@ bool GetMathTypeVersion( SotStorage* pStor, sal_uInt8 &nVersion )
STREAM_STD_READ | StreamMode::NOCREATE); STREAM_STD_READ | StreamMode::NOCREATE);
if ( (!xSrc.Is()) || (SVSTREAM_OK != xSrc->GetError())) if ( (!xSrc.Is()) || (SVSTREAM_OK != xSrc->GetError()))
return bSuccess; return bSuccess;
SvStorageStream *pS = &xSrc; SotStorageStream *pS = &xSrc;
pS->SetEndian( SvStreamEndian::LITTLE ); pS->SetEndian( SvStreamEndian::LITTLE );
EQNOLEFILEHDR aHdr; EQNOLEFILEHDR aHdr;
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include <sal/types.h> #include <sal/types.h>
#include <sot/storage.hxx> #include <sot/storage.hxx>
class SvStorageStream; class SotStorageStream;
class SotStorage; class SotStorage;
#define EQNOLEFILEHDR_SIZE 28 #define EQNOLEFILEHDR_SIZE 28
...@@ -47,7 +47,7 @@ public: ...@@ -47,7 +47,7 @@ public:
sal_uInt32 nReserved3; // not used sal_uInt32 nReserved3; // not used
sal_uInt32 nReserved4; // not used sal_uInt32 nReserved4; // not used
inline void Read(SvStorageStream *pS) inline void Read(SotStorageStream *pS)
{ {
pS->ReadUInt16( nCBHdr ); pS->ReadUInt16( nCBHdr );
pS->ReadUInt32( nVersion ); pS->ReadUInt32( nVersion );
...@@ -58,7 +58,7 @@ public: ...@@ -58,7 +58,7 @@ public:
pS->ReadUInt32( nReserved3 ); pS->ReadUInt32( nReserved3 );
pS->ReadUInt32( nReserved4 ); pS->ReadUInt32( nReserved4 );
} }
inline void Write(SvStorageStream *pS) inline void Write(SotStorageStream *pS)
{ {
pS->WriteUInt16( nCBHdr ); pS->WriteUInt16( nCBHdr );
pS->WriteUInt32( nVersion ); pS->WriteUInt32( nVersion );
......
...@@ -120,7 +120,7 @@ private: ...@@ -120,7 +120,7 @@ private:
sal_uInt8 nProdVersion; sal_uInt8 nProdVersion;
sal_uInt8 nProdSubVersion; sal_uInt8 nProdSubVersion;
SvStorageStream *pS; SotStorageStream *pS;
void Init(); void Init();
......
...@@ -84,7 +84,7 @@ static bool SwWw8ReadScaling(long& rX, long& rY, SvStorageRef& rSrc1) ...@@ -84,7 +84,7 @@ static bool SwWw8ReadScaling(long& rX, long& rY, SvStorageRef& rSrc1)
SotStorageStreamRef xSrc3 = rSrc1->OpenSotStream( OUString("\3PIC"), SotStorageStreamRef xSrc3 = rSrc1->OpenSotStream( OUString("\3PIC"),
STREAM_STD_READ | StreamMode::NOCREATE); STREAM_STD_READ | StreamMode::NOCREATE);
SvStorageStream* pS = xSrc3; SotStorageStream* pS = xSrc3;
pS->SetEndian( SvStreamEndian::LITTLE ); pS->SetEndian( SvStreamEndian::LITTLE );
pS->Seek( STREAM_SEEK_TO_END ); pS->Seek( STREAM_SEEK_TO_END );
...@@ -129,7 +129,7 @@ static bool SwWw6ReadMetaStream(GDIMetaFile& rWMF, OLE_MFP* pMfp, ...@@ -129,7 +129,7 @@ static bool SwWw6ReadMetaStream(GDIMetaFile& rWMF, OLE_MFP* pMfp,
{ {
SotStorageStreamRef xSrc2 = rSrc1->OpenSotStream( OUString("\3META"), SotStorageStreamRef xSrc2 = rSrc1->OpenSotStream( OUString("\3META"),
STREAM_STD_READ | StreamMode::NOCREATE); STREAM_STD_READ | StreamMode::NOCREATE);
SvStorageStream* pSt = xSrc2; SotStorageStream* pSt = xSrc2;
pSt->SetEndian( SvStreamEndian::LITTLE ); pSt->SetEndian( SvStreamEndian::LITTLE );
sal_uLong nRead = pSt->Read( pMfp, sizeof(*pMfp ) ); sal_uLong nRead = pSt->Read( pMfp, sizeof(*pMfp ) );
// Mini-Placable-Header lesen // Mini-Placable-Header lesen
...@@ -183,7 +183,7 @@ static bool SwWw6ReadMacPICTStream(Graphic& rGraph, SvStorageRef& rSrc1) ...@@ -183,7 +183,7 @@ static bool SwWw6ReadMacPICTStream(Graphic& rGraph, SvStorageRef& rSrc1)
{ {
// 03-META-Stream nicht da. Vielleicht ein 03-PICT ? // 03-META-Stream nicht da. Vielleicht ein 03-PICT ?
SotStorageStreamRef xSrc4 = rSrc1->OpenSotStream(OUString("\3PICT")); SotStorageStreamRef xSrc4 = rSrc1->OpenSotStream(OUString("\3PICT"));
SvStorageStream* pStp = xSrc4; SotStorageStream* pStp = xSrc4;
pStp->SetEndian( SvStreamEndian::LITTLE ); pStp->SetEndian( SvStreamEndian::LITTLE );
sal_uInt8 aTestA[10]; // Ist der 01Ole-Stream ueberhaupt vorhanden sal_uInt8 aTestA[10]; // Ist der 01Ole-Stream ueberhaupt vorhanden
sal_uLong nReadTst = pStp->Read( aTestA, sizeof( aTestA ) ); sal_uLong nReadTst = pStp->Read( aTestA, sizeof( aTestA ) );
......
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