From 55e9a27afd2d6a13cf76b39641bf121c3ec4b45c Mon Sep 17 00:00:00 2001 From: Balazs Varga <balazs.varga.extern@allotropia.de> Date: Fri, 29 Mar 2024 23:00:50 +0100 Subject: Related: tdf#39052 - chart ooxml: export formatted chart titles texts properly to ooxml. Also adding "FormattedStrings" property for title objects to simplify the working of character formattings in editable chart shapes. TODO: odf import/export Change-Id: Ie27b4dee72c24fa6a2a4e2a7db8da7fa50eb8937 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165583 Tested-by: Jenkins Tested-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de> Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de> --- include/oox/export/chartexport.hxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/oox') diff --git a/include/oox/export/chartexport.hxx b/include/oox/export/chartexport.hxx index 640415003d15..1b708b83d479 100644 --- a/include/oox/export/chartexport.hxx +++ b/include/oox/export/chartexport.hxx @@ -25,6 +25,7 @@ #include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/uno/Sequence.hxx> +#include <com/sun/star/chart2/FormattedString.hpp> #include <oox/dllapi.h> #include <oox/export/drawingml.hxx> #include <oox/export/shapes.hxx> @@ -176,7 +177,8 @@ private: void exportLegend( const css::uno::Reference< css::chart::XChartDocument >& rChartDoc ); void exportTitle( const css::uno::Reference< css::drawing::XShape >& xShape, - const OUString* pSubText = nullptr ); + const css::uno::Sequence< css::uno::Reference< css::chart2::XFormattedString > >& xFormattedSubTitle = + css::uno::Sequence< css::uno::Reference< css::chart2::XFormattedString > >() ); void exportPlotArea( const css::uno::Reference< css::chart::XChartDocument >& rChartDoc ); void exportAdditionalShapes( const css::uno::Reference<css::chart::XChartDocument >& rChartDoc ); -- cgit