22#include <core_resource.hxx>
27#include <com/sun/star/ucb/XProgressHandler.hpp>
37 using namespace ::
svt;
41 return std::make_unique<OConnectionTabPageSetup>( pPage, pController,
"dbaccess/ui/dbwizconnectionpage.ui",
"ConnectionPage", _rAttrSet, STR_DBASE_HELPTEXT, STR_DBASE_HEADERTEXT, STR_DBASE_PATH_OR_FILE );
46 return std::make_unique<OConnectionTabPageSetup>( pPage, pController,
"dbaccess/ui/dbwizconnectionpage.ui",
"ConnectionPage", _rAttrSet, STR_MSACCESS_HELPTEXT, STR_MSACCESS_HEADERTEXT, STR_MSACCESS_MDB_FILE );
51 return std::make_unique<OConnectionTabPageSetup>( pPage, pController,
"dbaccess/ui/dbwizconnectionpage.ui",
"ConnectionPage", _rAttrSet, STR_ADO_HELPTEXT, STR_ADO_HEADERTEXT, STR_COMMONURL );
56 return std::make_unique<OConnectionTabPageSetup>( pPage, pController,
"dbaccess/ui/dbwizconnectionpage.ui",
"ConnectionPage", _rAttrSet, STR_ODBC_HELPTEXT, STR_ODBC_HEADERTEXT, STR_NAME_OF_ODBC_DATASOURCE );
61 return std::make_unique<OConnectionTabPageSetup>(pPage, pController,
"dbaccess/ui/dbwizconnectionpage.ui",
"ConnectionPage", _rAttrSet,
TranslateId(),
TranslateId(), STR_COMMONURL);
66 , m_xHelpText(m_xBuilder->weld_label(
"helptext"))
67 , m_xHeaderText(m_xBuilder->weld_label(
"header"))
72 OUString sHelpText =
DBA_RES(pHelpTextResId);
83 OUString sLabelText =
DBA_RES(pUrlResId);
133 bool bChangedSomething =
false;
135 return bChangedSomething;
147 SetRoadmapStateValue(checkTestConnection());
DATASOURCE_TYPE determineType(std::u16string_view _rDsn) const
virtual OUString getDatasourceType(const SfxItemSet &_rSet) const =0
virtual void implInitControls(const SfxItemSet &_rSet, bool _bSaveValue) override
called from within Reset and ActivatePage, use to initialize the controls with the items from the giv...
std::unique_ptr< weld::Label > m_xFT_Connection
the DSN type collection instance
std::unique_ptr< OConnectionURLEdit > m_xConnectionURL
::dbaccess::ODsnTypeCollection * m_pCollection
implements the connection page of the data source properties dialog.
std::unique_ptr< weld::Label > m_xHelpText
virtual bool FillItemSet(SfxItemSet *_rCoreAttrs) override
virtual bool checkTestConnection() override
virtual ~OConnectionTabPageSetup() override
virtual void implInitControls(const SfxItemSet &_rSet, bool _bSaveValue) override
called from within Reset and ActivatePage, use to initialize the controls with the items from the giv...
static std::unique_ptr< OGenericAdministrationPage > CreateADOTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &_rAttrSet)
virtual bool commitPage(::vcl::WizardTypes::CommitPageReason _eReason) override
static std::unique_ptr< OGenericAdministrationPage > CreateUserDefinedTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &_rAttrSet)
std::unique_ptr< weld::Label > m_xHeaderText
static std::unique_ptr< OGenericAdministrationPage > CreateDbaseTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &_rAttrSet)
OConnectionTabPageSetup(weld::Container *pPage, weld::DialogController *pController, const OUString &_rUIXMLDescription, const OUString &_rId, const SfxItemSet &_rCoreAttrs, TranslateId pHelpTextResId, TranslateId pHeaderResId, TranslateId pUrlResId)
static std::unique_ptr< OGenericAdministrationPage > CreateODBCTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &_rAttrSet)
static std::unique_ptr< OGenericAdministrationPage > CreateMSAccessTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &_rAttrSet)
IDatabaseSettingsDialog * m_pAdminDialog
static void fillString(SfxItemSet &_rSet, const weld::Entry *pEdit, TypedWhichId< SfxStringItem > _nID, bool &_bChangedSomething)
fills the String value into the item set when the value changed.
void SetRoadmapStateValue(bool _bDoEnable)
virtual void callModifiedHdl(weld::Widget *=nullptr)
#define LINK(Instance, Class, Member)
IMPL_LINK_NOARG(OApplicationController, OnClipboardChanged, TransferableDataHelper *, void)