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

#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
 
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
 
- 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 SwFormatFlyCntGetFlyCnt () const
 
const SwTOXMarkGetTOXMark () const
 
const SwFormatRefMarkGetRefMark () const
 
const SwFormatINetFormatGetINetFormat () const
 
const SwFormatRubyGetRuby () const
 
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::unique_ptr< SwNodeIndexm_pStartNode
 
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

Definition at line 31 of file txtftn.hxx.

Constructor & Destructor Documentation

SwTextFootnote::SwTextFootnote ( SwFormatFootnote rAttr,
sal_Int32  nStart 
)

Definition at line 276 of file atrftn.cxx.

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

SwTextFootnote::~SwTextFootnote ( )
overridevirtual

Definition at line 285 of file atrftn.cxx.

References SetStartNode().

Member Function Documentation

void SwTextFootnote::CheckCondColl ( )

Definition at line 567 of file atrftn.cxx.

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

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

void SwTextFootnote::ChgTextNode ( SwTextNode pNew)
inline

Definition at line 48 of file txtftn.hxx.

void SwTextFootnote::CopyFootnote ( SwTextFootnote rDest,
SwTextNode rDestNode 
) const
void SwTextFootnote::DelFrames ( const SwRootFrame )
sal_uInt16 SwTextFootnote::GetSeqRefNo ( ) const
inline
SwNodeIndex* SwTextFootnote::GetStartNode ( ) const
inline
const SwTextNode & SwTextFootnote::GetTextNode ( ) const
inline
void SwTextFootnote::InvalidateNumberInLayout ( )
void SwTextFootnote::MakeNewTextSection ( SwNodes rNodes)
void SwTextFootnote::SetNumber ( sal_uInt16  nNumber,
sal_uInt16  nNumberRLHidden,
const OUString &  sNumStr 
)
void SwTextFootnote::SetSeqNo ( sal_uInt16  n)
inline

Definition at line 63 of file txtftn.hxx.

Referenced by SwXFootnote::attach().

void SwTextFootnote::SetSeqRefNo ( )

Set the sequence number for the current footnote.

Returns
The new sequence number or USHRT_MAX if invalid.

Definition at line 532 of file atrftn.cxx.

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

Referenced by SwXFootnote::attach().

void SwTextFootnote::SetStartNode ( const SwNodeIndex pNode,
bool  bDelNodes = true 
)
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 553 of file atrftn.cxx.

References i.

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

Member Data Documentation

sal_uInt16 SwTextFootnote::m_nSeqNo
private

Definition at line 35 of file txtftn.hxx.

Referenced by SetSeqRefNo().

std::unique_ptr<SwNodeIndex> SwTextFootnote::m_pStartNode
private
SwTextNode* SwTextFootnote::m_pTextNode
private

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