LibreOffice Module sw (master) 1
|
#include <fldpage.hxx>
Public Member Functions | |
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 () |
Protected Member Functions | |
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 Attributes | |
OUString | m_aLstStrArr [coLBCount] |
SwFieldMgr | m_aMgr |
SwField * | m_pCurField |
SwWrtShell * | m_pWrtShell |
sal_Int32 | m_nTypeSel |
sal_Int32 | m_nSelectionSel |
bool | m_bFieldEdit |
bool | m_bInsert |
bool | m_bFieldDlgHtmlMode |
bool | m_bRefresh |
bool | m_bFirstHTMLInit |
Additional Inherited Members | |
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) |
Definition at line 29 of file fldpage.hxx.
SwFieldPage::SwFieldPage | ( | weld::Container * | pPage, |
weld::DialogController * | pController, | ||
const OUString & | rUIXMLDescription, | ||
const OUString & | rID, | ||
const SfxItemSet * | pAttrSet | ||
) |
Definition at line 44 of file fldpage.cxx.
|
overridevirtual |
Definition at line 59 of file fldpage.cxx.
|
overridevirtual |
Definition at line 99 of file fldpage.cxx.
References EnableInsert(), and m_bInsert.
|
protected |
|
protected |
void SwFieldPage::EditNewField | ( | bool | bOnlyActivate = false | ) |
Definition at line 105 of file fldpage.cxx.
References m_bRefresh, m_nSelectionSel, m_nTypeSel, and SfxTabPage::Reset().
Referenced by IMPL_LINK(), and SwFieldDlg::ReInitTabPage().
|
protected |
Definition at line 322 of file fldpage.cxx.
References SwFieldEditDlg::EnableInsert(), SfxTabPage::GetDialogController(), and m_bInsert.
Referenced by Activate(), SwFieldDBPage::CheckInsert(), SwFieldDokInfPage::FillSelectionLB(), SwFieldVarPage::SubTypeHdl(), and SwFieldFuncPage::UpdateSubType().
|
inlineprotected |
Definition at line 51 of file fldpage.hxx.
References m_pCurField.
Referenced by SwFieldRefPage::FillFormatLB(), SwFieldDokPage::FillFormatLB(), SwFieldVarPage::FillFormatLB(), SwFieldFuncPage::FillItemSet(), SwFieldRefPage::FillItemSet(), SwFieldDokInfPage::FillSelectionLB(), SwFieldDBPage::Reset(), SwFieldDokInfPage::Reset(), SwFieldDokPage::Reset(), SwFieldFuncPage::Reset(), SwFieldVarPage::Reset(), SwFieldVarPage::SubTypeHdl(), SwFieldDBPage::TypeHdl(), SwFieldVarPage::UpdateSubType(), and SwFieldRefPage::UpdateSubType().
|
inline |
Definition at line 81 of file fldpage.hxx.
References m_aMgr.
Referenced by SwFieldRefPage::FillFormatLB(), SwFieldDokPage::FillFormatLB(), SwFieldVarPage::FillFormatLB(), SwFieldFuncPage::FillItemSet(), SwFieldRefPage::FillItemSet(), SwFieldVarPage::FillItemSet(), SwFieldDokInfPage::FillSelectionLB(), IMPL_LINK(), IMPL_LINK_NOARG(), SwFieldEditDlg::Init(), SwFieldDBPage::Reset(), SwFieldDokInfPage::Reset(), SwFieldFuncPage::Reset(), SwFieldVarPage::SubTypeHdl(), SwFieldFuncPage::UpdateSubType(), SwFieldVarPage::UpdateSubType(), and SwFieldRefPage::UpdateSubType().
|
pure virtual |
Implemented in SwFieldDBPage, SwFieldDokInfPage, SwFieldDokPage, SwFieldFuncPage, SwFieldRefPage, and SwFieldVarPage.
Referenced by IMPL_LINK().
|
inlineprotected |
Definition at line 47 of file fldpage.hxx.
References m_nSelectionSel.
Referenced by SwFieldVarPage::UpdateSubType().
|
inlineprotected |
Definition at line 45 of file fldpage.hxx.
References m_nTypeSel.
Referenced by SwFieldDBPage::CheckInsert(), SwFieldDBPage::FillItemSet(), SwFieldDokPage::FillItemSet(), SwFieldFuncPage::FillItemSet(), SwFieldRefPage::FillItemSet(), SwFieldVarPage::FillItemSet(), SwFieldDBPage::Reset(), SwFieldRefPage::SaveSelectedTextNode(), SwFieldRefPage::SubTypeHdl(), SwFieldVarPage::SubTypeHdl(), SwFieldDBPage::TypeHdl(), SwFieldFuncPage::UpdateSubType(), SwFieldVarPage::UpdateSubType(), and SwFieldRefPage::UpdateSubType().
|
inlineprotected |
Definition at line 52 of file fldpage.hxx.
References m_pWrtShell.
Referenced by SwFieldDBPage::CheckAndGetWrtShell(), SwFieldRefPage::FillItemSet(), SwFieldVarPage::FillItemSet(), SwFieldDokInfPage::Reset(), SwFieldDokPage::Reset(), SwFieldRefPage::Reset(), SwFieldVarPage::Reset(), SwFieldRefPage::SubTypeHdl(), SwFieldVarPage::SubTypeHdl(), and SwFieldRefPage::UpdateSubType().
|
protected |
Definition at line 64 of file fldpage.cxx.
References SfxObjectShell::Current(), SwFieldMgr::GetCurField(), SfxTabPage::GetDialogController(), GetHtmlMode(), HTMLMODE_ON, m_aMgr, m_bFieldDlgHtmlMode, m_bFieldEdit, m_bFirstHTMLInit, and m_pCurField.
Referenced by SwFieldDBPage::Reset(), SwFieldDokInfPage::Reset(), SwFieldDokPage::Reset(), SwFieldFuncPage::Reset(), SwFieldRefPage::Reset(), and SwFieldVarPage::Reset().
|
protected |
Definition at line 116 of file fldpage.cxx.
References SL::aData, SfxRequest::AppendItem(), SwField::CopyField(), Database, DatabaseName, DatabaseNextSet, DatabaseNumberSet, DatabaseSetNumber, Date, DATE_VAR, DATEFLD, DB_DELIM, nsSwDocInfoSubType::DI_CUSTOM, DocumentInfo, SfxRequest::Done(), SwEditShell::EndAllAction(), SwFieldMgr::EvalExpFields(), FIXEDFLD, FN_INSERT_DBFIELD, FN_INSERT_FIELD, FN_PARAM_FIELD_FORMAT, FN_PARAM_FIELD_SUBTYPE, FN_PARAM_FIELD_TYPE, GetActiveView(), SfxViewFrame::GetBindings(), SwFieldMgr::GetCurField(), SfxTabPage::GetDialogController(), SwViewShell::GetDoc(), SwFieldMgr::GetFieldType(), SfxOkDialogController::GetOKButton(), SwSetExpField::GetPar2(), SfxBindings::GetRecorder(), o3tl::getToken(), SfxViewShell::GetViewFrame(), SwView::GetWrtShellPtr(), nsSwGetSetExpType::GSE_SEQ, HiddenParagraph, HiddenText, INP_TXT, Input, SwFieldMgr::InsertField(), SwEditShell::InsertFieldType(), IsFieldEdit(), m_aMgr, m_pCurField, m_pWrtShell, nPos, Sequence, SwSetExpFieldType::SetDelimiter(), SwDocInfoField::SetName(), SwSetExpFieldType::SetOutlineLvl(), SwSetExpField::SetPromptText(), SwEditShell::SetUndoNoResetModified(), SwEditShell::StartAllAction(), Time, TIMEFLD, o3tl::toInt32(), SwFieldMgr::UpdateCurField(), and User.
Referenced by SwFieldDBPage::FillItemSet(), SwFieldDokInfPage::FillItemSet(), SwFieldDokPage::FillItemSet(), SwFieldFuncPage::FillItemSet(), SwFieldRefPage::FillItemSet(), and SwFieldVarPage::FillItemSet().
|
protected |
Definition at line 305 of file fldpage.cxx.
References SfxTabPage::GetDialogController(), weld::Widget::grab_focus(), and SwFieldEditDlg::InsertHdl().
|
inlineprotected |
Definition at line 49 of file fldpage.hxx.
References m_bFieldDlgHtmlMode.
Referenced by SwFieldRefPage::FillFormatLB(), SwFieldDokPage::FillFormatLB(), SwFieldVarPage::FillFormatLB(), SwFieldVarPage::FillItemSet(), SwFieldDokInfPage::FillSelectionLB(), SwFieldDBPage::Reset(), SwFieldDokInfPage::Reset(), SwFieldDokPage::Reset(), SwFieldFuncPage::Reset(), SwFieldRefPage::Reset(), SwFieldVarPage::Reset(), and SwFieldVarPage::SubTypeHdl().
|
inlineprotected |
Definition at line 62 of file fldpage.hxx.
References m_bFieldEdit.
Referenced by SwFieldRefPage::FillFormatLB(), SwFieldDokPage::FillFormatLB(), SwFieldVarPage::FillFormatLB(), SwFieldDBPage::FillItemSet(), SwFieldDokInfPage::FillItemSet(), SwFieldDokPage::FillItemSet(), SwFieldFuncPage::FillItemSet(), SwFieldRefPage::FillItemSet(), SwFieldVarPage::FillItemSet(), SwFieldDokInfPage::FillSelectionLB(), InsertField(), SwFieldDBPage::Reset(), SwFieldDokInfPage::Reset(), SwFieldDokPage::Reset(), SwFieldFuncPage::Reset(), SwFieldRefPage::Reset(), SwFieldVarPage::Reset(), SwFieldRefPage::SubTypeHdl(), SwFieldVarPage::SubTypeHdl(), SwFieldDBPage::TypeHdl(), SwFieldVarPage::UpdateSubType(), and SwFieldRefPage::UpdateSubType().
|
inlineprotected |
Definition at line 50 of file fldpage.hxx.
References m_bRefresh.
Referenced by SwFieldDBPage::Reset(), SwFieldDokPage::Reset(), SwFieldFuncPage::Reset(), SwFieldRefPage::Reset(), SwFieldVarPage::Reset(), and SwFieldVarPage::SubTypeHdl().
|
protected |
Definition at line 290 of file fldpage.cxx.
References weld::TreeView::find_text(), m_aLstStrArr, weld::TreeView::n_children(), nPos, and weld::TreeView::select().
Referenced by SwFieldDokPage::Reset(), SwFieldFuncPage::Reset(), SwFieldRefPage::Reset(), and SwFieldVarPage::Reset().
|
protected |
Definition at line 280 of file fldpage.cxx.
References weld::TreeView::get_selected_text(), m_aLstStrArr, and weld::TreeView::n_children().
Referenced by SwFieldDokPage::Reset(), SwFieldFuncPage::Reset(), SwFieldRefPage::Reset(), and SwFieldVarPage::Reset().
|
inlineprotected |
Definition at line 48 of file fldpage.hxx.
References m_nSelectionSel.
Referenced by SwFieldRefPage::Reset(), and SwFieldVarPage::UpdateSubType().
|
inlineprotected |
Definition at line 46 of file fldpage.hxx.
References m_nTypeSel.
Referenced by SwFieldRefPage::Reset(), SwFieldDBPage::SwFieldDBPage(), and SwFieldDBPage::TypeHdl().
void SwFieldPage::SetWrtShell | ( | SwWrtShell * | m_pWrtShell | ) |
Definition at line 344 of file fldpage.cxx.
References m_aMgr, m_pWrtShell, and SwFieldMgr::SetWrtShell().
Referenced by SwFieldDBPage::SetWrtShell().
|
private |
Definition at line 31 of file fldpage.hxx.
Referenced by RestorePos(), and SavePos().
|
private |
Definition at line 32 of file fldpage.hxx.
Referenced by GetFieldMgr(), Init(), InsertField(), and SetWrtShell().
|
private |
Definition at line 39 of file fldpage.hxx.
Referenced by Init(), and IsFieldDlgHtmlMode().
|
private |
Definition at line 37 of file fldpage.hxx.
Referenced by Init(), and IsFieldEdit().
|
private |
Definition at line 41 of file fldpage.hxx.
Referenced by Init().
|
private |
Definition at line 38 of file fldpage.hxx.
Referenced by Activate(), and EnableInsert().
|
private |
Definition at line 40 of file fldpage.hxx.
Referenced by EditNewField(), and IsRefresh().
|
private |
Definition at line 36 of file fldpage.hxx.
Referenced by EditNewField(), GetSelectionSel(), and SetSelectionSel().
|
private |
Definition at line 35 of file fldpage.hxx.
Referenced by EditNewField(), GetTypeSel(), and SetTypeSel().
|
private |
Definition at line 33 of file fldpage.hxx.
Referenced by GetCurField(), Init(), and InsertField().
|
private |
Definition at line 34 of file fldpage.hxx.
Referenced by GetWrtShell(), InsertField(), and SetWrtShell().