LibreOffice Module cui (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
svx::DbRegistrationOptionsPage Class Reference

#include <dbregister.hxx>

Inheritance diagram for svx::DbRegistrationOptionsPage:
[legend]
Collaboration diagram for svx::DbRegistrationOptionsPage:
[legend]

Public Member Functions

 DbRegistrationOptionsPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
 
virtual ~DbRegistrationOptionsPage () override
 
virtual bool FillItemSet (SfxItemSet *rSet) override
 
virtual void Reset (const SfxItemSet *rSet) override
 
virtual void FillUserData () override
 
- 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 ()
 

Static Public Member Functions

static std::unique_ptr< SfxTabPageCreate (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
 
- 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)
 

Private Member Functions

 DECL_LINK (NewHdl, weld::Button &, void)
 
 DECL_LINK (EditHdl, weld::Button &, void)
 
 DECL_LINK (DeleteHdl, weld::Button &, void)
 
 DECL_LINK (PathBoxDoubleClickHdl, weld::TreeView &, bool)
 
 DECL_LINK (PathSelect_Impl, weld::TreeView &, void)
 
 DECL_LINK (HeaderSelect_Impl, int, void)
 
 DECL_LINK (NameValidator, const OUString &, bool)
 
void insertNewEntry (const OUString &_sName, const OUString &_sLocation, const bool bReadOnly)
 inserts a new entry in the tablistbox More...
 
void openLinkDialog (const OUString &sOldName, const OUString &sOldLocation, int nEntry=-1)
 opens the LinkDialog to create a register pair More...
 

Private Attributes

size_t m_nOldCount
 
bool m_bModified
 
std::unique_ptr< weld::Buttonm_xNew
 
std::unique_ptr< weld::Buttonm_xEdit
 
std::unique_ptr< weld::Buttonm_xDelete
 
std::unique_ptr< weld::TreeViewm_xPathBox
 
std::unique_ptr< weld::TreeIterm_xIter
 

Additional Inherited Members

- 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
 

Detailed Description

Definition at line 30 of file dbregister.hxx.

Constructor & Destructor Documentation

◆ DbRegistrationOptionsPage()

svx::DbRegistrationOptionsPage::DbRegistrationOptionsPage ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rSet 
)

◆ ~DbRegistrationOptionsPage()

svx::DbRegistrationOptionsPage::~DbRegistrationOptionsPage ( )
overridevirtual

Definition at line 122 of file dbregister.cxx.

References i, m_xPathBox, and nCount.

Member Function Documentation

◆ Create()

std::unique_ptr< SfxTabPage > svx::DbRegistrationOptionsPage::Create ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rSet 
)
static

◆ DECL_LINK() [1/7]

svx::DbRegistrationOptionsPage::DECL_LINK ( DeleteHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/7]

svx::DbRegistrationOptionsPage::DECL_LINK ( EditHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [3/7]

svx::DbRegistrationOptionsPage::DECL_LINK ( HeaderSelect_Impl  ,
int  ,
void   
)
private

◆ DECL_LINK() [4/7]

svx::DbRegistrationOptionsPage::DECL_LINK ( NameValidator  ,
const OUString &  ,
bool   
)
private

◆ DECL_LINK() [5/7]

svx::DbRegistrationOptionsPage::DECL_LINK ( NewHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [6/7]

svx::DbRegistrationOptionsPage::DECL_LINK ( PathBoxDoubleClickHdl  ,
weld::TreeView ,
bool   
)
private

◆ DECL_LINK() [7/7]

svx::DbRegistrationOptionsPage::DECL_LINK ( PathSelect_Impl  ,
weld::TreeView ,
void   
)
private

◆ FillItemSet()

bool svx::DbRegistrationOptionsPage::FillItemSet ( SfxItemSet rSet)
overridevirtual

◆ FillUserData()

void svx::DbRegistrationOptionsPage::FillUserData ( )
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 193 of file dbregister.cxx.

References COL_TYPE, m_xPathBox, SfxTabPage::SetUserData(), and u.

◆ insertNewEntry()

void svx::DbRegistrationOptionsPage::insertNewEntry ( const OUString &  _sName,
const OUString &  _sLocation,
const bool  bReadOnly 
)
private

inserts a new entry in the tablistbox

Parameters
_sNameThe name of the entry.
_sLocationThe location of the file.

Definition at line 267 of file dbregister.cxx.

References m_xIter, m_xPathBox, sId, and weld::toId().

Referenced by openLinkDialog(), and Reset().

◆ openLinkDialog()

void svx::DbRegistrationOptionsPage::openLinkDialog ( const OUString &  sOldName,
const OUString &  sOldLocation,
int  nEntry = -1 
)
private

opens the LinkDialog to create a register pair

Parameters
sOldNameThe old name of the entry may be empty.
sOldLocationThe old location of the entry may be empty.
nEntryThe entry to remove if the entry will be changed

Definition at line 278 of file dbregister.cxx.

References SfxTabPage::GetFrameWeld(), svx::ODocumentLinkDialog::getLink(), insertNewEntry(), LINK, m_bModified, m_xPathBox, RET_OK, weld::DialogController::run(), svx::ODocumentLinkDialog::setLink(), and svx::ODocumentLinkDialog::setNameValidator().

◆ Reset()

void svx::DbRegistrationOptionsPage::Reset ( const SfxItemSet rSet)
overridevirtual

Member Data Documentation

◆ m_bModified

bool svx::DbRegistrationOptionsPage::m_bModified
private

Definition at line 34 of file dbregister.hxx.

Referenced by FillItemSet(), and openLinkDialog().

◆ m_nOldCount

size_t svx::DbRegistrationOptionsPage::m_nOldCount
private

Definition at line 33 of file dbregister.hxx.

Referenced by FillItemSet(), and Reset().

◆ m_xDelete

std::unique_ptr<weld::Button> svx::DbRegistrationOptionsPage::m_xDelete
private

Definition at line 38 of file dbregister.hxx.

Referenced by DbRegistrationOptionsPage().

◆ m_xEdit

std::unique_ptr<weld::Button> svx::DbRegistrationOptionsPage::m_xEdit
private

Definition at line 37 of file dbregister.hxx.

Referenced by DbRegistrationOptionsPage().

◆ m_xIter

std::unique_ptr<weld::TreeIter> svx::DbRegistrationOptionsPage::m_xIter
private

Definition at line 40 of file dbregister.hxx.

Referenced by insertNewEntry().

◆ m_xNew

std::unique_ptr<weld::Button> svx::DbRegistrationOptionsPage::m_xNew
private

Definition at line 36 of file dbregister.hxx.

Referenced by DbRegistrationOptionsPage().

◆ m_xPathBox

std::unique_ptr<weld::TreeView> svx::DbRegistrationOptionsPage::m_xPathBox
private

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