LibreOffice Module cui (master) 1
|
#include <dbregister.hxx>
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 SfxItemSet & | GetItemSet () 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 SfxItemSet * | GetDialogExampleSet () const |
OUString | GetHelpId () const |
OUString | GetConfigId () const |
bool | IsVisible () const |
weld::Window * | GetFrameWeld () const |
std::unordered_map< OUString, css::uno::Any > & | getAdditionalProperties () |
Static Public Member Functions | |
static std::unique_ptr< SfxTabPage > | Create (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet) |
Static Public Member Functions inherited from SfxTabPage | |
static const SfxPoolItem * | GetItem (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::Button > | m_xNew |
std::unique_ptr< weld::Button > | m_xEdit |
std::unique_ptr< weld::Button > | m_xDelete |
std::unique_ptr< weld::TreeView > | m_xPathBox |
std::unique_ptr< weld::TreeIter > | m_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 SfxPoolItem * | GetOldItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true) |
const T * | GetOldItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true) |
SfxOkDialogController * | GetDialogController () const |
Definition at line 30 of file dbregister.hxx.
svx::DbRegistrationOptionsPage::DbRegistrationOptionsPage | ( | weld::Container * | pPage, |
weld::DialogController * | pController, | ||
const SfxItemSet & | rSet | ||
) |
Definition at line 89 of file dbregister.cxx.
References Size::Height(), HID_DBPATH_CTL_PATH, LINK, m_xDelete, m_xEdit, m_xNew, m_xPathBox, rSet, and Size::Width().
|
overridevirtual |
Definition at line 122 of file dbregister.cxx.
References i, m_xPathBox, and nCount.
|
static |
Definition at line 128 of file dbregister.cxx.
Referenced by CreateGeneralTabPage(), and svx::DatabaseRegistrationDialog::DatabaseRegistrationDialog().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 134 of file dbregister.cxx.
References svx::DatabaseRegistration::bReadOnly, i, m_bModified, m_nOldCount, m_xPathBox, nCount, SfxItemSet::Put(), SID_SB_DB_REGISTER, svx::DatabaseRegistration::sLocation, and sName.
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 193 of file dbregister.cxx.
References COL_TYPE, m_xPathBox, SfxTabPage::SetUserData(), and u.
|
private |
inserts a new entry in the tablistbox
_sName | The name of the entry. |
_sLocation | The 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().
|
private |
opens the LinkDialog to create a register pair
sOldName | The old name of the entry may be empty. |
sOldLocation | The old location of the entry may be empty. |
nEntry | The 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().
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 159 of file dbregister.cxx.
References COL_TYPE, SfxItemSet::GetItem(), svx::DatabaseMapItem::getRegistrations(), o3tl::getToken(), SfxTabPage::GetUserData(), insertNewEntry(), m_nOldCount, m_xPathBox, rSet, SID_SB_DB_REGISTER, o3tl::toInt32(), TRISTATE_FALSE, and TRISTATE_TRUE.
|
private |
Definition at line 34 of file dbregister.hxx.
Referenced by FillItemSet(), and openLinkDialog().
|
private |
Definition at line 33 of file dbregister.hxx.
Referenced by FillItemSet(), and Reset().
|
private |
Definition at line 38 of file dbregister.hxx.
Referenced by DbRegistrationOptionsPage().
|
private |
Definition at line 37 of file dbregister.hxx.
Referenced by DbRegistrationOptionsPage().
|
private |
Definition at line 40 of file dbregister.hxx.
Referenced by insertNewEntry().
|
private |
Definition at line 36 of file dbregister.hxx.
Referenced by DbRegistrationOptionsPage().
|
private |
Definition at line 39 of file dbregister.hxx.
Referenced by DbRegistrationOptionsPage(), FillItemSet(), FillUserData(), insertNewEntry(), openLinkDialog(), Reset(), and ~DbRegistrationOptionsPage().