LibreOffice Module sw (master)  1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
SwFieldPage Class Referenceabstract

#include <fldpage.hxx>

Inheritance diagram for SwFieldPage:
Collaboration diagram for SwFieldPage:

Public Member Functions

 SwFieldPage (weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OString &rID, const SfxItemSet *pAttrSet)
virtual ~SwFieldPage () override
virtual void Activate () override
SwFieldMgrGetFieldMgr ()
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 SfxItemSetGetItemSet () 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 SfxItemSetGetDialogExampleSet () const
OString GetHelpId () const
OString GetConfigId () const
bool IsVisible () const
weld::WindowGetFrameWeld () const
std::unordered_map< OString, 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
SwFieldGetCurField ()
SwWrtShellGetWrtShell ()
 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 OString &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 SfxPoolItemGetOldItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
const T * GetOldItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true)
SfxOkDialogControllerGetDialogController () const

Private Attributes

OUString m_aLstStrArr [coLBCount]
SwFieldMgr m_aMgr
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 SfxPoolItemGetItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
static const T * GetItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true)

Detailed Description

Definition at line 29 of file fldpage.hxx.

Constructor & Destructor Documentation

SwFieldPage::SwFieldPage ( weld::Container pPage,
weld::DialogController pController,
const OUString &  rUIXMLDescription,
const OString &  rID,
const SfxItemSet pAttrSet 

Definition at line 44 of file fldpage.cxx.

References false.

SwFieldPage::~SwFieldPage ( )

Definition at line 59 of file fldpage.cxx.

Member Function Documentation

void SwFieldPage::Activate ( )

Definition at line 99 of file fldpage.cxx.

References EnableInsert(), and m_bInsert.

SwFieldPage::DECL_LINK ( TreeViewInsertHdl  ,
weld::TreeView ,
SwFieldPage::DECL_LINK ( NumFormatHdl  ,
weld::TreeView ,
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().

void SwFieldPage::EnableInsert ( bool  bEnable)
SwField* SwFieldPage::GetCurField ( )
SwFieldMgr& SwFieldPage::GetFieldMgr ( )
virtual sal_uInt16 SwFieldPage::GetGroup ( )
pure virtual
sal_Int32 SwFieldPage::GetSelectionSel ( ) const

Definition at line 47 of file fldpage.hxx.

References m_nSelectionSel.

Referenced by SwFieldVarPage::UpdateSubType().

sal_Int32 SwFieldPage::GetTypeSel ( ) const
SwWrtShell* SwFieldPage::GetWrtShell ( )
void SwFieldPage::Init ( void  )
void SwFieldPage::InsertField ( SwFieldTypesEnum  nTypeId,
sal_uInt16  nSubType,
const OUString &  rPar1,
const OUString &  rPar2,
sal_uInt32  nFormatId,
sal_Unicode  cDelim = ' ',
bool  bIsAutomaticLanguage = true 

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, 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, SwInsertField_Data::m_pParent, m_pWrtShell, SwDBData::nCommandType, nPos, SwDBData::sCommand, SwDBData::sDataSource, Sequence, SwSetExpFieldType::SetDelimiter(), SwDocInfoField::SetName(), SwSetExpFieldType::SetOutlineLvl(), SwSetExpField::SetPromptText(), SwEditShell::SetUndoNoResetModified(), SwEditShell::StartAllAction(), Time, TIMEFLD, o3tl::toInt32(), SwFieldMgr::UpdateCurField(), and User.

Referenced by SwFieldDokInfPage::FillItemSet(), SwFieldDokPage::FillItemSet(), SwFieldDBPage::FillItemSet(), SwFieldVarPage::FillItemSet(), SwFieldRefPage::FillItemSet(), and SwFieldFuncPage::FillItemSet().

void SwFieldPage::InsertHdl ( weld::Widget pBtn)
bool SwFieldPage::IsFieldDlgHtmlMode ( ) const
bool SwFieldPage::IsFieldEdit ( ) const
bool SwFieldPage::IsRefresh ( ) const
void SwFieldPage::RestorePos ( weld::TreeView rLst1)
void SwFieldPage::SavePos ( const weld::TreeView rLst1)
void SwFieldPage::SetSelectionSel ( sal_Int32  nSet)

Definition at line 48 of file fldpage.hxx.

Referenced by SwFieldRefPage::Reset(), and SwFieldVarPage::UpdateSubType().

void SwFieldPage::SetTypeSel ( sal_Int32  nSet)
void SwFieldPage::SetWrtShell ( SwWrtShell m_pWrtShell)

Definition at line 339 of file fldpage.cxx.

References m_aMgr, m_pWrtShell, and SwFieldMgr::SetWrtShell().

Referenced by SwFieldDBPage::SetWrtShell().

Member Data Documentation

OUString SwFieldPage::m_aLstStrArr[coLBCount]

Definition at line 31 of file fldpage.hxx.

Referenced by RestorePos(), and SavePos().

SwFieldMgr SwFieldPage::m_aMgr

Definition at line 32 of file fldpage.hxx.

Referenced by GetFieldMgr(), Init(), InsertField(), and SetWrtShell().

bool SwFieldPage::m_bFieldDlgHtmlMode

Definition at line 39 of file fldpage.hxx.

Referenced by Init(), and IsFieldDlgHtmlMode().

bool SwFieldPage::m_bFieldEdit

Definition at line 37 of file fldpage.hxx.

Referenced by Init(), and IsFieldEdit().

bool SwFieldPage::m_bFirstHTMLInit

Definition at line 41 of file fldpage.hxx.

Referenced by Init().

bool SwFieldPage::m_bInsert

Definition at line 38 of file fldpage.hxx.

Referenced by Activate(), and EnableInsert().

bool SwFieldPage::m_bRefresh

Definition at line 40 of file fldpage.hxx.

Referenced by EditNewField(), and IsRefresh().

sal_Int32 SwFieldPage::m_nSelectionSel

Definition at line 36 of file fldpage.hxx.

Referenced by EditNewField(), and GetSelectionSel().

sal_Int32 SwFieldPage::m_nTypeSel

Definition at line 35 of file fldpage.hxx.

Referenced by EditNewField(), and GetTypeSel().

SwField* SwFieldPage::m_pCurField

Definition at line 33 of file fldpage.hxx.

Referenced by GetCurField(), Init(), and InsertField().

SwWrtShell* SwFieldPage::m_pWrtShell

Definition at line 34 of file fldpage.hxx.

Referenced by GetWrtShell(), Init(), InsertField(), and SetWrtShell().

The documentation for this class was generated from the following files: