LibreOffice Module dbaccess (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
dbaui::OTableSubscriptionPage Class Referencefinal

#include <tablespage.hxx>

Inheritance diagram for dbaui::OTableSubscriptionPage:
[legend]
Collaboration diagram for dbaui::OTableSubscriptionPage:
[legend]

Public Member Functions

virtual bool FillItemSet (SfxItemSet *_rCoreAttrs) override
 
virtual DeactivateRC DeactivatePage (SfxItemSet *_pSet) override
 default implementation: call FillItemSet, call prepareLeave, More...
 
 OTableSubscriptionPage (weld::Container *pPage, OTableSubscriptionDialog *pController, const SfxItemSet &_rCoreAttrs)
 
virtual ~OTableSubscriptionPage () override
 
- Public Member Functions inherited from dbaui::OGenericAdministrationPage
 OGenericAdministrationPage (weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OUString &rId, const SfxItemSet &rAttrSet)
 
void SetModifiedHandler (const Link< OGenericAdministrationPage const *, void > &_rHandler)
 set a handler which gets called every time something on the page has been modified More...
 
void SetAdminDialog (IDatabaseSettingsDialog *_pDialog, IItemSetHelper *_pItemSetHelper)
 Sets the ParentDialog. More...
 
void SetServiceFactory (const css::uno::Reference< css::uno::XComponentContext > &rxORB)
 Sets the ServiceFactory. More...
 
bool getSelectedDataSource (OUString &_sReturn, OUString const &_sCurr)
 opens a dialog filled with all data sources available for this type and returns the selected on. More...
 
virtual void initializePage () override
 
virtual bool commitPage (::vcl::WizardTypes::CommitPageReason _eReason) override
 
virtual bool canAdvance () const override
 
void SetRoadmapStateValue (bool _bDoEnable)
 
bool GetRoadmapStateValue () const
 
- Public Member Functions inherited from SfxTabPage
void SetDialogController (SfxOkDialogController *pDialog)
 
virtual ~SfxTabPage () override
 
void set_visible (bool bVisible)
 
const SfxItemSetGetItemSet () const
 
virtual bool FillItemSet (SfxItemSet *)
 
virtual void Reset (const SfxItemSet *)
 
virtual bool DeferResetToFirstActivation ()
 
bool HasExchangeSupport () const
 
void SetExchangeSupport ()
 
virtual void ActivatePage (const SfxItemSet &)
 
virtual DeactivateRC DeactivatePage (SfxItemSet *pSet)
 
void SetUserData (const OUString &rString)
 
const OUString & GetUserData () const
 
virtual void FillUserData ()
 
virtual bool IsReadOnly () const
 
virtual void PageCreated (const SfxAllItemSet &aSet)
 
virtual void ChangesApplied ()
 
void SetFrame (const css::uno::Reference< css::frame::XFrame > &xFrame)
 
css::uno::Reference< css::frame::XFrame > GetFrame () const
 
const SfxItemSetGetDialogExampleSet () const
 
OUString GetHelpId () const
 
OUString GetConfigId () const
 
bool IsVisible () const
 
weld::WindowGetFrameWeld () const
 
std::unordered_map< OUString, css::uno::Any > & getAdditionalProperties ()
 

Private Member Functions

virtual void fillControls (std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList) override
 will be called inside <method>implInitControls</method> to save the value if necessary More...
 
virtual void fillWindows (std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList) override
 will be called inside <method>implInitControls</method> to disable if necessary More...
 
 DECL_LINK (OnTreeEntryChecked, const weld::TreeView::iter_col &, void)
 
void implCheckTables (const css::uno::Sequence< OUString > &_rTables)
 check the tables in <member>m_aTablesList</member> according to <arg>_rTables</arg> More...
 
std::unique_ptr< weld::TreeIterimplNextSibling (const weld::TreeIter *pEntry) const
 returns the next sibling, if not available, the next sibling of the parent, a.s.o. More...
 
css::uno::Sequence< OUString > collectDetailedSelection () const
 return the current selection in <member>m_aTablesList</member> More...
 
void CheckAll (bool bCheck=true)
 (un)check all entries More...
 
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 given set More...
 
void implCompleteTablesCheck (const css::uno::Sequence< OUString > &_rTableFilter)
 

Private Attributes

OUString m_sCatalogSeparator
 
bool m_bCatalogAtStart: 1
 
css::uno::Reference< css::sdbc::XConnection > m_xCurrentConnection
 
OTableSubscriptionDialogm_pTablesDlg
 valid as long as the page is active More...
 
std::unique_ptr< weld::Widgetm_xTables
 
std::unique_ptr< OTableTreeListBoxm_xTablesList
 

Additional Inherited Members

- Static Public Member Functions inherited from dbaui::OGenericAdministrationPage
static void fillBool (SfxItemSet &_rSet, const weld::CheckButton *pCheckBox, sal_uInt16 _nID, bool bOptionalBool, bool &_bChangedSomething, bool _bRevertValue=false)
 fills the Boolean value into the item set when the value changed. More...
 
static void fillInt32 (SfxItemSet &_rSet, const weld::SpinButton *pEdit, TypedWhichId< SfxInt32Item > _nID, bool &_bChangedSomething)
 fills the int value into the item set when the value changed. More...
 
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. More...
 
static void fillString (SfxItemSet &_rSet, const dbaui::OConnectionURLEdit *pEdit, TypedWhichId< SfxStringItem > _nID, bool &_bChangedSomething)
 
- Static Public Member Functions inherited from SfxTabPage
static const SfxPoolItemGetItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
 
static const T * GetItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true)
 
