From d7214aba95bbdcbd40e87ef50fc66f2e2ec4f5ff Mon Sep 17 00:00:00 2001 From: Balazs Varga Date: Mon, 15 Apr 2024 13:39:03 +0200 Subject: tdf#160517 - chart odf: import/export formatted chart titles (main, sub, axis titles) texts properly to/from odf format. Fix odf export of formatted chart titles. The exported data structure will look like: This is . . . 3 a Fix import of formatted chart titles. Put the properties and related texts into the chart2::XFormattedString2 uno objects. Follow-up commit of: 55e9a27afd2d6a13cf76b39641bf121c3ec4b45c Related: tdf#39052 - chart ooxml: export formatted chart titles 4f994cec388377cc5c2bddb804bd92eb4cd7dc8d tdf#39052 - Chart: make characters formatable in editable chart textshapes -- TODO: chart data point / dataseries labels are handled differently since those are not editable objects, but that is a completily different issue. -- Change-Id: I1842f2c69c132bdf578bb2d354f451cc9d49c63c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166122 Reviewed-by: Michael Stahl Tested-by: Jenkins Reviewed-by: Balazs Varga --- xmloff/source/chart/SchXMLTools.hxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xmloff/source/chart/SchXMLTools.hxx') diff --git a/xmloff/source/chart/SchXMLTools.hxx b/xmloff/source/chart/SchXMLTools.hxx index 994308a19bc3..364c894c5634 100644 --- a/xmloff/source/chart/SchXMLTools.hxx +++ b/xmloff/source/chart/SchXMLTools.hxx @@ -38,6 +38,7 @@ namespace com::sun::star { class XMLPropStyleContext; class SvXMLStylesContext; class SvXMLExport; +class SvXMLImport; namespace SchXMLTools { @@ -98,6 +99,9 @@ namespace SchXMLTools css::uno::Any getPropertyFromContext( std::u16string_view rPropertyName, const XMLPropStyleContext * pPropStyleContext, const SvXMLStylesContext* pStylesCtxt ); void exportText( SvXMLExport& rExport, const OUString& rText, bool bConvertTabsLFs ); + void exportFormattedText( SvXMLExport& rExport, const css::uno::Reference< css::beans::XPropertySet >& xTitleProps ); + void importFormattedText( SvXMLImport& rImport, const std::vector>& rTitle, + const css::uno::Reference< css::beans::XPropertySet >& xTitleProp); void exportRangeToSomewhere( SvXMLExport& rExport, const OUString& rValue ); -- cgit