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

Instances of SwFields and those derived from it occur 0 to n times. More...

#include <fldbas.hxx>

Inheritance diagram for SwFieldType:
Collaboration diagram for SwFieldType:

Public Member Functions

SAL_DLLPRIVATE css::uno::WeakReference< css::beans::XPropertySet > const & GetXObject () const
SAL_DLLPRIVATE void SetXObject (css::uno::Reference< css::beans::XPropertySet > const &xFieldMaster)
virtual OUString GetName () const
 Only in derived classes. More...
virtual std::unique_ptr< SwFieldTypeCopy () const =0
virtual void QueryValue (css::uno::Any &rVal, sal_uInt16 nWhich) const
virtual void PutValue (const css::uno::Any &rVal, sal_uInt16 nWhich)
SwFieldIds Which () const
void UpdateFields () const
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
SwFormatFieldFindFormatForField (const SwField *) const
SwFormatFieldFindFormatForPostItId (sal_uInt32 nPostItId) const
void CollectPostIts (std::vector< SwFormatField * > &rvFormatFields, IDocumentRedlineAccess const &rIDRA, bool HideRedlines)
bool HasHiddenInformationNotes ()
void GatherNodeIndex (std::vector< sal_uLong > &rvNodeIndex)
void GatherRefFields (std::vector< SwGetRefField * > &rvRFields, const sal_uInt16 nTyp)
void GatherFields (std::vector< SwFormatField * > &rvFormatFields, bool bCollectOnlyInDocNodes=true) const
- Public Member Functions inherited from SwModify
 SwModify ()
void NotifyClients (const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue)
void ModifyBroadcast (const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue)
virtual void CallSwClientNotify (const SfxHint &rHint) const
virtual ~SwModify () override
void Add (SwClient *pDepend)
SwClientRemove (SwClient *pDepend)
bool HasWriterListeners () const
virtual bool GetInfo (SfxPoolItem &) const override
void LockModify ()
void UnlockModify ()
void SetInCache (bool bNew)
void SetInSwFntCache (bool bNew)
void SetInDocDTOR ()
bool IsModifyLocked () const
bool IsInCache () const
bool IsInSwFntCache () const
void CheckCaching (const sal_uInt16 nWhich)
bool HasOnlyOneListener () const
- Public Member Functions inherited from SwClient
 SwClient ()
 SwClient (SwClient &&) noexcept
virtual ~SwClient () override
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint) override
std::unique_ptr< sw::ModifyChangedHintCheckRegistration (const SfxPoolItem *pOldValue)
virtual void ModifyNotification (const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue)
void SwClientNotifyCall (const SwModify &rModify, const SfxHint &rHint)
const SwModifyGetRegisteredIn () const
SwModifyGetRegisteredIn ()
void EndListeningAll ()
void StartListeningToSameModifyAs (const SwClient &)
- Public Member Functions inherited from sw::WriterListener
bool IsLast () const
- Public Member Functions inherited from sw::BroadcasterMixin
 BroadcasterMixin ()=default
 BroadcasterMixin (BroadcasterMixin const &)=default
BroadcasterMixinoperator= (const BroadcasterMixin &)
SvtBroadcasterGetNotifier ()

Static Public Member Functions

static OUString GetTypeStr (SwFieldTypesEnum nTypeId)

Protected Member Functions

 SwFieldType (SwFieldIds nWhichId)
 Single argument ctors shall be explicit. More...
- Protected Member Functions inherited from SwClient
 SwClient (SwModify *pToRegisterIn)
SwModifyGetRegisteredInNonConst () const
- Protected Member Functions inherited from sw::WriterListener
 WriterListener ()
virtual ~WriterListener () COVERITY_NOEXCEPT_FALSE

Static Private Member Functions

static void GetFieldName_ ()
 Sets up FieldNames; fldmgr.cxx! More...

Private Attributes

css::uno::WeakReference< css::beans::XPropertySetm_wXFieldMaster
SwFieldIds m_nWhich

