LibreOffice Module sw (master) 1
|
#include <fldvar.hxx>
Public Member Functions | |
SwFieldVarPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *pSet) | |
virtual | ~SwFieldVarPage () override |
virtual bool | FillItemSet (SfxItemSet *rSet) override |
virtual void | Reset (const SfxItemSet *rSet) override |
virtual void | FillUserData () override |
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 (TypeHdl, weld::TreeView &, void) | |
DECL_LINK (SubTypeListBoxHdl, weld::TreeView &, void) | |
DECL_LINK (ModifyHdl, weld::Entry &, void) | |
DECL_LINK (TBClickHdl, weld::Button &, void) | |
DECL_LINK (ChapterHdl, weld::ComboBox &, void) | |
DECL_LINK (SeparatorHdl, weld::Entry &, void) | |
DECL_LINK (SubTypeInsertHdl, weld::TreeView &, bool) | |
void | SubTypeHdl (const weld::TreeView *) |
void | UpdateSubType () |
void | FillFormatLB (SwFieldTypesEnum nTypeId) |
Private Attributes | |
std::unique_ptr< weld::TreeView > | m_xTypeLB |
std::unique_ptr< weld::Widget > | m_xSelection |
std::unique_ptr< weld::TreeView > | m_xSelectionLB |
std::unique_ptr< weld::Label > | m_xNameFT |
std::unique_ptr< weld::Entry > | m_xNameED |
std::unique_ptr< weld::Label > | m_xValueFT |
std::unique_ptr< ConditionEdit > | m_xValueED |
std::unique_ptr< weld::Widget > | m_xFormat |
std::unique_ptr< SwNumFormatTreeView > | m_xNumFormatLB |
std::unique_ptr< weld::TreeView > | m_xFormatLB |
std::unique_ptr< weld::Widget > | m_xChapterFrame |
std::unique_ptr< weld::ComboBox > | m_xChapterLevelLB |
std::unique_ptr< weld::CheckButton > | m_xInvisibleCB |
std::unique_ptr< weld::Label > | m_xSeparatorFT |
std::unique_ptr< weld::Entry > | m_xSeparatorED |
std::unique_ptr< weld::Button > | m_xNewPB |
std::unique_ptr< weld::Button > | m_xDelPB |
OUString | m_sOldValueFT |
OUString | m_sOldNameFT |
sal_uInt32 | m_nOldFormat |
bool | m_bInit |
Definition at line 30 of file fldvar.hxx.
SwFieldVarPage::SwFieldVarPage | ( | weld::Container * | pPage, |
weld::DialogController * | pController, | ||
const SfxItemSet * | pSet | ||
) |
Definition at line 42 of file fldvar.cxx.
References FIELD_COLUMN_WIDTH, FillFieldSelect(), i, m_sOldNameFT, m_sOldValueFT, m_xChapterLevelLB, m_xFormatLB, m_xNameED, m_xNameFT, m_xNumFormatLB, m_xSelectionLB, m_xTypeLB, m_xValueED, m_xValueFT, and MAXLEVEL.
|
overridevirtual |
Definition at line 93 of file fldvar.cxx.
|
static |
Definition at line 1254 of file fldvar.cxx.
Referenced by SwFieldEditDlg::CreatePage(), and SwFieldDlg::SwFieldDlg().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 685 of file fldvar.cxx.
References weld::TreeView::find_text(), Formel, Get, weld::TreeView::get_selected_index(), weld::TreeView::get_text(), SwFieldPage::GetCurField(), SwFieldPage::GetFieldMgr(), SwField::GetFormat(), GetFormat(), SwFieldMgr::GetFormatCount(), SwFieldMgr::GetFormatId(), GetRefPage, i, weld::TreeView::insert(), SwFieldPage::IsFieldDlgHtmlMode(), SwFieldPage::IsFieldEdit(), m_xFormatLB, m_xNumFormatLB, nIndex, NUMBERFORMAT_ENTRY_NOT_FOUND, weld::TreeView::select(), weld::TreeView::select_text(), Set, sId, nsSwExtendedSubType::SUB_CMD, SwResId(), and User.
Referenced by SubTypeHdl().
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 1127 of file fldvar.cxx.
References aName, Formel, Get, GetActiveWrtShell(), SwFieldPage::GetFieldMgr(), SwFieldMgr::GetFieldType(), SwEditShell::GetNumberFormatter(), GetRefPage, SwValueField::GetSystemFormat(), SwFieldPage::GetTypeSel(), SwFieldPage::GetWrtShell(), nsSwGetSetExpType::GSE_EXPR, nsSwGetSetExpType::GSE_FORMULA, nsSwGetSetExpType::GSE_STRING, INP_USR, INP_VAR, Input, SwFieldPage::InsertField(), SwFieldPage::IsFieldDlgHtmlMode(), SwFieldPage::IsFieldEdit(), m_nOldFormat, m_xChapterLevelLB, m_xFormatLB, m_xInvisibleCB, m_xNameED, m_xNumFormatLB, m_xSelectionLB, m_xSeparatorED, m_xTypeLB, m_xValueED, NUMBERFORMAT_ENTRY_NOT_FOUND, Sequence, Set, nsSwExtendedSubType::SUB_CMD, nsSwExtendedSubType::SUB_INVISIBLE, SVX_NUM_CHAR_SPECIAL, SwResId(), UpdateSubType(), and User.
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 1265 of file fldvar.cxx.
References m_xTypeLB, SfxTabPage::SetUserData(), and USER_DATA_VERSION.
|
overrideprotectedvirtual |
Implements SwFieldPage.
Definition at line 1260 of file fldvar.cxx.
References GRP_VAR.
Referenced by Reset().
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 97 of file fldvar.cxx.
References o3tl::equalsIgnoreAsciiCase(), GetActiveWrtShell(), SwFieldPage::GetCurField(), SvNumberFormatter::GetEntry(), SwField::GetFormat(), GetGroup(), SwFieldMgr::GetGroupRange(), SvNumberformat::GetLanguage(), SwEditShell::GetNumberFormatter(), SwFieldMgr::GetPos(), o3tl::getToken(), SwField::GetTypeId(), SwFieldMgr::GetTypeId(), SwFieldMgr::GetTypeStr(), SfxTabPage::GetUserData(), SwFieldPage::GetWrtShell(), i, SwFieldPage::Init(), Input, SwField::IsAutomaticLanguage(), SwFieldPage::IsFieldDlgHtmlMode(), SwFieldPage::IsFieldEdit(), SwFieldPage::IsRefresh(), LINK, m_nOldFormat, m_xChapterLevelLB, m_xDelPB, m_xFormatLB, m_xInvisibleCB, m_xNameED, m_xNewPB, m_xNumFormatLB, m_xSelectionLB, m_xSeparatorED, m_xTypeLB, m_xValueED, SwFieldGroupRgn::nEnd, SwFieldGroupRgn::nStart, SwFieldPage::RestorePos(), SwFieldPage::SavePos(), SetInput, o3tl::toInt32(), u, and USER_DATA_VERSION_1.
|
private |
Definition at line 241 of file fldvar.cxx.
References sfx2::cTokenSeparator, Dde, DDE, SwFieldPage::EnableInsert(), FillFormatLB(), Formel, Get, GetActiveWrtShell(), SwDDEFieldType::GetCmd(), SwUserFieldType::GetContent(), SwFieldPage::GetCurField(), SwFieldMgr::GetCurFieldPar1(), SwFieldMgr::GetCurFieldPar2(), SwFieldPage::GetFieldMgr(), SwEditShell::GetFieldType(), SwFieldMgr::GetFieldType(), SwFormulaField::GetInputOrDateTime(), SwUserFieldType::GetInputOrDateTime(), SwDDEFieldType::GetName(), SwUserFieldType::GetName(), GetRefPage, SwField::GetTyp(), SwDDEFieldType::GetType(), SwSetExpFieldType::GetType(), SwUserFieldType::GetType(), SwFieldPage::GetTypeSel(), SwFieldPage::GetWrtShell(), nsSwGetSetExpType::GSE_STRING, Input, SwFieldPage::IsFieldDlgHtmlMode(), SwFieldPage::IsFieldEdit(), SwFieldPage::IsRefresh(), lcl_getUsedNumFormat(), m_bInit, m_sOldNameFT, m_sOldValueFT, m_xChapterFrame, m_xChapterLevelLB, m_xFormat, m_xFormatLB, m_xInvisibleCB, m_xNameED, m_xNameFT, m_xNumFormatLB, m_xSelectionLB, m_xSeparatorED, m_xTypeLB, m_xValueED, m_xValueFT, NUMBERFORMAT_ENTRY_NOT_FOUND, Sequence, Set, SetExp, SetRefPage, sName, SwResId(), UF_STRING, and User.
Referenced by UpdateSubType().
|
private |
Definition at line 579 of file fldvar.cxx.
References Formel, Get, SwFieldPage::GetCurField(), SwFieldPage::GetFieldMgr(), GetName(), SwFieldPage::GetSelectionSel(), SwFieldMgr::GetSubTypes(), SwFieldPage::GetTypeSel(), i, Input, SwFieldPage::IsFieldEdit(), m_xInvisibleCB, m_xSelection, m_xSelectionLB, m_xTypeLB, nCount, nIndex, Set, SetRefPage, SwFieldPage::SetSelectionSel(), nsSwExtendedSubType::SUB_INVISIBLE, SubTypeHdl(), and User.
Referenced by FillItemSet().
|
private |
Definition at line 54 of file fldvar.hxx.
Referenced by SubTypeHdl().
|
private |
Definition at line 53 of file fldvar.hxx.
Referenced by FillItemSet(), and Reset().
|
private |
Definition at line 51 of file fldvar.hxx.
Referenced by SubTypeHdl(), and SwFieldVarPage().
|
private |
Definition at line 50 of file fldvar.hxx.
Referenced by SubTypeHdl(), and SwFieldVarPage().
|
private |
Definition at line 42 of file fldvar.hxx.
Referenced by SubTypeHdl().
|
private |
Definition at line 43 of file fldvar.hxx.
Referenced by FillItemSet(), Reset(), SubTypeHdl(), and SwFieldVarPage().
|
private |
Definition at line 48 of file fldvar.hxx.
Referenced by Reset().
|
private |
Definition at line 39 of file fldvar.hxx.
Referenced by SubTypeHdl().
|
private |
Definition at line 41 of file fldvar.hxx.
Referenced by FillFormatLB(), FillItemSet(), Reset(), SubTypeHdl(), and SwFieldVarPage().
|
private |
Definition at line 44 of file fldvar.hxx.
Referenced by FillItemSet(), Reset(), SubTypeHdl(), and UpdateSubType().
|
private |
Definition at line 36 of file fldvar.hxx.
Referenced by FillItemSet(), Reset(), SubTypeHdl(), and SwFieldVarPage().
|
private |
Definition at line 35 of file fldvar.hxx.
Referenced by SubTypeHdl(), and SwFieldVarPage().
|
private |
Definition at line 47 of file fldvar.hxx.
Referenced by Reset().
|
private |
Definition at line 40 of file fldvar.hxx.
Referenced by FillFormatLB(), FillItemSet(), Reset(), SubTypeHdl(), and SwFieldVarPage().
|
private |
Definition at line 33 of file fldvar.hxx.
Referenced by UpdateSubType().
|
private |
Definition at line 34 of file fldvar.hxx.
Referenced by FillItemSet(), Reset(), SubTypeHdl(), SwFieldVarPage(), and UpdateSubType().
|
private |
Definition at line 46 of file fldvar.hxx.
Referenced by FillItemSet(), Reset(), and SubTypeHdl().
|
private |
Definition at line 45 of file fldvar.hxx.
|
private |
Definition at line 32 of file fldvar.hxx.
Referenced by FillItemSet(), FillUserData(), Reset(), SubTypeHdl(), SwFieldVarPage(), and UpdateSubType().
|
private |
Definition at line 38 of file fldvar.hxx.
Referenced by FillItemSet(), Reset(), SubTypeHdl(), and SwFieldVarPage().
|
private |
Definition at line 37 of file fldvar.hxx.
Referenced by SubTypeHdl(), and SwFieldVarPage().