LibreOffice Module sw (master) 1
|
Get reference. More...
#include <reffld.hxx>
Public Member Functions | |
SwGetRefFieldType (SwDoc &rDoc) | |
virtual std::unique_ptr< SwFieldType > | Copy () const override |
virtual void | UpdateFields () override |
SwDoc & | GetDoc () 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< SwFieldType > | Copy () 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 |
SwFormatField * | FindFormatForField (const SwField *) const |
SwFormatField * | FindFormatForPostItId (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 SwTextNode * | FindAnchor (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 | |
SwDoc & | m_rDoc |
Additional Inherited Members | |
Protected Member Functions inherited from SwFieldType | |
SwFieldType (SwFieldIds nWhichId) | |
Single argument ctors shall be explicit. More... | |
Get reference.
Definition at line 65 of file reffld.hxx.
SwGetRefFieldType::SwGetRefFieldType | ( | SwDoc & | rDoc | ) |
Definition at line 1091 of file reffld.cxx.
References GetRef.
|
overridevirtual |
|
static |
Definition at line 1169 of file reffld.cxx.
References IDocumentMarkAccess::findMark(), SwFieldType::GatherFields(), IDocumentMarkAccess::getAllMarksEnd(), SwTextAttr::GetAnyEnd(), SwPosition::GetContentIndex(), IDocumentFieldsAccess::GetFieldType(), SwDoc::GetFootnoteIdxs(), SwDoc::getIDocumentFieldsAccess(), SwDoc::getIDocumentMarkAccess(), SwDoc::getIDocumentRedlineAccess(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwDoc::GetNodes(), SwTextField::GetpTextNode(), SwDoc::GetRefMark(), SwSetExpField::GetSeqNumber(), SwTextAttr::GetStart(), SwNode::GetTextNode(), SwTextRefMark::GetTextNode(), SwFormatRefMark::GetTextRefMark(), SwNodes::GoNext(), nsSwGetSetExpType::GSE_SEQ, sw::IsFieldDeletedInModel(), sw::IsFootnoteDeleted(), SwRootFrame::IsHideRedlines(), sw::IsMarkHidden(), sw::IsMarkHintHidden(), SwTextNode::Len(), REF_BOOKMARK, REF_ENDNOTE, REF_FOOTNOTE, REF_OUTLINE, REF_SEQUENCEFLD, REF_SETREFATTR, and SetExp.
Referenced by SwGetRefField::GetReferencedTextNode(), SwCursorShell::GotoRefMark(), and SwGetRefField::UpdateField().
|
inline |
Definition at line 76 of file reffld.hxx.
References m_rDoc.
Referenced by SwGetRefField::GetReferencedTextNode().
void SwGetRefFieldType::MergeWithOtherDoc | ( | SwDoc & | rDestDoc | ) |
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.
|
overrideprivatevirtual |
Overlay in order to update all ref-fields.
Definition at line 1123 of file reffld.cxx.
References SfxHint::GetId(), and UpdateGetReferences().
|
inlineoverridevirtual |
Reimplemented from SwFieldType.
Definition at line 74 of file reffld.hxx.
void SwGetRefFieldType::UpdateGetReferences | ( | ) |
Definition at line 1100 of file reffld.cxx.
References SwFieldType::GatherFields(), SwTextNode::GetLang(), SwField::GetLanguage(), SwTextField::GetpTextNode(), SwTextAttr::GetStart(), SwField::SetLanguage(), and SwGetRefField::UpdateField().
Referenced by SwClientNotify().
|
private |
Definition at line 67 of file reffld.hxx.
Referenced by Copy(), and MergeWithOtherDoc().