diff options
Diffstat (limited to 'oox/source')
-rw-r--r-- | oox/source/export/vmlexport.cxx | 8 | ||||
-rw-r--r-- | oox/source/ole/vbaexport.cxx | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/oox/source/export/vmlexport.cxx b/oox/source/export/vmlexport.cxx index 8cad39ebfe0c..b58f1adae669 100644 --- a/oox/source/export/vmlexport.cxx +++ b/oox/source/export/vmlexport.cxx @@ -586,7 +586,7 @@ void VMLExport::Commit( EscherPropertyContainer& rProps, const Rectangle& rRect { SvMemoryStream aStream; int nHeaderSize = 25; // The first bytes are WW8-specific, we're only interested in the PNG - aStream.Write(aStruct.pBuf + nHeaderSize, aStruct.nPropSize - nHeaderSize); + aStream.WriteBytes(aStruct.pBuf + nHeaderSize, aStruct.nPropSize - nHeaderSize); aStream.Seek(0); Graphic aGraphic; GraphicConverter::Import(aStream, aGraphic); @@ -796,7 +796,7 @@ void VMLExport::Commit( EscherPropertyContainer& rProps, const Rectangle& rRect if (rProps.GetOpt(ESCHER_Prop_gtextUNICODE, aUnicode)) { SvMemoryStream aStream; - aStream.Write(it->pBuf, it->nPropSize); + aStream.WriteBytes(it->pBuf, it->nPropSize); aStream.Seek(0); OUString aTextPathString = SvxMSDffManager::MSDFFReadZString(aStream, it->nPropSize, true); aStream.Seek(0); @@ -813,7 +813,7 @@ void VMLExport::Commit( EscherPropertyContainer& rProps, const Rectangle& rRect OUString aStyle; if (rProps.GetOpt(ESCHER_Prop_gtextFont, aFont)) { - aStream.Write(aFont.pBuf, aFont.nPropSize); + aStream.WriteBytes(aFont.pBuf, aFont.nPropSize); aStream.Seek(0); OUString aTextPathFont = SvxMSDffManager::MSDFFReadZString(aStream, aFont.nPropSize, true); aStyle += "font-family:\"" + aTextPathFont + "\""; @@ -844,7 +844,7 @@ void VMLExport::Commit( EscherPropertyContainer& rProps, const Rectangle& rRect case ESCHER_Prop_wzName: { SvMemoryStream aStream; - aStream.Write(it->pBuf, it->nPropSize); + aStream.WriteBytes(it->pBuf, it->nPropSize); aStream.Seek(0); OUString idStr = SvxMSDffManager::MSDFFReadZString(aStream, it->nPropSize, true); aStream.Seek(0); diff --git a/oox/source/ole/vbaexport.cxx b/oox/source/ole/vbaexport.cxx index 5beddc384061..d4e6a9f5716e 100644 --- a/oox/source/ole/vbaexport.cxx +++ b/oox/source/ole/vbaexport.cxx @@ -177,7 +177,7 @@ void VBACompressionChunk::write() sal_uInt16 nHeader = handleHeader(true); setUInt16(pCompressedChunkStream, 0, nHeader); // copy the compressed stream to our output stream - mrCompressedStream.Write(pCompressedChunkStream, mnCompressedCurrent); + mrCompressedStream.WriteBytes(pCompressedChunkStream, mnCompressedCurrent); } } @@ -356,7 +356,7 @@ void VBACompressionChunk::writeRawChunk() { // we need to use up to 4096 bytes of the original stream // and fill the rest with padding - mrCompressedStream.Write(mpUncompressedData, mnChunkSize); + mrCompressedStream.WriteBytes(mpUncompressedData, mnChunkSize); sal_Size nPadding = 4096 - mnChunkSize; for (size_t i = 0; i < nPadding; ++i) { |