summaryrefslogtreecommitdiff
path: root/svtools
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 /svtools
parente3c2e0fab67bbb812e8c693aab987fb5c374e5e0 (diff)
Revert "fdo#51336 - change vcl checkbox no-label behaviour"
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/brwbox/ebbcontrols.cxx24
1 files changed, 1 insertions, 23 deletions
diff --git a/svtools/source/brwbox/ebbcontrols.cxx b/svtools/source/brwbox/ebbcontrols.cxx
index b0ab8018ac62..1d7b0253fa29 100644
--- a/svtools/source/brwbox/ebbcontrols.cxx
+++ b/svtools/source/brwbox/ebbcontrols.cxx
@@ -253,28 +253,6 @@ namespace svt
//= CheckBoxControl
//==================================================================
//------------------------------------------------------------------
-
- class CBCntrlTriState : public TriStateBox
- {
- CBCntrlTriState( const CBCntrlTriState & );
- CBCntrlTriState& operator= ( const CBCntrlTriState & );
- protected:
- virtual void ImplHandleHoriAlign( const Point& rPos, const Size& rSize,
- const Size& rImageSize, Rectangle& rStateRect )
- {
- WinBits nWinStyle = GetStyle();
- if ( nWinStyle & WB_CENTER )
- rStateRect.Left() = rPos.X()+((rSize.Width()-rImageSize.Width())/2);
- else if ( nWinStyle & WB_RIGHT )
- rStateRect.Left() = rPos.X()+rSize.Width()-rImageSize.Width();
- else
- rStateRect.Left() = rPos.X();
- }
- public:
- CBCntrlTriState( Window* pParent, WinBits nStyle = 0 ) : TriStateBox( pParent, nStyle ) {}
- CBCntrlTriState( Window* pParent, const ResId& rResId ) : TriStateBox( pParent, rResId ) {}
- };
-
CheckBoxControl::CheckBoxControl(Window* pParent, WinBits nWinStyle)
:Control(pParent, nWinStyle)
{
@@ -289,7 +267,7 @@ namespace svt
EnableChildTransparentMode();
- pBox = new CBCntrlTriState(this,WB_CENTER|WB_VCENTER);
+ pBox = new TriStateBox(this,WB_CENTER|WB_VCENTER);
pBox->EnableChildTransparentMode();
pBox->SetPaintTransparent( sal_True );
pBox->SetClickHdl( LINK( this, CheckBoxControl, OnClick ) );