LibreOffice Module dbaccess (master) 1
|
tab dialog for administrating the office wide registered data sources More...
#include <dbwiz.hxx>
Public Member Functions | |
ODbTypeWizDialog (weld::Window *pParent, SfxItemSet const *_pItems, const css::uno::Reference< css::uno::XComponentContext > &_rxORB, const css::uno::Any &_aDataSourceName) | |
ctor. More... | |
virtual | ~ODbTypeWizDialog () override |
virtual const SfxItemSet * | getOutputSet () const override |
virtual SfxItemSet * | getWriteOutputSet () override |
virtual css::uno::Reference< css::uno::XComponentContext > | getORB () const override |
virtual std::pair< css::uno::Reference< css::sdbc::XConnection >, bool > | createConnection () override |
virtual css::uno::Reference< css::sdbc::XDriver > | getDriver () override |
virtual OUString | getDatasourceType (const SfxItemSet &_rSet) const override |
virtual void | clearPassword () override |
virtual void | saveDatasource () override |
virtual void | setTitle (const OUString &_sTitle) override |
virtual void | enableConfirmSettings (bool _bEnable) override |
enables or disables the user's possibility to confirm the settings More... | |
Public Member Functions inherited from vcl::WizardMachine | |
WizardMachine (weld::Window *_pParent, WizardButtonFlags _nButtonFlags) | |
virtual | ~WizardMachine () override |
bool | Finish (short nResult=RET_CANCEL) |
bool | ShowPage (WizardTypes::WizardState nState) |
bool | ShowNextPage () |
bool | ShowPrevPage () |
void | AddPage (std::unique_ptr< BuilderPage > xPage) |
void | RemovePage (const BuilderPage *pPage) |
void | SetPage (WizardTypes::WizardState nLevel, std::unique_ptr< BuilderPage > xPage) |
BuilderPage * | GetPage (WizardTypes::WizardState eState) const |
void | enableButtons (WizardButtonFlags _nWizardButtonFlags, bool _bEnable) |
void | defaultButton (WizardButtonFlags _nWizardButtonFlags) |
void | defaultButton (weld::Button *_pNewDefButton) |
void | setTitleBase (const OUString &_rTitleBase) |
virtual bool | canAdvance () const |
virtual void | updateTravelUI () |
void | suspendTraveling (AccessGuard) |
void | resumeTraveling (AccessGuard) |
bool | isTravelingSuspended () const |
Public Member Functions inherited from weld::AssistantController | |
AssistantController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId) | |
virtual Dialog * | getDialog () override |
virtual | ~AssistantController () override |
Public Member Functions inherited from weld::DialogController | |
virtual Dialog * | getDialog ()=0 |
const Dialog * | getConstDialog () const |
virtual short | run () |
void | set_title (const OUString &rTitle) |
OUString | get_title () const |
void | set_help_id (const OUString &rHelpId) |
OUString | get_help_id () const |
void | response (int nResponse) |
virtual | ~DialogController () COVERITY_NOEXCEPT_FALSE |
virtual const SfxItemSet * | getOutputSet () const =0 |
virtual SfxItemSet * | getWriteOutputSet ()=0 |
virtual css::uno::Reference< css::uno::XComponentContext > | getORB () const =0 |
virtual std::pair< css::uno::Reference< css::sdbc::XConnection >, bool > | createConnection ()=0 |
virtual css::uno::Reference< css::sdbc::XDriver > | getDriver ()=0 |
virtual OUString | getDatasourceType (const SfxItemSet &_rSet) const =0 |
virtual void | clearPassword ()=0 |
virtual void | saveDatasource ()=0 |
virtual void | setTitle (const OUString &_sTitle)=0 |
virtual void | enableConfirmSettings (bool _bEnable)=0 |
enables or disables the user's possibility to confirm the settings More... | |
Private Member Functions | |
DECL_LINK (OnTypeSelected, OGeneralPage &, void) | |
Private Attributes | |
std::unique_ptr< ODbDataSourceAdministrationHelper > | m_pImpl |
std::unique_ptr< SfxItemSet > | m_pOutSet |
::dbaccess::ODsnTypeCollection * | m_pCollection |
OUString | m_eType |
the DSN type collection instance More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from weld::DialogController | |
static bool | runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &) |
Protected Attributes inherited from vcl::WizardMachine | |
BuilderPage * | m_pCurTabPage |
std::unique_ptr< weld::Button > | m_xFinish |
std::unique_ptr< weld::Button > | m_xCancel |
std::unique_ptr< weld::Button > | m_xNextPage |
std::unique_ptr< weld::Button > | m_xPrevPage |
std::unique_ptr< weld::Button > | m_xHelp |
Protected Attributes inherited from weld::AssistantController | |
std::unique_ptr< weld::Builder > | m_xBuilder |
std::unique_ptr< weld::Assistant > | m_xAssistant |
tab dialog for administrating the office wide registered data sources
dbaui::ODbTypeWizDialog::ODbTypeWizDialog | ( | weld::Window * | pParent, |
SfxItemSet const * | _pItems, | ||
const css::uno::Reference< css::uno::XComponentContext > & | _rxORB, | ||
const css::uno::Any & | _aDataSourceName | ||
) |
ctor.
The itemset given should have been created by <method>createItemSet</method> and should be destroyed after the dialog has been destroyed
Definition at line 58 of file dbwiz.cxx.
References vcl::WizardMachine::ActivatePage(), CANCEL, DBA_RES, vcl::WizardMachine::defaultButton(), DSID_TYPECOLLECTION, vcl::WizardMachine::enableAutomaticNextButtonState(), vcl::WizardMachine::enableButtons(), FINISH, dbaui::DbuTypeCollectionItem::getCollection(), dbaui::ODbDataSourceAdministrationHelper::getDatasourceType(), SfxItemSet::GetItem(), SfxItemSet::GetPool(), SfxItemSet::GetRanges(), HELP, HID_DBWIZ_CANCEL, HID_DBWIZ_FINISH, HID_DBWIZ_NEXT, HID_DBWIZ_PREVIOUS, m_eType, m_pCollection, m_pImpl, m_pOutSet, weld::AssistantController::m_xAssistant, vcl::WizardMachine::m_xCancel, vcl::WizardMachine::m_xFinish, vcl::WizardMachine::m_xNextPage, vcl::WizardMachine::m_xPrevPage, NEXT, PREVIOUS, and vcl::WizardMachine::setTitleBase().
|
overridevirtual |
|
overridevirtual |
Implements dbaui::IDatabaseSettingsDialog.
Definition at line 211 of file dbwiz.cxx.
References m_pImpl.
|
overridevirtual |
Implements dbaui::IDatabaseSettingsDialog.
Definition at line 191 of file dbwiz.cxx.
References m_pImpl.
|
overrideprotectedvirtual |
to override to create new pages
Implements vcl::WizardMachine.
Definition at line 216 of file dbwiz.cxx.
References ADDITIONAL_PAGE_ADO, ADDITIONAL_PAGE_DBASE, ADDITIONAL_PAGE_FLAT, ADDITIONAL_PAGE_LDAP, ADDITIONAL_PAGE_MYSQL_JDBC, ADDITIONAL_PAGE_MYSQL_NATIVE, ADDITIONAL_PAGE_MYSQL_ODBC, ADDITIONAL_PAGE_ODBC, ADDITIONAL_PAGE_ORACLE_JDBC, ADDITIONAL_USERDEFINED, CONNECTION_PAGE, dbaui::OConnectionTabPage::Create(), dbaui::ODriversSettings::CreateAdo(), dbaui::ODriversSettings::CreateDbase(), dbaui::ODriversSettings::CreateLDAP(), dbaui::ODriversSettings::CreateMySQLJDBC(), dbaui::ODriversSettings::CreateMySQLNATIVE(), dbaui::ODriversSettings::CreateMySQLODBC(), dbaui::ODriversSettings::CreateODBC(), dbaui::ODriversSettings::CreateOracleJDBC(), dbaui::ODriversSettings::CreateText(), dbaui::ODriversSettings::CreateUser(), DBA_RES, vcl::WizardMachine::defaultButton(), vcl::WizardMachine::enableButtons(), LINK, m_pImpl, m_pOutSet, weld::AssistantController::m_xAssistant, dbaui::OGeneralPage::SetTypeSelectHandler(), and START_PAGE.
|
private |
|
overrideprotectedvirtual |
Reimplemented from vcl::WizardMachine.
Definition at line 102 of file dbwiz.cxx.
References ADDITIONAL_PAGE_ADO, ADDITIONAL_PAGE_DBASE, ADDITIONAL_PAGE_FLAT, ADDITIONAL_PAGE_LDAP, ADDITIONAL_PAGE_MYSQL_JDBC, ADDITIONAL_PAGE_MYSQL_NATIVE, ADDITIONAL_PAGE_MYSQL_ODBC, ADDITIONAL_PAGE_ODBC, ADDITIONAL_PAGE_ORACLE_JDBC, CONNECTION_PAGE, dbaccess::ODsnTypeCollection::determineType(), dbaccess::DST_ADO, dbaccess::DST_CALC, dbaccess::DST_DBASE, dbaccess::DST_EVOLUTION, dbaccess::DST_EVOLUTION_GROUPWISE, dbaccess::DST_EVOLUTION_LDAP, dbaccess::DST_FLAT, dbaccess::DST_JDBC, dbaccess::DST_KAB, dbaccess::DST_LDAP, dbaccess::DST_MACAB, dbaccess::DST_MOZILLA, dbaccess::DST_MSACCESS, dbaccess::DST_MSACCESS_2007, dbaccess::DST_MYSQL_JDBC, dbaccess::DST_MYSQL_NATIVE, dbaccess::DST_MYSQL_ODBC, dbaccess::DST_ODBC, dbaccess::DST_ORACLE_JDBC, dbaccess::DST_OUTLOOK, dbaccess::DST_OUTLOOKEXP, dbaccess::DST_THUNDERBIRD, dbaccess::DST_WRITER, m_eType, m_pCollection, START_PAGE, and WZS_INVALID_STATE.
|
overridevirtual |
enables or disables the user's possibility to confirm the settings
In a wizard, disabling this will usually disable the "Finish" button. In a normal tab dialog, this will usually disable the "OK" button.
Implements dbaui::IDatabaseSettingsDialog.
Definition at line 299 of file dbwiz.cxx.
References vcl::WizardMachine::enableButtons().
|
overridevirtual |
Implements dbaui::IDatabaseSettingsDialog.
Definition at line 206 of file dbwiz.cxx.
References dbaui::ODbDataSourceAdministrationHelper::getDatasourceType().
|
overridevirtual |
Implements dbaui::IDatabaseSettingsDialog.
Definition at line 201 of file dbwiz.cxx.
References m_pImpl.
|
overridevirtual |
Implements dbaui::IDatabaseSettingsDialog.
Definition at line 196 of file dbwiz.cxx.
References m_pImpl.
Referenced by saveDatasource().
|
overridevirtual |
|
overrideprotectedvirtual |
Reimplemented from vcl::WizardMachine.
|
overridevirtual |
|
overrideprotectedvirtual |
Reimplemented from vcl::WizardMachine.
Definition at line 286 of file dbwiz.cxx.
References SfxTabPage::FillItemSet(), vcl::WizardMachine::GetPage(), and m_pOutSet.
|
overrideprotectedvirtual |
Reimplemented from vcl::WizardMachine.
Definition at line 328 of file dbwiz.cxx.
References m_pImpl, m_pOutSet, vcl::WizardMachine::onFinish(), and saveDatasource().
|
overridevirtual |
Implements dbaui::IDatabaseSettingsDialog.
Definition at line 310 of file dbwiz.cxx.
References dbaui::DataSourceInfoConverter::convert(), SfxTabPage::FillItemSet(), vcl::WizardMachine::getCurrentState(), getORB(), vcl::WizardMachine::GetPage(), m_eType, m_pCollection, m_pImpl, m_pOutSet, and PROPERTY_URL().
Referenced by onFinish().
|
overridevirtual |
Implements dbaui::IDatabaseSettingsDialog.
Definition at line 294 of file dbwiz.cxx.
References weld::AssistantController::m_xAssistant.
|
private |
the DSN type collection instance
Definition at line 60 of file dbwiz.hxx.
Referenced by determineNextState(), ODbTypeWizDialog(), and saveDatasource().
|
private |
Definition at line 59 of file dbwiz.hxx.
Referenced by determineNextState(), ODbTypeWizDialog(), and saveDatasource().
|
private |
Definition at line 56 of file dbwiz.hxx.
Referenced by clearPassword(), createConnection(), createPage(), getDriver(), getORB(), ODbTypeWizDialog(), onFinish(), and saveDatasource().
|
private |
Definition at line 57 of file dbwiz.hxx.
Referenced by createPage(), getOutputSet(), getWriteOutputSet(), leaveState(), ODbTypeWizDialog(), onFinish(), and saveDatasource().