summaryrefslogtreecommitdiff
path: root/xmloff/source/text/XMLIndexTitleTemplateContext.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-02-14 16:53:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-02-15 07:02:36 +0100
commitaa58c380894dd384f6ce1efc62b3932136f2f477 (patch)
treeca6af6905afd398da0541c71733393540ab8be2e /xmloff/source/text/XMLIndexTitleTemplateContext.cxx
parent0cb4f304abf6f8dd6b40eb800788d2fe80581813 (diff)
convert XML_STYLE_FAMILY to scoped enum
Change-Id: I5335b0190a2f5a8111993c0c9c224c8a6a8f0cfb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88723 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/text/XMLIndexTitleTemplateContext.cxx')
-rw-r--r--xmloff/source/text/XMLIndexTitleTemplateContext.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/text/XMLIndexTitleTemplateContext.cxx b/xmloff/source/text/XMLIndexTitleTemplateContext.cxx
index 08189caaadb4..d6d994b869a0 100644
--- a/xmloff/source/text/XMLIndexTitleTemplateContext.cxx
+++ b/xmloff/source/text/XMLIndexTitleTemplateContext.cxx
@@ -68,7 +68,7 @@ void XMLIndexTitleTemplateContext::StartElement(
{
sStyleName = xAttrList->getValueByIndex(nAttr);
OUString sDisplayStyleName = GetImport().GetStyleDisplayName(
- XML_STYLE_FAMILY_TEXT_PARAGRAPH, sStyleName );
+ XmlStyleFamily::TEXT_PARAGRAPH, sStyleName );
const Reference < css::container::XNameContainer >&
rStyles = GetImport().GetTextImport()->GetParaStyles();
bStyleNameOK = rStyles.is() && rStyles->hasByName( sDisplayStyleName );
@@ -86,7 +86,7 @@ void XMLIndexTitleTemplateContext::EndElement()
if (bStyleNameOK)
{
aAny <<= GetImport().GetStyleDisplayName(
- XML_STYLE_FAMILY_TEXT_PARAGRAPH,
+ XmlStyleFamily::TEXT_PARAGRAPH,
sStyleName );
rTOCPropertySet->setPropertyValue("ParaStyleHeading", aAny);
}