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
void PrintHiddenPara ()
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 () const
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 sw::BroadcastingModify
virtual void CallSwClientNotify (const SfxHint &rHint) const override
- Public Member Functions inherited from SwModify
 SwModify ()
virtual ~SwModify () override
void Add (SwClient *pDepend)
SwClientRemove (SwClient *pDepend)
bool HasWriterListeners () const
bool HasOnlyOneListener () const
virtual bool GetInfo (SfxPoolItem &) const override
void LockModify ()
void UnlockModify ()
bool IsModifyLocked () const
- Public Member Functions inherited from SwClient
 SwClient ()
 SwClient (SwClient &&) noexcept
virtual ~SwClient () override
std::unique_ptr< sw::ModifyChangedHintCheckRegistration (const SfxPoolItem *pOldValue)
void CheckRegistrationFormat (SwFormat &rOld)
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 const OUString & GetTypeStr (SwFieldTypesEnum nTypeId)

Protected Member Functions

 SwFieldType (SwFieldIds nWhichId)
 Single argument ctors shall be explicit. More...
- Protected Member Functions inherited from SwModify
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint) override
- 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 130 of file fldbas.cxx.

Member Function Documentation

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

Definition at line 185 of file fldbas.cxx.

References sw::BroadcastingModify::CallSwClientNotify().

Referenced by SwPostItMgr::AddPostIts().

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

Reimplemented in SwAuthorityFieldType, and SwUserFieldType.

Definition at line 159 of file fldbas.cxx.

References GatherFields(), and void().

Referenced by SwUserFieldType::dumpAsXml(), and SwAuthorityFieldType::dumpAsXml().

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

Definition at line 179 of file fldbas.cxx.

References sw::BroadcastingModify::CallSwClientNotify().

Referenced by SwTextShell::ExecField().

void SwFieldType::GatherFields ( std::vector< SwFormatField * > &  rvFormatFields,
bool  bCollectOnlyInDocNodes = true 
) const
void SwFieldType::GatherNodeIndex ( std::vector< sal_uLong > &  rvNodeIndex)
void SwFieldType::GatherRefFields ( std::vector< SwGetRefField * > &  rvRFields,
const sal_uInt16  nTyp 
void SwFieldType::GetFieldName_ ( )

Sets up FieldNames; fldmgr.cxx!

Definition at line 1744 of file fldmgr.cxx.

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

OUString SwFieldType::GetName ( ) const
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 ( ) const

Definition at line 190 of file fldbas.cxx.

References sw::BroadcastingModify::CallSwClientNotify().

void SwFieldType::PrintHiddenPara ( )

Definition at line 153 of file fldbas.cxx.

References RES_HIDDENPARA_PRINT(), and SwModify::SwClientNotify().

Referenced by SwViewShell::ImplApplyViewOptions().

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(), SwTextShell::Execute(), SwTextField::ExpandTextField(), SwDoc::FieldHidesPara(), sw::DocumentFieldsManager::FieldsToExpand(), AttributeOutputBase::GenerateBookmarksForSequenceField(), SwDoc::GetAllUsedDB(), SwCursorShell::GetCurField(), sw::DocumentFieldsManager::GetFieldType(), GetFieldTypeMId(), SwAccessibleParagraph::GetFieldTypeNameAtIndex(), SwTextShell::GetIdxState(), SwXTextFieldMasters::getInstanceName(), SwXFieldMaster::GetProgrammaticName(), sw::DocumentFieldsManager::GetRecordsPerDocument(), SwTextShell::GetState(), SwFieldMgr::GetSubTypes(), SwField::GetTypeId(), SwTableBox::GetValue(), SwFieldMgr::GoNextPrev(), SwField::HasClickHdl(), IMPL_LINK(), 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 68 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: