Kaydet (Commit) 39ab5402 authored tarafından Caolán McNamara's avatar Caolán McNamara

callcatcher: remove various unused methods

üst aa4bcd28
...@@ -382,92 +382,6 @@ sal_uInt32 GetSvStreamSize(SvStream * pStream) ...@@ -382,92 +382,6 @@ sal_uInt32 GetSvStreamSize(SvStream * pStream)
return ulLength; 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 * Find hazily according to object ID
......
...@@ -296,7 +296,6 @@ public: // Internal methods ...@@ -296,7 +296,6 @@ public: // Internal methods
LtcUtBenValueStream * FindNextValueStreamWithPropertyName(const char * sPropertyName, LtcUtBenValueStream * pCurrentValueStream); LtcUtBenValueStream * FindNextValueStreamWithPropertyName(const char * sPropertyName, LtcUtBenValueStream * pCurrentValueStream);
LtcUtBenValueStream * FindValueStreamWithPropertyName(const char * sPropertyName); LtcUtBenValueStream * FindValueStreamWithPropertyName(const char * sPropertyName);
LtcUtBenValueStream * FindObjectValueStreamWithObjectIDAndProperty(BenObjectID ObjectID, const char * sPropertyName); LtcUtBenValueStream * FindObjectValueStreamWithObjectIDAndProperty(BenObjectID ObjectID, const char * sPropertyName);
BenError CreateGraphicStreams(std::vector<SvStream *> * pStreamVector) ;
BenError CreateGraphicStream(SvStream * &pStream, const char *pObjectName); BenError CreateGraphicStream(SvStream * &pStream, const char *pObjectName);
void ReadAswEntry(SvStream * pStream, AswEntry& rEntry); void ReadAswEntry(SvStream * pStream, AswEntry& rEntry);
......
...@@ -275,12 +275,4 @@ void LwpOleObject::RegisterStyle() ...@@ -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: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -182,8 +182,6 @@ public: ...@@ -182,8 +182,6 @@ public:
void SetAdviseFlags( sal_uLong nAdv ) { nAdvFlags = nAdv; } void SetAdviseFlags( sal_uLong nAdv ) { nAdvFlags = nAdv; }
void SetSize( const Size & rSize ) { aSize = rSize; } void SetSize( const Size & rSize ) { aSize = rSize; }
Size GetSize() const { return aSize; } Size GetSize() const { return aSize; }
/// return FALSE => unknown format
sal_Bool Read( SvStream & rStm );
}; };
......
...@@ -125,20 +125,6 @@ void XFDrawPath::CurveTo(XFPoint dest, XFPoint ctrl1, XFPoint ctrl2, sal_Bool ...@@ -125,20 +125,6 @@ void XFDrawPath::CurveTo(XFPoint dest, XFPoint ctrl1, XFPoint ctrl2, sal_Bool
m_aPaths.push_back(entry); 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) void XFDrawPath::ClosePath(sal_Bool absPosition)
{ {
XFSvgPathEntry entry; XFSvgPathEntry entry;
......
...@@ -118,11 +118,6 @@ public: ...@@ -118,11 +118,6 @@ public:
*/ */
void CurveTo(XFPoint dest, XFPoint ctrl1, XFPoint ctrl2, sal_Bool absPosition = sal_True); 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. * @descr Close path command.
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment