summaryrefslogtreecommitdiff
path: root/lotuswordpro/source/filter/bencont.cxx
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/source/filter/bencont.cxx
parentaa4bcd28eeb92fc35024d1a4800eb8252d547944 (diff)
callcatcher: remove various unused methods
Diffstat (limited to 'lotuswordpro/source/filter/bencont.cxx')
-rw-r--r--lotuswordpro/source/filter/bencont.cxx86
1 files changed, 0 insertions, 86 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