[Libreoffice-commits] core.git: chart2/source offapi/com

Markus Mohrhard markus.mohrhard at googlemail.com
Mon Jul 27 16:11:07 PDT 2015


 chart2/source/model/main/DataPoint.cxx             |    3 ++-
 offapi/com/sun/star/chart2/DataPointProperties.idl |   10 ++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

New commits:
commit 6949629e35f308ce7efc890319ecf9a46a5f154c
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Tue Jul 28 01:09:10 2015 +0200

    reflect the property name changes also in the idl files
    
    DataPoints now support the whole css::drawing::FillProperties properties
    which makes handling fill properties in chart2 a lot easier. The new
    names are just aliases for the old property names.
    
    Change-Id: I5b85010fe2557eeb5376de71ff3605b3abbcd488

diff --git a/chart2/source/model/main/DataPoint.cxx b/chart2/source/model/main/DataPoint.cxx
index 8f9ea9c..c7876fd 100644
--- a/chart2/source/model/main/DataPoint.cxx
+++ b/chart2/source/model/main/DataPoint.cxx
@@ -284,7 +284,8 @@ void DataPoint::fireModifyEvent()
 
 Sequence< OUString > DataPoint::getSupportedServiceNames_Static()
 {
-    Sequence< OUString > aServices( 3 );
+    Sequence< OUString > aServices( 4 );
+    aServices[ 0 ] = "com.sun.star.drawing.FillProperties";
     aServices[ 0 ] = "com.sun.star.chart2.DataPoint";
     aServices[ 1 ] = "com.sun.star.chart2.DataPointProperties";
     aServices[ 2 ] = "com.sun.star.beans.PropertySet";
diff --git a/offapi/com/sun/star/chart2/DataPointProperties.idl b/offapi/com/sun/star/chart2/DataPointProperties.idl
index da45def..647d4ed 100644
--- a/offapi/com/sun/star/chart2/DataPointProperties.idl
+++ b/offapi/com/sun/star/chart2/DataPointProperties.idl
@@ -20,6 +20,7 @@
 #define com_sun_star_chart2_DataPointProperties_idl
 
 #include <com/sun/star/beans/PropertySet.idl>
+#include <com/sun/star/drawing/FillProperties.idl>
 #include <com/sun/star/awt/Gradient.idl>
 #include <com/sun/star/style/XStyle.idl>
 #include <com/sun/star/drawing/Hatch.idl>
@@ -46,6 +47,15 @@ service DataPointProperties
     */
     service ::com::sun::star::beans::PropertySet;
 
+    /** to give access to the fill properties
+
+        Note that there is access for some of them
+        through some alias.
+
+        @since LibreOffice 5.1
+    */
+    service ::com::sun::star::drawing::FillProperties;
+
 
     /** points to a style that also supports this service (but not
         this property) that is used as default, if the PropertyState


More information about the Libreoffice-commits mailing list