From aa58c380894dd384f6ce1efc62b3932136f2f477 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 14 Feb 2020 16:53:39 +0200 Subject: 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 --- xmloff/source/text/XMLIndexTitleTemplateContext.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmloff/source/text/XMLIndexTitleTemplateContext.cxx') 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); } -- cgit