diff options
-rw-r--r-- | include/svtools/valueset.hxx | 1 | ||||
-rw-r--r-- | svtools/source/control/valueset.cxx | 46 |
2 files changed, 0 insertions, 47 deletions
diff --git a/include/svtools/valueset.hxx b/include/svtools/valueset.hxx index cea3251174bf..0f70c177ee1b 100644 --- a/include/svtools/valueset.hxx +++ b/include/svtools/valueset.hxx @@ -179,7 +179,6 @@ to be set (before Show) with SetStyle(). typedef std::vector<ValueSetItem*> ValueItemList; -#define WB_RADIOSEL ((WinBits)0x00008000) #define WB_ITEMBORDER ((WinBits)0x00010000) #define WB_DOUBLEBORDER ((WinBits)0x00020000) #define WB_NAMEFIELD ((WinBits)0x00040000) diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx index 269ad084b042..04d94b4c06d4 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -243,11 +243,6 @@ void ValueSet::ImplFormatItem(vcl::RenderContext const & rRenderContext, ValueSe maVirDev->DrawRect(aRect); Point aTxtPos(aRect.Left() + 2, aRect.Top()); long nTxtWidth = rRenderContext.GetTextWidth(pItem->maText); - if (nStyle & WB_RADIOSEL) - { - aTxtPos.X() += 4; - aTxtPos.Y() += 4; - } if ((aTxtPos.X() + nTxtWidth) > aRect.Right()) { maVirDev->SetClipRegion(vcl::Region(aRect)); @@ -398,8 +393,6 @@ void ValueSet::Format(vcl::RenderContext const & rRenderContext) { nNoneHeight = nTxtHeight + nOff; nNoneSpace = mnSpacing; - if (nStyle & WB_RADIOSEL) - nNoneHeight += 8; } else { @@ -802,43 +795,6 @@ void ValueSet::ImplDrawSelect(vcl::RenderContext& rRenderContext, sal_uInt16 nIt rRenderContext.DrawRect(aRect); } } - else if (nStyle & WB_RADIOSEL) - { - aRect.Left() += 3; - aRect.Top() += 3; - aRect.Right() -= 3; - aRect.Bottom() -= 3; - if (nStyle & WB_DOUBLEBORDER) - { - aRect.Left()++; - aRect.Top()++; - aRect.Right()--; - aRect.Bottom()--; - } - - if (bFocus) - ShowFocus(aRect); - - aRect.Left()++; - aRect.Top()++; - aRect.Right()--; - aRect.Bottom()--; - - if (bDrawSel) - { - rRenderContext.SetLineColor(aDoubleColor); - aRect.Left()++; - aRect.Top()++; - aRect.Right()--; - aRect.Bottom()--; - rRenderContext.DrawRect(aRect); - aRect.Left()++; - aRect.Top()++; - aRect.Right()--; - aRect.Bottom()--; - rRenderContext.DrawRect(aRect); - } - } else { if (bDrawSel) @@ -2217,8 +2173,6 @@ Size ValueSet::CalcWindowSizePixel( const Size& rItemSize, sal_uInt16 nDesireCol if ( nStyle & WB_NONEFIELD ) { aSize.Height() += nTxtHeight + n + mnSpacing; - if ( nStyle & WB_RADIOSEL ) - aSize.Height() += 8; } // sum possible ScrollBar width |