diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-08 20:04:28 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-09 12:08:15 +0200 |
commit | 485300f9aef53f63e24339422b1dd2bfa12d543e (patch) | |
tree | 3e3f5aca8dbbade3ed18a68da0b57ace4cc2bee5 /writerfilter | |
parent | 0e1a0ecffa055062a21815ab13eb6e4f8c769b8f (diff) |
loplugin:unusedmethods
Change-Id: Ib89ab59f7ad7e90b2a44ddd122176cde904fba4d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135520
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/dmapper/DomainMapper_Impl.cxx | 41 | ||||
-rw-r--r-- | writerfilter/source/dmapper/DomainMapper_Impl.hxx | 2 |
2 files changed, 0 insertions, 43 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx index fd6300504de5..3d6b26dba8d3 100644 --- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx +++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx @@ -8350,47 +8350,6 @@ void DomainMapper_Impl::ApplySettingsTable() } } -uno::Reference<container::XIndexAccess> DomainMapper_Impl::GetCurrentNumberingRules(sal_Int32* pListLevel) -{ - uno::Reference<container::XIndexAccess> xRet; - try - { - OUString aStyle = GetCurrentParaStyleName(); - if (aStyle.isEmpty()) - return xRet; - const StyleSheetEntryPtr pEntry = GetStyleSheetTable()->FindStyleSheetByConvertedStyleName(aStyle); - if (!pEntry) - return xRet; - const StyleSheetPropertyMap* pStyleSheetProperties = pEntry->pProperties.get(); - if (!pStyleSheetProperties) - return xRet; - sal_Int32 nListId = pStyleSheetProperties->GetListId(); - if (nListId < 0) - return xRet; - if (pListLevel) - *pListLevel = pStyleSheetProperties->GetListLevel(); - - // So we are in a paragraph style and it has numbering. Look up the relevant numbering rules. - auto const pList(GetListTable()->GetList(nListId)); - OUString aListName; - if (pList) - { - aListName = pList->GetStyleName(); - } - uno::Reference< style::XStyleFamiliesSupplier > xStylesSupplier(GetTextDocument(), uno::UNO_QUERY_THROW); - uno::Reference< container::XNameAccess > xStyleFamilies = xStylesSupplier->getStyleFamilies(); - uno::Reference<container::XNameAccess> xNumberingStyles; - xStyleFamilies->getByName("NumberingStyles") >>= xNumberingStyles; - uno::Reference<beans::XPropertySet> xStyle(xNumberingStyles->getByName(aListName), uno::UNO_QUERY); - xRet.set(xStyle->getPropertyValue("NumberingRules"), uno::UNO_QUERY); - } - catch (const uno::Exception&) - { - TOOLS_WARN_EXCEPTION("writerfilter.dmapper", "GetCurrentNumberingRules: exception caught"); - } - return xRet; -} - SectionPropertyMap * DomainMapper_Impl::GetSectionContext() { SectionPropertyMap* pSectionContext = nullptr; diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.hxx b/writerfilter/source/dmapper/DomainMapper_Impl.hxx index 27e5457c2772..c0a41b0328cf 100644 --- a/writerfilter/source/dmapper/DomainMapper_Impl.hxx +++ b/writerfilter/source/dmapper/DomainMapper_Impl.hxx @@ -1056,8 +1056,6 @@ public: } SectionPropertyMap * GetSectionContext(); - /// If the current paragraph has a numbering style associated, this method returns its numbering rules - css::uno::Reference<css::container::XIndexAccess> GetCurrentNumberingRules(sal_Int32* pListLevel); sal_Int16 GetListLevel(const StyleSheetEntryPtr& pEntry, const PropertyMapPtr& pParaContext = nullptr); void ValidateListLevel(const OUString& sStyleIdentifierD); |