summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-04-02 12:35:41 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-04-02 16:31:48 +0000
commit2f33a8cd231d3842a1e5521e3a61d8e73517137b (patch)
tree184c69d8545ce64cfc1c9e25fe4df9319eb252f4 /include/vcl
parentfb41ebff32371ee7a7e07f671f7c769a8bb18718 (diff)
coverity#1403662 Mixing enum types
Change-Id: Ic5e797c65dfc736a9ef0ab14f3ae563216143947 Reviewed-on: https://gerrit.libreoffice.org/36020 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/unohelp.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/vcl/unohelp.hxx b/include/vcl/unohelp.hxx
index c7ef4419c7ea..7fe34d48a6da 100644
--- a/include/vcl/unohelp.hxx
+++ b/include/vcl/unohelp.hxx
@@ -21,7 +21,9 @@
#define INCLUDED_VCL_UNOHELP_HXX
#include <com/sun/star/uno/Reference.h>
+#include <com/sun/star/awt/FontSlant.hpp>
#include <rtl/ustring.hxx>
+#include <tools/fontenum.hxx>
#include <vcl/dllapi.h>
namespace com {
@@ -53,6 +55,12 @@ namespace unohelper
VCL_DLLPUBLIC css::uno::Reference < css::i18n::XBreakIterator > CreateBreakIterator();
VCL_DLLPUBLIC css::uno::Reference < css::i18n::XCharacterClassification> CreateCharacterClassification();
VCL_DLLPUBLIC void NotifyAccessibleStateEventGlobally( const css::accessibility::AccessibleEventObject& rEventObject );
+VCL_DLLPUBLIC float ConvertFontWidth( FontWidth eWidth );
+VCL_DLLPUBLIC FontWidth ConvertFontWidth( float f );
+VCL_DLLPUBLIC float ConvertFontWeight( FontWeight eWeight );
+VCL_DLLPUBLIC FontWeight ConvertFontWeight( float f );
+VCL_DLLPUBLIC css::awt::FontSlant ConvertFontSlant( FontItalic eWeight );
+VCL_DLLPUBLIC FontItalic ConvertFontSlant( css::awt::FontSlant );
}} // namespace vcl::unohelper
#endif // INCLUDED_VCL_UNOHELP_HXX