Static Private Attributes

static std::vector< OUString > * s_pFieldNames = nullptr
 field names More...


void FinitUI ()
 In order to delete pointer! More...

Detailed Description

Instances of SwFields and those derived from it occur 0 to n times.

For each class there is one instance of the associated type class. Base class of all field types is SwFieldType.

Definition at line 240 of file fldbas.hxx.

Constructor & Destructor Documentation

SwFieldType::SwFieldType ( SwFieldIds  nWhichId)

Single argument ctors shall be explicit.

Definition at line 129 of file fldbas.cxx.

Member Function Documentation

void SwFieldType::CollectPostIts ( std::vector< SwFormatField * > &  rvFormatFields,
IDocumentRedlineAccess const &  rIDRA,
bool  HideRedlines 

Definition at line 171 of file fldbas.cxx.

References SwModify::CallSwClientNotify().

Referenced by SwPostItMgr::AddPostIts().

virtual std::unique_ptr<SwFieldType> SwFieldType::Copy ( ) const
pure virtual
void SwFieldType::dumpAsXml ( xmlTextWriterPtr  pWriter) const

Reimplemented in SwUserFieldType.

Definition at line 147 of file fldbas.cxx.

References GatherFields().

Referenced by SwUserFieldType::dumpAsXml().

SwFormatField * SwFieldType::FindFormatForField ( const SwField pField) const
SwFormatField * SwFieldType::FindFormatForPostItId ( sal_uInt32  nPostItId) const

Definition at line 165 of file fldbas.cxx.

References SwModify::CallSwClientNotify().

Referenced by SwTextShell::ExecField().

void SwFieldType::GatherFields ( std::vector< SwFormatField * > &  rvFormatFields,
bool  bCollectOnlyInDocNodes = true 
) const
void SwFieldType::GatherNodeIndex ( std::vector< sal_uLong > &  rvNodeIndex)

Definition at line 183 of file fldbas.cxx.

References SwModify::CallSwClientNotify().

Referenced by MSWordExportBase::GatherChapterFields().

void SwFieldType::GatherRefFields ( std::vector< SwGetRefField * > &  rvRFields,
const sal_uInt16  nTyp 
void SwFieldType::GetFieldName_ ( )

Sets up FieldNames; fldmgr.cxx!

Definition at line 1712 of file fldmgr.cxx.

References MnemonicGenerator::EraseAllMnemonicChars(), s_pFieldNames, SAL_N_ELEMENTS, and SwResId().

OUString SwFieldType::GetName ( ) const
OUString SwFieldType::GetTypeStr ( SwFieldTypesEnum  nTypeId)
SAL_DLLPRIVATE css::uno::WeakReference<css::beans::XPropertySet> const& SwFieldType::GetXObject ( ) const

Definition at line 257 of file fldbas.hxx.

Referenced by SwXFieldMaster::CreateXFieldMaster().

bool SwFieldType::HasHiddenInformationNotes ( )

Definition at line 176 of file fldbas.cxx.

References SwModify::CallSwClientNotify().

void SwFieldType::PutValue ( const css::uno::Any &  rVal,
sal_uInt16  nWhich 
void SwFieldType::QueryValue ( css::uno::Any &  rVal,
sal_uInt16  nWhich 
) const
SAL_DLLPRIVATE void SwFieldType::SetXObject ( css::uno::Reference< css::beans::XPropertySet > const &  xFieldMaster)

Definition at line 260 of file fldbas.hxx.

Referenced by SwXFieldMaster::CreateXFieldMaster().

void SwFieldType::UpdateFields ( ) const
SwFieldIds SwFieldType::Which ( ) const

Definition at line 272 of file fldbas.hxx.

Referenced by SwXTextField::attachTextFieldMaster(), SwInputFieldList::BuildSortLst(), SwpHints::CalcFlags(), SwpHints::CalcHiddenParaField(), SwDoc::ChangeAuthorityData(), SwDoc::ChangeDBFields(), SwNodes::ChgNode(), SwField::ChgTyp(), SwWrtShell::ClickToField(), SwDoc::ConvertFieldsToText(), SwTextField::CopyTextField(), SwpHints::DeleteAtPos(), SwTextNode::DestroyAttr(), sw::DropDownFieldDialog::DropDownFieldDialog(), SwTextShell::ExecField(), SwTextField::ExpandTextField(), SwDoc::FieldHidesPara(), sw::DocumentFieldsManager::FieldsToExpand(), AttributeOutputBase::GenerateBookmarksForSequenceField(), SwDoc::GetAllUsedDB(), SwCursorShell::GetCurField(), SwDoc::GetDBDesc(), sw::DocumentFieldsManager::GetFieldType(), GetFieldTypeMId(), SwAccessibleParagraph::GetFieldTypeNameAtIndex(), SwTextShell::GetIdxState(), SwXTextFieldMasters::getInstanceName(), SwXFieldMaster::GetProgrammaticName(), sw::DocumentFieldsManager::GetRecordsPerDocument(), SwFieldMgr::GetSubTypes(), SwField::GetTypeId(), SwTableBox::GetValue(), SwFieldMgr::GoNextPrev(), SwField::HasClickHdl(), SwAuthorMarkPane::InitControls(), sw::DocumentFieldsManager::InsDeletedFieldType(), SwDocUpdateField::InsDelFieldInFieldLst(), SwWrtShell::Insert(), SwView::InsertCaption(), sw::DocumentFieldsManager::InsertFieldType(), SwDocUpdateField::InsertFieldType(), SwTextNode::InsertHint(), SwWrtShell::InsertPostIt(), SwField::IsFixed(), SwTextFrame::IsHiddenNow(), lcl_CopyHint(), SwDocUpdateField::MakeFieldList_(), SwCursorShell::MoveFieldType(), SwTextFormatter::NewFieldPortion(), OutHTML_SwField(), OutHTML_SwFormatField(), WW8Export::OutputField(), SwTransferable::PasteDDE(), DocxAttributeOutput::RefField(), sw::DocumentFieldsManager::RemoveFieldType(), SwDocUpdateField::RemoveFieldType(), SwEditShell::RemoveFieldType(), SwTOXSelectTabPage::Reset(), SwXFieldMaster::setPropertyValue(), SwTextShell::StateField(), SwCaptionDialog::SwCaptionDialog(), SwFieldInputDlg::SwFieldInputDlg(), SwInputFieldList::SwInputFieldList(), SwJavaEditDialog::SwJavaEditDialog(), AttributeOutputBase::TextField(), SwpHints::TryInsertHint(), SwCaptionOptPage::UpdateEntry(), sw::DocumentFieldsManager::UpdateExpFieldsImpl(), sw::DocumentFieldsManager::UpdateField(), SwWrtShell::UpdateInputFields(), SwEditShell::UpdateOneField(), sw::DocumentFieldsManager::UpdatePageFields(), sw::DocumentFieldsManager::UpdateUsrFields(), SwCalc::VarLook(), SwField::Which(), RtfAttributeOutput::WriteExpand(), DocxAttributeOutput::WriteField_Impl(), SwFormatField::~SwFormatField(), and SwHandleAnchorNodeChg::~SwHandleAnchorNodeChg().

Friends And Related Function Documentation

void FinitUI ( )

In order to delete pointer!

Definition at line 66 of file initui.cxx.

Member Data Documentation

SwFieldIds SwFieldType::m_nWhich

Definition at line 244 of file fldbas.hxx.

css::uno::WeakReference<css::beans::XPropertySet> SwFieldType::m_wXFieldMaster

Definition at line 242 of file fldbas.hxx.

std::vector< OUString > * SwFieldType::s_pFieldNames = nullptr

field names

Definition at line 247 of file fldbas.hxx.

Referenced by FinitUI(), GetFieldName_(), and GetTypeStr().

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