- Protected Member Functions inherited from dbaui::OGenericAdministrationPage
virtual DeactivateRC DeactivatePage (SfxItemSet *pSet) override
 default implementation: call FillItemSet, call prepareLeave, More...
 
virtual void Reset (const SfxItemSet *_rCoreAttrs) override
 default implementation: call implInitControls with the given item set and _bSaveValue = sal_False More...
 
virtual void ActivatePage (const SfxItemSet &_rSet) override
 default implementation: call implInitControls with the given item set and _bSaveValue = sal_True More...
 
virtual void Activate () override
 
virtual void callModifiedHdl (weld::Widget *=nullptr)
 
virtual bool prepareLeave ()
 called from within DeactivatePage. The page is allowed to be deactivated if this method returns sal_True More...
 
virtual void implInitControls (const SfxItemSet &_rSet, bool _bSaveValue)
 called from within Reset and ActivatePage, use to initialize the controls with the items from the given set More...
 
virtual void fillControls (std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList)=0
 will be called inside <method>implInitControls</method> to save the value if necessary More...
 
virtual void fillWindows (std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList)=0
 will be called inside <method>implInitControls</method> to disable if necessary More...
 
 DECL_LINK (OnControlModified, weld::Widget *, void)
 This link be used for controls where the tabpage does not need to take any special action when the control is modified. More...
 
 DECL_LINK (OnControlEntryModifyHdl, weld::Entry &, void)
 
 DECL_LINK (OnControlSpinButtonModifyHdl, weld::SpinButton &, void)
 
 DECL_LINK (OnControlModifiedButtonClick, weld::Toggleable &, void)
 
 DECL_LINK (OnTestConnectionButtonClickHdl, weld::Button &, void)
 
- Protected Member Functions inherited from SfxTabPage
 SfxTabPage (weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet *rAttrSet)
 
sal_uInt16 GetWhich (sal_uInt16 nSlot, bool bDeep=true) const
 
TypedWhichId< T > GetWhich (TypedWhichId< T > nSlot, bool bDeep=true) const
 
const SfxPoolItemGetOldItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
 
const T * GetOldItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true)
 
SfxOkDialogControllerGetDialogController () const
 
- Static Protected Member Functions inherited from dbaui::OGenericAdministrationPage
static void getFlags (const SfxItemSet &_rSet, bool &_rValid, bool &_rReadonly)
 analyze the invalid and the readonly flag which may be present in the set More...
 
- Protected Attributes inherited from dbaui::OGenericAdministrationPage
IDatabaseSettingsDialogm_pAdminDialog
 
IItemSetHelperm_pItemSetHelper
 
css::uno::Reference< css::uno::XComponentContext > m_xORB
 

Detailed Description

Definition at line 31 of file tablespage.hxx.

Constructor & Destructor Documentation

◆ OTableSubscriptionPage()

dbaui::OTableSubscriptionPage::OTableSubscriptionPage ( weld::Container pPage,
OTableSubscriptionDialog pController,
const SfxItemSet _rCoreAttrs 
)

◆ ~OTableSubscriptionPage()

dbaui::OTableSubscriptionPage::~OTableSubscriptionPage ( )
overridevirtual

Definition at line 73 of file tablespage.cxx.

References m_xCurrentConnection.

Member Function Documentation

◆ CheckAll()

void dbaui::OTableSubscriptionPage::CheckAll ( bool  bCheck = true)
private

(un)check all entries

Definition at line 295 of file tablespage.cxx.

References m_xTablesList, TRISTATE_FALSE, and TRISTATE_TRUE.

Referenced by implCheckTables(), and implCompleteTablesCheck().

◆ collectDetailedSelection()

Sequence< OUString > dbaui::OTableSubscriptionPage::collectDetailedSelection ( ) const
private

return the current selection in <member>m_aTablesList</member>

