LibreOffice Module dbaccess (master) 1
DBSetupConnectionPages.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
23
24#include "adminpages.hxx"
25#include "admincontrols.hxx"
27
28#include <curledit.hxx>
29
30namespace dbaui
31{
32 class ODbTypeWizDialogSetup;
33
34 // OSpreadSheetConnectionPageSetup
36 {
37 public:
38 virtual bool FillItemSet ( SfxItemSet* _rCoreAttrs ) override;
39 static std::unique_ptr<OGenericAdministrationPage> CreateDocumentOrSpreadSheetTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& _rAttrSet);
41 virtual ~OSpreadSheetConnectionPageSetup() override;
42
43 private:
44 std::unique_ptr<weld::CheckButton> m_xPasswordrequired;
45
46 virtual void fillControls(std::vector< std::unique_ptr<ISaveValueWrapper> >& _rControlList) override;
47 virtual void fillWindows(std::vector< std::unique_ptr<ISaveValueWrapper> >& _rControlList) override;
48 };
49
50 // OTextConnectionPage
52 {
53 public:
54 virtual bool FillItemSet ( SfxItemSet* _rCoreAttrs ) override;
55 static std::unique_ptr<OGenericAdministrationPage> CreateTextTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& _rAttrSet );
56 OTextConnectionPageSetup(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& _rCoreAttrs);
57 virtual ~OTextConnectionPageSetup() override;
58 protected:
59 virtual bool prepareLeave() override;
60 virtual void implInitControls(const SfxItemSet& _rSet, bool _bSaveValue) override;
61 virtual void fillControls(std::vector< std::unique_ptr<ISaveValueWrapper> >& _rControlList) override;
62 virtual void fillWindows(std::vector< std::unique_ptr<ISaveValueWrapper> >& _rControlList) override;
63 bool checkTestConnection() override;
64 private:
65 DECL_LINK(ImplGetExtensionHdl, OTextConnectionHelper*, void);
66 std::unique_ptr<weld::Widget> m_xSubContainer;
67 std::unique_ptr<OTextConnectionHelper> m_xTextConnectionHelper;
68 };
69
70 // OLDAPConnectionPageSetup
72 {
73 public:
74 virtual bool FillItemSet ( SfxItemSet* _rCoreAttrs ) override;
75 static std::unique_ptr<OGenericAdministrationPage> CreateLDAPTabPage( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& _rAttrSet );
76 OLDAPConnectionPageSetup( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& _rCoreAttrs );
77 virtual ~OLDAPConnectionPageSetup() override;
78 virtual void callModifiedHdl(weld::Widget* pControl = nullptr) override;
79
80 protected:
81 virtual void implInitControls(const SfxItemSet& _rSet, bool _bSaveValue) override;
82 virtual void fillControls(std::vector< std::unique_ptr<ISaveValueWrapper> >& _rControlList) override;
83 virtual void fillWindows(std::vector< std::unique_ptr<ISaveValueWrapper> >& _rControlList) override;
84
85 private:
86 std::unique_ptr<weld::Label> m_xFTHelpText;
87 std::unique_ptr<weld::Label> m_xFTHostServer;
88 std::unique_ptr<weld::Entry> m_xETHostServer;
89 std::unique_ptr<weld::Label> m_xFTBaseDN;
90 std::unique_ptr<weld::Entry> m_xETBaseDN;
91 std::unique_ptr<weld::Label> m_xFTPortNumber;
92 std::unique_ptr<weld::SpinButton> m_xNFPortNumber;
93 std::unique_ptr<weld::Label> m_xFTDefaultPortNumber;
94 std::unique_ptr<weld::CheckButton> m_xCBUseSSL;
95 };
96
97 // MySQLNativeSetupPage
99 {
100 private:
101 std::unique_ptr<weld::Label> m_xHelpText;
102 std::unique_ptr<weld::Container> m_xSettingsContainer;
103 std::unique_ptr<MySQLNativeSettings> m_xMySQLSettings;
104
105 public:
106 MySQLNativeSetupPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rCoreAttrs);
107 virtual ~MySQLNativeSetupPage() override;
108
109 static std::unique_ptr<OGenericAdministrationPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rAttrSet);
110
111 protected:
112 virtual void fillControls( std::vector< std::unique_ptr<ISaveValueWrapper> >& _rControlList ) override;
113 virtual void fillWindows( std::vector< std::unique_ptr<ISaveValueWrapper> >& _rControlList ) override;
114
115 virtual bool FillItemSet( SfxItemSet* _rCoreAttrs ) override;
116 virtual void implInitControls(const SfxItemSet& _rSet, bool _bSaveValue) override;
117
118 virtual void callModifiedHdl(weld::Widget* pControl = nullptr) override;
119 };
120
121 // OGeneralSpecialJDBCConnectionPageSetup
123 {
124 public:
126 , const SfxItemSet& _rCoreAttrs
127 , sal_uInt16 _nPortId
128 , TranslateId pDefaultPortResId
129 , TranslateId pHelpTextResId
130 , TranslateId pHeaderTextResId
131 , TranslateId pDriverClassId );
133 static std::unique_ptr<OGenericAdministrationPage> CreateMySQLJDBCTabPage( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& _rAttrSet );
134 static std::unique_ptr<OGenericAdministrationPage> CreateOracleJDBCTabPage( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& _rAttrSet );
135
136 private:
137 virtual bool FillItemSet( SfxItemSet* _rCoreAttrs ) override;
138 virtual void implInitControls(const SfxItemSet& _rSet, bool _bSaveValue) override;
139 virtual void fillControls(std::vector< std::unique_ptr<ISaveValueWrapper> >& _rControlList) override;
140 virtual void fillWindows(std::vector< std::unique_ptr<ISaveValueWrapper> >& _rControlList) override;
141 virtual void callModifiedHdl(weld::Widget* pControl = nullptr) override;
142
143 DECL_LINK(OnTestJavaClickHdl, weld::Button&, void);
144
147
148 std::unique_ptr<weld::Label> m_xHeaderText;
149 std::unique_ptr<weld::Label> m_xFTHelpText;
150 std::unique_ptr<weld::Label> m_xFTDatabasename;
151 std::unique_ptr<weld::Entry> m_xETDatabasename;
152 std::unique_ptr<weld::Label> m_xFTHostname;
153 std::unique_ptr<weld::Entry> m_xETHostname;
154 std::unique_ptr<weld::Label> m_xFTPortNumber;
155 std::unique_ptr<weld::Label> m_xFTDefaultPortNumber;
156 std::unique_ptr<weld::SpinButton> m_xNFPortNumber;
157
158 std::unique_ptr<weld::Label> m_xFTDriverClass;
159 std::unique_ptr<weld::Entry> m_xETDriverClass;
160 std::unique_ptr<weld::Button> m_xPBTestJavaDriver;
161 };
162
163 // OJDBCConnectionPageSetup
165 {
166 public:
167 OJDBCConnectionPageSetup(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& _rCoreAttrs);
168 virtual ~OJDBCConnectionPageSetup() override;
169 static std::unique_ptr<OGenericAdministrationPage> CreateJDBCTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rAttrSet);
170
171 private:
172 virtual bool checkTestConnection() override;
173
174 virtual bool FillItemSet( SfxItemSet* _rCoreAttrs ) override;
175 virtual void implInitControls(const SfxItemSet& _rSet, bool _bSaveValue) override;
176 virtual void fillControls(std::vector< std::unique_ptr<ISaveValueWrapper> >& _rControlList) override;
177 virtual void fillWindows(std::vector< std::unique_ptr<ISaveValueWrapper> >& _rControlList) override;
178
179 DECL_LINK(OnTestJavaClickHdl, weld::Button&, void);
180 DECL_LINK(OnEditModified, weld::Entry&, void);
181 std::unique_ptr<weld::Label> m_xFTDriverClass;
182 std::unique_ptr<weld::Entry> m_xETDriverClass;
183 std::unique_ptr<weld::Button> m_xPBTestJavaDriver;
184 };
185
186 // OMySQLIntroPageSetup
188 {
189 public:
191 {
195 };
196
197 OMySQLIntroPageSetup(weld::Container* pPage, ODbTypeWizDialogSetup* pController, const SfxItemSet& rCoreAttrs);
198 virtual ~OMySQLIntroPageSetup() override;
199
200 static std::unique_ptr<OMySQLIntroPageSetup> CreateMySQLIntroTabPage(weld::Container* pPage, ODbTypeWizDialogSetup* pController, const SfxItemSet& rAttrSet);
203
204 protected:
205 virtual bool FillItemSet(SfxItemSet* _rSet) override;
206 virtual void implInitControls(const SfxItemSet& _rSet, bool _bSaveValue) override;
207 virtual void fillControls(std::vector< std::unique_ptr<ISaveValueWrapper> >& _rControlList) override;
208 virtual void fillWindows(std::vector< std::unique_ptr<ISaveValueWrapper> >& _rControlList) override;
209
210 private:
211 std::unique_ptr<weld::RadioButton> m_xODBCDatabase;
212 std::unique_ptr<weld::RadioButton> m_xJDBCDatabase;
213 std::unique_ptr<weld::RadioButton> m_xNATIVEDatabase;
215
216 DECL_LINK(OnSetupModeSelected, weld::Toggleable&, void);
217 };
218
219 // OPostgresPageSetup
221 {
222 public:
224 , const SfxItemSet& _rCoreAttrs
225 , sal_uInt16 _nPortId );
226 virtual ~OPostgresConnectionPageSetup() override;
227 static std::unique_ptr<OGenericAdministrationPage> CreatePostgresTabPage( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& _rAttrSet );
229
230 private:
231 virtual bool FillItemSet( SfxItemSet* _rCoreAttrs ) override;
232 virtual void implInitControls(const SfxItemSet& _rSet, bool _bSaveValue) override;
233 virtual void fillControls(std::vector< std::unique_ptr<ISaveValueWrapper> >& _rControlList) override;
234 virtual void fillWindows(std::vector< std::unique_ptr<ISaveValueWrapper> >& _rControlList) override;
235 virtual bool commitPage( ::vcl::WizardTypes::CommitPageReason _eReason ) override;
236
238
239 std::unique_ptr<weld::Entry> m_xETDatabasename;
240 std::unique_ptr<weld::Entry> m_xETHostname;
241 std::unique_ptr<weld::SpinButton> m_xNFPortNumber;
242 std::unique_ptr<OConnectionURLEdit> m_xConnectionURL;
243
248 void impl_setURL( std::u16string_view _rURL, bool _bPrefix );
249 void setURLNoPrefix( std::u16string_view _rURL );
250 void setURL( std::u16string_view _rURL );
251 bool commitURL();
252 };
253
254
255 // OAuthentificationPageSetup
257 {
258 public:
259 virtual bool FillItemSet ( SfxItemSet* _rCoreAttrs ) override;
260 static std::unique_ptr<OGenericAdministrationPage> CreateAuthentificationTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& _rAttrSet);
261 OAuthentificationPageSetup(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& _rCoreAttrs);
262 virtual ~OAuthentificationPageSetup() override;
263
264 private:
265 std::unique_ptr<weld::Label> m_xFTHelpText;
266 std::unique_ptr<weld::Label> m_xFTUserName;
267 std::unique_ptr<weld::Entry> m_xETUserName;
268 std::unique_ptr<weld::CheckButton> m_xCBPasswordRequired;
269 std::unique_ptr<weld::Button> m_xPBTestConnection;
270
271 virtual void implInitControls(const SfxItemSet& _rSet, bool _bSaveValue) override;
272 virtual void fillControls(std::vector< std::unique_ptr<ISaveValueWrapper> >& _rControlList) override;
273 virtual void fillWindows(std::vector< std::unique_ptr<ISaveValueWrapper> >& _rControlList) override;
274 };
275
276 // OFinalDBPageSetup
278 {
279 public:
280 virtual bool FillItemSet ( SfxItemSet* _rCoreAttrs ) override;
281 static std::unique_ptr<OGenericAdministrationPage> CreateFinalDBTabPageSetup(weld::Container* pPage, ODbTypeWizDialogSetup* pController, const SfxItemSet& _rAttrSet);
282
283 OFinalDBPageSetup(weld::Container* pPage, ODbTypeWizDialogSetup* pController, const SfxItemSet& _rCoreAttrs);
284 virtual ~OFinalDBPageSetup() override;
286 bool IsDatabaseDocumentToBeOpened() const;
287 bool IsTableWizardToBeStarted() const;
288 void enableTableWizardCheckBox( bool _bSupportsTableCreation);
289
290 DECL_LINK(OnOpenSelected, weld::Toggleable&, void);
291 protected:
292 virtual void implInitControls(const SfxItemSet& _rSet, bool _bSaveValue) override;
293 virtual void fillControls(std::vector< std::unique_ptr<ISaveValueWrapper> >& _rControlList) override;
294 virtual void fillWindows(std::vector< std::unique_ptr<ISaveValueWrapper> >& _rControlList) override;
295 private:
296 std::unique_ptr<weld::Label> m_xFTFinalHeader;
297 std::unique_ptr<weld::Label> m_xFTFinalHelpText;
298 std::unique_ptr<weld::RadioButton> m_xRBRegisterDataSource;
299 std::unique_ptr<weld::RadioButton> m_xRBDontregisterDataSource;
300 std::unique_ptr<weld::Label> m_xFTAdditionalSettings;
301 std::unique_ptr<weld::CheckButton> m_xCBOpenAfterwards;
302 std::unique_ptr<weld::CheckButton> m_xCBStartTableWizard;
303 std::unique_ptr<weld::Label> m_xFTFinalText;
304 };
305
306} // namespace dbaui
307
308/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void fillControls(std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList) override
will be called inside <method>implInitControls</method> to save the value if necessary
std::unique_ptr< MySQLNativeSettings > m_xMySQLSettings
MySQLNativeSetupPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rCoreAttrs)
virtual bool FillItemSet(SfxItemSet *_rCoreAttrs) 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...
virtual void fillWindows(std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList) override
will be called inside <method>implInitControls</method> to disable if necessary
virtual void callModifiedHdl(weld::Widget *pControl=nullptr) override
std::unique_ptr< weld::Container > m_xSettingsContainer
std::unique_ptr< weld::Label > m_xHelpText
static std::unique_ptr< OGenericAdministrationPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rAttrSet)
static std::unique_ptr< OGenericAdministrationPage > CreateAuthentificationTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &_rAttrSet)
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_xFTHelpText
std::unique_ptr< weld::Button > m_xPBTestConnection
std::unique_ptr< weld::CheckButton > m_xCBPasswordRequired
OAuthentificationPageSetup(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &_rCoreAttrs)
virtual void fillWindows(std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList) override
will be called inside <method>implInitControls</method> to disable if necessary
std::unique_ptr< weld::Entry > m_xETUserName
virtual void fillControls(std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList) override
will be called inside <method>implInitControls</method> to save the value if necessary
std::unique_ptr< weld::Label > m_xFTUserName
virtual bool FillItemSet(SfxItemSet *_rCoreAttrs) override
implements the connection page of the data source properties dialog.
virtual void fillWindows(std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList) override
will be called inside <method>implInitControls</method> to disable if necessary
virtual bool FillItemSet(SfxItemSet *_rCoreAttrs) override
std::unique_ptr< weld::CheckButton > m_xCBStartTableWizard
std::unique_ptr< weld::RadioButton > m_xRBDontregisterDataSource
OFinalDBPageSetup(weld::Container *pPage, ODbTypeWizDialogSetup *pController, const SfxItemSet &_rCoreAttrs)
std::unique_ptr< weld::RadioButton > m_xRBRegisterDataSource
std::unique_ptr< weld::Label > m_xFTAdditionalSettings
virtual void fillControls(std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList) override
will be called inside <method>implInitControls</method> to save the value if necessary
std::unique_ptr< weld::Label > m_xFTFinalText
std::unique_ptr< weld::Label > m_xFTFinalHeader
void enableTableWizardCheckBox(bool _bSupportsTableCreation)
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...
DECL_LINK(OnOpenSelected, weld::Toggleable &, void)
static std::unique_ptr< OGenericAdministrationPage > CreateFinalDBTabPageSetup(weld::Container *pPage, ODbTypeWizDialogSetup *pController, const SfxItemSet &_rAttrSet)
std::unique_ptr< weld::Label > m_xFTFinalHelpText
std::unique_ptr< weld::CheckButton > m_xCBOpenAfterwards
virtual bool FillItemSet(SfxItemSet *_rCoreAttrs) override
virtual void callModifiedHdl(weld::Widget *pControl=nullptr) override
virtual void fillControls(std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList) override
will be called inside <method>implInitControls</method> to save the value if necessary
static std::unique_ptr< OGenericAdministrationPage > CreateOracleJDBCTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &_rAttrSet)
std::unique_ptr< weld::SpinButton > m_xNFPortNumber
static std::unique_ptr< OGenericAdministrationPage > CreateMySQLJDBCTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &_rAttrSet)
virtual void fillWindows(std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList) override
will be called inside <method>implInitControls</method> to disable if necessary
OGeneralSpecialJDBCConnectionPageSetup(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &_rCoreAttrs, sal_uInt16 _nPortId, TranslateId pDefaultPortResId, TranslateId pHelpTextResId, TranslateId pHeaderTextResId, TranslateId pDriverClassId)
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...
DECL_LINK(OnTestJavaClickHdl, weld::Button &, void)
DECL_LINK(OnTestJavaClickHdl, weld::Button &, void)
std::unique_ptr< weld::Label > m_xFTDriverClass
static std::unique_ptr< OGenericAdministrationPage > CreateJDBCTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rAttrSet)
std::unique_ptr< weld::Entry > m_xETDriverClass
DECL_LINK(OnEditModified, weld::Entry &, void)
OJDBCConnectionPageSetup(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &_rCoreAttrs)
std::unique_ptr< weld::Button > m_xPBTestJavaDriver
virtual bool checkTestConnection() override
virtual bool FillItemSet(SfxItemSet *_rCoreAttrs) 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...
virtual void fillControls(std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList) override
will be called inside <method>implInitControls</method> to save the value if necessary
virtual void fillWindows(std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList) override
will be called inside <method>implInitControls</method> to disable if necessary
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...
virtual void fillWindows(std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList) override
will be called inside <method>implInitControls</method> to disable if necessary
std::unique_ptr< weld::SpinButton > m_xNFPortNumber
std::unique_ptr< weld::Entry > m_xETBaseDN
std::unique_ptr< weld::Label > m_xFTPortNumber
std::unique_ptr< weld::CheckButton > m_xCBUseSSL
virtual bool FillItemSet(SfxItemSet *_rCoreAttrs) override
std::unique_ptr< weld::Label > m_xFTHostServer
virtual void callModifiedHdl(weld::Widget *pControl=nullptr) override
virtual void fillControls(std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList) override
will be called inside <method>implInitControls</method> to save the value if necessary
std::unique_ptr< weld::Entry > m_xETHostServer
static std::unique_ptr< OGenericAdministrationPage > CreateLDAPTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &_rAttrSet)
OLDAPConnectionPageSetup(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &_rCoreAttrs)
std::unique_ptr< weld::Label > m_xFTBaseDN
std::unique_ptr< weld::Label > m_xFTDefaultPortNumber
std::unique_ptr< weld::Label > m_xFTHelpText
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::RadioButton > m_xODBCDatabase
std::unique_ptr< weld::RadioButton > m_xNATIVEDatabase
void SetClickHdl(const Link< OMySQLIntroPageSetup *, void > &rLink)
virtual void fillWindows(std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList) override
will be called inside <method>implInitControls</method> to disable if necessary
Link< OMySQLIntroPageSetup *, void > maClickHdl
static std::unique_ptr< OMySQLIntroPageSetup > CreateMySQLIntroTabPage(weld::Container *pPage, ODbTypeWizDialogSetup *pController, const SfxItemSet &rAttrSet)
virtual void fillControls(std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList) override
will be called inside <method>implInitControls</method> to save the value if necessary
virtual bool FillItemSet(SfxItemSet *_rSet) override
std::unique_ptr< weld::RadioButton > m_xJDBCDatabase
DECL_LINK(OnSetupModeSelected, weld::Toggleable &, void)
OMySQLIntroPageSetup(weld::Container *pPage, ODbTypeWizDialogSetup *pController, const SfxItemSet &rCoreAttrs)
std::unique_ptr< OConnectionURLEdit > m_xConnectionURL
void setURLNoPrefix(std::u16string_view _rURL)
::dbaccess::ODsnTypeCollection * m_pCollection
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...
virtual bool commitPage(::vcl::WizardTypes::CommitPageReason _eReason) override
void impl_setURL(std::u16string_view _rURL, bool _bPrefix)
used for the connection URL
virtual void fillControls(std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList) override
will be called inside <method>implInitControls</method> to save the value if necessary
virtual void fillWindows(std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList) override
will be called inside <method>implInitControls</method> to disable if necessary
OPostgresConnectionPageSetup(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &_rCoreAttrs, sal_uInt16 _nPortId)
static std::unique_ptr< OGenericAdministrationPage > CreatePostgresTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &_rAttrSet)
std::unique_ptr< weld::Entry > m_xETDatabasename
std::unique_ptr< weld::SpinButton > m_xNFPortNumber
std::unique_ptr< weld::Entry > m_xETHostname
void setURL(std::u16string_view _rURL)
virtual bool FillItemSet(SfxItemSet *_rCoreAttrs) override
OSpreadSheetConnectionPageSetup(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &_rCoreAttrs)
std::unique_ptr< weld::CheckButton > m_xPasswordrequired
virtual void fillWindows(std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList) override
will be called inside <method>implInitControls</method> to disable if necessary
virtual bool FillItemSet(SfxItemSet *_rCoreAttrs) override
virtual void fillControls(std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList) override
will be called inside <method>implInitControls</method> to save the value if necessary
static std::unique_ptr< OGenericAdministrationPage > CreateDocumentOrSpreadSheetTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &_rAttrSet)
std::unique_ptr< weld::Widget > m_xSubContainer
virtual void fillWindows(std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList) override
will be called inside <method>implInitControls</method> to disable if necessary
std::unique_ptr< OTextConnectionHelper > m_xTextConnectionHelper
static std::unique_ptr< OGenericAdministrationPage > CreateTextTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &_rAttrSet)
OTextConnectionPageSetup(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &_rCoreAttrs)
DECL_LINK(ImplGetExtensionHdl, OTextConnectionHelper *, void)
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...
virtual void fillControls(std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList) override
will be called inside <method>implInitControls</method> to save the value if necessary
virtual bool FillItemSet(SfxItemSet *_rCoreAttrs) override
virtual bool prepareLeave() override
called from within DeactivatePage. The page is allowed to be deactivated if this method returns sal_T...