diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-28 10:10:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-29 07:28:57 +0100 |
commit | a566fd1c1a50f9bcb4c69a19bdf4fb1955285d93 (patch) | |
tree | 13273efcf8aa69ce39a1860dc3d111c071e6a7b3 /lotuswordpro | |
parent | 411260d836e7bf6c693b9b7d16af1b36184133af (diff) |
loplugin:unusedmethods
Change-Id: I2efb5c0e5735c179314c6c5de87821cee3b033e1
Reviewed-on: https://gerrit.libreoffice.org/45386
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpdoc.cxx | 17 | ||||
-rw-r--r-- | lotuswordpro/source/filter/lwpdoc.hxx | 1 | ||||
-rw-r--r-- | lotuswordpro/source/filter/lwplayout.cxx | 32 | ||||
-rw-r--r-- | lotuswordpro/source/filter/lwplayout.hxx | 3 | ||||
-rw-r--r-- | lotuswordpro/source/filter/lwppara.hxx | 1 | ||||
-rw-r--r-- | lotuswordpro/source/filter/lwppara1.cxx | 11 |
6 files changed, 0 insertions, 65 deletions
diff --git a/lotuswordpro/source/filter/lwpdoc.cxx b/lotuswordpro/source/filter/lwpdoc.cxx index e4755571e10d..90fd7374869c 100644 --- a/lotuswordpro/source/filter/lwpdoc.cxx +++ b/lotuswordpro/source/filter/lwpdoc.cxx @@ -701,23 +701,6 @@ sal_uInt16 LwpDocument::GetNumberOfPagesBefore() } /** - * @descr Get Max number of pages - */ - void LwpDocument::MaxNumberOfPages(sal_uInt16& nNumPages) -{ - LwpDocument* pDivision = GetFirstDivision(); - - LwpDivInfo* pDivInfo = dynamic_cast<LwpDivInfo*>(m_DivInfo.obj().get()); - if(pDivInfo) - nNumPages += pDivInfo->GetMaxNumberOfPages(); - while(pDivision) - { - pDivision->MaxNumberOfPages(nNumPages); - pDivision = pDivision->GetNextDivision(); - } -} - - /** * @descr Parse the frame which anchor is to page before parse other contents, * This method is called when the document is root document. */ diff --git a/lotuswordpro/source/filter/lwpdoc.hxx b/lotuswordpro/source/filter/lwpdoc.hxx index a0d12105a645..03b7c143afc6 100644 --- a/lotuswordpro/source/filter/lwpdoc.hxx +++ b/lotuswordpro/source/filter/lwpdoc.hxx @@ -175,7 +175,6 @@ public: void ParseFrameInPage(IXFStream* pOutputStream); private: - void MaxNumberOfPages(sal_uInt16& nNumPages); LwpDocument* ImplGetFirstDivisionWithContentsThatIsNotOLE(); void XFConvertFrameInPage(XFContentContainer* pCont); static void ChangeStyleName(); diff --git a/lotuswordpro/source/filter/lwplayout.cxx b/lotuswordpro/source/filter/lwplayout.cxx index 34ae225a3920..cdaa7ab7dfa3 100644 --- a/lotuswordpro/source/filter/lwplayout.cxx +++ b/lotuswordpro/source/filter/lwplayout.cxx @@ -945,38 +945,6 @@ sal_uInt16 LwpMiddleLayout::GetScaleCenter() return 0; } -sal_uInt32 LwpMiddleLayout::GetScalePercentage() -{ - if ((m_nOverrideFlag & OVER_SCALING) && m_LayScale.obj().is() && GetLayoutScale()) - return GetLayoutScale()->GetScalePercentage()/10;//m_nScalePercentage 1000 = 100% - rtl::Reference<LwpObject> xBase(GetBasedOnStyle()); - if (xBase.is()) - return dynamic_cast<LwpMiddleLayout&>(*xBase.get()).GetScalePercentage(); - else - return 100; -} - -double LwpMiddleLayout::GetScaleWidth() -{ - if ((m_nOverrideFlag & OVER_SCALING) && m_LayScale.obj().is() && GetLayoutScale()) - return LwpTools::ConvertFromUnits(GetLayoutScale()->GetScaleWidth()); - rtl::Reference<LwpObject> xBase(GetBasedOnStyle()); - if (xBase.is()) - return dynamic_cast<LwpMiddleLayout&>(*xBase.get()).GetScaleWidth(); - else - return 0; -} - -double LwpMiddleLayout::GetScaleHeight() -{ - if ((m_nOverrideFlag & OVER_SCALING) && m_LayScale.obj().is() && GetLayoutScale()) - return LwpTools::ConvertFromUnits(GetLayoutScale()->GetScaleHeight()); - rtl::Reference<LwpObject> xBase(GetBasedOnStyle()); - if (xBase.is()) - return dynamic_cast<LwpMiddleLayout&>(*xBase.get()).GetScaleHeight(); - else - return 0; -} bool LwpMiddleLayout::CanSizeRight() { sal_uInt8 RelType = GetRelativeType(); diff --git a/lotuswordpro/source/filter/lwplayout.hxx b/lotuswordpro/source/filter/lwplayout.hxx index e6b5fe849e5d..efff5f62fd07 100644 --- a/lotuswordpro/source/filter/lwplayout.hxx +++ b/lotuswordpro/source/filter/lwplayout.hxx @@ -364,9 +364,6 @@ public: sal_uInt16 GetScaleMode(); sal_uInt16 GetScaleTile(); sal_uInt16 GetScaleCenter(); - sal_uInt32 GetScalePercentage(); - double GetScaleWidth(); - double GetScaleHeight(); bool CanSizeRight(); virtual double GetWidth() override; diff --git a/lotuswordpro/source/filter/lwppara.hxx b/lotuswordpro/source/filter/lwppara.hxx index 282afeb16591..da927326c24e 100644 --- a/lotuswordpro/source/filter/lwppara.hxx +++ b/lotuswordpro/source/filter/lwppara.hxx @@ -180,7 +180,6 @@ public: XFContentContainer* GetXFContainer(); void AddXFContent(XFContent* pCont); void SetXFContainer(XFContentContainer* pCont); - void FindLayouts();// for register pagelayout void RegisterTabStyle(XFParaStyle* pXFParaStyle); LwpBulletStyleMgr* GetBulletStyleMgr(); diff --git a/lotuswordpro/source/filter/lwppara1.cxx b/lotuswordpro/source/filter/lwppara1.cxx index 7a6b97f2b214..fc5c46a3e979 100644 --- a/lotuswordpro/source/filter/lwppara1.cxx +++ b/lotuswordpro/source/filter/lwppara1.cxx @@ -547,17 +547,6 @@ void LwpPara::OverrideParaNumbering(LwpParaProperty const * pProps) m_pParaNumbering = std::move(pOver); } -void LwpPara::FindLayouts() -{ - m_Fribs.SetPara(this); - m_Fribs.FindLayouts(); - LwpPara* pNextPara = dynamic_cast<LwpPara*>(GetNext().obj().get()); - if(pNextPara) - { - pNextPara->FindLayouts(); - } -} - /************************************************************************** * @descr: Get property according to the property type **************************************************************************/ |