summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-22 21:51:44 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-23 10:35:44 +0100
commit43f8cba7d238e6db25e05edd0d9713dcc42fc861 (patch)
tree797d2e5aeae4d288a143e7483997538758ea7af9 /lotuswordpro
parent6c1e8719013b47ff3d3954173a17e49f3a361009 (diff)
callcatcher: yet more unused code
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwpbulletstylemgr.cxx17
-rw-r--r--lotuswordpro/source/filter/lwpbulletstylemgr.hxx7
-rw-r--r--lotuswordpro/source/filter/lwpcelllayout.cxx23
-rw-r--r--lotuswordpro/source/filter/lwpcelllayout.hxx4
-rw-r--r--lotuswordpro/source/filter/lwpcharborderoverride.cxx50
-rw-r--r--lotuswordpro/source/filter/lwpcharborderoverride.hxx2
-rw-r--r--lotuswordpro/source/filter/lwpdllist.cxx5
-rw-r--r--lotuswordpro/source/filter/lwpdllist.hxx1
-rw-r--r--lotuswordpro/source/filter/lwpdocdata.cxx19
-rw-r--r--lotuswordpro/source/filter/lwpdocdata.hxx7
10 files changed, 2 insertions, 133 deletions
diff --git a/lotuswordpro/source/filter/lwpbulletstylemgr.cxx b/lotuswordpro/source/filter/lwpbulletstylemgr.cxx
index 13b857930a33..029218607318 100644
--- a/lotuswordpro/source/filter/lwpbulletstylemgr.cxx
+++ b/lotuswordpro/source/filter/lwpbulletstylemgr.cxx
@@ -313,21 +313,4 @@ XFContentContainer* LwpBulletStyleMgr::AddBulletList(
return InnerItem;
}
-rtl::OUString LwpBulletStyleMgr::GetSectionName(LwpPara* pPara)
-{
- LwpObjectID* pStoryID = pPara->GetStoryID();
- if (pStoryID->IsNull())
- {
- return rtl::OUString();
- }
-
- LwpStory* pStory = dynamic_cast<LwpStory*>(pStoryID->obj(VO_STORY));
- if (!pStory)
- {
- return rtl::OUString();
- }
-
- return pStory->GetSectionName();
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/lotuswordpro/source/filter/lwpbulletstylemgr.hxx b/lotuswordpro/source/filter/lwpbulletstylemgr.hxx
index 4809f0de4914..a2caa329e706 100644
--- a/lotuswordpro/source/filter/lwpbulletstylemgr.hxx
+++ b/lotuswordpro/source/filter/lwpbulletstylemgr.hxx
@@ -102,19 +102,12 @@ public:
inline LwpNumberingOverride* GetCurrentNumOver();
private:
- rtl::OUString GetSectionName(LwpPara* pPara);
-
-private:
-// std::vector <XFListStyle*> m_aBulletStyleList;
typedef std::pair<boost::shared_ptr<LwpBulletOverride>, LwpObjectID> OverridePair;
std::vector <rtl::OUString> m_vStyleNameList;
std::vector <OverridePair> m_vIDsPairList;
rtl::OUString m_aCurrentStyleName;
LwpFoundry* m_pFoundry;
XFList* m_pBulletList;
-// UChar32 m_nCurrentChar;
-// rtl::OUString m_strCurrentFontName;
-// rtl::OUString m_strCurrentNumberingName;
sal_Bool m_bContinue;
sal_Bool m_bIsBulletSkipped;
LwpObjectID m_aCurrentNumberingID;
diff --git a/lotuswordpro/source/filter/lwpcelllayout.cxx b/lotuswordpro/source/filter/lwpcelllayout.cxx
index 03895d094670..8112069e1f7d 100644
--- a/lotuswordpro/source/filter/lwpcelllayout.cxx
+++ b/lotuswordpro/source/filter/lwpcelllayout.cxx
@@ -638,28 +638,7 @@ void LwpCellLayout::Read()
pStrm->SkipExtra();
}
}
-/**
- * @short Get leader char
- * @param none
- * @return char ascii, if none, return 0
- */
-sal_uInt8 LwpCellLayout::GetLeaderChar()
-{
- switch(cType)
- {
- case LDT_NONE:
- return 0;
- case LDT_DOTS:
- return '.';
- case LDT_DASHES:
- return '-';
- case LDT_UNDERSCORES:
- return '_';
- default:
- assert(sal_False);
- }
- return 0;
-}
+
/**
* Apply protect attribute to cell of table
* @date 04/04/2005
diff --git a/lotuswordpro/source/filter/lwpcelllayout.hxx b/lotuswordpro/source/filter/lwpcelllayout.hxx
index 78c6229f0e0f..587e1354f972 100644
--- a/lotuswordpro/source/filter/lwpcelllayout.hxx
+++ b/lotuswordpro/source/filter/lwpcelllayout.hxx
@@ -103,18 +103,14 @@ public:
LwpTableLayout * GetTableLayout();
virtual void SetCellMap(void);
double GetActualWidth();
- sal_uInt8 GetLeaderChar();
OUString GetNumfmtName(){return m_NumfmtName;}
protected:
void Read();
-// LwpTableLayout * GetTableLayout();
LwpTable * GetTable();
void ApplyPadding(XFCellStyle* pCellStyle);
void ApplyBorders(XFCellStyle* pCellStyle);
- // add by , 06/03/2005
void ApplyPatternFill(XFCellStyle* pCellStyle);
void ApplyBackGround(XFCellStyle* pCellStyle);
- // end add
void ApplyBackColor(XFCellStyle* pCellStyle);
void ApplyWatermark(XFCellStyle* pCellStyle);
void ApplyProtect(XFCell * pCell, LwpObjectID aTableID);
diff --git a/lotuswordpro/source/filter/lwpcharborderoverride.cxx b/lotuswordpro/source/filter/lwpcharborderoverride.cxx
index baf8df55a690..9e63be2b131e 100644
--- a/lotuswordpro/source/filter/lwpcharborderoverride.cxx
+++ b/lotuswordpro/source/filter/lwpcharborderoverride.cxx
@@ -118,54 +118,4 @@ void LwpCharacterBorderOverride::Read(LwpObjectStream* pStrm)
pStrm->SkipExtra();
}
-void LwpCharacterBorderOverride::Override(LwpCharacterBorderOverride* pOther)
-{
- if (m_nApply & PBO_STUFF)
- {
- if (this->IsBorderStuffOverridden())
- {
- pOther->OverrideBorderStuff(m_pBorderStuff);
- }
- else
- {
- pOther->RevertBorderStuff();
- }
- }
-
- if (m_nApply & PBO_MARGINS)
- {
- if (this->IsMarginsOverridden())
- {
- pOther->OverrideMargins(m_pMargins);
- }
- else
- {
- pOther->RevertMargins();
- }
- }
-
- if (m_nApply & PBO_ABOVE)
- {
- if (this->IsAboveWidthOverridden())
- {
- pOther->OverrideAboveWidth(m_nAboveWidth);
- }
- else
- {
- pOther->RevertAboveWidth();
- }
- }
-
- if (m_nApply & PBO_BELOW)
- {
- if (this->IsBelowWidthOverridden())
- {
- pOther->OverrideBelowWidth(m_nBelowWidth);
- }
- else
- {
- pOther->RevertBelowWidth();
- }
- }
-}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/lotuswordpro/source/filter/lwpcharborderoverride.hxx b/lotuswordpro/source/filter/lwpcharborderoverride.hxx
index 7908620ff9bd..4e08e4300ec8 100644
--- a/lotuswordpro/source/filter/lwpcharborderoverride.hxx
+++ b/lotuswordpro/source/filter/lwpcharborderoverride.hxx
@@ -80,8 +80,6 @@ public:
void Read(LwpObjectStream* pStrm);
- void Override(LwpCharacterBorderOverride* pOther);
-
inline LwpBorderStuff* GetBorderStuff();
inline LwpMargins* GetMargins();
inline sal_Int32 GetAboveWidth() const;
diff --git a/lotuswordpro/source/filter/lwpdllist.cxx b/lotuswordpro/source/filter/lwpdllist.cxx
index ee4edd4401e7..abf4d66cb617 100644
--- a/lotuswordpro/source/filter/lwpdllist.cxx
+++ b/lotuswordpro/source/filter/lwpdllist.cxx
@@ -64,11 +64,6 @@
#include "lwpdllist.hxx"
-LwpDLList::LwpDLList(LwpDLList* Next, LwpDLList* Previous)
-{
- insert(Next, Previous);
-}
-
LwpDLList::LwpDLList(void)
{
m_pNext = m_pPrevious = NULL;
diff --git a/lotuswordpro/source/filter/lwpdllist.hxx b/lotuswordpro/source/filter/lwpdllist.hxx
index f16918a21e74..f250bd88213a 100644
--- a/lotuswordpro/source/filter/lwpdllist.hxx
+++ b/lotuswordpro/source/filter/lwpdllist.hxx
@@ -68,7 +68,6 @@
class LwpDLList
{
public:
- LwpDLList(LwpDLList*,LwpDLList*);
LwpDLList(void);
virtual ~LwpDLList();
void insert(LwpDLList*, LwpDLList*);
diff --git a/lotuswordpro/source/filter/lwpdocdata.cxx b/lotuswordpro/source/filter/lwpdocdata.cxx
index c69e1f05b441..2f2526c527ce 100644
--- a/lotuswordpro/source/filter/lwpdocdata.cxx
+++ b/lotuswordpro/source/filter/lwpdocdata.cxx
@@ -69,24 +69,7 @@ LwpDocData::LwpDocData(LwpObjectHeader &objHdr, LwpSvStream* pStrm)
LwpDocData::~LwpDocData()
{
}
-void LwpDocData::SkipExtra(LwpSvStream* pStream)
-{
- sal_uInt16 extra;
- pStream->Read(&extra,2);
- while(extra != 0)
- {
- pStream->SeekRel(extra);
- pStream->Read(&extra,2);
- }
-}
-void LwpDocData::SkipAtomHandler(LwpSvStream* pStream)
-{
- sal_uInt16 disksize;
- sal_uInt16 len;
- pStream->Read(&disksize,2);
- pStream->Read(&len,2);
- if(len)pStream->SeekRel(disksize-2);
-}
+
void LwpDocData::Read()
{
//XFDateTime
diff --git a/lotuswordpro/source/filter/lwpdocdata.hxx b/lotuswordpro/source/filter/lwpdocdata.hxx
index 2e319746e240..e5aa366a812a 100644
--- a/lotuswordpro/source/filter/lwpdocdata.hxx
+++ b/lotuswordpro/source/filter/lwpdocdata.hxx
@@ -175,19 +175,12 @@ private:
LtTm m_nLastRevisionTime;
LtTm m_nTotalEditTime;
private:
- void SkipExtra(LwpSvStream* pStream);
- void SkipAtomHandler(LwpSvStream* pStream);
rtl::OUString DateTimeToOUString(LtTm& dt);
rtl::OUString TimeToOUString(LtTm& dt);
public:
- //inline sal_uInt8* GetBuffer(){return m_DataBuffer;}
void Read();
void Parse(IXFStream *pOutputStream);
-// LwpEditorAttr* GetEditorList(){return m_pEditorAttrList;}
- //static OUString GetEditorName(sal_uInt8 nID);
- //static XFColor GetHighLightColor(sal_uInt8 nID);
- //static void Reset();
};
#endif