LibreOffice Module sw (master) 1
|
#include <flddb.hxx>
Public Member Functions | |
SwFieldDBPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet) | |
virtual | ~SwFieldDBPage () override |
virtual bool | FillItemSet (SfxItemSet *rSet) override |
virtual void | Reset (const SfxItemSet *rSet) override |
virtual bool | DeferResetToFirstActivation () override |
virtual void | FillUserData () override |
void | ActivateMailMergeAddress () |
void | SetWrtShell (SwWrtShell &rSh) |
Public Member Functions inherited from SwFieldPage | |
SwFieldPage (weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet *pAttrSet) | |
virtual | ~SwFieldPage () override |
virtual void | Activate () override |
SwFieldMgr & | GetFieldMgr () |
void | SetWrtShell (SwWrtShell *m_pWrtShell) |
void | EditNewField (bool bOnlyActivate=false) |
virtual sal_uInt16 | GetGroup ()=0 |
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 *rAttrSet) |
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) |
Protected Member Functions | |
virtual sal_uInt16 | GetGroup () override |
Protected Member Functions inherited from SwFieldPage | |
sal_Int32 | GetTypeSel () const |
void | SetTypeSel (sal_Int32 nSet) |
sal_Int32 | GetSelectionSel () const |
void | SetSelectionSel (sal_Int32 nSet) |
bool | IsFieldDlgHtmlMode () const |
bool | IsRefresh () const |
SwField * | GetCurField () |
SwWrtShell * | GetWrtShell () |
DECL_LINK (TreeViewInsertHdl, weld::TreeView &, bool) | |
DECL_LINK (NumFormatHdl, weld::TreeView &, bool) | |
void | InsertHdl (weld::Widget *) |
void | Init () |
void | SavePos (const weld::TreeView &rLst1) |
void | RestorePos (weld::TreeView &rLst1) |
void | EnableInsert (bool bEnable) |
bool | IsFieldEdit () const |
void | InsertField (SwFieldTypesEnum nTypeId, sal_uInt16 nSubType, const OUString &rPar1, const OUString &rPar2, sal_uInt32 nFormatId, sal_Unicode cDelim=' ', bool bIsAutomaticLanguage=true) |
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 |
Private Member Functions | |
DECL_LINK (TypeListBoxHdl, weld::TreeView &, void) | |
DECL_LINK (NumSelectHdl, weld::ComboBox &, void) | |
DECL_LINK (TreeSelectHdl, weld::TreeView &, void) | |
DECL_LINK (ModifyHdl, weld::Entry &, void) | |
DECL_LINK (AddDBHdl, weld::Button &, void) | |
void | TypeHdl (const weld::TreeView *) |
void | CheckInsert () |
SwWrtShell * | CheckAndGetWrtShell () |
void | SetWrtShell (SwWrtShell *m_pWrtShell) |
Private Attributes | |
OUString | m_sOldDBName |
OUString | m_sOldTableName |
OUString | m_sOldColumnName |
sal_uInt32 | m_nOldFormat |
sal_uInt16 | m_nOldSubType |
std::unique_ptr< weld::TreeView > | m_xTypeLB |
std::unique_ptr< SwDBTreeList > | m_xDatabaseTLB |
std::unique_ptr< weld::Button > | m_xAddDBPB |
std::unique_ptr< weld::Widget > | m_xCondition |
std::unique_ptr< ConditionEdit > | m_xConditionED |
std::unique_ptr< weld::Widget > | m_xValue |
std::unique_ptr< weld::Entry > | m_xValueED |
std::unique_ptr< weld::RadioButton > | m_xDBFormatRB |
std::unique_ptr< weld::RadioButton > | m_xNewFormatRB |
std::unique_ptr< NumFormatListBox > | m_xNumFormatLB |
std::unique_ptr< weld::ComboBox > | m_xFormatLB |
std::unique_ptr< weld::Widget > | m_xFormat |
SwFieldDBPage::SwFieldDBPage | ( | weld::Container * | pPage, |
weld::DialogController * | pController, | ||
const SfxItemSet * | rSet | ||
) |
Definition at line 33 of file flddb.cxx.
References FIELD_COLUMN_WIDTH, LINK, m_xAddDBPB, m_xDatabaseTLB, m_xFormatLB, m_xNumFormatLB, m_xTypeLB, m_xValueED, and SwFieldPage::SetTypeSel().
|
overridevirtual |
Definition at line 73 of file flddb.cxx.
References CheckAndGetWrtShell(), and SwDBManager::RevokeLastRegistrations().
void SwFieldDBPage::ActivateMailMergeAddress | ( | ) |
Definition at line 514 of file flddb.cxx.
References Database, m_xDatabaseTLB, m_xTypeLB, SwDBData::sCommand, SwDBData::sDataSource, SW_MOD, and u.
|
private |
Definition at line 529 of file flddb.cxx.
References GetActiveWrtShell(), SwFieldPage::GetWrtShell(), and SetWrtShell().
Referenced by FillItemSet(), Reset(), TypeHdl(), and ~SwFieldDBPage().
|
private |
Definition at line 419 of file flddb.cxx.
References Database, DatabaseNumberSet, SwFieldPage::EnableInsert(), SwFieldPage::GetTypeSel(), m_xDatabaseTLB, m_xTypeLB, and m_xValueED.
Referenced by TypeHdl().
|
static |
Definition at line 262 of file flddb.cxx.
Referenced by SwFieldEditDlg::CreatePage(), and SwFieldDlg::SwFieldDlg().
|
private |
|
private |
|
private |
|
private |
|
private |
|
overridevirtual |
Reimplemented from SfxTabPage.
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 190 of file flddb.cxx.
References SL::aData, aName, CheckAndGetWrtShell(), SwDBManager::CommitLastRegistrations(), Database, DatabaseSetNumber, DB_DELIM, SwFieldPage::GetTypeSel(), SwFieldPage::InsertField(), SwFieldPage::IsFieldEdit(), m_nOldFormat, m_nOldSubType, m_sOldColumnName, m_sOldDBName, m_sOldTableName, m_xConditionED, m_xDatabaseTLB, m_xFormatLB, m_xNewFormatRB, m_xNumFormatLB, m_xTypeLB, m_xValueED, and nsSwExtendedSubType::SUB_OWN_FMT.
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 506 of file flddb.cxx.
References m_xTypeLB, SfxTabPage::SetUserData(), and USER_DATA_VERSION.
|
overrideprotectedvirtual |
Implements SwFieldPage.
Definition at line 268 of file flddb.cxx.
References GRP_DB.
Referenced by Reset().
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 86 of file flddb.cxx.
References CheckAndGetWrtShell(), DatabaseSetNumber, o3tl::equalsIgnoreAsciiCase(), SwFieldPage::GetCurField(), SwFieldPage::GetFieldMgr(), SwField::GetFormat(), SwFieldMgr::GetFormatCount(), SwFieldMgr::GetFormatId(), GetGroup(), SwFieldMgr::GetGroupRange(), SwFieldMgr::GetPos(), SwField::GetSubType(), o3tl::getToken(), SwField::GetTypeId(), SwFieldMgr::GetTypeId(), SwFieldPage::GetTypeSel(), SwFieldMgr::GetTypeStr(), SfxTabPage::GetUserData(), i, SwFieldPage::Init(), SwFieldPage::IsFieldDlgHtmlMode(), SwFieldPage::IsFieldEdit(), SwFieldPage::IsRefresh(), LINK, m_nOldFormat, m_nOldSubType, m_sOldColumnName, m_sOldDBName, m_sOldTableName, m_xConditionED, m_xDatabaseTLB, m_xFormatLB, m_xTypeLB, m_xValueED, SwFieldGroupRgn::nEnd, SwFieldGroupRgn::nStart, SwDBData::sCommand, SwDBData::sDataSource, sId, SVX_NUM_ARABIC, o3tl::toInt32(), TypeHdl(), u, and USER_DATA_VERSION_1.
void SwFieldDBPage::SetWrtShell | ( | SwWrtShell & | rSh | ) |
Definition at line 522 of file flddb.cxx.
References m_xDatabaseTLB, and SwFieldPage::SetWrtShell().
Referenced by CheckAndGetWrtShell().
|
private |
Definition at line 82 of file fldpage.cxx.
|
private |
Definition at line 278 of file flddb.cxx.
References SL::aData, CheckAndGetWrtShell(), CheckInsert(), Database, DatabaseName, DatabaseNextSet, DatabaseNumberSet, DatabaseSetNumber, SwFieldPage::GetCurField(), SwField::GetFormat(), SwField::GetPar1(), SwField::GetPar2(), SwField::GetSubType(), SwField::GetTyp(), SwFieldPage::GetTypeSel(), SwFieldPage::IsFieldEdit(), m_xCondition, m_xConditionED, m_xDatabaseTLB, m_xDBFormatRB, m_xFormat, m_xFormatLB, m_xNewFormatRB, m_xNumFormatLB, m_xTypeLB, m_xValue, m_xValueED, SAL_MAX_UINT32, weld::Widget::set_accessible_relation_labeled_by(), SwFieldPage::SetTypeSel(), and nsSwExtendedSubType::SUB_OWN_FMT.
Referenced by Reset().
|
private |
Definition at line 33 of file flddb.hxx.
Referenced by FillItemSet(), and Reset().
|
private |
Definition at line 34 of file flddb.hxx.
Referenced by FillItemSet(), and Reset().
|
private |
Definition at line 32 of file flddb.hxx.
Referenced by FillItemSet(), and Reset().
|
private |
Definition at line 30 of file flddb.hxx.
Referenced by FillItemSet(), and Reset().
|
private |
Definition at line 31 of file flddb.hxx.
Referenced by FillItemSet(), and Reset().
|
private |
Definition at line 38 of file flddb.hxx.
Referenced by SwFieldDBPage().
|
private |
|
private |
Definition at line 40 of file flddb.hxx.
Referenced by FillItemSet(), Reset(), and TypeHdl().
|
private |
Definition at line 37 of file flddb.hxx.
Referenced by ActivateMailMergeAddress(), CheckInsert(), FillItemSet(), Reset(), SetWrtShell(), SwFieldDBPage(), and TypeHdl().
|
private |
|
private |
|
private |
Definition at line 46 of file flddb.hxx.
Referenced by FillItemSet(), Reset(), SwFieldDBPage(), and TypeHdl().
|
private |
Definition at line 44 of file flddb.hxx.
Referenced by FillItemSet(), and TypeHdl().
|
private |
Definition at line 45 of file flddb.hxx.
Referenced by FillItemSet(), SwFieldDBPage(), and TypeHdl().
|
private |
Definition at line 36 of file flddb.hxx.
Referenced by ActivateMailMergeAddress(), CheckInsert(), FillItemSet(), FillUserData(), Reset(), SwFieldDBPage(), and TypeHdl().
|
private |
|
private |
Definition at line 42 of file flddb.hxx.
Referenced by CheckInsert(), FillItemSet(), Reset(), SwFieldDBPage(), and TypeHdl().