From c47b170c71ecdcaacf2e12e5ce28e7d411bb52e6 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 29 May 2016 17:12:52 +0200 Subject: Convert SelectionMode to scoped enum Change-Id: I86c435de3918540cb54a0cb24568e58456c2f9d1 Reviewed-on: https://gerrit.libreoffice.org/25611 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basctl/source/basicide/baside2b.cxx | 6 +++--- basctl/source/basicide/bastype2.cxx | 2 +- basctl/source/basicide/macrodlg.cxx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'basctl') diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index c8bc435a4c6f..e9f9ace3992e 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -1851,7 +1851,7 @@ StackWindow::StackWindow (Layout* pParent) : aTreeListBox->SetAccessibleName(IDEResId(RID_STR_STACKNAME).toString()); aTreeListBox->SetPosPixel( Point( DWBORDER, nVirtToolBoxHeight ) ); aTreeListBox->SetHighlightRange(); - aTreeListBox->SetSelectionMode( NO_SELECTION ); + aTreeListBox->SetSelectionMode( SelectionMode::NONE ); aTreeListBox->InsertEntry( OUString() ); aTreeListBox->Show(); @@ -1906,7 +1906,7 @@ void StackWindow::UpdateCalls() if (StarBASIC::IsRunning()) { SbxError eOld = SbxBase::GetError(); - aTreeListBox->SetSelectionMode( SINGLE_SELECTION ); + aTreeListBox->SetSelectionMode( SelectionMode::Single ); sal_Int32 nScope = 0; SbMethod* pMethod = StarBASIC::GetActiveMethod( nScope ); @@ -1966,7 +1966,7 @@ void StackWindow::UpdateCalls() } else { - aTreeListBox->SetSelectionMode( NO_SELECTION ); + aTreeListBox->SetSelectionMode( SelectionMode::NONE ); aTreeListBox->InsertEntry( OUString() ); } diff --git a/basctl/source/basicide/bastype2.cxx b/basctl/source/basicide/bastype2.cxx index 20a4ecc2dd9e..3fcaae459233 100644 --- a/basctl/source/basicide/bastype2.cxx +++ b/basctl/source/basicide/bastype2.cxx @@ -180,7 +180,7 @@ TreeListBox::TreeListBox (vcl::Window* pParent, WinBits nStyle) void TreeListBox::Init() { SetNodeDefaultImages(); - SetSelectionMode( SINGLE_SELECTION ); + SetSelectionMode( SelectionMode::Single ); nMode = 0xFF; // everything } diff --git a/basctl/source/basicide/macrodlg.cxx b/basctl/source/basicide/macrodlg.cxx index 505192801b07..2d583f74698c 100644 --- a/basctl/source/basicide/macrodlg.cxx +++ b/basctl/source/basicide/macrodlg.cxx @@ -70,7 +70,7 @@ MacroChooser::MacroChooser( vcl::Window* pParnt, bool bCreateEntries ) get(m_pNewLibButton, "newlibrary"); get(m_pNewModButton, "newmodule"); - m_pMacroBox->SetSelectionMode( SINGLE_SELECTION ); + m_pMacroBox->SetSelectionMode( SelectionMode::Single ); m_pMacroBox->SetHighlightRange(); // select over the whole width m_pRunButton->SetClickHdl( LINK( this, MacroChooser, ButtonHdl ) ); -- cgit