20#include <core_resource.hxx>
27#include <com/sun/star/sdbc/SQLException.hpp>
48 const css::uno::Any& rDataSourceName,
54 , m_bOwnConnection(!xConnection.is())
57 m_pImpl->setDataSourceOrName(rDataSourceName);
59 m_pImpl->translateProperties(xDatasource, *pItems);
93 OUString sError(
DBA_RES(STR_USERADMIN_NOT_AVAILABLE));
94 throw SQLException(sError,
nullptr,
"S1000", 0,
Any());
97 catch(
const SQLException&)
133 return std::pair< Reference<XConnection>,
bool> (
m_xConnection,
false);
Reference< XExecutableDialog > m_xDialog
bool PrepareLeaveCurrentPage()
void AddTabPage(const OUString &rName, CreateTabPage pCreateFunc, GetTabPageRanges pRangesFunc)
void SetInputSet(const SfxItemSet *pInSet)
virtual short run() override
std::unique_ptr< SfxItemSet > m_xExampleSet
virtual void PageCreated(const OUString &rName, SfxTabPage &rPage)
const SfxItemSet * GetOutputItemSet() const
SfxItemSet * GetInputSetImpl()
static OUString getDatasourceType(const SfxItemSet &_rSet)
extracts the connection type from the given setThe connection type is determined by the value of the ...
OUserAdminDlg(weld::Window *pParent, SfxItemSet *pItems, const css::uno::Reference< css::uno::XComponentContext > &rxORB, const css::uno::Any &rDataSourceName, const css::uno::Reference< css::sdbc::XConnection > &rConnection)
virtual css::uno::Reference< css::uno::XComponentContext > getORB() const override
virtual void PageCreated(const OUString &rId, SfxTabPage &_rPage) override
virtual short run() override
virtual SfxItemSet * getWriteOutputSet() override
virtual void saveDatasource() override
virtual ~OUserAdminDlg() override
virtual std::pair< css::uno::Reference< css::sdbc::XConnection >, bool > createConnection() override
css::uno::Reference< css::sdbc::XConnection > m_xConnection
virtual void setTitle(const OUString &_sTitle) override
virtual OUString getDatasourceType(const SfxItemSet &_rSet) const override
virtual const SfxItemSet * getOutputSet() const override
virtual css::uno::Reference< css::sdbc::XDriver > getDriver() override
virtual void enableConfirmSettings(bool _bEnable) override
enables or disables the user's possibility to confirm the settings
virtual void clearPassword() override
std::unique_ptr< ODbDataSourceAdministrationHelper > m_pImpl
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
virtual css::uno::Reference< css::awt::XWindow > GetXWindow()=0
#define DBG_UNHANDLED_EXCEPTION(...)
constexpr OUStringLiteral first
Reference< XConnection > m_xConnection