diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-13 13:17:30 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-10-15 09:58:34 +0200 |
commit | 99b21cc9f3f32284061be255f437b2954a7aada0 (patch) | |
tree | f26509e7b905d147bc14fcda9fd30e2861ed00e3 /sc/source/ui | |
parent | Always restrict FAR_AWAY to 32 bit (diff) | |
download | core-99b21cc9f3f32284061be255f437b2954a7aada0.tar.gz core-99b21cc9f3f32284061be255f437b2954a7aada0.zip |
convert Link<> to typed
Change-Id: I6c55c74d47b13149c2fa210bb9de4e8c430c57cc
Diffstat (limited to 'sc/source/ui')
-rw-r--r-- | sc/source/ui/dbgui/scuiasciiopt.cxx | 8 | ||||
-rw-r--r-- | sc/source/ui/inc/datastreamdlg.hxx | 4 | ||||
-rw-r--r-- | sc/source/ui/inc/linkarea.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/inc/scuiasciiopt.hxx | 1 | ||||
-rw-r--r-- | sc/source/ui/miscdlgs/datastreamdlg.cxx | 6 | ||||
-rw-r--r-- | sc/source/ui/miscdlgs/linkarea.cxx | 7 |
6 files changed, 19 insertions, 9 deletions
diff --git a/sc/source/ui/dbgui/scuiasciiopt.cxx b/sc/source/ui/dbgui/scuiasciiopt.cxx index 5fe87be77c87..cc2635c42cc8 100644 --- a/sc/source/ui/dbgui/scuiasciiopt.cxx +++ b/sc/source/ui/dbgui/scuiasciiopt.cxx @@ -370,9 +370,9 @@ ScImportAsciiDlg::ScImportAsciiDlg( vcl::Window* pParent, const OUString& aDatNa lcl_FillCombo( *pCbTextSep, aTextSepList, mcTextSep ); pCbTextSep->SetText( sTextSeparators ); - Link<> aSeparatorHdl =LINK( this, ScImportAsciiDlg, SeparatorHdl ); + Link<> aSeparatorHdl = LINK( this, ScImportAsciiDlg, SeparatorHdl ); Link<Button*,void> aSeparatorClickHdl =LINK( this, ScImportAsciiDlg, SeparatorClickHdl ); - pCbTextSep->SetSelectHdl( aSeparatorHdl ); + pCbTextSep->SetSelectHdl( LINK( this, ScImportAsciiDlg, SeparatorComboBoxHdl ) ); pCbTextSep->SetModifyHdl( aSeparatorHdl ); pCkbTab->SetClickHdl( aSeparatorClickHdl ); pCkbSemicolon->SetClickHdl( aSeparatorClickHdl ); @@ -680,6 +680,10 @@ IMPL_LINK_TYPED( ScImportAsciiDlg, SeparatorClickHdl, Button*, pCtrl, void ) { SeparatorHdl(pCtrl); } +IMPL_LINK_TYPED( ScImportAsciiDlg, SeparatorComboBoxHdl, ComboBox&, rCtrl, void ) +{ + SeparatorHdl(&rCtrl); +} IMPL_LINK( ScImportAsciiDlg, SeparatorHdl, Control*, pCtrl ) { OSL_ENSURE( pCtrl, "ScImportAsciiDlg::SeparatorHdl - missing sender" ); diff --git a/sc/source/ui/inc/datastreamdlg.hxx b/sc/source/ui/inc/datastreamdlg.hxx index 979b0d954a14..1dc37b0ee05e 100644 --- a/sc/source/ui/inc/datastreamdlg.hxx +++ b/sc/source/ui/inc/datastreamdlg.hxx @@ -21,6 +21,7 @@ class ScDocShell; class SvtURLBox; class ScRange; +class ComboBox; namespace sc { @@ -47,7 +48,8 @@ class DataStreamDlg : public ModalDialog VclPtr<VclFrame> m_pVclFrameMove; DECL_LINK_TYPED(UpdateClickHdl, Button*, void); - DECL_LINK(UpdateHdl, void *); + DECL_LINK(UpdateHdl, void*); + DECL_LINK_TYPED(UpdateComboBoxHdl, ComboBox&, void); DECL_LINK_TYPED(BrowseHdl, Button*, void); void UpdateEnable(); diff --git a/sc/source/ui/inc/linkarea.hxx b/sc/source/ui/inc/linkarea.hxx index 5f771c415a0a..7e68b47f4cf5 100644 --- a/sc/source/ui/inc/linkarea.hxx +++ b/sc/source/ui/inc/linkarea.hxx @@ -50,7 +50,7 @@ private: SfxObjectShellRef aSourceRef; - DECL_LINK(FileHdl, void *); + DECL_LINK_TYPED(FileHdl, ComboBox&, void); DECL_LINK_TYPED(BrowseHdl, Button*, void); DECL_LINK_TYPED(RangeHdl, ListBox&, void); DECL_LINK_TYPED(ReloadHdl, Button*, void); diff --git a/sc/source/ui/inc/scuiasciiopt.hxx b/sc/source/ui/inc/scuiasciiopt.hxx index 0f190f0bfdb0..802cc68fff8d 100644 --- a/sc/source/ui/inc/scuiasciiopt.hxx +++ b/sc/source/ui/inc/scuiasciiopt.hxx @@ -105,6 +105,7 @@ private: DECL_LINK_TYPED( RbSepFixHdl, Button*, void ); DECL_LINK( SeparatorHdl, Control* ); DECL_LINK_TYPED( SeparatorClickHdl, Button*, void ); + DECL_LINK_TYPED( SeparatorComboBoxHdl, ComboBox&, void ); DECL_LINK_TYPED( LbColTypeHdl, ListBox&, void ); DECL_LINK_TYPED( UpdateTextHdl, ScCsvTableBox&, void ); DECL_LINK_TYPED( ColTypeHdl, ScCsvTableBox&, void ); diff --git a/sc/source/ui/miscdlgs/datastreamdlg.cxx b/sc/source/ui/miscdlgs/datastreamdlg.cxx index 5ba0bd1b6af0..c453f941cc7b 100644 --- a/sc/source/ui/miscdlgs/datastreamdlg.cxx +++ b/sc/source/ui/miscdlgs/datastreamdlg.cxx @@ -39,7 +39,7 @@ DataStreamDlg::DataStreamDlg(ScDocShell *pDocShell, vcl::Window* pParent) get(m_pVclFrameLimit, "framelimit"); get(m_pVclFrameMove, "framemove"); - m_pCbUrl->SetSelectHdl( LINK( this, DataStreamDlg, UpdateHdl ) ); + m_pCbUrl->SetSelectHdl( LINK( this, DataStreamDlg, UpdateComboBoxHdl ) ); m_pRBAddressValue->SetClickHdl( LINK( this, DataStreamDlg, UpdateClickHdl ) ); m_pRBAddressValue->Enable(false); m_pRBScriptData->Enable(false); @@ -93,6 +93,10 @@ IMPL_LINK_NOARG_TYPED(DataStreamDlg, UpdateClickHdl, Button*, void) { UpdateEnable(); } +IMPL_LINK_NOARG_TYPED(DataStreamDlg, UpdateComboBoxHdl, ComboBox&, void) +{ + UpdateEnable(); +} IMPL_LINK_NOARG(DataStreamDlg, UpdateHdl) { UpdateEnable(); diff --git a/sc/source/ui/miscdlgs/linkarea.cxx b/sc/source/ui/miscdlgs/linkarea.cxx index b7eae20364d3..7baacc499b47 100644 --- a/sc/source/ui/miscdlgs/linkarea.cxx +++ b/sc/source/ui/miscdlgs/linkarea.cxx @@ -103,7 +103,7 @@ IMPL_LINK_NOARG_TYPED(ScLinkedAreaDlg, BrowseHdl, Button*, void) pDocInserter->StartExecuteModal( LINK( this, ScLinkedAreaDlg, DialogClosedHdl ) ); } -IMPL_LINK_NOARG(ScLinkedAreaDlg, FileHdl) +IMPL_LINK_NOARG_TYPED(ScLinkedAreaDlg, FileHdl, ComboBox&, void) { OUString aEntered = m_pCbUrl->GetURL(); if (pSourceShell) @@ -112,7 +112,7 @@ IMPL_LINK_NOARG(ScLinkedAreaDlg, FileHdl) if ( aEntered.equals(pMed->GetName()) ) { // already loaded - nothing to do - return 0; + return; } } @@ -121,7 +121,7 @@ IMPL_LINK_NOARG(ScLinkedAreaDlg, FileHdl) // get filter name by looking at the file content (bWithContent = true) // Break operation if any error occurred inside. if (!ScDocumentLoader::GetFilterName( aEntered, aFilter, aOptions, true, true )) - return 0; + return; // #i53241# replace HTML filter with DataQuery filter if (aFilter == FILTERNAME_HTML) @@ -131,7 +131,6 @@ IMPL_LINK_NOARG(ScLinkedAreaDlg, FileHdl) UpdateSourceRanges(); UpdateEnable(); - return 0; } void ScLinkedAreaDlg::LoadDocument( const OUString& rFile, const OUString& rFilter, const OUString& rOptions ) |