summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-09-23 08:48:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-09-27 11:48:46 +0200
commit1534025a0386584a7b8f3f929b10ce5eb33257cf (patch)
tree7f12dd6763148089cd4fb5495c8fffe84f415e12 /lotuswordpro
parent0f2e01677cd0e8857faec99c61d71e88eee78b27 (diff)
loplugin:methodcycles more graph theory for the win
implemeent a reduction approach, which is good at finding virtual methods that only themselves or their virtual partners. The accessibility GetVisArea stuff is dead since commit 891e41fac81fbd8d5cdb277b26639abfd25a7143 Date: Wed Apr 4 11:23:22 2018 +0200 dead code in AccessibleTextHelper_Impl::UpdateVisibleChildren Change-Id: I78d9d8bca585ecec8394f2c3fe2baa93db0e58f5 Reviewed-on: https://gerrit.libreoffice.org/60912 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwplayout.cxx36
-rw-r--r--lotuswordpro/source/filter/lwplayout.hxx2
2 files changed, 0 insertions, 38 deletions
diff --git a/lotuswordpro/source/filter/lwplayout.cxx b/lotuswordpro/source/filter/lwplayout.cxx
index 115c4635b339..d79217319ff3 100644
--- a/lotuswordpro/source/filter/lwplayout.cxx
+++ b/lotuswordpro/source/filter/lwplayout.cxx
@@ -123,17 +123,6 @@ bool LwpVirtualLayout::MarginsSameAsParent()
}
/**
-* @descr: Get column width
-*
-*/
-double LwpVirtualLayout::GetColWidth(sal_uInt16 /*nIndex*/)
-{
- //return GetContentWidth(); //not support now
- //return LwpTools::ConvertToMetric(5); //test
- return 0; //test
-}
-
-/**
* @descr: Get the gap between columns
*
*/
@@ -1557,31 +1546,6 @@ sal_uInt16 LwpLayout::GetNumCols()
return nRet;
}
-/**
-* @descr: Get column width
-* @param: the order of column
-*/
-double LwpLayout::GetColWidth(sal_uInt16 nIndex)
-{
- if((m_nOverrideFlag & OVER_COLUMNS)||(m_nAttributes2 & STYLE2_LOCALCOLUMNINFO))
- {
- LwpLayoutColumns* pLayColumns = dynamic_cast<LwpLayoutColumns*>(m_LayColumns.obj().get());
- if(pLayColumns)
- {
- return pLayColumns->GetColWidth(nIndex);
- }
- }
-
- rtl::Reference<LwpObject> xBase(GetBasedOnStyle());
- LwpVirtualLayout* pStyle = dynamic_cast<LwpVirtualLayout*>(xBase.get());
- if (pStyle)
- {
- return pStyle->GetColWidth(nIndex);
- }
-
- return LwpVirtualLayout::GetColWidth(nIndex);
-
-}
/**
* @descr: Get gap between columns
diff --git a/lotuswordpro/source/filter/lwplayout.hxx b/lotuswordpro/source/filter/lwplayout.hxx
index 98d7ca515906..1e07f4b1ae14 100644
--- a/lotuswordpro/source/filter/lwplayout.hxx
+++ b/lotuswordpro/source/filter/lwplayout.hxx
@@ -99,7 +99,6 @@ class LwpVirtualLayout : public LwpDLNFPVList
public:
LwpVirtualLayout(LwpObjectHeader const &objHdr, LwpSvStream* pStrm);
virtual sal_uInt16 GetNumCols(){return 1;}
- virtual double GetColWidth(sal_uInt16 nIndex);
virtual double GetColGap(sal_uInt16 nIndex);
virtual bool IsAutoGrow(){ return false;}
virtual bool IsAutoGrowUp(){ return false;}
@@ -445,7 +444,6 @@ protected:
public:
LwpUseWhen* VirtualGetUseWhen() override;
virtual sal_uInt16 GetNumCols() override;
- virtual double GetColWidth(sal_uInt16 nIndex) override;
virtual double GetColGap(sal_uInt16 nIndex) override;
sal_uInt16 GetUsePage();
public: