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
 
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 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
 
OString GetHelpId () const
 
OString GetConfigId () const
 
bool IsVisible () const
 
weld::WindowGetFrameWeld () const
 

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

sal_uLong 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 OString &rID, const SfxItemSet *rAttrSet)
 
sal_uInt16 GetWhich (sal_uInt16 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

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

Definition at line 82 of file dbregister.cxx.

References HID_DBPATH_CTL_PATH, LINK, m_xDelete, m_xEdit, m_xNew, and m_xPathBox.

svx::DbRegistrationOptionsPage::~DbRegistrationOptionsPage ( )
overridevirtual

Definition at line 113 of file dbregister.cxx.

References i, and m_xPathBox.

Member Function Documentation

std::unique_ptr< SfxTabPage > svx::DbRegistrationOptionsPage::Create ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rSet 
)
static
svx::DbRegistrationOptionsPage::DECL_LINK ( NewHdl  ,
weld::Button ,
void   
)
private
svx::DbRegistrationOptionsPage::DECL_LINK ( EditHdl  ,
weld::Button ,
void   
)
private
svx::DbRegistrationOptionsPage::DECL_LINK ( DeleteHdl  ,
weld::Button ,
void   
)
private
svx::DbRegistrationOptionsPage::DECL_LINK ( PathBoxDoubleClickHdl  ,
weld::TreeView ,
bool   
)
private
svx::DbRegistrationOptionsPage::DECL_LINK ( PathSelect_Impl  ,
weld::TreeView ,
void   
)
private
svx::DbRegistrationOptionsPage::DECL_LINK ( HeaderSelect_Impl  ,
int  ,
void   
)
private
svx::DbRegistrationOptionsPage::DECL_LINK ( NameValidator  ,
const OUString &  ,
bool   
)
private
bool svx::DbRegistrationOptionsPage::FillItemSet ( SfxItemSet rSet)
overridevirtual
void svx::DbRegistrationOptionsPage::FillUserData ( )
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 182 of file dbregister.cxx.

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

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 256 of file dbregister.cxx.

References m_xIter, m_xPathBox, and sId.

Referenced by openLinkDialog(), and Reset().

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 267 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().

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

Member Data Documentation

bool svx::DbRegistrationOptionsPage::m_bModified
private

Definition at line 34 of file dbregister.hxx.

Referenced by FillItemSet(), and openLinkDialog().

sal_uLong svx::DbRegistrationOptionsPage::m_nOldCount
private

Definition at line 33 of file dbregister.hxx.

Referenced by FillItemSet(), and Reset().

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

Definition at line 38 of file dbregister.hxx.

Referenced by DbRegistrationOptionsPage().

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

Definition at line 37 of file dbregister.hxx.

Referenced by DbRegistrationOptionsPage().

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

Definition at line 40 of file dbregister.hxx.

Referenced by insertNewEntry().

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

Definition at line 36 of file dbregister.hxx.

Referenced by DbRegistrationOptionsPage().

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

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