[Libreoffice-commits] core.git: Branch 'libreoffice-3-6' - comphelper/inc xmloff/source

Lionel Elie Mamane lionel at mamane.lu
Thu May 16 00:49:33 PDT 2013


 comphelper/inc/comphelper/classids.hxx |    6 ++++++
 xmloff/source/draw/shapeexport.cxx     |    3 ++-
 2 files changed, 8 insertions(+), 1 deletion(-)

New commits:
commit 7e868f818c9863461cdf388e3d9fddaffb70d9ca
Author: Lionel Elie Mamane <lionel at mamane.lu>
Date:   Fri May 3 18:09:15 2013 +0200

    fdo#48056 treat report chart as draw chart
    
    Change-Id: I0a716b4339747f1994e5c8710e15474807aea4a2
    Reviewed-on: https://gerrit.libreoffice.org/3770
    Reviewed-by: Miklos Vajna <vmiklos at suse.cz>
    Tested-by: Miklos Vajna <vmiklos at suse.cz>

diff --git a/comphelper/inc/comphelper/classids.hxx b/comphelper/inc/comphelper/classids.hxx
index dcfe502..a6c304a 100644
--- a/comphelper/inc/comphelper/classids.hxx
+++ b/comphelper/inc/comphelper/classids.hxx
@@ -414,6 +414,12 @@
 // #110743#
 #define BF_SO3_SCH_CLASSID  BF_SO3_SCH_CLASSID_50
 
+// Report chart
+
+#define SO3_RPTCH_CLASSID \
+    0x80243D39, 0x6741, 0x46C5, 0x92, 0x6E, 0x06, \
+    0x91, 0x64, 0xFF, 0x87, 0xBB
+
 /****************************************************
 * StarImage
 ****************************************************/
diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx
index bec909b..22891c4 100644
--- a/xmloff/source/draw/shapeexport.cxx
+++ b/xmloff/source/draw/shapeexport.cxx
@@ -1091,7 +1091,8 @@ void XMLShapeExport::ImpCalcShapeType(const uno::Reference< drawing::XShape >& x
                         rtl::OUString sCLSID;
                         if(xPropSet->getPropertyValue(OUString("CLSID")) >>= sCLSID)
                         {
-                            if (sCLSID.equals(mrExport.GetChartExport()->getChartCLSID()))
+                            if (sCLSID.equals(mrExport.GetChartExport()->getChartCLSID()) ||
+                                sCLSID.equals(rtl::OUString( SvGlobalName( SO3_RPTCH_CLASSID ).GetHexName())))
                             {
                                 eShapeType = XmlShapeTypeDrawChartShape;
                             }


More information about the Libreoffice-commits mailing list