LibreOffice Module sw (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwGetRefFieldType Class Referencefinal

Get reference. More...

#include <reffld.hxx>

Inheritance diagram for SwGetRefFieldType:
Collaboration diagram for SwGetRefFieldType:

Public Member Functions

 SwGetRefFieldType (SwDoc &rDoc)
virtual std::unique_ptr< SwFieldTypeCopy () const override
virtual void UpdateFields () override
SwDocGetDoc () const
void MergeWithOtherDoc (SwDoc &rDestDoc)
void UpdateGetReferences ()
- Public Member Functions inherited from SwFieldType
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 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< SwNodeOffset > &rvNodeIndex)
void GatherRefFields (std::vector< SwGetRefField * > &rvRFields, const sal_uInt16 nTyp)
void GatherFields (std::vector< SwFormatField * > &rvFormatFields, bool bCollectOnlyInDocNodes=true) const
void GatherDdeTables (std::vector< SwDDETable * > &rvTables) const
virtual void UpdateFields ()
- Public Member Functions inherited from sw::BroadcastingModify
virtual void CallSwClientNotify (const SfxHint &rHint) const override
- Public Member Functions inherited from SwModify
 SwModify ()
virtual void CallSwClientNotify (const SfxHint &rHint) const
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::optional< sw::ModifyChangedHintCheckRegistration (const SfxPoolItem *pOldValue)
void CheckRegistrationFormat (SwFormat &rOld)
const SwModifyGetRegisteredIn () const
SwModifyGetRegisteredIn ()
void EndListeningAll ()
void StartListeningToSameModifyAs (const SwClient &)
virtual bool GetInfo (SfxPoolItem &) const
- Public Member Functions inherited from sw::WriterListener
bool IsLast () const
virtual const SwCellFrameDynCastCellFrame () const
virtual const SwTabFrameDynCastTabFrame () const
virtual const SwRowFrameDynCastRowFrame () const
virtual const SwTableDynCastTable () const
- Public Member Functions inherited from sw::BroadcasterMixin
 BroadcasterMixin ()=default
 BroadcasterMixin (BroadcasterMixin const &)=default
BroadcasterMixinoperator= (const BroadcasterMixin &)
SvtBroadcasterGetNotifier ()

Static Public Member Functions

static SwTextNodeFindAnchor (SwDoc *pDoc, const OUString &rRefMark, sal_uInt16 nSubType, sal_uInt16 nSeqNo, sal_Int32 *pStt, sal_Int32 *pEnd=nullptr, SwRootFrame const *pLayout=nullptr)
- Static Public Member Functions inherited from SwFieldType
static const OUString & GetTypeStr (SwFieldTypesEnum nTypeId)

Private Member Functions

virtual void SwClientNotify (const SwModify &, const SfxHint &) override
 Overlay in order to update all ref-fields. More...

Private Attributes


Additional Inherited Members

- Protected Member Functions inherited from SwFieldType
 SwFieldType (SwFieldIds nWhichId)
 Single argument ctors shall be explicit. More...
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint) override
- Protected Member Functions inherited from SwClient
 SwClient (SwModify *pToRegisterIn)
SwModifyGetRegisteredInNonConst () const
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint) override
- Protected Member Functions inherited from sw::WriterListener
 WriterListener ()
virtual ~WriterListener () COVERITY_NOEXCEPT_FALSE
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint)=0

Detailed Description

Get reference.

Definition at line 65 of file reffld.hxx.

Constructor & Destructor Documentation

◆ SwGetRefFieldType()

SwGetRefFieldType::SwGetRefFieldType ( SwDoc rDoc)

Definition at line 1092 of file reffld.cxx.

References GetRef.

Member Function Documentation

◆ Copy()

std::unique_ptr< SwFieldType > SwGetRefFieldType::Copy ( ) const

Implements SwFieldType.

Definition at line 1096 of file reffld.cxx.

References m_rDoc.

◆ FindAnchor()

SwTextNode * SwGetRefFieldType::FindAnchor ( SwDoc pDoc,
const OUString &  rRefMark,
sal_uInt16  nSubType,
sal_uInt16  nSeqNo,
sal_Int32 *  pStt,
sal_Int32 *  pEnd = nullptr,
SwRootFrame const *  pLayout = nullptr 

◆ GetDoc()

SwDoc & SwGetRefFieldType::GetDoc ( ) const

Definition at line 76 of file reffld.hxx.

References m_rDoc.

Referenced by SwGetRefField::GetReferencedTextNode().

◆ MergeWithOtherDoc()

void SwGetRefFieldType::MergeWithOtherDoc ( SwDoc rDestDoc)
  1. if both SetExp + GetExp / Footnote + GetExp field are copied, ensure that both get a new unused matching number
  2. if only SetExp / Footnote is copied, it gets a new unused number
  3. if only GetExp field is copied, for the case of copy from / paste to same document it's desirable to keep the same number; for other cases of copy/paste or master documents it's not obvious what is most desirable since it's going to be wrong anyway

Definition at line 1447 of file reffld.cxx.

References SwFieldType::GatherFields(), SwDoc::getIDocumentFieldsAccess(), SwFieldType::GetName(), GetRef, SwGetRefField::GetSetRefName(), SwGetRefField::GetSubType(), IDocumentFieldsAccess::GetSysFieldType(), SwModify::HasWriterListeners(), SwDoc::IsClipBoard(), m_rDoc, n, REF_ENDNOTE, REF_FOOTNOTE, and REF_SEQUENCEFLD.

◆ SwClientNotify()

void SwGetRefFieldType::SwClientNotify ( const SwModify ,
const SfxHint rHint 

Overlay in order to update all ref-fields.

Reimplemented from SwModify.

Definition at line 1124 of file reffld.cxx.

References sw::BroadcastingModify::CallSwClientNotify(), SfxHint::GetId(), and UpdateGetReferences().

◆ UpdateFields()

virtual void SwGetRefFieldType::UpdateFields ( )

Reimplemented from SwFieldType.

Definition at line 74 of file reffld.hxx.

◆ UpdateGetReferences()

void SwGetRefFieldType::UpdateGetReferences ( )

Member Data Documentation

◆ m_rDoc

SwDoc& SwGetRefFieldType::m_rDoc

Definition at line 67 of file reffld.hxx.

Referenced by Copy(), and MergeWithOtherDoc().

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