sd/source/ui/unoidl/unomodel.cxx | 6 ++++++ xmloff/source/text/txtfldi.cxx | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-)
New commits: commit b94de8fa13faa2849ead136d22cfb46f7d3bfddc Author: Katarina Behrens <[email protected]> Date: Wed Apr 22 22:57:37 2015 +0200 Related tdf#88056: Use correct service name Now the page title field can finally be imported and displayed in Impress \o/ It was a simple copy'n'pasta error, but damn, was it hard to find ... Change-Id: I04a3c71568960a66721269da3208208e168a99ac diff --git a/xmloff/source/text/txtfldi.cxx b/xmloff/source/text/txtfldi.cxx index 0c7e0ee..7b1cec1 100644 --- a/xmloff/source/text/txtfldi.cxx +++ b/xmloff/source/text/txtfldi.cxx @@ -4166,7 +4166,7 @@ XMLPageTitleFieldImportContext::XMLPageTitleFieldImportContext( XMLTextImportHelper& rHlp, /// Text import helper sal_uInt16 nPrfx, /// namespace prefix const OUString& sLocalName) /// element name w/o prefix -: XMLTextFieldImportContext(rImport, rHlp, sAPI_datetime, nPrfx, sLocalName ) +: XMLTextFieldImportContext(rImport, rHlp, sAPI_pagetitle, nPrfx, sLocalName ) { sServicePrefix = sAPI_presentation_prefix; bValid = true; commit f89f3c56fec75b122ce392b7736d7585fc7f2279 Author: Katarina Behrens <[email protected]> Date: Wed Apr 22 22:56:30 2015 +0200 Related tdf#88056: more UNO stuff was missing Change-Id: I42fae657084878f0d476b40dd5d04fadc5e34bdb diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index bc2c3e0..369ae83 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -931,6 +931,12 @@ css::uno::Reference<css::uno::XInterface> SdXImpressDocument::create( return (::cppu::OWeakObject * )new SvxUnoTextField( text::textfield::Type::PRESENTATION_DATE_TIME ); } + if( aServiceSpecifier == "com.sun.star.presentation.TextField.PageTitle" || + aServiceSpecifier == "com.sun.star.presentation.textfield.PageTitle" ) + { + return (::cppu::OWeakObject * )new SvxUnoTextField( text::textfield::Type::PRESENTATION_PAGE_TITLE ); + } + if( aServiceSpecifier == "com.sun.star.xml.NamespaceMap" ) { static sal_uInt16 aWhichIds[] = { SDRATTR_XMLATTRIBUTES, EE_CHAR_XMLATTRIBS, EE_PARA_XMLATTRIBS, 0 }; _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
