diff options
author | Kurt Nordback <kurt.nordback@protonmail.com> | 2023-12-01 11:18:31 -0700 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-02-19 01:29:36 +0100 |
commit | 1cda27cf69054b006aa1b16cab8f56339274588b (patch) | |
tree | 7e517f2396e969ac4201ed52cf9846ef28a1ddd4 /oox/inc | |
parent | bbc9ac1f08a5ee4b9f65eaf10110df328d95de95 (diff) |
tdf#50934: OfPie inport from OOXML, plus initial work for export
Change-Id: Ie17b583af28d274b3e7817c646dd4f5873e03fef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160733
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox/inc')
-rw-r--r-- | oox/inc/drawingml/chart/typegroupcontext.hxx | 14 | ||||
-rw-r--r-- | oox/inc/drawingml/chart/typegroupconverter.hxx | 3 |
2 files changed, 16 insertions, 1 deletions
diff --git a/oox/inc/drawingml/chart/typegroupcontext.hxx b/oox/inc/drawingml/chart/typegroupcontext.hxx index 5d5306d31fe0..d3af8436d7ac 100644 --- a/oox/inc/drawingml/chart/typegroupcontext.hxx +++ b/oox/inc/drawingml/chart/typegroupcontext.hxx @@ -92,7 +92,7 @@ public: }; -/** Handler for pie type group contexts (c:doughnutChart, c:ofPieChart, +/** Handler for pie type group contexts (c:doughnutChart, c:pie3DChart, c:pieChart elements). */ class PieTypeGroupContext final : public TypeGroupContextBase @@ -105,6 +105,18 @@ public: }; +/** Handler for of-pie type group contexts (c:ofPieChart elements). + */ +class OfPieTypeGroupContext final : public TypeGroupContextBase +{ +public: + explicit OfPieTypeGroupContext( ::oox::core::ContextHandler2Helper& rParent, TypeGroupModel& rModel ); + virtual ~OfPieTypeGroupContext() override; + + virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override; +}; + + /** Handler for radar type group context (c:radarChart element). */ class RadarTypeGroupContext final : public TypeGroupContextBase diff --git a/oox/inc/drawingml/chart/typegroupconverter.hxx b/oox/inc/drawingml/chart/typegroupconverter.hxx index 6b780dd0ae15..e017f81e19c7 100644 --- a/oox/inc/drawingml/chart/typegroupconverter.hxx +++ b/oox/inc/drawingml/chart/typegroupconverter.hxx @@ -21,6 +21,7 @@ #define INCLUDED_OOX_DRAWINGML_CHART_TYPEGROUPCONVERTER_HXX #include <drawingml/chart/converterbase.hxx> +#include <com/sun/star/chart2/PieChartSubType.hpp> namespace com::sun::star { namespace chart2 { class XChartType; } @@ -160,6 +161,8 @@ public: void convertPieRotation( PropertySet& rPropSet, sal_Int32 nOoxAngle ) const; /** Sets the passed OOXML pie explosion at the passed property set. */ void convertPieExplosion( PropertySet& rPropSet, sal_Int32 nOoxExplosion ) const; + /** Converts of-pie types */ + css::chart2::PieChartSubType convertOfPieType(sal_Int32 nOoxOfPieType ) const; private: /** Inserts the passed series into the chart type. Adds additional properties to the series. */ |