Kaydet (Commit) 81105c7a authored tarafından Noel Grandin's avatar Noel Grandin

convert Link<> to typed

Change-Id: I34e15999ecc73c5a330f637338ca9d8fce31b5d2
üst f5b57774
...@@ -605,22 +605,20 @@ IMPL_LINK_TYPED(ODbTypeWizDialogSetup, ImplClickHdl, OMySQLIntroPageSetup*, _pMy ...@@ -605,22 +605,20 @@ IMPL_LINK_TYPED(ODbTypeWizDialogSetup, ImplClickHdl, OMySQLIntroPageSetup*, _pMy
activatePath( static_cast<PathId>(m_pCollection->getIndexOf(sURLPrefix) + 1), true); activatePath( static_cast<PathId>(m_pCollection->getIndexOf(sURLPrefix) + 1), true);
} }
IMPL_LINK_NOARG_TYPED(ODbTypeWizDialogSetup, OnChangeCreationMode, OGeneralPageWizard*, void) IMPL_LINK_NOARG_TYPED(ODbTypeWizDialogSetup, OnChangeCreationMode, OGeneralPageWizard&, void)
{ {
activateDatabasePath(); activateDatabasePath();
} }
IMPL_LINK(ODbTypeWizDialogSetup, OnRecentDocumentSelected, OGeneralPageWizard*, /*_pGeneralPage*/) IMPL_LINK_NOARG_TYPED(ODbTypeWizDialogSetup, OnRecentDocumentSelected, OGeneralPageWizard&, void)
{ {
enableButtons( WizardButtonFlags::FINISH, !m_pGeneralPage->GetSelectedDocument().sURL.isEmpty() ); enableButtons( WizardButtonFlags::FINISH, !m_pGeneralPage->GetSelectedDocument().sURL.isEmpty() );
return 0L;
} }
IMPL_LINK(ODbTypeWizDialogSetup, OnSingleDocumentChosen, OGeneralPageWizard*, /*_pGeneralPage*/) IMPL_LINK_NOARG_TYPED(ODbTypeWizDialogSetup, OnSingleDocumentChosen, OGeneralPageWizard&, void)
{ {
if ( prepareLeaveCurrentState( eFinish ) ) if ( prepareLeaveCurrentState( eFinish ) )
onFinish(); onFinish();
return 0L;
} }
void ODbTypeWizDialogSetup::enterState(WizardState _nState) void ODbTypeWizDialogSetup::enterState(WizardState _nState)
......
...@@ -702,7 +702,7 @@ namespace dbaui ...@@ -702,7 +702,7 @@ namespace dbaui
IMPL_LINK_NOARG_TYPED( OGeneralPageWizard, OnCreateDatabaseModeSelected, Button*, void ) IMPL_LINK_NOARG_TYPED( OGeneralPageWizard, OnCreateDatabaseModeSelected, Button*, void )
{ {
if ( m_aCreationModeHandler.IsSet() ) if ( m_aCreationModeHandler.IsSet() )
m_aCreationModeHandler.Call( this ); m_aCreationModeHandler.Call( *this );
OnEmbeddedDBTypeSelected( m_pEmbeddedDBType ); OnEmbeddedDBTypeSelected( m_pEmbeddedDBType );
} }
...@@ -710,13 +710,13 @@ namespace dbaui ...@@ -710,13 +710,13 @@ namespace dbaui
IMPL_LINK_NOARG_TYPED( OGeneralPageWizard, OnSetupModeSelected, Button*, void ) IMPL_LINK_NOARG_TYPED( OGeneralPageWizard, OnSetupModeSelected, Button*, void )
{ {
if ( m_aCreationModeHandler.IsSet() ) if ( m_aCreationModeHandler.IsSet() )
m_aCreationModeHandler.Call( this ); m_aCreationModeHandler.Call( *this );
OnDatasourceTypeSelected(m_pDatasourceType); OnDatasourceTypeSelected(m_pDatasourceType);
} }
IMPL_LINK( OGeneralPageWizard, OnDocumentSelected, ListBox*, /*_pBox*/ ) IMPL_LINK( OGeneralPageWizard, OnDocumentSelected, ListBox*, /*_pBox*/ )
{ {
m_aDocumentSelectionHandler.Call( this ); m_aDocumentSelectionHandler.Call( *this );
return 0L; return 0L;
} }
...@@ -744,7 +744,7 @@ namespace dbaui ...@@ -744,7 +744,7 @@ namespace dbaui
} }
m_aBrowsedDocument.sURL = sPath; m_aBrowsedDocument.sURL = sPath;
m_aBrowsedDocument.sFilter.clear(); m_aBrowsedDocument.sFilter.clear();
m_aChooseDocumentHandler.Call( this ); m_aChooseDocumentHandler.Call( *this );
} }
} }
......
...@@ -148,12 +148,12 @@ namespace dbaui ...@@ -148,12 +148,12 @@ namespace dbaui
VclPtr<OpenDocumentButton> m_pPB_OpenDatabase; VclPtr<OpenDocumentButton> m_pPB_OpenDatabase;
// state // state
DocumentDescriptor m_aBrowsedDocument; DocumentDescriptor m_aBrowsedDocument;
CreationMode m_eOriginalCreationMode; CreationMode m_eOriginalCreationMode;
Link<OGeneralPageWizard *, void> m_aCreationModeHandler; /// to be called if a new type is selected Link<OGeneralPageWizard&,void> m_aCreationModeHandler; /// to be called if a new type is selected
Link<> m_aDocumentSelectionHandler; /// to be called when a document in the RecentDoc list is selected Link<OGeneralPageWizard&,void> m_aDocumentSelectionHandler; /// to be called when a document in the RecentDoc list is selected
Link<> m_aChooseDocumentHandler; /// to be called when a recent document has been definitely chosen Link<OGeneralPageWizard&,void> m_aChooseDocumentHandler; /// to be called when a recent document has been definitely chosen
::svt::ControlDependencyManager ::svt::ControlDependencyManager
m_aControlDependencies; m_aControlDependencies;
...@@ -162,11 +162,11 @@ namespace dbaui ...@@ -162,11 +162,11 @@ namespace dbaui
void insertEmbeddedDBTypeEntryData( const OUString& _sType, const OUString& sDisplayName ); void insertEmbeddedDBTypeEntryData( const OUString& _sType, const OUString& sDisplayName );
public: public:
void SetCreationModeHandler( const Link<OGeneralPageWizard *, void>& _rHandler ) { m_aCreationModeHandler = _rHandler; } void SetCreationModeHandler( const Link<OGeneralPageWizard&,void>& _rHandler ) { m_aCreationModeHandler = _rHandler; }
CreationMode GetDatabaseCreationMode() const; CreationMode GetDatabaseCreationMode() const;
void SetDocumentSelectionHandler( const Link<>& _rHandler) { m_aDocumentSelectionHandler = _rHandler; } void SetDocumentSelectionHandler( const Link<OGeneralPageWizard&,void>& _rHandler) { m_aDocumentSelectionHandler = _rHandler; }
void SetChooseDocumentHandler( const Link<>& _rHandler) { m_aChooseDocumentHandler = _rHandler; } void SetChooseDocumentHandler( const Link<OGeneralPageWizard&,void>& _rHandler) { m_aChooseDocumentHandler = _rHandler; }
DocumentDescriptor GetSelectedDocument() const; DocumentDescriptor GetSelectedDocument() const;
protected: protected:
......
...@@ -176,9 +176,9 @@ private: ...@@ -176,9 +176,9 @@ private:
bool callSaveAsDialog(); bool callSaveAsDialog();
bool IsConnectionUrlRequired(); bool IsConnectionUrlRequired();
DECL_LINK_TYPED(OnTypeSelected, OGeneralPage&, void); DECL_LINK_TYPED(OnTypeSelected, OGeneralPage&, void);
DECL_LINK_TYPED(OnChangeCreationMode, OGeneralPageWizard*, void); DECL_LINK_TYPED(OnChangeCreationMode, OGeneralPageWizard&, void);
DECL_LINK(OnRecentDocumentSelected, OGeneralPageWizard*); DECL_LINK_TYPED(OnRecentDocumentSelected, OGeneralPageWizard&, void);
DECL_LINK(OnSingleDocumentChosen, OGeneralPageWizard*); DECL_LINK_TYPED(OnSingleDocumentChosen, OGeneralPageWizard&, void);
DECL_LINK_TYPED(ImplClickHdl, OMySQLIntroPageSetup*, void); DECL_LINK_TYPED(ImplClickHdl, OMySQLIntroPageSetup*, void);
DECL_LINK_TYPED(ImplModifiedHdl, OGenericAdministrationPage const *, void); DECL_LINK_TYPED(ImplModifiedHdl, OGenericAdministrationPage const *, void);
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment