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

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
unotools::WeakReference< SwXFieldMaster > const & GetXObject () const
 
void SetXObject (rtl::Reference< SwXFieldMaster > 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
 
void UpdateDocPos (const SwTwips nDocPos)
 
virtual void UpdateFields ()
 

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

SwDocm_rDoc
 

Additional Inherited Members

- Protected Member Functions inherited from SwFieldType
 SwFieldType (SwFieldIds nWhichId)
 Single argument ctors shall be explicit. More...
 

Detailed Description

Get reference.

Definition at line 65 of file reffld.hxx.

Constructor & Destructor Documentation

◆ SwGetRefFieldType()

SwGetRefFieldType::SwGetRefFieldType ( SwDoc rDoc)

Definition at line 1091 of file reffld.cxx.

References GetRef.

Member Function Documentation

◆ Copy()

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

Implements SwFieldType.

Definition at line 1095 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 
)
static

◆ GetDoc()

SwDoc & SwGetRefFieldType::GetDoc ( ) const
inline

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

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

◆ SwClientNotify()

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

Overlay in order to update all ref-fields.

Definition at line 1123 of file reffld.cxx.

References SfxHint::GetId(), and UpdateGetReferences().

◆ UpdateFields()

virtual void SwGetRefFieldType::UpdateFields ( )
inlineoverridevirtual

Reimplemented from SwFieldType.

Definition at line 74 of file reffld.hxx.

◆ UpdateGetReferences()

void SwGetRefFieldType::UpdateGetReferences ( )

Member Data Documentation

◆ m_rDoc

SwDoc& SwGetRefFieldType::m_rDoc
private

Definition at line 67 of file reffld.hxx.

Referenced by Copy(), and MergeWithOtherDoc().


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