From 2e3f7cc4125cbd4245030122eeb9608af3b7997b Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 11 Aug 2011 23:13:46 +0100 Subject: callcatcher: unused code --- lotuswordpro/source/filter/lwpfootnote.cxx | 10 ------ lotuswordpro/source/filter/lwpfootnote.hxx | 1 - lotuswordpro/source/filter/lwpfoundry.cxx | 24 -------------- lotuswordpro/source/filter/lwpfoundry.hxx | 1 - lotuswordpro/source/filter/lwpobjfactory.cxx | 9 ----- lotuswordpro/source/filter/lwppara.cxx | 17 ---------- lotuswordpro/source/filter/lwppara.hxx | 5 --- lotuswordpro/source/filter/lwppara1.cxx | 13 -------- lotuswordpro/source/filter/lwptable.cxx | 48 --------------------------- lotuswordpro/source/filter/lwptable.hxx | 46 ------------------------- lotuswordpro/source/filter/lwpuidoc.cxx | 5 --- lotuswordpro/source/filter/lwpuidoc.hxx | 1 - lotuswordpro/source/filter/lwpverdocument.cxx | 5 --- lotuswordpro/source/filter/lwpverdocument.hxx | 1 - 14 files changed, 186 deletions(-) (limited to 'lotuswordpro') diff --git a/lotuswordpro/source/filter/lwpfootnote.cxx b/lotuswordpro/source/filter/lwpfootnote.cxx index 761af3c519e0..686c7d34d5c7 100644 --- a/lotuswordpro/source/filter/lwpfootnote.cxx +++ b/lotuswordpro/source/filter/lwpfootnote.cxx @@ -217,16 +217,6 @@ LwpCellLayout* LwpFootnote::GetCellLayout() } return NULL; } -/** - * @descr Get endnote supertable layout which contains current endnote content, not used now - */ -LwpEnSuperTableLayout* LwpFootnote::GetEnSuperTableLayout() -{ - LwpDocument* pDivision = GetFootnoteTableDivision(); - if(pDivision) - return static_cast(pDivision->GetEnSuperTableLayout()); - return NULL; -} /** * @descr Get division which footnote table contains current footnote content, copy from lwp source code diff --git a/lotuswordpro/source/filter/lwpfootnote.hxx b/lotuswordpro/source/filter/lwpfootnote.hxx index 680cc71ecdf8..054b126f6b7a 100644 --- a/lotuswordpro/source/filter/lwpfootnote.hxx +++ b/lotuswordpro/source/filter/lwpfootnote.hxx @@ -142,7 +142,6 @@ public: sal_uInt16 GetType(){ return m_nType;} private: LwpCellLayout* GetCellLayout(); - LwpEnSuperTableLayout* GetEnSuperTableLayout(); LwpDocument* GetFootnoteTableDivision(); LwpDocument* GetEndnoteDivision(LwpDocument* pPossible); LwpEnSuperTableLayout* FindFootnoteTableLayout(); diff --git a/lotuswordpro/source/filter/lwpfoundry.cxx b/lotuswordpro/source/filter/lwpfoundry.cxx index 364550fd4fea..30380c6530b7 100644 --- a/lotuswordpro/source/filter/lwpfoundry.cxx +++ b/lotuswordpro/source/filter/lwpfoundry.cxx @@ -253,30 +253,6 @@ LwpBookMark* LwpFoundry::GetBookMark(LwpObjectID objMarker) return NULL; } -sal_Bool LwpFoundry::FindBookMarkByName(OUString sName) -{ - LwpDLVListHeadHolder* pHeadHolder= static_cast - (m_BookMarkHead.obj()); - LwpObjectID* pObjID = pHeadHolder->GetHeadID(); - LwpBookMark* pBookMark; - if (pObjID) - pBookMark = static_cast(pObjID->obj()); - else - return sal_False; - - while (pBookMark) - { - if (pBookMark->IsRightName(sName)) - return sal_True; - pObjID = pBookMark->GetNext(); - if (pObjID) - pBookMark = static_cast(pObjID->obj()); - else - return sal_False; - } - return sal_False; -} - /** * @descr: Get next content * diff --git a/lotuswordpro/source/filter/lwpfoundry.hxx b/lotuswordpro/source/filter/lwpfoundry.hxx index 8e5741c3cd93..c16f7ab99169 100644 --- a/lotuswordpro/source/filter/lwpfoundry.hxx +++ b/lotuswordpro/source/filter/lwpfoundry.hxx @@ -286,7 +286,6 @@ private: public: inline LwpStyleManager* GetStyleManager() { return m_pStyleMgr;} LwpBookMark* GetBookMark(LwpObjectID objMarker); - sal_Bool FindBookMarkByName(OUString sName); LwpDropcapMgr* GetDropcapMgr(){return m_pDropcapMgr;} LwpContent* EnumContents(LwpContent* pContent); LwpSection* EnumSections(LwpSection* pSection); diff --git a/lotuswordpro/source/filter/lwpobjfactory.cxx b/lotuswordpro/source/filter/lwpobjfactory.cxx index ef0cc209e9fa..a14e1932e315 100644 --- a/lotuswordpro/source/filter/lwpobjfactory.cxx +++ b/lotuswordpro/source/filter/lwpobjfactory.cxx @@ -494,15 +494,6 @@ LwpObject* LwpObjectFactory::CreateObject(sal_uInt32 type, LwpObjectHeader &objH newObj = new LwpTableHeading(objHdr, m_pSvStream); break; } - /* some member variables can't be read until now - case VO_TABLEHINT: - { - newObj = new LwpTableHint(objHdr, m_pSvStream); - break; - } - */ - // end table - //add by case VO_CHBLKMARKER: { newObj = new LwpCHBlkMarker(objHdr, m_pSvStream); diff --git a/lotuswordpro/source/filter/lwppara.cxx b/lotuswordpro/source/filter/lwppara.cxx index d3324ddcb207..6c185b8989b5 100644 --- a/lotuswordpro/source/filter/lwppara.cxx +++ b/lotuswordpro/source/filter/lwppara.cxx @@ -907,23 +907,6 @@ void LwpPara::AddBreakAfter(XFContentContainer* pCont) } } -LwpVirtualLayout* LwpPara::GetLayoutWithMyStory() -{ - LwpStory* pMyStory = NULL; - if (!m_Story.IsNull()) - { - pMyStory = dynamic_cast(m_Story.obj(VO_STORY)); - if (!pMyStory) - { - return NULL; - } - - return pMyStory->GetLayout(NULL); - } - - return NULL; -} - LwpBulletStyleMgr* LwpPara::GetBulletStyleMgr() { if (m_pFoundry) diff --git a/lotuswordpro/source/filter/lwppara.hxx b/lotuswordpro/source/filter/lwppara.hxx index 7540a6fa2534..9bdac99e2f56 100644 --- a/lotuswordpro/source/filter/lwppara.hxx +++ b/lotuswordpro/source/filter/lwppara.hxx @@ -201,16 +201,11 @@ public: void FindLayouts();// for register pagelayout, add by , 02/20/2005 void RegisterTabStyle(XFParaStyle* pXFParaStyle); - // add by 04/13/2005 - LwpVirtualLayout* GetLayoutWithMyStory(); LwpBulletStyleMgr* GetBulletStyleMgr(); sal_uInt32 GetOrdinal(){ return m_nOrdinal;} sal_Bool operator <(LwpPara& Other); sal_Bool ComparePagePosition(LwpVirtualLayout* pPreLayout, LwpVirtualLayout* pNextLayout); -// rtl::OUString RegisterBulletStyle(); - // end add - sal_Bool IsNumberRight(); sal_Bool IsInCell(); void SetAllText(OUString sText); diff --git a/lotuswordpro/source/filter/lwppara1.cxx b/lotuswordpro/source/filter/lwppara1.cxx index b9656ced1521..19929675b0bf 100644 --- a/lotuswordpro/source/filter/lwppara1.cxx +++ b/lotuswordpro/source/filter/lwppara1.cxx @@ -643,19 +643,6 @@ sal_Bool LwpPara::ComparePagePosition(LwpVirtualLayout * pPreLayout, LwpVirtualL return m_Fribs.ComparePagePosition(pPreLayout, pNextLayout); } -/** - * @short check paragraph alignment - */ -sal_Bool LwpPara::IsNumberRight() -{ - LwpParaStyle* pStyle = dynamic_cast(m_ParaStyle.obj()); - if (pStyle) - { - return pStyle->IsNumberRight(); - } - else - return sal_False; -} /** * @short check paragraph in cell or not */ diff --git a/lotuswordpro/source/filter/lwptable.cxx b/lotuswordpro/source/filter/lwptable.cxx index 9e6c54b3f82a..a8d328cfa53a 100644 --- a/lotuswordpro/source/filter/lwptable.cxx +++ b/lotuswordpro/source/filter/lwptable.cxx @@ -156,54 +156,6 @@ void LwpTableHeading::Read() void LwpTableHeading::Parse(IXFStream* /*pOutputStream*/) { -} - - /*****************************************************************************/ - LwpTableHint::LwpTableHint(LwpObjectHeader &objHdr, LwpSvStream* pStrm):LwpObject(objHdr, pStrm) -{} - -LwpTableHint::~LwpTableHint() -{} - -void LwpTableHint::Read() -{ - cListNext.ReadIndexed(m_pObjStrm); - if (LwpFileHeader::m_nFileRevision < 0x0006) - m_pObjStrm->SkipExtra(); - - // not implemented yet - //lbool Problem; - // ?Problem = cStart.QuickReadNonEmbedded(m_pObjStrm); - - cLayout.ReadIndexed(m_pObjStrm); - cContent.ReadIndexed(m_pObjStrm); - cFlags = m_pObjStrm->QuickReaduInt8(); - cParent.ReadIndexed(m_pObjStrm); - //cNumberHint.QuickRead (m_pObjStrm); - cLineNumber = m_pObjStrm->QuickReaduInt32(); - cPageHint.ReadIndexed (m_pObjStrm); - - m_pObjStrm->SkipExtra (); - - //CContentHint(pFile, pLoader); - - cRow = m_pObjStrm->QuickReaduInt16(); - cCellHint.Read (m_pObjStrm); - cRowContinued = (sal_Bool)m_pObjStrm->QuickReaduInt16(); - - cTable.ReadIndexed(m_pObjStrm); - //if (!cTable.PointerTest()) - // cTable = NullObjPtr; - - //cCellNumberHint.QuickRead (m_pObjStrm); - LwpObjectID cList; - cList.ReadIndexed(m_pObjStrm); - - m_pObjStrm->SkipExtra(); -} - -void LwpTableHint::Parse(IXFStream* /*pOutputStream*/) -{ } /*****************************************************************************/ diff --git a/lotuswordpro/source/filter/lwptable.hxx b/lotuswordpro/source/filter/lwptable.hxx index d04564658041..43e750ca600a 100644 --- a/lotuswordpro/source/filter/lwptable.hxx +++ b/lotuswordpro/source/filter/lwptable.hxx @@ -151,52 +151,6 @@ protected: void Read(); }; -/** - * @brief - * - */ -class LwpTableHint : public LwpObject -{ -public: - LwpTableHint(LwpObjectHeader &objHdr, LwpSvStream* pStrm); - virtual ~LwpTableHint(); - - virtual void Parse(IXFStream* pOutputStream); -protected: - void Read(); - sal_uInt16 cRow; - LwpContentHintHead cCellHint; - sal_Bool cRowContinued; - LwpObjectID cTable; - //CCellNumberHintHead cCellNumberHint; - - LwpObjectID cListNext; - - LwpFribPtr cStart; - LwpObjectID cLayout; // if the layout is complex then we - // store the parent not the left or - // right - LwpObjectID cContent; - sal_uInt8 cFlags; - LwpObjectID cParent; - //CNumberHintHead cNumberHint; - sal_uInt32 cLineNumber; - LwpObjectID cPageHint; // the page hint we belong to - - // cFlags - enum - { - HF_INVALID = 0x01, // hint should not be used to start flowing - HF_LASTPAGE = 0x02, // content ends with this hint - HF_REGISTERED = 0x04, // the hint has been registered with a - // paragraph - HF_DIDBULLET = 0x08, // We flowed bullet text right before - // the end of this stream - HF_PROBLEMPARA = 0x10 // This hint's paragraph changed from disk - }; - - -}; /** * @brief * VO_TABLEHEADING object diff --git a/lotuswordpro/source/filter/lwpuidoc.cxx b/lotuswordpro/source/filter/lwpuidoc.cxx index 5d5b2f827426..fbd96e1de46d 100644 --- a/lotuswordpro/source/filter/lwpuidoc.cxx +++ b/lotuswordpro/source/filter/lwpuidoc.cxx @@ -64,11 +64,6 @@ #include "lwpuidoc.hxx" -LwpUIDocument::LwpUIDocument() - : m_nFlags(DOC_LOCKED) -{} - - LwpUIDocument::LwpUIDocument(LwpObjectStream *pStrm) : m_nFlags(DOC_LOCKED) { diff --git a/lotuswordpro/source/filter/lwpuidoc.hxx b/lotuswordpro/source/filter/lwpuidoc.hxx index 45ff59b4b48e..5815f21998bf 100644 --- a/lotuswordpro/source/filter/lwpuidoc.hxx +++ b/lotuswordpro/source/filter/lwpuidoc.hxx @@ -127,7 +127,6 @@ public: class LwpUIDocument { public: - LwpUIDocument(); LwpUIDocument(LwpObjectStream *pStrm); ~LwpUIDocument(); private: diff --git a/lotuswordpro/source/filter/lwpverdocument.cxx b/lotuswordpro/source/filter/lwpverdocument.cxx index debc1e30f680..5b76c6b0d60e 100644 --- a/lotuswordpro/source/filter/lwpverdocument.cxx +++ b/lotuswordpro/source/filter/lwpverdocument.cxx @@ -104,9 +104,4 @@ void LwpVerDocument::RegisterStyle() pXFStyleManager->AddStyle(pDefault); } -sal_uInt32 LwpVerDocument::GetTabSpacing() -{ - return m_nTabSpacing; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/lotuswordpro/source/filter/lwpverdocument.hxx b/lotuswordpro/source/filter/lwpverdocument.hxx index b0e9078144ff..a1b6cf00beca 100644 --- a/lotuswordpro/source/filter/lwpverdocument.hxx +++ b/lotuswordpro/source/filter/lwpverdocument.hxx @@ -78,7 +78,6 @@ public: ~LwpVerDocument(){} void Read(); virtual void RegisterStyle(); - sal_uInt32 GetTabSpacing(); private: sal_uInt32 m_nTabSpacing; }; -- cgit