Kaydet (Commit) fcaad657 authored tarafından Noel Grandin's avatar Noel Grandin

fix shadow error

introduced by my commit 216fdcbd
"convert RECALCMODE_ constants to scoped enum"

Change-Id: Ie7db053741205faeac70e3d21757774567f43ce0
üst 79b2059f
...@@ -25,29 +25,6 @@ ...@@ -25,29 +25,6 @@
#include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/beans/XPropertySet.hpp>
#include <vbahelper/vbahelperinterface.hxx> #include <vbahelper/vbahelperinterface.hxx>
// use local constants there is no need to expose these constants
// externally. Looking at the Format->Character dialog it seem that
// these may infact be even be calculated. Leave hardcoded for now
// #FIXEME #TBD investigate the code for dialog mentioned above
// The font baseline is not specified.
const short NORMAL = 0;
// specifies a superscripted.
const short SUPERSCRIPT = 33;
// specifies a subscripted.
const short SUBSCRIPT = -33;
// specifies a hight of superscripted font
const sal_Int8 SUPERSCRIPTHEIGHT = 58;
// specifies a hight of subscripted font
const sal_Int8 SUBSCRIPTHEIGHT = 58;
// specifies a hight of normal font
const short NORMALHEIGHT = 100;
typedef InheritedHelperInterfaceImpl1< ov::XFontBase > VbaFontBase_BASE; typedef InheritedHelperInterfaceImpl1< ov::XFontBase > VbaFontBase_BASE;
class VBAHELPER_DLLPUBLIC VbaFontBase : public VbaFontBase_BASE class VBAHELPER_DLLPUBLIC VbaFontBase : public VbaFontBase_BASE
...@@ -58,6 +35,29 @@ protected: ...@@ -58,6 +35,29 @@ protected:
bool mbFormControl; bool mbFormControl;
public: public:
// use local constants there is no need to expose these constants
// externally. Looking at the Format->Character dialog it seem that
// these may in fact even be calculated. Leave hardcoded for now
// #FIXEME #TBD investigate the code for dialog mentioned above
// The font baseline is not specified.
static const short NORMAL = 0;
// specifies a superscripted.
static const short SUPERSCRIPT = 33;
// specifies a subscripted.
static const short SUBSCRIPT = -33;
// specifies a hight of superscripted font
static const sal_Int8 SUPERSCRIPTHEIGHT = 58;
// specifies a hight of subscripted font
static const sal_Int8 SUBSCRIPTHEIGHT = 58;
// specifies a hight of normal font
static const short NORMALHEIGHT = 100;
VbaFontBase( VbaFontBase(
const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< ov::XHelperInterface >& xParent,
const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::uno::XComponentContext >& xContext,
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
using namespace ::ooo::vba; using namespace ::ooo::vba;
using namespace ::com::sun::star; using namespace ::com::sun::star;
// form controls use other property name as the remaining OOo API // form controls use other property name as the remaining OOo API
#define VBAFONTBASE_PROPNAME( ascii_normal, ascii_control ) \ #define VBAFONTBASE_PROPNAME( ascii_normal, ascii_control ) \
mbFormControl ? OUString( ascii_control ) : OUString( ascii_normal ) mbFormControl ? OUString( ascii_control ) : OUString( ascii_normal )
......
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