summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-08 11:43:16 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-08 13:04:44 +0100
commit39ab5402171c8739cd578e073bcd29bb9bf9bdef (patch)
tree661bbf43d5154ea770789c47bcf67bb8310ba97a /lotuswordpro
parentaa4bcd28eeb92fc35024d1a4800eb8252d547944 (diff)
callcatcher: remove various unused methods
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/bencont.cxx86
-rw-r--r--lotuswordpro/source/filter/bento.hxx1
-rw-r--r--lotuswordpro/source/filter/lwpoleobject.cxx8
-rw-r--r--lotuswordpro/source/filter/lwpoleobject.hxx2
-rw-r--r--lotuswordpro/source/filter/xfilter/xfdrawpath.cxx14
-rw-r--r--lotuswordpro/source/filter/xfilter/xfdrawpath.hxx5
6 files changed, 0 insertions, 116 deletions
diff --git a/lotuswordpro/source/filter/bencont.cxx b/lotuswordpro/source/filter/bencont.cxx
index d1381fbf5a2d..d2a0e0fa220d 100644
--- a/lotuswordpro/source/filter/bencont.cxx
+++ b/lotuswordpro/source/filter/bencont.cxx
@@ -382,92 +382,6 @@ sal_uInt32 GetSvStreamSize(SvStream * pStream)
return ulLength;
}
-/**
-* Find hazily according to part of property name
-* @date 01/31/2005
-* @param
-* @return the value stream pointers vector with the property names
-*/
-BenError LtcBenContainer::CreateGraphicStreams(std::vector<SvStream *> * pStreamVector)
-{
- /* traverse all named objects to find all the graphic property names */
- CBenObject * pObj= NULL;
- char *pName;
- std::vector<std::string> aGrPropertyVector ;
- while( (pObj = GetNextObject(pObj)) )
- {
- if(pObj->IsNamedObject())
- {
- CBenNamedObject * pNamedObj = static_cast<CBenNamedObject *>(pObj);
- if(!pNamedObj->IsPropertyName())
- continue;
-
- // Gr2E,41FDD458-S
- // Gr2E,41FDD458-D
- pName = const_cast<char *>(pNamedObj->GetName());
- if ( (pName[0] == 'G')
- && (pName[1] == 'r')
- &&( (pName[14] == 'D') || (pName[14] == 'S') ) )
- {
- aGrPropertyVector.push_back(std::string(pName));
- }
- }
- }
-
- /* traverse the found properties and construct the stream vectors */
- std::vector<std::string>::iterator itor;
- for (itor = aGrPropertyVector.begin(); itor != aGrPropertyVector.end(); ++itor)
- {
- // get property names with suffix of S&D
- char sSName[32], sDName[32];
- strcpy(sSName, itor->c_str());
- strcpy(sDName, itor->c_str());
- sSName[14] = 'S';
- sDName[14] = 'D';
-
- // erase strings in vector
- std::vector<std::string>::iterator itorSearch;
- for (itorSearch = aGrPropertyVector.begin(); itorSearch != aGrPropertyVector.end(); ++itorSearch)
- {
- if( (*itorSearch == sSName) || (*itorSearch == sDName) )
- {
- std::vector<std::string>::iterator itorDel = itorSearch;
- aGrPropertyVector.erase(itorDel);
- }
- }
-
- // get S&D's stream and merge them together
- {
- SvStream *pD = NULL, *pS = NULL;
-
- pS = FindValueStreamWithPropertyName(sSName);
- assert(pS != NULL);
- pD = FindValueStreamWithPropertyName(sDName);
- assert(pD != NULL);
-
- sal_uInt32 nDLen = GetSvStreamSize(pD);
- sal_uInt32 nLen = GetSvStreamSize(pS) + nDLen;
- assert(nLen > 0);
- char * pBuf = new char[nLen];
- assert(pBuf != NULL);
- char * pPointer = pBuf;
- pD->Read(pPointer, nDLen);
- pPointer += nDLen;
- pS->Read(pPointer, nLen - nDLen);
-
- delete pS;
- delete pD;
-
- SvMemoryStream * pStream = new SvMemoryStream(pBuf, nLen, STREAM_READ);
- assert(pStream != NULL);
-
- pStreamVector->push_back(pStream);
- }
- }
-
- aGrPropertyVector.clear();
- return BenErr_OK;
-}
/**
* Find hazily according to object ID
diff --git a/lotuswordpro/source/filter/bento.hxx b/lotuswordpro/source/filter/bento.hxx
index 987b643a80c5..0da355bd0bce 100644
--- a/lotuswordpro/source/filter/bento.hxx
+++ b/lotuswordpro/source/filter/bento.hxx
@@ -296,7 +296,6 @@ public: // Internal methods
LtcUtBenValueStream * FindNextValueStreamWithPropertyName(const char * sPropertyName, LtcUtBenValueStream * pCurrentValueStream);
LtcUtBenValueStream * FindValueStreamWithPropertyName(const char * sPropertyName);
LtcUtBenValueStream * FindObjectValueStreamWithObjectIDAndProperty(BenObjectID ObjectID, const char * sPropertyName);
- BenError CreateGraphicStreams(std::vector<SvStream *> * pStreamVector) ;
BenError CreateGraphicStream(SvStream * &pStream, const char *pObjectName);
void ReadAswEntry(SvStream * pStream, AswEntry& rEntry);
diff --git a/lotuswordpro/source/filter/lwpoleobject.cxx b/lotuswordpro/source/filter/lwpoleobject.cxx
index 4d80320e191b..07e5586d7ac2 100644
--- a/lotuswordpro/source/filter/lwpoleobject.cxx
+++ b/lotuswordpro/source/filter/lwpoleobject.cxx
@@ -275,12 +275,4 @@ void LwpOleObject::RegisterStyle()
{
}
-/**
-* @descr: Read OLE object picture information
-*/
-sal_Bool LwpOlePres::Read( SvStream & /*rStm*/ )
-{
- return sal_True;
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/lotuswordpro/source/filter/lwpoleobject.hxx b/lotuswordpro/source/filter/lwpoleobject.hxx
index b3b13e505362..8a058bf6dfa3 100644
--- a/lotuswordpro/source/filter/lwpoleobject.hxx
+++ b/lotuswordpro/source/filter/lwpoleobject.hxx
@@ -182,8 +182,6 @@ public:
void SetAdviseFlags( sal_uLong nAdv ) { nAdvFlags = nAdv; }
void SetSize( const Size & rSize ) { aSize = rSize; }
Size GetSize() const { return aSize; }
- /// return FALSE => unknown format
- sal_Bool Read( SvStream & rStm );
};
diff --git a/lotuswordpro/source/filter/xfilter/xfdrawpath.cxx b/lotuswordpro/source/filter/xfilter/xfdrawpath.cxx
index 4116e828f9b3..468c1455a7cf 100644
--- a/lotuswordpro/source/filter/xfilter/xfdrawpath.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfdrawpath.cxx
@@ -125,20 +125,6 @@ void XFDrawPath::CurveTo(XFPoint dest, XFPoint ctrl1, XFPoint ctrl2, sal_Bool
m_aPaths.push_back(entry);
}
-void XFDrawPath::SmoothCurveTo(XFPoint dest, XFPoint ctrl, sal_Bool absPosition)
-{
- XFSvgPathEntry entry;
-
- if( absPosition )
- entry.SetCommand(A2OUSTR("C"));
- else
- entry.SetCommand(A2OUSTR("c"));
- entry.AddPoint(ctrl);
- entry.AddPoint(dest);
-
- m_aPaths.push_back(entry);
-}
-
void XFDrawPath::ClosePath(sal_Bool absPosition)
{
XFSvgPathEntry entry;
diff --git a/lotuswordpro/source/filter/xfilter/xfdrawpath.hxx b/lotuswordpro/source/filter/xfilter/xfdrawpath.hxx
index f8ceb701b67b..1795025da1fd 100644
--- a/lotuswordpro/source/filter/xfilter/xfdrawpath.hxx
+++ b/lotuswordpro/source/filter/xfilter/xfdrawpath.hxx
@@ -119,11 +119,6 @@ public:
void CurveTo(XFPoint dest, XFPoint ctrl1, XFPoint ctrl2, sal_Bool absPosition = sal_True);
/**
- * @descr Smooth curve command.
- */
- void SmoothCurveTo(XFPoint dest, XFPoint ctrl, sal_Bool absPosition = sal_True);
-
- /**
* @descr Close path command.
*/
void ClosePath(sal_Bool absPosition = sal_True);