27 class ODbTypeWizDialogSetup;
58 std::vector< OUString>
79 virtual void fillControls(std::vector< std::unique_ptr<ISaveValueWrapper> >& _rControlList)
override;
81 virtual void fillWindows(std::vector< std::unique_ptr<ISaveValueWrapper> >& _rControlList)
override;
111 virtual void setParentTitle(
const OUString& _sURLPrefix )
override;
172 std::vector< OUString>
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 FillItemSet(SfxItemSet *_rCoreAttrs) override
virtual void setParentTitle(const OUString &_sURLPrefix) override
sets the title of the parent dialog
OGeneralPageDialog(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &_rItems)
virtual bool approveDatasourceType(::dbaccess::DATASOURCE_TYPE eType, OUString &_inout_rDisplayName) override
bool m_bIsDisplayedTypesEmpty
virtual bool FillItemSet(SfxItemSet *_rCoreAttrs) override
std::unique_ptr< OpenDocumentListBox > m_xLB_DocumentList
void initializeEmbeddedDBList()
virtual ~OGeneralPageWizard() override
std::unique_ptr< weld::Label > m_xFT_DocListLabel
CreationMode GetDatabaseCreationMode() const
CreationMode m_eOriginalCreationMode
OUString GetSelectedDocumentURL() const
DECL_LINK(OnDocumentSelected, weld::ComboBox &, void)
void SetChooseDocumentHandler(const Link< OGeneralPageWizard &, void > &_rHandler)
Link< OGeneralPageWizard &, void > m_aChooseDocumentHandler
to be called when a document in the RecentDoc list is selected
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...
OUString getEmbeddedDBName(const SfxItemSet &_rSet)
bool m_bInitEmbeddedDBList
to be called when a recent document has been definitely chosen
OGeneralPageWizard(weld::Container *pPage, ODbTypeWizDialogSetup *pController, const SfxItemSet &_rItems)
std::unique_ptr< weld::RadioButton > m_xRB_OpenExistingDatabase
OUString m_aBrowsedDocumentURL
std::vector< OUString > m_aEmbeddedURLPrefixes
void SetDocumentSelectionHandler(const Link< OGeneralPageWizard &, void > &_rHandler)
std::unique_ptr< weld::Label > m_xFT_NoEmbeddedDBLabel
DECL_LINK(OnOpenDocument, weld::Button &, void)
void insertEmbeddedDBTypeEntryData(const OUString &_sType, const OUString &sDisplayName)
Link< OGeneralPageWizard &, void > m_aCreationModeHandler
std::unique_ptr< weld::RadioButton > m_xRB_ConnectDatabase
std::unique_ptr< weld::Label > m_xFT_EmbeddedDBLabel
virtual OUString getDatasourceName(const SfxItemSet &_rSet) override
std::unique_ptr< weld::ComboBox > m_xEmbeddedDBType
std::unique_ptr< OpenDocumentButton > m_xPB_OpenDatabase
DECL_LINK(OnSetupModeSelected, weld::Toggleable &, void)
std::unique_ptr< weld::RadioButton > m_xRB_CreateDatabase
void SetCreationModeHandler(const Link< OGeneralPageWizard &, void > &_rHandler)
DECL_LINK(OnEmbeddedDBTypeSelected, weld::ComboBox &, void)
Link< OGeneralPageWizard &, void > m_aDocumentSelectionHandler
to be called if a new type is selected
virtual void fillControls(std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList) override
will be called inside <method>implInitControls</method> to save the value if necessary
::dbaccess::ODsnTypeCollection * m_pCollection
void SetTypeSelectHandler(const Link< OGeneralPage &, void > &_rHandler)
set a handler which gets called every time the user selects a new type
OGeneralPage(weld::Container *pPage, weld::DialogController *pController, const OUString &_rUIXMLDescription, const SfxItemSet &_rItems)
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 ~OGeneralPage() override
virtual void Reset(const SfxItemSet *_rCoreAttrs) override
default implementation: call implInitControls with the given item set and _bSaveValue = sal_False
bool approveDatasourceType(std::u16string_view _sURLPrefix, OUString &_inout_rDisplayName)
std::unique_ptr< weld::Label > m_xSpecialMessage
currently selected type
void insertDatasourceTypeEntryData(const OUString &_sType, const OUString &sDisplayName)
SPECIAL_MESSAGE m_eLastMessage
std::unique_ptr< weld::ComboBox > m_xDatasourceType
void onTypeSelected(const OUString &_sURLPrefix)
void implSetCurrentType(const OUString &_eType)
virtual void setParentTitle(const OUString &_sURLPrefix)
sets the title of the parent dialog
bool m_bInitTypeList
to be called if a new type is selected
DECL_LINK(OnDatasourceTypeSelected, weld::ComboBox &, void)
virtual void fillWindows(std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList) override
will be called inside <method>implInitControls</method> to disable if necessary
std::vector< OUString > m_aURLPrefixes
the DSN type collection instance
void switchMessage(std::u16string_view _sURLPrefix)
Link< OGeneralPage &, void > m_aTypeSelectHandler
void initializeTypeList()
Initializes the listbox, which contains entries each representing a connection to an existing databas...
OUString m_eCurrentSelection
const OUString & GetSelectedType() const
get the currently selected datasource type
virtual OUString getDatasourceName(const SfxItemSet &_rSet)
DATASOURCE_TYPE
known datasource types