[Libreoffice-commits] core.git: oovbaapi/ooo sc/source

Tamas Bunth tamas.bunth at collabora.co.uk
Fri Jun 30 07:36:14 UTC 2017


 oovbaapi/ooo/vba/excel/XBorder.idl |    1 +
 sc/source/ui/vba/vbaborders.cxx    |   22 ++++++++++++++++++++++
 sc/source/ui/vba/vbaborders.hxx    |    2 ++
 3 files changed, 25 insertions(+)

New commits:
commit af3a46d7630a26fd4d54a3b47a3d9beaa5e88c83
Author: Tamas Bunth <tamas.bunth at collabora.co.uk>
Date:   Thu Jun 29 10:33:45 2017 +0200

    oovbaapi: add Borders.TintAndShade Property
    
    As documented at:
    https://msdn.microsoft.com/VBA/Excel-VBA/articles/borders-tintandshade-property-excel
    
    A stub for now.
    
    Change-Id: Id422f3585ced7df59112f6757aeef0860bb0210e
    Reviewed-on: https://gerrit.libreoffice.org/39381
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Tamás Bunth <btomi96 at gmail.com>

diff --git a/oovbaapi/ooo/vba/excel/XBorder.idl b/oovbaapi/ooo/vba/excel/XBorder.idl
index f13ba825257b..b49a1d7c5c8e 100644
--- a/oovbaapi/ooo/vba/excel/XBorder.idl
+++ b/oovbaapi/ooo/vba/excel/XBorder.idl
@@ -35,6 +35,7 @@ interface XBorder
     [attribute] any ColorIndex;
     [attribute] any LineStyle;
     [attribute] any Weight;
+    [attribute] any TintAndShade;
 };
 
 
diff --git a/sc/source/ui/vba/vbaborders.cxx b/sc/source/ui/vba/vbaborders.cxx
index 3737005e9ee9..c9590e2cfbab 100644
--- a/sc/source/ui/vba/vbaborders.cxx
+++ b/sc/source/ui/vba/vbaborders.cxx
@@ -261,6 +261,16 @@ public:
                     throw uno::RuntimeException("Method failed" );
     }
 
+    void SAL_CALL setTintAndShade( const uno::Any& /*rAny*/ ) override
+    {
+        // TODO implement
+    }
+    uno::Any SAL_CALL getTintAndShade() override
+    {
+        // TODO implement
+        return uno::makeAny(static_cast<double>(0));
+    }
+
     uno::Any SAL_CALL getLineStyle() override
     {
         // always return xlContinuous;
@@ -532,6 +542,18 @@ uno::Any SAL_CALL ScVbaBorders::getWeight()
     }
     return  weight;
 }
+
+uno::Any SAL_CALL ScVbaBorders::getTintAndShade()
+{
+    // TODO implement
+    return uno::makeAny(static_cast<double>(0));
+}
+
+void SAL_CALL ScVbaBorders::setTintAndShade(const uno::Any& /*rAny*/)
+{
+    // TODO implement
+}
+
 void SAL_CALL ScVbaBorders::setWeight( const uno::Any& _weight )
 {
     sal_Int32 count = getCount();
diff --git a/sc/source/ui/vba/vbaborders.hxx b/sc/source/ui/vba/vbaborders.hxx
index dafcbe525cf5..2d9d0b049a30 100644
--- a/sc/source/ui/vba/vbaborders.hxx
+++ b/sc/source/ui/vba/vbaborders.hxx
@@ -55,6 +55,8 @@ public:
     virtual void SAL_CALL setLineStyle( const css::uno::Any& _linestyle ) override;
     virtual css::uno::Any SAL_CALL getWeight() override;
     virtual void SAL_CALL setWeight( const  css::uno::Any& ) override;
+    virtual css::uno::Any SAL_CALL getTintAndShade() override;
+    virtual void SAL_CALL setTintAndShade( const  css::uno::Any& ) override;
     // xxxxBASE
     virtual OUString getServiceImplName() override;
     virtual css::uno::Sequence<OUString> getServiceNames() override;


More information about the Libreoffice-commits mailing list