summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2012-09-28 15:43:05 +0100
committerNoel Power <noel.power@suse.com>2012-09-28 17:27:23 +0100
commitee6a1c0797ca839e50d7b5ab522088d8d2f6501e (patch)
tree65ca15aa25f87917d659c49ff48e20321a4a3daa /svtools
parent886ff48256948fa6117548b1fc319646beb6fb8a (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 ) );