LibreOffice Module sw (master) 1
|
#include <txtrfmrk.hxx>
Public Member Functions | |
SwTextRefMark (SwFormatRefMark &rAttr, sal_Int32 const nStart, sal_Int32 const *const pEnd=nullptr) | |
~SwTextRefMark () | |
virtual const sal_Int32 * | GetEnd () const override |
end position More... | |
virtual void | SetEnd (sal_Int32) override |
void | UpdateFieldContent (SwDoc *pDoc, SwWrtShell &rWrtSh, OUString aContent) |
const SwTextNode & | GetTextNode () const |
void | ChgTextNode (SwTextNode *pNew) |
void | dumpAsXml (xmlTextWriterPtr pWriter) const override |
Public Member Functions inherited from SwTextAttrEnd | |
SwTextAttrEnd (SfxPoolItem &rAttr, sal_Int32 nStart, sal_Int32 nEnd) | |
virtual const sal_Int32 * | GetEnd () const override |
end position More... | |
virtual void | SetEnd (sal_Int32) override |
Public Member Functions inherited from SwTextAttr | |
void | SetStart (sal_Int32 n) |
start position More... | |
sal_Int32 | GetStart () const |
virtual const sal_Int32 * | GetEnd () const |
end position More... | |
virtual void | SetEnd (sal_Int32) |
const sal_Int32 * | End () const |
sal_Int32 | GetAnyEnd () const |
end (if available), else start More... | |
void | SetDontExpand (bool bDontExpand) |
bool | DontExpand () const |
bool | IsLockExpandFlag () const |
bool | IsDontMoveAttr () const |
bool | IsCharFormatAttr () const |
bool | IsOverlapAllowedAttr () const |
bool | IsPriorityAttr () const |
void | SetPriorityAttr (bool bFlag) |
bool | IsDontExpandStartAttr () const |
bool | IsNesting () const |
bool | HasDummyChar () const |
bool | IsFormatIgnoreStart () const |
bool | IsFormatIgnoreEnd () const |
void | SetFormatIgnoreStart (bool bFlag) |
void | SetFormatIgnoreEnd (bool bFlag) |
bool | HasContent () const |
const SfxPoolItem & | GetAttr () const |
SfxPoolItem & | GetAttr () |
sal_uInt16 | Which () const |
bool | operator== (const SwTextAttr &) const |
const SwFormatCharFormat & | GetCharFormat () const |
const SwFormatAutoFormat & | GetAutoFormat () const |
const SwFormatField & | GetFormatField () const |
const SwFormatFootnote & | GetFootnote () const |
const SwFormatLineBreak & | GetLineBreak () const |
const SwFormatContentControl & | GetContentControl () const |
const SwFormatFlyCnt & | GetFlyCnt () const |
const SwTOXMark & | GetTOXMark () const |
const SwFormatRefMark & | GetRefMark () const |
const SwFormatINetFormat & | GetINetFormat () const |
const SwFormatRuby & | GetRuby () const |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
Private Attributes | |
SwTextNode * | m_pTextNode |
sal_Int32 * | m_pEnd |
Additional Inherited Members | |
Static Public Member Functions inherited from SwTextAttr | |
static void | Destroy (SwTextAttr *pToDestroy, SfxItemPool &rPool) |
destroy instance More... | |
Protected Member Functions inherited from SwTextAttr | |
SwTextAttr (SfxPoolItem &rAttr, sal_Int32 nStart) | |
virtual | ~SwTextAttr () COVERITY_NOEXCEPT_FALSE |
void | SetLockExpandFlag (bool bFlag) |
void | SetDontMoveAttr (bool bFlag) |
void | SetCharFormatAttr (bool bFlag) |
void | SetOverlapAllowedAttr (bool bFlag) |
void | SetDontExpandStartAttr (bool bFlag) |
void | SetNesting (const bool bFlag) |
void | SetHasDummyChar (const bool bFlag) |
void | SetHasContent (const bool bFlag) |
Protected Attributes inherited from SwTextAttrEnd | |
sal_Int32 | m_nEnd |
Protected Attributes inherited from SwTextAttr | |
SwpHints * | m_pHints = nullptr |
Definition at line 29 of file txtrfmrk.hxx.
SwTextRefMark::SwTextRefMark | ( | SwFormatRefMark & | rAttr, |
sal_Int32 const | nStart, | ||
sal_Int32 const *const | pEnd = nullptr |
||
) |
Definition at line 105 of file atrref.cxx.
References SwTextAttrEnd::m_nEnd, m_pEnd, SwFormatRefMark::m_pTextAttr, SwTextAttr::SetDontExpand(), SwTextAttr::SetDontMoveAttr(), SwTextAttr::SetHasDummyChar(), SwTextAttr::SetLockExpandFlag(), and SwTextAttr::SetOverlapAllowedAttr().
SwTextRefMark::~SwTextRefMark | ( | ) |
Definition at line 128 of file atrref.cxx.
References SfxViewShell::Current(), tools::JsonWriter::finishAndGetAsOString(), SwTextAttr::GetRefMark(), SwFormatRefMark::GetRefName(), GetTextNode(), comphelper::LibreOfficeKit::isActive(), SfxViewShell::libreOfficeKitViewCallback(), tools::JsonWriter::put(), result, and tools::JsonWriter::startNode().
|
inline |
Definition at line 46 of file txtrfmrk.hxx.
References m_pTextNode.
|
overridevirtual |
Reimplemented from SwTextAttr.
Definition at line 208 of file atrref.cxx.
References SwTextAttr::dumpAsXml().
|
overridevirtual |
end position
Reimplemented from SwTextAttrEnd.
Definition at line 149 of file atrref.cxx.
References m_pEnd.
|
inline |
Definition at line 50 of file txtrfmrk.hxx.
References m_pTextNode.
Referenced by SwContentTree::BringEntryToAttention(), SwContentTree::BringReferencesToAttention(), SwDoc::DeleteFormatRefMark(), SwXReferenceMark::dispose(), SwContentTree::EditEntry(), SwGetRefFieldType::FindAnchor(), SwXReferenceMark::getAnchor(), SwDoc::GetRefMark(), SwDoc::GetRefMarks(), SwXReferenceMark::setName(), UpdateFieldContent(), and ~SwTextRefMark().
|
overridevirtual |
Reimplemented from SwTextAttrEnd.
Definition at line 154 of file atrref.cxx.
References SwpHints::EndPosChanged(), m_pEnd, SwTextAttr::m_pHints, and n.
Referenced by UpdateFieldContent().
void SwTextRefMark::UpdateFieldContent | ( | SwDoc * | pDoc, |
SwWrtShell & | rWrtSh, | ||
OUString | aContent | ||
) |
Definition at line 161 of file atrref.cxx.
References SwPosition::AdjustContent(), IDocumentContentOperations::DeleteAndJoin(), SwTextAttr::End(), fnMoveBackward, SwPosition::GetContentIndex(), SwCursorShell::GetCursor(), SwDoc::getIDocumentContentOperations(), SwPaM::GetMark(), SwPaM::GetPoint(), SwTextAttr::GetStart(), SwTextNode::GetSwpHints(), GetTextNode(), GoInContent(), IDocumentContentOperations::InsertString(), SwPaM::Move(), SwTranslateHelper::PasteHTMLToPaM(), SwTextAttr::SetDontExpand(), SetEnd(), SwTextAttr::SetLockExpandFlag(), SwPaM::SetMark(), SwTextAttr::SetStart(), and SwpHints::SortIfNeedBe().
|
private |
Definition at line 32 of file txtrfmrk.hxx.
Referenced by GetEnd(), SetEnd(), and SwTextRefMark().
|
private |
Definition at line 31 of file txtrfmrk.hxx.
Referenced by ChgTextNode(), and GetTextNode().