summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorNoel Power <noel.power@novell.com>2012-07-31 20:41:51 +0100
committerNoel Power <noel.power@novell.com>2012-08-01 17:03:07 +0100
commit59d9a39abc6d4915fce55e55008107a7081b38d9 (patch)
tree2cbac3863cdd0ce4db40802b280189eee8d4e28c /vcl/inc
parente3c2e0fab67bbb812e8c693aab987fb5c374e5e0 (diff)
Revert "fdo#51336 - change vcl checkbox no-label behaviour"
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/vcl/button.hxx15
1 files changed, 6 insertions, 9 deletions
diff --git a/vcl/inc/vcl/button.hxx b/vcl/inc/vcl/button.hxx
index 0fd0bcfbdcec..719feaa0add3 100644
--- a/vcl/inc/vcl/button.hxx
+++ b/vcl/inc/vcl/button.hxx
@@ -406,6 +406,7 @@ public:
class VCL_DLLPUBLIC CheckBox : public Button
{
+private:
Rectangle maStateRect;
Rectangle maMouseRect;
TriState meState;
@@ -424,7 +425,7 @@ class VCL_DLLPUBLIC CheckBox : public Button
SAL_DLLPRIVATE void ImplDrawCheckBox( bool bLayout = false );
SAL_DLLPRIVATE long ImplGetImageToTextDistance() const;
SAL_DLLPRIVATE Size ImplGetCheckImageSize() const;
-private:
+
// Copy assignment is forbidden and not implemented.
SAL_DLLPRIVATE CheckBox(const CheckBox &);
SAL_DLLPRIVATE CheckBox& operator= (const CheckBox &);
@@ -432,19 +433,15 @@ private:
protected:
using Control::ImplInitSettings;
using Window::ImplInit;
- // allows the behaviour of horizontal placement of the checbox image to be
- // overridden.
- virtual void ImplHandleHoriAlign( const Point& rPos, const Size& rSize,
- const Size& rImageSize, Rectangle& rStateRect );
SAL_DLLPRIVATE void ImplInit( Window* pParent, WinBits nStyle );
SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
- virtual void FillLayoutData() const;
- virtual const Font&
+ SAL_DLLPRIVATE virtual void FillLayoutData() const;
+ SAL_DLLPRIVATE virtual const Font&
GetCanonicalFont( const StyleSettings& _rStyle ) const;
- virtual const Color&
+ SAL_DLLPRIVATE virtual const Color&
GetCanonicalTextColor( const StyleSettings& _rStyle ) const;
- virtual void ImplDrawCheckBoxState();
+ SAL_DLLPRIVATE virtual void ImplDrawCheckBoxState();
SAL_DLLPRIVATE const Rectangle& GetStateRect() const { return maStateRect; }
SAL_DLLPRIVATE const Rectangle& GetMouseRect() const { return maMouseRect; }
public: