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 (TabPageParent pParent, const SfxItemSet &rSet)
 
virtual ~DbRegistrationOptionsPage () override
 
virtual void dispose () 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
 
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 ()
 
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 SfxItemSetGetDialogExampleSet () const
 
OString GetConfigId () const
 
weld::WindowGetDialogFrameWeld () const
 

Static Public Member Functions

static VclPtr< SfxTabPageCreate (TabPageParent pParent, 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 &, void)
 
 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 (vcl::Window *pParent, const OString &rID, const OUString &rUIXMLDescription, const SfxItemSet *rAttrSet)
 
 SfxTabPage (TabPageParent pParent, 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
 
- Protected Attributes inherited from SfxTabPage
std::unique_ptr< weld::Builderm_xBuilder
 
std::unique_ptr< weld::Containerm_xContainer
 

Detailed Description

Definition at line 38 of file dbregister.hxx.

Constructor & Destructor Documentation

svx::DbRegistrationOptionsPage::DbRegistrationOptionsPage ( TabPageParent  pParent,
const SfxItemSet rSet 
)
svx::DbRegistrationOptionsPage::~DbRegistrationOptionsPage ( )
overridevirtual

Definition at line 126 of file dbregister.cxx.

Member Function Documentation

VclPtr< SfxTabPage > svx::DbRegistrationOptionsPage::Create ( TabPageParent  pParent,
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 ,
void   
)
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
void svx::DbRegistrationOptionsPage::dispose ( void  )
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 131 of file dbregister.cxx.

References SfxTabPage::dispose(), i, and m_xPathBox.

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

Reimplemented from SfxTabPage.

Definition at line 201 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 274 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 285 of file dbregister.cxx.

References SfxTabPage::GetDialogFrameWeld(), 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 42 of file dbregister.hxx.

Referenced by FillItemSet(), and openLinkDialog().

sal_uLong svx::DbRegistrationOptionsPage::m_nOldCount
private

Definition at line 41 of file dbregister.hxx.

Referenced by FillItemSet(), and Reset().

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

Definition at line 46 of file dbregister.hxx.

Referenced by DbRegistrationOptionsPage().

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

Definition at line 45 of file dbregister.hxx.

Referenced by DbRegistrationOptionsPage().

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

Definition at line 48 of file dbregister.hxx.

Referenced by insertNewEntry().

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

Definition at line 44 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: