diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-29 15:51:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-30 07:21:54 +0100 |
commit | c26f644db80e10f755911d277aac0e1d42731d29 (patch) | |
tree | 0e29bad26101cdfdebcd3d385e02154243564ffa /lotuswordpro | |
parent | 5ecc8e79d84c985fc5835b941924541c135eeeec (diff) |
loplugin:unusedmethods
Change-Id: I9188f4579900d7eec375754aa94d21ac4e8456e2
Reviewed-on: https://gerrit.libreoffice.org/45504
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/lwpfribptr.cxx | 48 | ||||
-rw-r--r-- | lotuswordpro/source/filter/lwpfribptr.hxx | 1 |
2 files changed, 0 insertions, 49 deletions
diff --git a/lotuswordpro/source/filter/lwpfribptr.cxx b/lotuswordpro/source/filter/lwpfribptr.cxx index 2e17818f03e3..d56f0aba06ed 100644 --- a/lotuswordpro/source/filter/lwpfribptr.cxx +++ b/lotuswordpro/source/filter/lwpfribptr.cxx @@ -374,54 +374,6 @@ void LwpFribPtr::XFConvert() } -void LwpFribPtr::FindLayouts() -{ - LwpFrib* pFrib = m_pFribs; - while(pFrib) - { - switch(pFrib->GetType()) - { - case FRIB_TAG_SECTION: - { - LwpFribSection* pSectionFrib = static_cast<LwpFribSection*>(pFrib); - LwpSection* pSection = pSectionFrib->GetSection(); - if(pSection) - { - LwpPageLayout* pLayout = pSection->GetPageLayout(); - if(pLayout) - { - LwpLayout::UseWhenType eSectionType = pLayout->GetUseWhenType(); - if(eSectionType==LwpLayout::StartWithinColume) - { - //StartWithinColume type not support now - break; - } - LwpStory* pStory = dynamic_cast<LwpStory*>(m_pPara->GetStoryID().obj().get()); - if (pStory) - pStory->AddPageLayout(pSection->GetPageLayout()); - } - } - - break; - } - case FRIB_TAG_PAGEBREAK: - { - LwpFribPageBreak* pPageBreak = static_cast<LwpFribPageBreak*>(pFrib); - LwpPageLayout* pLayout = dynamic_cast<LwpPageLayout*>(pPageBreak->GetLayout().obj().get()); - if(pLayout) - { - LwpStory* pStory = dynamic_cast<LwpStory*>(m_pPara->GetStoryID().obj().get()); - if (pStory) - pStory->AddPageLayout(pLayout); - } - break; - } - default: - break; - } - pFrib = pFrib->GetNext(); - } -} /************************************************************************** * @descr: Whether has a frib which type is nType **************************************************************************/ diff --git a/lotuswordpro/source/filter/lwpfribptr.hxx b/lotuswordpro/source/filter/lwpfribptr.hxx index de77b34e71a7..58cb3fae2079 100644 --- a/lotuswordpro/source/filter/lwpfribptr.hxx +++ b/lotuswordpro/source/filter/lwpfribptr.hxx @@ -84,7 +84,6 @@ public: XFParagraph* GetXFPara(){return m_pXFPara;} void SetPara(LwpPara* para){m_pPara=para;} void RegisterStyle(); - void FindLayouts();// for register pagelayout LwpFrib* GetFribs(){return m_pFribs;} LwpFrib* HasFrib(sal_uInt8 nType); bool ComparePagePosition(LwpVirtualLayout const * pPreLayout, LwpVirtualLayout const * pNextLayout); |