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

WB_CBLINESTYLE is dead

since

    commit 51e6fc0c
    Date:   Wed Oct 1 13:31:44 2008 +0000
    CWS-TOOLING: integrate CWS vcl92

Change-Id: I31e39286d207ab7be91411b5644578762ec0d0d1
Reviewed-on: https://gerrit.libreoffice.org/41383Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst d5643998
......@@ -193,7 +193,6 @@ WinBits const WB_EXTRAOFFSET = 0x02000000;
WinBits const WB_NOMULTILINE = 0x10000000;
// Window-Bits for CheckBox
WinBits const WB_CBLINESTYLE = SAL_CONST_INT64(0x2000000000);
WinBits const WB_EARLYTOGGLE = SAL_CONST_INT64(0x4000000000);
// Window-Bits for Edit
......
......@@ -3026,7 +3026,6 @@ void CheckBox::ImplDraw( OutputDevice* pDev, DrawFlags nDrawFlags,
pDev->Push( PushFlags::CLIPREGION | PushFlags::LINECOLOR );
pDev->IntersectClipRegion( tools::Rectangle( rPos, rSize ) );
long nLineY = rPos.Y() + (rSize.Height()-1)/2;
if ( ( !aText.isEmpty() && ! (ImplGetButtonState() & DrawButtonFlags::NoText) ) ||
( HasImage() && ! (ImplGetButtonState() & DrawButtonFlags::NoImage) ) )
{
......@@ -3049,7 +3048,6 @@ void CheckBox::ImplDraw( OutputDevice* pDev, DrawFlags nDrawFlags,
}
ImplDrawAlignedImage( pDev, aPos, aSize, 1, nDrawFlags, nTextStyle );
nLineY = aPos.Y() + aSize.Height()/2;
rMouseRect = tools::Rectangle( aPos, aSize );
rMouseRect.Left() = rPos.X();
......@@ -3096,24 +3094,6 @@ void CheckBox::ImplDraw( OutputDevice* pDev, DrawFlags nDrawFlags,
ImplSetFocusRect( rStateRect );
}
const int nLineSpace = 4;
if( (GetStyle() & WB_CBLINESTYLE) != 0 &&
rMouseRect.Right()-1-nLineSpace < rPos.X()+rSize.Width() )
{
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
if ( rStyleSettings.GetOptions() & StyleSettingsOptions::Mono )
SetLineColor( Color( COL_BLACK ) );
else
SetLineColor( rStyleSettings.GetShadowColor() );
long nLineX = rMouseRect.Right()+nLineSpace;
DrawLine( Point( nLineX, nLineY ), Point( rPos.X() + rSize.Width()-1, nLineY ) );
if ( !(rStyleSettings.GetOptions() & StyleSettingsOptions::Mono) )
{
SetLineColor( rStyleSettings.GetLightColor() );
DrawLine( Point( nLineX, nLineY+1 ), Point( rPos.X() + rSize.Width()-1, nLineY+1 ) );
}
}
pDev->Pop();
}
......
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