Definition at line 335 of file tablespage.cxx.

References implNextSibling(), m_bCatalogAtStart, m_sCatalogSeparator, m_xTablesList, sCatalog, sComposedName, TRISTATE_TRUE, and u.

Referenced by FillItemSet().

◆ DeactivatePage()

DeactivateRC dbaui::OTableSubscriptionPage::DeactivatePage ( SfxItemSet pSet)
overridevirtual

default implementation: call FillItemSet, call prepareLeave,

Reimplemented from dbaui::OGenericAdministrationPage.

Definition at line 315 of file tablespage.cxx.

References dbaui::OGenericAdministrationPage::DeactivatePage(), and m_xCurrentConnection.

◆ DECL_LINK()

dbaui::OTableSubscriptionPage::DECL_LINK ( OnTreeEntryChecked  ,
const weld::TreeView::iter_col ,
void   
)
private

◆ fillControls()

void dbaui::OTableSubscriptionPage::fillControls ( std::vector< std::unique_ptr< ISaveValueWrapper > > &  _rControlList)
overrideprivatevirtual

will be called inside <method>implInitControls</method> to save the value if necessary

Parameters
_rControlListThe list must be filled with the controls. It is not allowed to clear the list before pushing data into it.

Implements dbaui::OGenericAdministrationPage.

Definition at line 478 of file tablespage.cxx.

◆ FillItemSet()

bool dbaui::OTableSubscriptionPage::FillItemSet ( SfxItemSet _rCoreAttrs)
overridevirtual

◆ fillWindows()

void dbaui::OTableSubscriptionPage::fillWindows ( std::vector< std::unique_ptr< ISaveValueWrapper > > &  _rControlList)
overrideprivatevirtual

will be called inside <method>implInitControls</method> to disable if necessary

Parameters
_rControlListThe list must be filled with the controls. It is not allowed to clear the list before pushing data into it.

Implements dbaui::OGenericAdministrationPage.

Definition at line 482 of file tablespage.cxx.

References m_xTables.

◆ implCheckTables()

void dbaui::OTableSubscriptionPage::implCheckTables ( const css::uno::Sequence< OUString > &  _rTables)
private

check the tables in <member>m_aTablesList</member> according to <arg>_rTables</arg>

Definition at line 83 of file tablespage.cxx.

References CheckAll(), m_xCurrentConnection, m_xTablesList, qualifiedNameComponents(), sCatalog, sName, sSchema, and TRISTATE_TRUE.

Referenced by implCompleteTablesCheck().

◆ implCompleteTablesCheck()

void dbaui::OTableSubscriptionPage::implCompleteTablesCheck ( const css::uno::Sequence< OUString > &  _rTableFilter)
private

Definition at line 146 of file tablespage.cxx.

References CheckAll(), and implCheckTables().

Referenced by implInitControls().

◆ implInitControls()

void dbaui::OTableSubscriptionPage::implInitControls ( const SfxItemSet _rSet,
bool  _bSaveValue 
)
overrideprivatevirtual

◆ implNextSibling()

std::unique_ptr< weld::TreeIter > dbaui::OTableSubscriptionPage::implNextSibling ( const weld::TreeIter pEntry) const
private

returns the next sibling, if not available, the next sibling of the parent, a.s.o.

Definition at line 432 of file tablespage.cxx.

References implNextSibling(), and m_xTablesList.

Referenced by collectDetailedSelection(), and implNextSibling().

Member Data Documentation

◆ m_bCatalogAtStart

bool dbaui::OTableSubscriptionPage::m_bCatalogAtStart
private

Definition at line 36 of file tablespage.hxx.

Referenced by collectDetailedSelection(), and implInitControls().

◆ m_pTablesDlg

OTableSubscriptionDialog* dbaui::OTableSubscriptionPage::m_pTablesDlg
private

valid as long as the page is active

Definition at line 40 of file tablespage.hxx.

Referenced by implInitControls().

◆ m_sCatalogSeparator

OUString dbaui::OTableSubscriptionPage::m_sCatalogSeparator
private

Definition at line 35 of file tablespage.hxx.

Referenced by collectDetailedSelection(), and implInitControls().

◆ m_xCurrentConnection

css::uno::Reference< css::sdbc::XConnection > dbaui::OTableSubscriptionPage::m_xCurrentConnection
private

◆ m_xTables

std::unique_ptr<weld::Widget> dbaui::OTableSubscriptionPage::m_xTables
private

Definition at line 42 of file tablespage.hxx.

Referenced by fillWindows(), and implInitControls().

◆ m_xTablesList

std::unique_ptr<OTableTreeListBox> dbaui::OTableSubscriptionPage::m_xTablesList
private

The documentation for this class was generated from the following files: