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

#include <advancedsettings.hxx>

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

Public Member Functions

 DECL_LINK (OnToggleHdl, weld::Toggleable &, void)
 
 DECL_LINK (OnTriStateToggleHdl, weld::Toggleable &, void)
 
virtual bool FillItemSet (SfxItemSet *_rCoreAttrs) override
 
 SpecialSettingsPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &_rCoreAttrs, const DataSourceMetaData &_rDSMeta)
 
virtual ~SpecialSettingsPage () 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 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...
 
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 (BooleanComparisonSelectHdl, weld::ComboBox &, void)
 

Private Attributes

std::unique_ptr< weld::CheckButtonm_xIsSQL92Check
 
std::unique_ptr< weld::CheckButtonm_xAppendTableAlias
 
std::unique_ptr< weld::CheckButtonm_xAsBeforeCorrelationName
 
std::unique_ptr< weld::CheckButtonm_xEnableOuterJoin
 
std::unique_ptr< weld::CheckButtonm_xIgnoreDriverPrivileges
 
std::unique_ptr< weld::CheckButtonm_xParameterSubstitution
 
std::unique_ptr< weld::CheckButtonm_xSuppressVersionColumn
 
std::unique_ptr< weld::CheckButtonm_xCatalog
 
std::unique_ptr< weld::CheckButtonm_xSchema
 
std::unique_ptr< weld::CheckButtonm_xIndexAppendix
 
std::unique_ptr< weld::CheckButtonm_xDosLineEnds
 
std::unique_ptr< weld::CheckButtonm_xCheckRequiredFields
 
std::unique_ptr< weld::CheckButtonm_xIgnoreCurrency
 
std::unique_ptr< weld::CheckButtonm_xEscapeDateTime
 
std::unique_ptr< weld::CheckButtonm_xPrimaryKeySupport
 
std::unique_ptr< weld::CheckButtonm_xRespectDriverResultSetType
 
std::unique_ptr< weld::Labelm_xBooleanComparisonModeLabel
 
std::unique_ptr< weld::ComboBoxm_xBooleanComparisonMode
 
std::unique_ptr< weld::Labelm_xMaxRowScanLabel
 
std::unique_ptr< weld::SpinButtonm_xMaxRowScan
 
std::map< weld::Toggleable *, TriStatem_aTriStates
 
std::vector< BooleanSettingDescm_aBooleanSettings
 
bool m_bHasBooleanComparisonMode
 
bool m_bHasMaxRowScan
 

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 32 of file advancedsettings.hxx.

Constructor & Destructor Documentation

◆ SpecialSettingsPage()

dbaui::SpecialSettingsPage::SpecialSettingsPage ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet _rCoreAttrs,
const DataSourceMetaData _rDSMeta 
)

Definition at line 56 of file advancedsettings.cxx.

References DSID_SQL92CHECK, and m_xIsSQL92Check.

◆ ~SpecialSettingsPage()

dbaui::SpecialSettingsPage::~SpecialSettingsPage ( )
overridevirtual

Definition at line 151 of file advancedsettings.cxx.

Member Function Documentation

◆ DECL_LINK() [1/3]

