summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamas Bunth <tamas.bunth@collabora.co.uk>2017-06-29 10:33:45 +0200
committerTamás Bunth <btomi96@gmail.com>2017-06-30 09:35:50 +0200
commitaf3a46d7630a26fd4d54a3b47a3d9beaa5e88c83 (patch)
tree098bdc67fb69a6bfb8f07f4d19c89dae305ed7f6
parentc1845e4970143e5f8d8d6386c297319c2185d3a4 (diff)
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@libreoffice.org> Reviewed-by: Tamás Bunth <btomi96@gmail.com>
-rw-r--r--oovbaapi/ooo/vba/excel/XBorder.idl1
-rw-r--r--sc/source/ui/vba/vbaborders.cxx22
-rw-r--r--sc/source/ui/vba/vbaborders.hxx2
3 files changed, 25 insertions, 0 deletions
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;