Kaydet (Commit) 468e6071 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Use typed OGeneralPageWizard::SetCreationModeHandler Link

Change-Id: I3ec59f2a736d230eeb9f6e5db49af16f3e570afd
üst 0223dd75
...@@ -604,10 +604,9 @@ IMPL_LINK_TYPED(ODbTypeWizDialogSetup, ImplClickHdl, OMySQLIntroPageSetup*, _pMy ...@@ -604,10 +604,9 @@ 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(ODbTypeWizDialogSetup, OnChangeCreationMode, OGeneralPageWizard*, /*_pGeneralPage*/) IMPL_LINK_NOARG_TYPED(ODbTypeWizDialogSetup, OnChangeCreationMode, OGeneralPageWizard*, void)
{ {
activateDatabasePath(); activateDatabasePath();
return sal_True;
} }
IMPL_LINK(ODbTypeWizDialogSetup, OnRecentDocumentSelected, OGeneralPageWizard*, /*_pGeneralPage*/) IMPL_LINK(ODbTypeWizDialogSetup, OnRecentDocumentSelected, OGeneralPageWizard*, /*_pGeneralPage*/)
......
...@@ -151,7 +151,7 @@ namespace dbaui ...@@ -151,7 +151,7 @@ namespace dbaui
DocumentDescriptor m_aBrowsedDocument; DocumentDescriptor m_aBrowsedDocument;
CreationMode m_eOriginalCreationMode; CreationMode m_eOriginalCreationMode;
Link<> 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<> 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<> m_aChooseDocumentHandler; /// to be called when a recent document has been definitely chosen
...@@ -162,7 +162,7 @@ namespace dbaui ...@@ -162,7 +162,7 @@ namespace dbaui
void insertEmbeddedDBTypeEntryData( const OUString& _sType, const OUString& sDisplayName ); void insertEmbeddedDBTypeEntryData( const OUString& _sType, const OUString& sDisplayName );
public: public:
void SetCreationModeHandler( const Link<>& _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<>& _rHandler) { m_aDocumentSelectionHandler = _rHandler; }
......
...@@ -176,7 +176,7 @@ private: ...@@ -176,7 +176,7 @@ private:
bool callSaveAsDialog(); bool callSaveAsDialog();
bool IsConnectionUrlRequired(); bool IsConnectionUrlRequired();
DECL_LINK(OnTypeSelected, OGeneralPage*); DECL_LINK(OnTypeSelected, OGeneralPage*);
DECL_LINK(OnChangeCreationMode, OGeneralPageWizard*); DECL_LINK_TYPED(OnChangeCreationMode, OGeneralPageWizard*, void);
DECL_LINK(OnRecentDocumentSelected, OGeneralPageWizard*); DECL_LINK(OnRecentDocumentSelected, OGeneralPageWizard*);
DECL_LINK(OnSingleDocumentChosen, OGeneralPageWizard*); DECL_LINK(OnSingleDocumentChosen, OGeneralPageWizard*);
DECL_LINK_TYPED(ImplClickHdl, OMySQLIntroPageSetup*, void); DECL_LINK_TYPED(ImplClickHdl, OMySQLIntroPageSetup*, 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