diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-21 09:31:14 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-22 08:31:55 +0200 |
commit | a2736303fea5ad2305ca8d38b90f5a21a8ab6a67 (patch) | |
tree | 9661b4756f8d1c5c9c4046312c44973024ee6796 /cui | |
parent | 2d1fe7fb67ec1ff1b96912c0945d17d54aecb12e (diff) |
convert WB_QUICK_SEARCH/WB_FORCE_MAKEVISIBLE to bool fields
Change-Id: Ic297d97911a6c0356d24ffe4b58442dfe866139f
Reviewed-on: https://gerrit.libreoffice.org/41407
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/hangulhanjadlg.cxx | 3 | ||||
-rw-r--r-- | cui/source/dialogs/thesdlg.cxx | 3 | ||||
-rw-r--r-- | cui/source/options/optlingu.cxx | 12 | ||||
-rw-r--r-- | cui/source/options/treeopt.cxx | 4 |
4 files changed, 15 insertions, 7 deletions
diff --git a/cui/source/dialogs/hangulhanjadlg.cxx b/cui/source/dialogs/hangulhanjadlg.cxx index ab6578f40d8e..bdb39041ea75 100644 --- a/cui/source/dialogs/hangulhanjadlg.cxx +++ b/cui/source/dialogs/hangulhanjadlg.cxx @@ -1109,7 +1109,8 @@ namespace svx m_pDictsLB->set_height_request(m_pDictsLB->GetTextHeight() * 5); m_pDictsLB->set_width_request(m_pDictsLB->approximate_char_width() * 32); - m_pDictsLB->SetStyle( m_pDictsLB->GetStyle() | WB_CLIPCHILDREN | WB_HSCROLL | WB_FORCE_MAKEVISIBLE ); + m_pDictsLB->SetStyle( m_pDictsLB->GetStyle() | WB_CLIPCHILDREN | WB_HSCROLL ); + m_pDictsLB->SetForceMakeVisible(true); m_pDictsLB->SetSelectionMode( SelectionMode::Single ); m_pDictsLB->SetHighlightRange(); m_pDictsLB->SetSelectHdl( LINK( this, HangulHanjaOptionsDialog, DictsLB_SelectHdl ) ); diff --git a/cui/source/dialogs/thesdlg.cxx b/cui/source/dialogs/thesdlg.cxx index 5299fbde0d44..4fce88395494 100644 --- a/cui/source/dialogs/thesdlg.cxx +++ b/cui/source/dialogs/thesdlg.cxx @@ -167,7 +167,8 @@ ThesaurusAlternativesCtrl::ThesaurusAlternativesCtrl(vcl::Window* pParent) : SvxCheckListBox(pParent) , m_pDialog(nullptr) { - SetStyle( GetStyle() | WB_CLIPCHILDREN | WB_HSCROLL | WB_FORCE_MAKEVISIBLE ); + SetStyle( GetStyle() | WB_CLIPCHILDREN | WB_HSCROLL ); + SetForceMakeVisible(true); SetHighlightRange(); } diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx index 76609fa4413e..c0c96f5c5ca6 100644 --- a/cui/source/options/optlingu.cxx +++ b/cui/source/options/optlingu.cxx @@ -1013,7 +1013,8 @@ SvxLinguTabPage::SvxLinguTabPage( vcl::Window* pParent, const SfxItemSet& rSet ) pCheckButtonData = nullptr; - m_pLinguModulesCLB->SetStyle( m_pLinguModulesCLB->GetStyle()|WB_CLIPCHILDREN|WB_HSCROLL|WB_FORCE_MAKEVISIBLE ); + m_pLinguModulesCLB->SetStyle( m_pLinguModulesCLB->GetStyle()|WB_CLIPCHILDREN|WB_HSCROLL ); + m_pLinguModulesCLB->SetForceMakeVisible(true); m_pLinguModulesCLB->SetHighlightRange(); m_pLinguModulesCLB->SetSelectHdl( LINK( this, SvxLinguTabPage, SelectHdl_Impl )); m_pLinguModulesCLB->SetDoubleClickHdl(LINK(this, SvxLinguTabPage, BoxDoubleClickHdl_Impl)); @@ -1022,7 +1023,8 @@ SvxLinguTabPage::SvxLinguTabPage( vcl::Window* pParent, const SfxItemSet& rSet ) m_pLinguModulesEditPB->SetClickHdl( LINK( this, SvxLinguTabPage, ClickHdl_Impl )); m_pLinguOptionsEditPB->SetClickHdl( LINK( this, SvxLinguTabPage, ClickHdl_Impl )); - m_pLinguDicsCLB->SetStyle( m_pLinguDicsCLB->GetStyle()|WB_CLIPCHILDREN|WB_HSCROLL|WB_FORCE_MAKEVISIBLE ); + m_pLinguDicsCLB->SetStyle( m_pLinguDicsCLB->GetStyle()|WB_CLIPCHILDREN|WB_HSCROLL ); + m_pLinguDicsCLB->SetForceMakeVisible(true); m_pLinguDicsCLB->SetHighlightRange(); m_pLinguDicsCLB->SetSelectHdl( LINK( this, SvxLinguTabPage, SelectHdl_Impl )); m_pLinguDicsCLB->SetCheckButtonHdl(LINK(this, SvxLinguTabPage, BoxCheckButtonHdl_Impl)); @@ -1031,7 +1033,8 @@ SvxLinguTabPage::SvxLinguTabPage( vcl::Window* pParent, const SfxItemSet& rSet ) m_pLinguDicsEditPB->SetClickHdl( LINK( this, SvxLinguTabPage, ClickHdl_Impl )); m_pLinguDicsDelPB->SetClickHdl( LINK( this, SvxLinguTabPage, ClickHdl_Impl )); - m_pLinguOptionsCLB->SetStyle( m_pLinguOptionsCLB->GetStyle()|WB_CLIPCHILDREN|WB_HSCROLL|WB_FORCE_MAKEVISIBLE ); + m_pLinguOptionsCLB->SetStyle( m_pLinguOptionsCLB->GetStyle()|WB_CLIPCHILDREN|WB_HSCROLL ); + m_pLinguOptionsCLB->SetForceMakeVisible(true); m_pLinguOptionsCLB->SetHighlightRange(); m_pLinguOptionsCLB->SetSelectHdl( LINK( this, SvxLinguTabPage, SelectHdl_Impl )); m_pLinguOptionsCLB->SetDoubleClickHdl(LINK(this, SvxLinguTabPage, BoxDoubleClickHdl_Impl)); @@ -1769,7 +1772,8 @@ SvxEditModulesDlg::SvxEditModulesDlg(vcl::Window* pParent, SvxLinguData_Impl& rD pDefaultLinguData = new SvxLinguData_Impl( rLinguData ); - m_pModulesCLB->SetStyle( m_pModulesCLB->GetStyle()|WB_CLIPCHILDREN|WB_HSCROLL|WB_FORCE_MAKEVISIBLE ); + m_pModulesCLB->SetStyle( m_pModulesCLB->GetStyle()|WB_CLIPCHILDREN|WB_HSCROLL ); + m_pModulesCLB->SetForceMakeVisible(true); m_pModulesCLB->SetHighlightRange(); m_pModulesCLB->SetSelectHdl( LINK( this, SvxEditModulesDlg, SelectHdl_Impl )); m_pModulesCLB->SetCheckButtonHdl( LINK( this, SvxEditModulesDlg, BoxCheckButtonHdl_Impl) ); diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx index 0cdfcbde2a95..9d55bd91c81e 100644 --- a/cui/source/options/treeopt.cxx +++ b/cui/source/options/treeopt.cxx @@ -759,7 +759,9 @@ void OfaTreeOptionsDialog::InitTreeAndHandler() pTreeLB->SetHelpId( HID_OFADLG_TREELISTBOX ); pTreeLB->SetStyle( pTreeLB->GetStyle()|WB_HASBUTTONS | WB_HASBUTTONSATROOT | WB_HASLINES | WB_HASLINESATROOT | - WB_CLIPCHILDREN | WB_HSCROLL | WB_FORCE_MAKEVISIBLE | WB_QUICK_SEARCH ); + WB_CLIPCHILDREN | WB_HSCROLL ); + pTreeLB->SetForceMakeVisible(true); + pTreeLB->SetQuickSearch(true); pTreeLB->SetSpaceBetweenEntries( 0 ); pTreeLB->SetSelectionMode( SelectionMode::Single ); pTreeLB->SetSublistOpenWithLeftRight(); |