summaryrefslogtreecommitdiffstats
path: root/lotuswordpro/source/filter/lwp9reader.cxx
diff options
context:
space:
mode:
authorPovilas Kanapickas <povilas.kanapickas@gmail.com>2010-10-18 19:33:02 +0100
committerMichael Meeks <michael.meeks@novell.com>2010-10-18 19:33:02 +0100
commit42b0ace3fa39a2f672d2222ea57482258058d249 (patch)
tree89a2ec5bce3b142c21dfac67abb3dccd1b85a63b /lotuswordpro/source/filter/lwp9reader.cxx
parentRemove unnecessary comments from sw_unotbl.cxx (diff)
downloadcore-42b0ace3fa39a2f672d2222ea57482258058d249.tar.gz
core-42b0ace3fa39a2f672d2222ea57482258058d249.zip
remove non-compiled code
Diffstat (limited to 'lotuswordpro/source/filter/lwp9reader.cxx')
-rw-r--r--lotuswordpro/source/filter/lwp9reader.cxx36
1 files changed, 0 insertions, 36 deletions
diff --git a/lotuswordpro/source/filter/lwp9reader.cxx b/lotuswordpro/source/filter/lwp9reader.cxx
index 7cc68b243934..63d28551dabd 100644
--- a/lotuswordpro/source/filter/lwp9reader.cxx
+++ b/lotuswordpro/source/filter/lwp9reader.cxx
@@ -98,42 +98,6 @@ void Lwp9Reader::Read()
*/
void Lwp9Reader::ReadOleObjects()
{
-#if 0
-#ifdef WIN32
- if(m_pObjMgr)
- {
- // Get the buffer of the whole file
- LwpSvStream* pRawStream = m_pDocStream;
- sal_Int64 nCurPos = pRawStream->Tell();
- sal_uInt32 nSize = static_cast<sal_uInt32>(pRawStream->Seek(STREAM_SEEK_TO_END));
- BYTE* pBuf = new BYTE[nSize];
-
- if(pBuf == NULL) // this buffer may be too big
- {
- assert(sal_False);
- return;
- }
- pRawStream->Seek(STREAM_SEEK_TO_BEGIN);
- pRawStream->Read(pBuf,nSize);
- pRawStream->Seek(nCurPos);
-
- // Break the buffer into separate objects by ASWAN lib
- BYTE* pOut = NULL;
- sal_uInt32 nWritten;
- CBenStorageConverter benConverter;
- benConverter.Convert(pBuf, nSize, (void**)&pOut, &nWritten);
- delete[] pBuf;
-
- if (NULL != pOut)
- {
- SvStream* pMemStream = new SvMemoryStream(pOut, nWritten, STREAM_READ|STREAM_WRITE);
- SvStorageRef objStor = new SvStorage(pMemStream, true); // set true to let SvStorage free the memstream.
- m_pObjMgr->SetOleObjInfo(objStor);
- }
-
- }
-#endif
-#endif
}
/**
* @descr Read the LWP7 object.