diff options
Diffstat (limited to 'xmloff/source/text/txtimp.cxx')
-rw-r--r-- | xmloff/source/text/txtimp.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx index f699b8b22379..b31c2b6ab99b 100644 --- a/xmloff/source/text/txtimp.cxx +++ b/xmloff/source/text/txtimp.cxx @@ -2037,6 +2037,15 @@ XMLPropStyleContext* XMLTextImportHelper::FindPageMaster( return pStyle; } +XMLPropStyleContext* XMLTextImportHelper::FindAutoCharStyle(const OUString& rName) const +{ + if (!m_xImpl->m_xAutoStyles) + return nullptr; + auto pStyle + = m_xImpl->m_xAutoStyles->FindStyleChildContext(XmlStyleFamily::TEXT_TEXT, rName, true); + return dynamic_cast<XMLPropStyleContext*>(const_cast<SvXMLStyleContext*>(pStyle)); +} + XMLPropStyleContext * XMLTextImportHelper::FindDrawingPage(OUString const& rName) const { if (!m_xImpl->m_xAutoStyles.is()) |