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 *pDoc)
 
virtual std::unique_ptr< SwFieldTypeCopy () const override
 
SwDocGetDoc () const
 
void MergeWithOtherDoc (SwDoc &rDestDoc)
 
- 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
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) 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 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 Modify (const SfxPoolItem *, const SfxPoolItem *) override
 Overlay in order to update all ref-fields. More...
 

Private Attributes

SwDocm_pDoc
 

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 pDoc)

Definition at line 1063 of file reffld.cxx.

References GetRef.

Member Function Documentation

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

Implements SwFieldType.

Definition at line 1067 of file reffld.cxx.

References m_pDoc.

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

Definition at line 75 of file reffld.hxx.

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

References RefIdsMap::Check(), SwIterator< TElementType, TSource, eMode >::First(), SwDoc::getIDocumentFieldsAccess(), SwFieldType::GetName(), GetRef, SwGetRefField::GetSetRefName(), SwGetRefField::GetSubType(), IDocumentFieldsAccess::GetSysFieldType(), SwModify::HasWriterListeners(), SwDoc::IsClipBoard(), m_pDoc, SwIterator< TElementType, TSource, eMode >::Next(), REF_ENDNOTE, REF_FOOTNOTE, and REF_SEQUENCEFLD.

void SwGetRefFieldType::Modify ( const SfxPoolItem pOld,
const SfxPoolItem pNew 
)
overrideprivatevirtual

Member Data Documentation

SwDoc* SwGetRefFieldType::m_pDoc
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: