diff options
author | Noel Power <noel.power@novell.com> | 2012-08-01 17:01:44 +0100 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2012-08-01 17:03:07 +0100 |
commit | ff54a3c291b8aa104992a0285207166cf25ddd86 (patch) | |
tree | c5a3b8e26ac14b7926b3c66f12635209d956bc7d /vcl/inc | |
parent | d616ea80b27e65d83710f811a6f32637f3c7284a (diff) |
simpler fix fo fdo#51336 - change vcl checkbox no-label behaviour
Change-Id: I1563dc2afc49c7b1115192db00fbd08a7524154e
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/vcl/button.hxx | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/vcl/inc/vcl/button.hxx b/vcl/inc/vcl/button.hxx index 9c5d6a323cf8..9daf41aa2f65 100644 --- a/vcl/inc/vcl/button.hxx +++ b/vcl/inc/vcl/button.hxx @@ -292,7 +292,11 @@ private: sal_Bool mbRadioCheck; sal_Bool mbStateChanged; Link maToggleHdl; - + // when mbLegacyNoTextAlign is set then the old behaviour where + // the WB_LEFT, WB_RIGHT & WB_CENTER affect the image placement + // occurs, otherwise the image ( radiobutton circle ) is placed + // to the left or right ( depending on RTL or LTR settings ) + bool mbLegacyNoTextAlign; SAL_DLLPRIVATE void ImplInitRadioButtonData(); SAL_DLLPRIVATE WinBits ImplInitStyle( const Window* pPrevWindow, WinBits nStyle ); SAL_DLLPRIVATE void ImplInitSettings( sal_Bool bFont, sal_Bool bForeground, sal_Bool bBackground ); @@ -409,7 +413,11 @@ private: TriState meSaveValue; sal_Bool mbTriState; Link maToggleHdl; - + // when mbLegacyNoTextAlign is set then the old behaviour where + // the WB_LEFT, WB_RIGHT & WB_CENTER affect the image placement + // occurs, otherwise the image ( checkbox box ) is placed + // to the left or right ( depending on RTL or LTR settings ) + bool mbLegacyNoTextAlign; SAL_DLLPRIVATE void ImplInitCheckBoxData(); SAL_DLLPRIVATE WinBits ImplInitStyle( const Window* pPrevWindow, WinBits nStyle ); SAL_DLLPRIVATE void ImplInitSettings( sal_Bool bFont, sal_Bool bForeground, sal_Bool bBackground ); @@ -481,6 +489,8 @@ public: void SetToggleHdl( const Link& rLink ) { maToggleHdl = rLink; } const Link& GetToggleHdl() const { return maToggleHdl; } + bool IsLegacyNoTextAlign() { return mbLegacyNoTextAlign; } + void SetLegacyNoTextAlign( bool bVal ) { mbLegacyNoTextAlign = bVal; } }; inline void CheckBox::Check( sal_Bool bCheck ) |