dbaui::SpecialSettingsPage::DECL_LINK ( BooleanComparisonSelectHdl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [2/3]

dbaui::SpecialSettingsPage::DECL_LINK ( OnToggleHdl  ,
weld::Toggleable ,
void   
)

◆ DECL_LINK() [3/3]

dbaui::SpecialSettingsPage::DECL_LINK ( OnTriStateToggleHdl  ,
weld::Toggleable ,
void   
)

◆ fillControls()

void dbaui::SpecialSettingsPage::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 167 of file advancedsettings.cxx.

◆ FillItemSet()

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

Reimplemented from SfxTabPage.

Definition at line 257 of file advancedsettings.cxx.

References DSID_BOOLEANCOMPARISON, DSID_MAX_ROW_SCAN, and SfxItemSet::Put().

◆ fillWindows()

void dbaui::SpecialSettingsPage::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 155 of file advancedsettings.cxx.

◆ implInitControls()

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

called from within Reset and ActivatePage, use to initialize the controls with the items from the given set

Parameters
_bSaveValueif set to sal_True, the implementation should call SaveValue on all relevant controls

Reimplemented from dbaui::OGenericAdministrationPage.

Definition at line 183 of file advancedsettings.cxx.

References DSID_BOOLEANCOMPARISON, DSID_MAX_ROW_SCAN, SfxItemSet::GetItem(), CntInt32Item::GetValue(), and TRISTATE_INDET.

Member Data Documentation

◆ m_aBooleanSettings

std::vector< BooleanSettingDesc > dbaui::SpecialSettingsPage::m_aBooleanSettings
private

Definition at line 59 of file advancedsettings.hxx.

◆ m_aTriStates

std::map<weld::Toggleable*, TriState> dbaui::SpecialSettingsPage::m_aTriStates
private

Definition at line 57 of file advancedsettings.hxx.

◆ m_bHasBooleanComparisonMode

bool dbaui::SpecialSettingsPage::m_bHasBooleanComparisonMode
private

Definition at line 61 of file advancedsettings.hxx.

◆ m_bHasMaxRowScan

bool dbaui::SpecialSettingsPage::m_bHasMaxRowScan
private

Definition at line 62 of file advancedsettings.hxx.

◆ m_xAppendTableAlias

std::unique_ptr<weld::CheckButton> dbaui::SpecialSettingsPage::m_xAppendTableAlias
private

Definition at line 35 of file advancedsettings.hxx.

◆ m_xAsBeforeCorrelationName

std::unique_ptr<weld::CheckButton> dbaui::SpecialSettingsPage::m_xAsBeforeCorrelationName
private

Definition at line 36 of file advancedsettings.hxx.

◆ m_xBooleanComparisonMode

std::unique_ptr<weld::ComboBox> dbaui::SpecialSettingsPage::m_xBooleanComparisonMode
private

Definition at line 52 of file advancedsettings.hxx.

◆ m_xBooleanComparisonModeLabel

std::unique_ptr<weld::Label> dbaui::SpecialSettingsPage::m_xBooleanComparisonModeLabel
private

Definition at line 51 of file advancedsettings.hxx.

◆ m_xCatalog

std::unique_ptr<weld::CheckButton> dbaui::SpecialSettingsPage::m_xCatalog
private

Definition at line 41 of file advancedsettings.hxx.

◆ m_xCheckRequiredFields

std::unique_ptr<weld::CheckButton> dbaui::SpecialSettingsPage::m_xCheckRequiredFields
private

Definition at line 45 of file advancedsettings.hxx.

◆ m_xDosLineEnds

std::unique_ptr<weld::CheckButton> dbaui::SpecialSettingsPage::m_xDosLineEnds
private

Definition at line 44 of file advancedsettings.hxx.

◆ m_xEnableOuterJoin

std::unique_ptr<weld::CheckButton> dbaui::SpecialSettingsPage::m_xEnableOuterJoin
private

Definition at line 37 of file advancedsettings.hxx.

◆ m_xEscapeDateTime

std::unique_ptr<weld::CheckButton> dbaui::SpecialSettingsPage::m_xEscapeDateTime
private

Definition at line 47 of file advancedsettings.hxx.

◆ m_xIgnoreCurrency

std::unique_ptr<weld::CheckButton> dbaui::SpecialSettingsPage::m_xIgnoreCurrency
private

Definition at line 46 of file advancedsettings.hxx.

◆ m_xIgnoreDriverPrivileges

std::unique_ptr<weld::CheckButton> dbaui::SpecialSettingsPage::m_xIgnoreDriverPrivileges
private

Definition at line 38 of file advancedsettings.hxx.

◆ m_xIndexAppendix

std::unique_ptr<weld::CheckButton> dbaui::SpecialSettingsPage::m_xIndexAppendix
private

Definition at line 43 of file advancedsettings.hxx.

◆ m_xIsSQL92Check

std::unique_ptr<weld::CheckButton> dbaui::SpecialSettingsPage::m_xIsSQL92Check
private

Definition at line 34 of file advancedsettings.hxx.

Referenced by SpecialSettingsPage().

◆ m_xMaxRowScan

std::unique_ptr<weld::SpinButton> dbaui::SpecialSettingsPage::m_xMaxRowScan
private

Definition at line 55 of file advancedsettings.hxx.

◆ m_xMaxRowScanLabel

std::unique_ptr<weld::Label> dbaui::SpecialSettingsPage::m_xMaxRowScanLabel
private

Definition at line 54 of file advancedsettings.hxx.

◆ m_xParameterSubstitution

std::unique_ptr<weld::CheckButton> dbaui::SpecialSettingsPage::m_xParameterSubstitution
private

Definition at line 39 of file advancedsettings.hxx.

◆ m_xPrimaryKeySupport

std::unique_ptr<weld::CheckButton> dbaui::SpecialSettingsPage::m_xPrimaryKeySupport
private

Definition at line 48 of file advancedsettings.hxx.

◆ m_xRespectDriverResultSetType

std::unique_ptr<weld::CheckButton> dbaui::SpecialSettingsPage::m_xRespectDriverResultSetType
private

Definition at line 49 of file advancedsettings.hxx.

◆ m_xSchema

std::unique_ptr<weld::CheckButton> dbaui::SpecialSettingsPage::m_xSchema
private

Definition at line 42 of file advancedsettings.hxx.

◆ m_xSuppressVersionColumn

std::unique_ptr<weld::CheckButton> dbaui::SpecialSettingsPage::m_xSuppressVersionColumn
private

Definition at line 40 of file advancedsettings.hxx.


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