diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2019-01-06 21:59:21 +0100 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2019-01-10 20:11:21 +0100 |
commit | 4631c5d4c129b826df1cc29af1a558149b823667 (patch) | |
tree | 202dbb3ff7016f25360d9488f1860cd198f8f091 /include/test | |
parent | 647ad220295e16e05333e4eb801e1c8eac2d77f9 (diff) |
DocumentSettings Writer UNO API test (converted from Java test)
Change-Id: Id9a691b1aae62f37ef7f865c5ed015b7c6a13976
Reviewed-on: https://gerrit.libreoffice.org/65909
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include/test')
-rw-r--r-- | include/test/unoapi_property_testers.hxx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/test/unoapi_property_testers.hxx b/include/test/unoapi_property_testers.hxx index f45b772b86e3..4d83e8179ce4 100644 --- a/include/test/unoapi_property_testers.hxx +++ b/include/test/unoapi_property_testers.hxx @@ -75,6 +75,16 @@ void OOO_DLLPUBLIC_TEST testLongProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet, const OUString& name, const sal_Int32& nValue = 42); +/** @brief Tester for optional property type 'long' of a @see com::sun::star::beans::XPropertySet. + * + * @param xPropertySet The property set, which contains the property to test against. + * @param name Name of property to test. + * @param nValue Value to use when setting a new value. + */ +void OOO_DLLPUBLIC_TEST +testLongOptionalProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet, + const OUString& name, const sal_Int32& nValue = 42); + /** @brief Tester for read-only property type 'long' of a @see com::sun::star::beans::XPropertySet. * * @param xPropertySet The property set, which contains the property to test against. @@ -95,6 +105,16 @@ void OOO_DLLPUBLIC_TEST testShortProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet, const OUString& name, const sal_Int16& nValue = 42); +/** @brief Tester for optional property type 'short' of a @see com::sun::star::beans::XPropertySet. + * + * @param xPropertySet The property set, which contains the property to test against. + * @param name Name of property to test. + * @param nValue Value to use when setting a new value. + */ +void OOO_DLLPUBLIC_TEST +testShortOptionalProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet, + const OUString& name, const sal_Int16& nValue = 42); + /** @brief Tester for read-only property type 'short' of a @see com::sun::star::beans::XPropertySet. * * @param xPropertySet The property set, which contains the property to test against. |