LibreOffice Module sw (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
SwTextFootnote Class Referencefinal

SwTextAttr subclass for footnotes and endnotes. More...

#include <txtftn.hxx>

Inheritance diagram for SwTextFootnote:
[legend]
Collaboration diagram for SwTextFootnote:
[legend]

Public Member Functions

 SwTextFootnote (SwFormatFootnote &rAttr, sal_Int32 nStart)
 
virtual ~SwTextFootnote () override
 
const SwNodeIndexGetStartNode () const
 
void SetStartNode (const SwNodeIndex *pNode, bool bDelNodes=true)
 
void SetNumber (sal_uInt16 nNumber, sal_uInt16 nNumberRLHidden, const OUString &sNumStr)
 
void CopyFootnote (SwTextFootnote &rDest, SwTextNode &rDestNode) const
 
const SwTextNodeGetTextNode () const
 
void ChgTextNode (SwTextNode *pNew)
 
void MakeNewTextSection (SwNodes &rNodes)
 create a new nodes-array section for the footnote More...
 
void DelFrames (const SwRootFrame *)
 
void CheckCondColl ()
 
void InvalidateNumberInLayout ()
 
void SetSeqRefNo ()
 Set the sequence number for the current footnote. More...
 
void SetSeqNo (sal_uInt16 n)
 
sal_uInt16 GetSeqRefNo () const
 
void dumpAsXml (xmlTextWriterPtr pWriter) const 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 SfxPoolItemGetAttr () const
 
SfxPoolItemGetAttr ()
 
sal_uInt16 Which () const
 
bool operator== (const SwTextAttr &) const
 
const SwFormatCharFormatGetCharFormat () const
 
const SwFormatAutoFormatGetAutoFormat () const
 
const SwFormatFieldGetFormatField () const
 
const SwFormatFootnoteGetFootnote () const
 
const SwFormatLineBreakGetLineBreak () const
 
const SwFormatContentControlGetContentControl () const
 
const SwFormatFlyCntGetFlyCnt () const
 
const SwTOXMarkGetTOXMark () const
 
const SwFormatRefMarkGetRefMark () const
 
const SwFormatINetFormatGetINetFormat () const
 
const SwFormatRubyGetRuby () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Static Public Member Functions

static void SetUniqueSeqRefNo (SwDoc &rDoc)
 Set a unique sequential reference number for every footnote in the document. More...
 
- Static Public Member Functions inherited from SwTextAttr
static void Destroy (SwTextAttr *pToDestroy, SfxItemPool &rPool)
 destroy instance More...
 

Private Attributes

std::optional< SwNodeIndexm_oStartNode
 
SwTextNodem_pTextNode
 
sal_uInt16 m_nSeqNo
 

Additional Inherited Members

- 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 SwTextAttr
SwpHintsm_pHints = nullptr
 

Detailed Description

SwTextAttr subclass for footnotes and endnotes.

If it's an endnote is decided by the owned SwFormatFootnote's m_bEndNote.

Definition at line 33 of file txtftn.hxx.

Constructor & Destructor Documentation

◆ SwTextFootnote()

SwTextFootnote::SwTextFootnote ( SwFormatFootnote rAttr,
sal_Int32  nStart 
)

Definition at line 295 of file atrftn.cxx.

References SwFormatFootnote::m_pTextAttr, and SwTextAttr::SetHasDummyChar().

◆ ~SwTextFootnote()

SwTextFootnote::~SwTextFootnote ( )
overridevirtual

Definition at line 304 of file atrftn.cxx.

References SetStartNode().

Member Function Documentation

◆ CheckCondColl()

void SwTextFootnote::CheckCondColl ( )

Definition at line 579 of file atrftn.cxx.

References SwNodeIndex::GetNode(), and GetStartNode().

Referenced by SwDoc::SetCurFootnote(), and SwHistorySetFootnote::SetInDoc().

◆ ChgTextNode()

void SwTextFootnote::ChgTextNode ( SwTextNode pNew)
inline

Definition at line 50 of file txtftn.hxx.

◆ CopyFootnote()

void SwTextFootnote::CopyFootnote ( SwTextFootnote rDest,
SwTextNode rDestNode 
) const

◆ DelFrames()

void SwTextFootnote::DelFrames ( const SwRootFrame pRoot)

◆ dumpAsXml()

void SwTextFootnote::dumpAsXml ( xmlTextWriterPtr  pWriter) const
overridevirtual

Reimplemented from SwTextAttr.

Definition at line 585 of file atrftn.cxx.

References SwTextAttr::dumpAsXml(), SwNode::GetIndex(), m_nSeqNo, m_oStartNode, and m_pTextNode.

◆ GetSeqRefNo()

sal_uInt16 SwTextFootnote::GetSeqRefNo ( ) const
inline

◆ GetStartNode()

const SwNodeIndex * SwTextFootnote::GetStartNode ( ) const
inline

◆ GetTextNode()

const SwTextNode & SwTextFootnote::GetTextNode ( ) const
inline

◆ InvalidateNumberInLayout()

void SwTextFootnote::InvalidateNumberInLayout ( )

◆ MakeNewTextSection()

void SwTextFootnote::MakeNewTextSection ( SwNodes rNodes)

◆ SetNumber()

void SwTextFootnote::SetNumber ( sal_uInt16  nNumber,
sal_uInt16  nNumberRLHidden,
const OUString &  sNumStr 
)

◆ SetSeqNo()

void SwTextFootnote::SetSeqNo ( sal_uInt16  n)
inline

Definition at line 65 of file txtftn.hxx.

References n.

Referenced by SwXFootnote::attach(), and SwWW8ImplReader::End_Footnote().

◆ SetSeqRefNo()

void SwTextFootnote::SetSeqRefNo ( )

Set the sequence number for the current footnote.

Returns
The new sequence number or USHRT_MAX if invalid.

Definition at line 544 of file atrftn.cxx.

References SwNode::GetDoc(), SwDoc::IsInReading(), m_nSeqNo, and m_pTextNode.

Referenced by SwXFootnote::attach().

◆ SetStartNode()

void SwTextFootnote::SetStartNode ( const SwNodeIndex pNode,
bool  bDelNodes = true 
)

◆ SetUniqueSeqRefNo()

void SwTextFootnote::SetUniqueSeqRefNo ( SwDoc rDoc)
static

Set a unique sequential reference number for every footnote in the document.

Parameters
[in]rDocThe document to be processed.

Definition at line 565 of file atrftn.cxx.

References i.

Referenced by SwDoc::SetAllUniqueFlyNames(), and SwDocShell::UpdateLinks().

Member Data Documentation

◆ m_nSeqNo

sal_uInt16 SwTextFootnote::m_nSeqNo
private

Definition at line 37 of file txtftn.hxx.

Referenced by dumpAsXml(), and SetSeqRefNo().

◆ m_oStartNode

std::optional<SwNodeIndex> SwTextFootnote::m_oStartNode
private

◆ m_pTextNode

SwTextNode* SwTextFootnote::m_pTextNode
private

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