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:
[legend]
Collaboration diagram for SwFieldPage:
[legend]

Public Member Functions

 SwFieldPage (TabPageParent pParent, const OUString &rUIXMLDescription, const OString &rID, const SfxItemSet *pAttrSet)
 
virtual ~SwFieldPage () override
 
virtual void ActivatePage () 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
 
virtual void dispose () override
 
const SfxItemSetGetItemSet () const
 
virtual bool FillItemSet (SfxItemSet *)
 
virtual void Reset (const SfxItemSet *)
 
bool HasExchangeSupport () const
 
void SetExchangeSupport ()
 
virtual void ActivatePage (const SfxItemSet &)
 
virtual DeactivateRC DeactivatePage (SfxItemSet *pSet)
 
void SetUserData (const OUString &rString)
 
const OUString & GetUserData ()
 
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 SfxItemSetGetDialogExampleSet () const
 
OString GetConfigId () const
 
weld::WindowGetDialogFrameWeld () const
 

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 &, void)
 
 DECL_LINK (NumFormatHdl, weld::TreeView &, void)
 
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 (sal_uInt16 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 (vcl::Window *pParent, const OString &rID, const OUString &rUIXMLDescription, const SfxItemSet *rAttrSet)
 
 SfxTabPage (TabPageParent pParent, const OUString &rUIXMLDescription, const OString &rID, const SfxItemSet *rAttrSet)
 
sal_uInt16 GetWhich (sal_uInt16 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
 
SwFieldm_pCurField
 
SwWrtShellm_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 SfxPoolItemGetItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
 
static const T * GetItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true)
 
- Protected Attributes inherited from SfxTabPage
std::unique_ptr< weld::Builderm_xBuilder
 
std::unique_ptr< weld::Containerm_xContainer
 

Detailed Description

Definition at line 29 of file fldpage.hxx.

Constructor & Destructor Documentation

SwFieldPage::SwFieldPage ( TabPageParent  pParent,
const OUString &  rUIXMLDescription,
const OString &  rID,
const SfxItemSet pAttrSet 
)

Definition at line 47 of file fldpage.cxx.

References LISTBOX_ENTRY_NOTFOUND.

SwFieldPage::~SwFieldPage ( )
overridevirtual

Definition at line 62 of file fldpage.cxx.

Member Function Documentation

void SwFieldPage::ActivatePage ( )
overridevirtual

Definition at line 102 of file fldpage.cxx.

References EnableInsert(), and m_bInsert.

SwFieldPage::DECL_LINK ( TreeViewInsertHdl  ,
weld::TreeView ,
void   
)
protected
SwFieldPage::DECL_LINK ( NumFormatHdl  ,
weld::TreeView ,
void   
)
protected
void SwFieldPage::EditNewField ( bool  bOnlyActivate = false)
void SwFieldPage::EnableInsert ( bool  bEnable)
protected
SwField* SwFieldPage::GetCurField ( )
inlineprotected
SwFieldMgr& SwFieldPage::GetFieldMgr ( )
inline
virtual sal_uInt16 SwFieldPage::GetGroup ( )
pure virtual
sal_Int32 SwFieldPage::GetSelectionSel ( ) const
inlineprotected

Definition at line 47 of file fldpage.hxx.

References m_nSelectionSel.

Referenced by SwFieldVarPage::UpdateSubType().

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

Definition at line 121 of file fldpage.cxx.

References aData, SfxRequest::AppendItem(), SwField::CopyField(), DATE_VAR, DATEFLD, DB_DELIM, nsSwDocInfoSubType::DI_CUSTOM, SwEditShell::EndAllAction(), SwFieldMgr::EvalExpFields(), SwIterator< TElementType, TSource, eMode >::First(), 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(), SfxViewShell::GetViewFrame(), SwView::GetWrtShellPtr(), nsSwGetSetExpType::GSE_SEQ, INP_TXT, SwFieldMgr::InsertField(), SwEditShell::InsertFieldType(), IsFieldEdit(), m_aMgr, m_pCurField, SwInsertField_Data::m_pParent, m_pWrtShell, SwDBData::nCommandType, SwIterator< TElementType, TSource, eMode >::Next(), nPos, SwDBData::sCommand, SwDBData::sDataSource, SwSetExpFieldType::SetDelimiter(), SwDocInfoField::SetName(), SwSetExpFieldType::SetOutlineLvl(), SwSetExpField::SetPromptText(), SwEditShell::SetUndoNoResetModified(), SwEditShell::StartAllAction(), TIMEFLD, TYP_DATEFLD, TYP_DBFLD, TYP_DBNAMEFLD, TYP_DBNEXTSETFLD, TYP_DBNUMSETFLD, TYP_DBSETNUMBERFLD, TYP_DOCINFOFLD, TYP_HIDDENPARAFLD, TYP_HIDDENTXTFLD, TYP_INPUTFLD, TYP_SEQFLD, TYP_TIMEFLD, 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)
protected
bool SwFieldPage::IsFieldDlgHtmlMode ( ) const
inlineprotected
bool SwFieldPage::IsFieldEdit ( ) const
inlineprotected
bool SwFieldPage::IsRefresh ( ) const
inlineprotected
void SwFieldPage::RestorePos ( weld::TreeView rLst1)
protected
void SwFieldPage::SavePos ( const weld::TreeView rLst1)
protected
void SwFieldPage::SetSelectionSel ( sal_Int32  nSet)
inlineprotected

Definition at line 48 of file fldpage.hxx.

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

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

Definition at line 348 of file fldpage.cxx.

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

Member Data Documentation

OUString SwFieldPage::m_aLstStrArr[coLBCount]
private

Definition at line 31 of file fldpage.hxx.

Referenced by RestorePos(), and SavePos().

SwFieldMgr SwFieldPage::m_aMgr
private

Definition at line 32 of file fldpage.hxx.

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

bool SwFieldPage::m_bFieldDlgHtmlMode
private

Definition at line 39 of file fldpage.hxx.

Referenced by Init(), and IsFieldDlgHtmlMode().

bool SwFieldPage::m_bFieldEdit
private

Definition at line 37 of file fldpage.hxx.

Referenced by Init(), and IsFieldEdit().

bool SwFieldPage::m_bFirstHTMLInit
private

Definition at line 41 of file fldpage.hxx.

Referenced by Init().

bool SwFieldPage::m_bInsert
private

Definition at line 38 of file fldpage.hxx.

Referenced by ActivatePage(), and EnableInsert().

bool SwFieldPage::m_bRefresh
private

Definition at line 40 of file fldpage.hxx.

Referenced by EditNewField(), and IsRefresh().

sal_Int32 SwFieldPage::m_nSelectionSel
private

Definition at line 36 of file fldpage.hxx.

Referenced by EditNewField(), and GetSelectionSel().

sal_Int32 SwFieldPage::m_nTypeSel
private

Definition at line 35 of file fldpage.hxx.

Referenced by EditNewField(), and GetTypeSel().

SwField* SwFieldPage::m_pCurField
private

Definition at line 33 of file fldpage.hxx.

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

SwWrtShell* SwFieldPage::m_pWrtShell
private

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: