summaryrefslogtreecommitdiff
path: root/svx/source/dialog/dlgctrl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-12-12 14:52:04 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-12-13 07:23:24 +0100
commitefa4c68c35a0074657b016e0132446e72385c725 (patch)
tree11abec8b2348a25cb1ec8c046cea4cf0291d91c9 /svx/source/dialog/dlgctrl.cxx
parentd2bc01ff10f93a710296c7355efa8b11c6be0f56 (diff)
loplugin:mergeclasses merge LineLB into SvxLineBox
Change-Id: I76bab66b09ae809c069f586ccb1c4ce13fa30234 Reviewed-on: https://gerrit.libreoffice.org/65025 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/dialog/dlgctrl.cxx')
-rw-r--r--svx/source/dialog/dlgctrl.cxx43
1 files changed, 0 insertions, 43 deletions
diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx
index 9b3d6f8eb135..225f044613ea 100644
--- a/svx/source/dialog/dlgctrl.cxx
+++ b/svx/source/dialog/dlgctrl.cxx
@@ -922,49 +922,6 @@ void FillTypeLB::Fill()
SetUpdateMode( true );
}
-LineLB::LineLB(vcl::Window* pParent)
-: ListBox(pParent, WB_BORDER | WB_DROPDOWN | WB_AUTOHSCROLL)
-{
- // No EdgeBlending for LineStyle/Dash SetEdgeBlending(true);
-}
-
-// Fills the listbox (provisional) with strings
-
-void LineLB::Fill( const XDashListRef &pList )
-{
- Clear();
-
- if( !pList.is() )
- return;
-
- // entry for 'none'
- InsertEntry(pList->GetStringForUiNoLine());
-
- // entry for solid line
- InsertEntry(pList->GetStringForUiSolidLine(),
- Image(pList->GetBitmapForUISolidLine()));
-
- // entries for dashed lines
-
- long nCount = pList->Count();
- SetUpdateMode( false );
-
- for( long i = 0; i < nCount; i++ )
- {
- const XDashEntry* pEntry = pList->GetDash(i);
- const BitmapEx aBitmap = pList->GetUiBitmap( i );
- if( !aBitmap.IsEmpty() )
- {
- InsertEntry(pEntry->GetName(), Image(aBitmap));
- }
- else
- InsertEntry( pEntry->GetName() );
- }
-
- AdaptDropDownLineCountToMaximum();
- SetUpdateMode( true );
-}
-
SvxLineLB::SvxLineLB(std::unique_ptr<weld::ComboBox> pControl)
: m_xControl(std::move(pControl))
, mbAddStandardFields(true)