summaryrefslogtreecommitdiff
path: root/writerfilter/source/dmapper/DomainMapper_Impl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-06-08 20:04:28 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-06-09 12:08:15 +0200
commit485300f9aef53f63e24339422b1dd2bfa12d543e (patch)
tree3e3f5aca8dbbade3ed18a68da0b57ace4cc2bee5 /writerfilter/source/dmapper/DomainMapper_Impl.cxx
parent0e1a0ecffa055062a21815ab13eb6e4f8c769b8f (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/source/dmapper/DomainMapper_Impl.cxx')
-rw-r--r--writerfilter/source/dmapper/DomainMapper_Impl.cxx41
1 files changed, 0 insertions, 41 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;