28#include <core_resource.hxx>
51 , m_sMainPageID(
"advanced")
90 m_pImpl->setDataSourceOrName(_aDataSourceName);
95 assert(pCollectionItem &&
"must exist");
144 OUString aTitle(
DBA_RES(STR_PAGETITLE_ADVANCED));
170 for (
auto const& elem : rMap)
182 assert(pCollectionItem &&
"must exist");
186 OUString sMySqlNative(
"mysqlnative");
194 if ( pConnectionPage )
244 return m_pImpl->createConnection();
272 _rpDefaults =
nullptr;
274 static constexpr OUStringLiteral sFilterAll(
u"%" );
409 _rpPool->FreezeIdRanges();
423 _rpPool->ReleaseDefaults(
true);
429 _rpDefaults =
nullptr;
Reference< XExecutableDialog > m_xDialog
sal_uInt16 ClearItem(sal_uInt16 nWhich=0)
const SfxPoolItem * GetItem(sal_uInt16 nWhich, bool bSearchInParent=true) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
bool PrepareLeaveCurrentPage()
SfxTabPage * GetTabPage(std::u16string_view rPageId) const
void SetCurPageId(const OUString &rName)
void AddTabPage(const OUString &rName, CreateTabPage pCreateFunc, GetTabPageRanges pRangesFunc)
void SetInputSet(const SfxItemSet *pInSet)
virtual const SfxItemSet * GetExampleSet() const override
void RemoveTabPage(const OUString &rName)
std::unique_ptr< SfxItemSet > m_xExampleSet
virtual void PageCreated(const OUString &rName, SfxTabPage &rPage)
SfxItemSet * GetInputSetImpl()
virtual void Reset(const SfxItemSet *)
DATASOURCE_TYPE determineType(std::u16string_view _rDsn) const
allows an ODsnTypeCollection to be transported in an SfxItemSet
::dbaccess::ODsnTypeCollection * getCollection() const
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *_rAttrSet)
std::unique_ptr< ODbDataSourceAdministrationHelper > m_pImpl
virtual css::uno::Reference< css::sdbc::XDriver > getDriver() override
static void destroyItemSet(std::unique_ptr< SfxItemSet > &_rpSet, rtl::Reference< SfxItemPool > &_rpPool, std::vector< SfxPoolItem * > *&_rpDefaults)
destroy and item set / item pool / pool defaults previously created by <method>createItemSet</method>
void selectDataSource(const css::uno::Any &_aDataSourceName)
selects the DataSource
virtual SfxItemSet * getWriteOutputSet() override
virtual void clearPassword() override
void addDetailPage(const OUString &rPageId, TranslateId pTextId, CreateTabPage pCreateFunc)
virtual css::uno::Reference< css::uno::XComponentContext > getORB() const override
virtual std::pair< css::uno::Reference< css::sdbc::XConnection >, bool > createConnection() override
virtual void enableConfirmSettings(bool _bEnable) override
enables or disables the user's possibility to confirm the settings
static void createItemSet(std::unique_ptr< SfxItemSet > &_rpSet, rtl::Reference< SfxItemPool > &_rpPool, std::vector< SfxPoolItem * > *&_rpDefaults, ::dbaccess::ODsnTypeCollection *_pTypeCollection)
create and return an item set for use with the dialog.
virtual short Ok() override
void impl_selectDataSource(const css::uno::Any &_aDataSourceName)
select a datasource with a given name, adjust the item set accordingly, and everything like that ....
virtual const SfxItemSet * getOutputSet() const override
virtual void saveDatasource() override
virtual ~ODbAdminDialog() override
virtual void PageCreated(const OUString &rId, SfxTabPage &_rPage) override
ApplyResult implApplyChanges()
apply all changes made
ODbAdminDialog(weld::Window *pParent, SfxItemSet const *_pItems, const css::uno::Reference< css::uno::XComponentContext > &_rxORB)
ctor.
virtual OUString getDatasourceType(const SfxItemSet &_rSet) const override
virtual void setTitle(const OUString &_sTitle) override
void impl_resetPages(const css::uno::Reference< css::beans::XPropertySet > &_rxDatasource)
reset the tag pages according to m_sCurrentDatasource and <arg>_rxDatasource</arg>
std::map< sal_Int32, OUString > MapInt2String
static OUString getDatasourceType(const SfxItemSet &_rSet)
extracts the connection type from the given setThe connection type is determined by the value of the ...
<type>SfxPoolItem</type> which transports a sequence of <type scope="rtl">OUString</type>'s
SfxItemInfo const aItemInfos[]
#define DSID_CONN_LDAP_BASEDN
#define DSID_DECIMALDELIMITER
#define DSID_RESPECTRESULTSETTYPE
#define DSID_CONN_LDAP_PORTNUMBER
#define DSID_ESCAPE_DATETIME
#define DSID_CONN_DATAINC
#define DSID_ENABLEOUTERJOIN
#define DSID_DOCUMENT_URL
#define DSID_THOUSANDSDELIMITER
#define DSID_SHOWDELETEDROWS
#define DSID_DATABASENAME
#define DSID_INVALID_SELECTION
#define DSID_CONN_LDAP_USESSL
#define DSID_AS_BEFORE_CORRNAME
#define DSID_ORIGINALNAME
#define DSID_INDEXAPPENDIX
#define DSID_CONN_LDAP_ROWCOUNT
#define DSID_MAX_ROW_SCAN
#define DSID_TEXTFILEEXTENSION
#define DSID_BOOLEANCOMPARISON
#define DSID_TYPECOLLECTION
#define DSID_CONN_HOSTNAME
#define DSID_PARAMETERNAMESUBST
#define DSID_MYSQL_PORTNUMBER
#define DSID_CHECK_REQUIRED_FIELDS
#define DSID_CONN_CTRLPWD
#define DSID_FIELDDELIMITER
#define DSID_AUTOINCREMENTVALUE
#define DSID_PRIMARY_KEY_SUPPORT
#define DSID_IGNOREDRIVER_PRIV
#define DSID_POSTGRES_PORTNUMBER
#define DSID_AUTORETRIEVEENABLED
#define DSID_TEXTFILEHEADER
#define DSID_IGNORECURRENCY
#define DSID_ADDITIONALOPTIONS
#define DSID_CONN_PORTNUMBER
#define DSID_SUPPRESSVERSIONCL
#define DSID_CONN_CTRLUSER
#define DSID_JDBCDRIVERCLASS
#define DSID_CONN_CACHESIZE
#define DSID_APPEND_TABLE_ALIAS
#define DSID_ALLOWLONGTABLENAMES
#define DSID_CONN_SHUTSERVICE
#define DSID_FIRST_ITEM_ID
#define DSID_ORACLE_PORTNUMBER
#define DSID_TEXTDELIMITER
#define DSID_AUTORETRIEVEVALUE
#define DSID_PASSWORDREQUIRED
#define DSID_LAST_ITEM_ID
DATASOURCE_TYPE
known datasource types
@ DST_USERDEFINE1
for all embedded addons driver
@ DST_USERDEFINE2
first user defined driver