diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2016-05-29 17:12:52 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-30 06:41:28 +0000 |
commit | c47b170c71ecdcaacf2e12e5ce28e7d411bb52e6 (patch) | |
tree | d9cfdc4f6be613f7b2523a64978686f85cc5ed68 /basctl | |
parent | 8ac4240efe975e9689e8dfc23dc3c1b88eee6dcf (diff) |
Convert SelectionMode to scoped enum
Change-Id: I86c435de3918540cb54a0cb24568e58456c2f9d1
Reviewed-on: https://gerrit.libreoffice.org/25611
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/baside2b.cxx | 6 | ||||
-rw-r--r-- | basctl/source/basicide/bastype2.cxx | 2 | ||||
-rw-r--r-- | basctl/source/basicide/macrodlg.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
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 ) ); |