diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-06-30 19:22:37 +0300 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-07-15 10:00:46 +0200 |
commit | 9d8bac40899b656ca5173fec880102f54e996382 (patch) | |
tree | 586083da24f156fe6c248427a56e72f784a4cfb2 /include/ucbhelper | |
parent | 184a4771dad448a37f80b29bc62ad62e0a6a4bb6 (diff) |
Drop GETVALUE_IMPL/SETVALUE_IMPL macros
Replace with PropertyValueSet getValue/appendValue templates
Change-Id: I5714e6c4e6daf5ba6a4a9f9b363de3a1541834da
Reviewed-on: https://gerrit.libreoffice.org/74930
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/ucbhelper')
-rw-r--r-- | include/ucbhelper/propertyvalueset.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/ucbhelper/propertyvalueset.hxx b/include/ucbhelper/propertyvalueset.hxx index a0ecaf0df86d..97ee7c6ec889 100644 --- a/include/ucbhelper/propertyvalueset.hxx +++ b/include/ucbhelper/propertyvalueset.hxx @@ -40,6 +40,9 @@ namespace com { namespace sun { namespace star { namespace beans { namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } } +enum class PropsSet; +namespace ucbhelper_impl { struct PropertyValue; } + namespace ucbhelper { class PropertyValues; @@ -69,6 +72,12 @@ private: UCBHELPER_DLLPRIVATE const css::uno::Reference< css::script::XTypeConverter >& getTypeConverter(); + template <class T, T ucbhelper_impl::PropertyValue::*_member_name_> + T getValue(PropsSet nTypeName, sal_Int32 columnIndex); + + template <class T, T ucbhelper_impl::PropertyValue::*_member_name_> + void appendValue(const OUString& rPropName, PropsSet nTypeName, const T& rValue); + public: PropertyValueSet( const css::uno::Reference< css::uno::XComponentContext >& rxContext ); |