Kaydet (Commit) af3a46d7 authored tarafından Tamas Bunth's avatar Tamas Bunth Kaydeden (comit) Tamás Bunth

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/39381Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarTamás Bunth <btomi96@gmail.com>
üst c1845e49
...@@ -35,6 +35,7 @@ interface XBorder ...@@ -35,6 +35,7 @@ interface XBorder
[attribute] any ColorIndex; [attribute] any ColorIndex;
[attribute] any LineStyle; [attribute] any LineStyle;
[attribute] any Weight; [attribute] any Weight;
[attribute] any TintAndShade;
}; };
......
...@@ -261,6 +261,16 @@ public: ...@@ -261,6 +261,16 @@ public:
throw uno::RuntimeException("Method failed" ); 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 uno::Any SAL_CALL getLineStyle() override
{ {
// always return xlContinuous; // always return xlContinuous;
...@@ -532,6 +542,18 @@ uno::Any SAL_CALL ScVbaBorders::getWeight() ...@@ -532,6 +542,18 @@ uno::Any SAL_CALL ScVbaBorders::getWeight()
} }
return weight; 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 ) void SAL_CALL ScVbaBorders::setWeight( const uno::Any& _weight )
{ {
sal_Int32 count = getCount(); sal_Int32 count = getCount();
......
...@@ -55,6 +55,8 @@ public: ...@@ -55,6 +55,8 @@ public:
virtual void SAL_CALL setLineStyle( const css::uno::Any& _linestyle ) override; virtual void SAL_CALL setLineStyle( const css::uno::Any& _linestyle ) override;
virtual css::uno::Any SAL_CALL getWeight() override; virtual css::uno::Any SAL_CALL getWeight() override;
virtual void SAL_CALL setWeight( const css::uno::Any& ) 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 // xxxxBASE
virtual OUString getServiceImplName() override; virtual OUString getServiceImplName() override;
virtual css::uno::Sequence<OUString> getServiceNames() override; virtual css::uno::Sequence<OUString> getServiceNames() override;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment