diff options
author | Balazs Varga <balazs.varga.extern@allotropia.de> | 2024-03-29 23:00:50 +0100 |
---|---|---|
committer | Balazs Varga <balazs.varga.extern@allotropia.de> | 2024-04-02 23:27:26 +0200 |
commit | 55e9a27afd2d6a13cf76b39641bf121c3ec4b45c (patch) | |
tree | cca55acf82159f454ceec3b9f98574b0a6be4ac1 /xmloff/source/chart | |
parent | 4f994cec388377cc5c2bddb804bd92eb4cd7dc8d (diff) |
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>
Diffstat (limited to 'xmloff/source/chart')
-rw-r--r-- | xmloff/source/chart/SchXMLAxisContext.cxx | 1 | ||||
-rw-r--r-- | xmloff/source/chart/SchXMLChartContext.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/chart/SchXMLExport.cxx | 3 |
3 files changed, 6 insertions, 0 deletions
diff --git a/xmloff/source/chart/SchXMLAxisContext.cxx b/xmloff/source/chart/SchXMLAxisContext.cxx index 39d93cb26662..b54808790845 100644 --- a/xmloff/source/chart/SchXMLAxisContext.cxx +++ b/xmloff/source/chart/SchXMLAxisContext.cxx @@ -564,6 +564,7 @@ void SchXMLAxisContext::SetAxisTitle() { try { + // TODO: ODF import for formatted chart titles xTitleProp->setPropertyValue("String", uno::Any(m_aCurrentAxis.aTitle) ); } catch( beans::UnknownPropertyException & ) diff --git a/xmloff/source/chart/SchXMLChartContext.cxx b/xmloff/source/chart/SchXMLChartContext.cxx index 9d5522feaceb..6072a1a09622 100644 --- a/xmloff/source/chart/SchXMLChartContext.cxx +++ b/xmloff/source/chart/SchXMLChartContext.cxx @@ -736,6 +736,7 @@ void SchXMLChartContext::endFastElement(sal_Int32 ) { try { + // TODO: ODF import for formatted chart titles xTitleProp->setPropertyValue("String", uno::Any(maMainTitle) ); } catch(const beans::UnknownPropertyException&) @@ -751,6 +752,7 @@ void SchXMLChartContext::endFastElement(sal_Int32 ) { try { + // TODO: ODF import for formatted chart titles xTitleProp->setPropertyValue("String", uno::Any(maSubTitle) ); } catch(const beans::UnknownPropertyException&) diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx index 79238a5b34be..56cdca7bdefa 100644 --- a/xmloff/source/chart/SchXMLExport.cxx +++ b/xmloff/source/chart/SchXMLExport.cxx @@ -1344,6 +1344,7 @@ void SchXMLExportHelper_Impl::parseDocument( Reference< chart::XChartDocument > Reference< beans::XPropertySet > xPropSet( xShape, uno::UNO_QUERY ); if( xPropSet.is()) { + // TODO: ODF export for formatted chart titles Any aAny( xPropSet->getPropertyValue( "String" )); OUString aText; aAny >>= aText; @@ -1385,6 +1386,7 @@ void SchXMLExportHelper_Impl::parseDocument( Reference< chart::XChartDocument > Reference< beans::XPropertySet > xPropSet( xShape, uno::UNO_QUERY ); if( xPropSet.is()) { + // TODO: ODF import for formatted chart titles Any aAny( xPropSet->getPropertyValue( "String" )); OUString aText; aAny >>= aText; @@ -2264,6 +2266,7 @@ void SchXMLExportHelper_Impl::exportAxisTitle( const Reference< beans::XProperty std::vector<XMLPropertyState> aPropertyStates = mxExpPropMapper->Filter(mrExport, rTitleProps); if( bExportContent ) { + // TODO: ODF import for formatted chart titles OUString aText; Any aAny( rTitleProps->getPropertyValue( "String" )); aAny >>= aText; |