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
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 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 ()
void NotifyClients (const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue)
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
std::unique_ptr< sw::ModifyChangedHintCheckRegistration (const SfxPoolItem *pOldValue)
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 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 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...
- Protected Member Functions inherited from SwClient
 SwClient (SwModify *pToRegisterIn)
SwModifyGetRegisteredInNonConst () const
- Protected Member Functions inherited from sw::WriterListener
 WriterListener ()
virtual ~WriterListener () COVERITY_NOEXCEPT_FALSE

Detailed Description

Get reference.

Definition at line 65 of file reffld.hxx.

Constructor & Destructor Documentation

SwGetRefFieldType::SwGetRefFieldType ( SwDoc rDoc)

Definition at line 1064 of file reffld.cxx.

References GetRef.

Member Function Documentation

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

Implements SwFieldType.

Definition at line 1068 of file reffld.cxx.

References m_rDoc.

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 
SwDoc& SwGetRefFieldType::GetDoc ( ) const

Definition at line 75 of file reffld.hxx.

References m_rDoc.

Referenced by SwGetRefField::GetReferencedTextNode().

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 1419 of file reffld.cxx.

References assert(), 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.

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

Overlay in order to update all ref-fields.

Reimplemented from SwClient.

Definition at line 1096 of file reffld.cxx.

References SwModify::NotifyClients(), and UpdateGetReferences().

void SwGetRefFieldType::UpdateGetReferences ( )

Member Data Documentation

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: