summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-04 22:42:14 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-05 10:02:30 +0100
commit30c1a5f9fd44d914befa5070a5bb0c09b1d7cac9 (patch)
treeda38b73a7605ea11bd4949c8e9f5a039786d812e /lotuswordpro
parent1a44d29eb1e048d101381de8b2817857025c2d8e (diff)
callcatcher: unused methods
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/Library_lwpft.mk1
-rw-r--r--lotuswordpro/source/filter/bencont.cxx65
-rw-r--r--lotuswordpro/source/filter/bento.hxx1
-rw-r--r--lotuswordpro/source/filter/lwpdefobj.cxx91
-rw-r--r--lotuswordpro/source/filter/lwpdefobj.hxx84
-rw-r--r--lotuswordpro/source/filter/lwpobjfactory.cxx1
6 files changed, 1 insertions, 242 deletions
diff --git a/lotuswordpro/Library_lwpft.mk b/lotuswordpro/Library_lwpft.mk
index ca02b4039c31..82f69016f996 100644
--- a/lotuswordpro/Library_lwpft.mk
+++ b/lotuswordpro/Library_lwpft.mk
@@ -124,7 +124,6 @@ $(eval $(call gb_Library_add_exception_objects,lwpft,\
lotuswordpro/source/filter/lwpnumberingoverride \
lotuswordpro/source/filter/lwpnumericfmt \
lotuswordpro/source/filter/lwpobj \
- lotuswordpro/source/filter/lwpobjfactory \
lotuswordpro/source/filter/lwpobjhdr \
lotuswordpro/source/filter/lwpobjid \
lotuswordpro/source/filter/lwpobjstrm \
diff --git a/lotuswordpro/source/filter/bencont.cxx b/lotuswordpro/source/filter/bencont.cxx
index 485677636520..88d5e5b35920 100644
--- a/lotuswordpro/source/filter/bencont.cxx
+++ b/lotuswordpro/source/filter/bencont.cxx
@@ -538,72 +538,9 @@ BenError LtcBenContainer::CreateGraphicStream(SvStream * &pStream, const char *p
pStream = pMemStream;
return BenErr_OK;
}
-/**
-* Find ole object stream according to object name
-* @date 10/24/2005
-* @param
-* @return the value ole storage stream pointers
-*/
+
#include <tools/globname.hxx>
-SotStorageStreamRef LtcBenContainer::ConvertAswStorageToOLE2Stream(const char * sObjectName)
-{
- SotStorageStreamRef xOleObjStm;
-
- SvStream* pOleStorageStream = NULL;
- //Get Ole Storage stream
- AswEntry aEntry;
- pOleStorageStream = FindOLEStorageStreamWithObjectName(sObjectName, aEntry);
-
- if( !pOleStorageStream )
- return xOleObjStm;
- //Find it, create Ole stream
- //xOleObjStm = new SotStorageStream(String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "Ole-Object" ) ));
- xOleObjStm = new SotStorageStream(String());
- if( xOleObjStm->GetError() )
- return xOleObjStm;
- xOleObjStm->SetBufferSize( 0xff00 );
-
- SotStorageRef xOleObjStor = new SotStorage( *xOleObjStm );
- if( xOleObjStor->GetError() )
- return xOleObjStm;
- //Set class id
- ClsId aClsId = aEntry.GetClassId();
- SvGlobalName aGName( aClsId.n1, aClsId.n2, aClsId.n3, aClsId.n4,
- aClsId.n5, aClsId.n6,aClsId.n7,aClsId.n8,
- aClsId.n9,aClsId.n10,aClsId.n11);
- xOleObjStor->SetClass( aGName, 0, String());
-
- xOleObjStor->SetVersion( SOFFICE_FILEFORMAT_60 );
- std::string aOleStreamName("OleStream");
- sal_uInt32 nDLen = 0;
- nDLen = GetSvStreamSize(pOleStorageStream);
- for(sal_uInt32 nIndex = 0; nIndex < nDLen / ASWENTRY_SIZE; nIndex ++)
- {
- AswEntry aOleEntry;
- ReadAswEntry(pOleStorageStream, aOleEntry);
- if(aOleEntry.GetType()== BEN_STGTY_STREAM)
- {
- SvStream* pOleStream = FindObjectValueStreamWithObjectIDAndProperty(aOleEntry.GetObjectID(), aOleStreamName.c_str());
- if(pOleStream)
- {
- String strName;
- aOleEntry.GetName(strName);
- SotStorageStreamRef xStm = xOleObjStor->OpenSotStream( strName );
- if( xStm->GetError() )
- break;
- xStm->SetBufferSize( 8192 );
- (*pOleStream) >> (*xStm);
- xStm->Commit();
- delete pOleStream;
- pOleStream = NULL;
- }
- }
- }
- xOleObjStor->Commit();
- xOleObjStm->Commit();
- return xOleObjStm;
-}
/**
* Find ole object storage stream data according to object name
* @date 10/24/2005
diff --git a/lotuswordpro/source/filter/bento.hxx b/lotuswordpro/source/filter/bento.hxx
index 56b04b122a91..914670d855c3 100644
--- a/lotuswordpro/source/filter/bento.hxx
+++ b/lotuswordpro/source/filter/bento.hxx
@@ -299,7 +299,6 @@ public: // Internal methods
BenError CreateGraphicStreams(std::vector<SvStream *> * pStreamVector) ;
BenError CreateGraphicStream(SvStream * &pStream, const char *pObjectName);
- SotStorageStreamRef ConvertAswStorageToOLE2Stream(const char * sObjectName);
LtcUtBenValueStream * FindOLEStorageStreamWithObjectName(const char * sObjectName, AswEntry& rDirStruct);
void ReadAswEntry(SvStream * pStream, AswEntry& rEntry);
diff --git a/lotuswordpro/source/filter/lwpdefobj.cxx b/lotuswordpro/source/filter/lwpdefobj.cxx
deleted file mode 100644
index d4eff9c6b908..000000000000
--- a/lotuswordpro/source/filter/lwpdefobj.cxx
+++ /dev/null
@@ -1,91 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * The Contents of this file are made available subject to the terms of
- * either of the following licenses
- *
- * - GNU Lesser General Public License Version 2.1
- * - Sun Industry Standards Source License Version 1.1
- *
- * Sun Microsystems Inc., October, 2000
- *
- * GNU Lesser General Public License Version 2.1
- * =============================================
- * Copyright 2000 by Sun Microsystems, Inc.
- * 901 San Antonio Road, Palo Alto, CA 94303, USA
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License version 2.1, as published by the Free Software Foundation.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- *
- *
- * Sun Industry Standards Source License Version 1.1
- * =================================================
- * The contents of this file are subject to the Sun Industry Standards
- * Source License Version 1.1 (the "License"); You may not use this file
- * except in compliance with the License. You may obtain a copy of the
- * License at http://www.openoffice.org/license.html.
- *
- * Software provided under this License is provided on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
- * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
- * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
- * See the License for the specific provisions governing your rights and
- * obligations concerning the Software.
- *
- * The Initial Developer of the Original Code is: IBM Corporation
- *
- * Copyright: 2008 by IBM Corporation
- *
- * All Rights Reserved.
- *
- * Contributor(s): _______________________________________
- *
- *
- ************************************************************************/
-/*************************************************************************
- * @file
- * For LWP filter architecture prototype
- ************************************************************************/
-/*************************************************************************
- * Change History
- Jan 2005 Created
- ************************************************************************/
-
-#include "lwpdefobj.hxx"
-
-LwpDefaultObject::LwpDefaultObject(LwpObjectHeader &objHdr, LwpSvStream* pStrm)
- :LwpObject(objHdr, pStrm),m_DataBuffer(NULL)
-{}
-
-LwpDefaultObject::~LwpDefaultObject()
-{
- if(m_DataBuffer)
- {
- delete [] m_DataBuffer;
- m_DataBuffer = NULL;
- }
-}
-
-void LwpDefaultObject::Read()
-{
- if(m_DataBuffer)
- {
- delete [] m_DataBuffer;
- m_DataBuffer = NULL;
- }
- m_DataBuffer = new sal_uInt8[m_ObjHdr.GetSize()];
- m_pObjStrm->QuickRead(m_DataBuffer, m_ObjHdr.GetSize());
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/lotuswordpro/source/filter/lwpdefobj.hxx b/lotuswordpro/source/filter/lwpdefobj.hxx
deleted file mode 100644
index d21aa726912d..000000000000
--- a/lotuswordpro/source/filter/lwpdefobj.hxx
+++ /dev/null
@@ -1,84 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * The Contents of this file are made available subject to the terms of
- * either of the following licenses
- *
- * - GNU Lesser General Public License Version 2.1
- * - Sun Industry Standards Source License Version 1.1
- *
- * Sun Microsystems Inc., October, 2000
- *
- * GNU Lesser General Public License Version 2.1
- * =============================================
- * Copyright 2000 by Sun Microsystems, Inc.
- * 901 San Antonio Road, Palo Alto, CA 94303, USA
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License version 2.1, as published by the Free Software Foundation.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- *
- *
- * Sun Industry Standards Source License Version 1.1
- * =================================================
- * The contents of this file are subject to the Sun Industry Standards
- * Source License Version 1.1 (the "License"); You may not use this file
- * except in compliance with the License. You may obtain a copy of the
- * License at http://www.openoffice.org/license.html.
- *
- * Software provided under this License is provided on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
- * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
- * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
- * See the License for the specific provisions governing your rights and
- * obligations concerning the Software.
- *
- * The Initial Developer of the Original Code is: IBM Corporation
- *
- * Copyright: 2008 by IBM Corporation
- *
- * All Rights Reserved.
- *
- * Contributor(s): _______________________________________
- *
- *
- ************************************************************************/
-/*************************************************************************
- * @file
- * For LWP filter architecture prototype
- ************************************************************************/
-/*************************************************************************
- * Change History
- Jan 2005 Created
- ************************************************************************/
-
-#ifndef LWPDEFAULTOBJECT_HXX_
-#define LWPDEFAULTOBJECT_HXX_
-
-#include "lwpobj.hxx"
-#include "lwpheader.hxx"
-
-class LwpDefaultObject : public LwpObject
-{
-public:
- LwpDefaultObject(LwpObjectHeader &objHdr, LwpSvStream* pStrm);
- ~LwpDefaultObject();
-private:
- sal_uInt8 *m_DataBuffer;
-public:
- //inline sal_uInt8* GetBuffer(){return m_DataBuffer;}
- void Read();
-};
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/lotuswordpro/source/filter/lwpobjfactory.cxx b/lotuswordpro/source/filter/lwpobjfactory.cxx
index 4fddd8a819f6..cc7b86e57dba 100644
--- a/lotuswordpro/source/filter/lwpobjfactory.cxx
+++ b/lotuswordpro/source/filter/lwpobjfactory.cxx
@@ -690,7 +690,6 @@ LwpObject* LwpObjectFactory::CreateObject(sal_uInt32 type, LwpObjectHeader &objH
//Unknown object type
assert(false);
newObj = NULL;
- //newObj = new LwpDefaultObject(objHdr, m_pSvStream);
break;
}
}