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

#include <docfld.hxx>

Collaboration diagram for SetGetExpField:
[legend]

Public Member Functions

 SetGetExpField (const SwNode &rNd, const SwTextField *pField=nullptr, std::optional< sal_Int32 > oContentIdx=std::nullopt, sal_uInt16 nPageNumber=0)
 
 SetGetExpField (const SwNode &rNd, const SwTextINetFormat &rINet)
 
 SetGetExpField (const SwSectionNode &rSectNode, const SwPosition *pPos=nullptr, sal_uInt16 nPageNumber=0)
 
 SetGetExpField (::sw::mark::IBookmark const &rBookmark, SwPosition const *pPos=nullptr, sal_uInt16 nPageNumber=0)
 
 SetGetExpField (const SwTableBox &rTableBox)
 
 SetGetExpField (const SwNode &rNd, const SwTextTOXMark &rTOX)
 
 SetGetExpField (const SwPosition &rPos)
 
 SetGetExpField (const SwFlyFrameFormat &rFlyFormat, const SwPosition *pPos)
 
bool operator== (const SetGetExpField &rField) const
 
bool operator< (const SetGetExpField &rField) const
 
const SwTextFieldGetTextField () const
 
const SwSectionGetSection () const
 
::sw::mark::IBookmark const * GetBookmark () const
 
const SwTextINetFormatGetINetFormat () const
 
const SwFlyFrameFormatGetFlyFormat () const
 
SwNodeOffset GetNode () const
 
sal_Int32 GetContent () const
 
const void * GetPointer () const
 
void GetPosOfContent (SwPosition &rPos) const
 
const SwNodeGetNodeFromContent () const
 
sal_Int32 GetCntPosFromContent () const
 
void SetBodyPos (const SwContentFrame &rFrame)
 

Private Types

enum  SetGetExpFieldType {
  TEXTFIELD ,
  TEXTTOXMARK ,
  SECTIONNODE ,
  BOOKMARK ,
  CRSRPOS ,
  TABLEBOX ,
  TEXTINET ,
  FLYFRAME
}
 

Private Attributes

sal_uInt16 m_nPageNumber = 0
 
SwNodeOffset m_nNode
 
union {
   const SwTextField *   pTextField
 
   const SwSection *   pSection
 
   const SwPosition *   pPos
 
   const SwTextTOXMark *   pTextTOX
 
   const SwTableBox *   pTBox
 
   const SwTextINetFormat *   pTextINet
 
   const SwFlyFrameFormat *   pFlyFormat
 
   ::sw::mark::IBookmark const *   pBookmark
 
m_CNTNT
 
sal_Int32 m_nContent
 
enum SetGetExpField::SetGetExpFieldType m_eSetGetExpFieldType
 

Detailed Description

Definition at line 46 of file docfld.hxx.

Member Enumeration Documentation

◆ SetGetExpFieldType

Enumerator
TEXTFIELD 
TEXTTOXMARK 
SECTIONNODE 
BOOKMARK 
CRSRPOS 
TABLEBOX 
TEXTINET 
FLYFRAME 

Definition at line 62 of file docfld.hxx.

Constructor & Destructor Documentation

◆ SetGetExpField() [1/8]

SetGetExpField::SetGetExpField ( const SwNode rNd,
const SwTextField pField = nullptr,
std::optional< sal_Int32 >  oContentIdx = std::nullopt,
sal_uInt16  nPageNumber = 0 
)

◆ SetGetExpField() [2/8]

SetGetExpField::SetGetExpField ( const SwNode rNd,
const SwTextINetFormat rINet 
)

◆ SetGetExpField() [3/8]

SetGetExpField::SetGetExpField ( const SwSectionNode rSectNode,
const SwPosition pPos = nullptr,
sal_uInt16  nPageNumber = 0 
)

◆ SetGetExpField() [4/8]

SetGetExpField::SetGetExpField ( ::sw::mark::IBookmark const &  rBookmark,
SwPosition const *  pPos = nullptr,
sal_uInt16  nPageNumber = 0 
)

◆ SetGetExpField() [5/8]

SetGetExpField::SetGetExpField ( const SwTableBox rTableBox)

◆ SetGetExpField() [6/8]

SetGetExpField::SetGetExpField ( const SwNode rNd,
const SwTextTOXMark rTOX 
)

◆ SetGetExpField() [7/8]

SetGetExpField::SetGetExpField ( const SwPosition rPos)

◆ SetGetExpField() [8/8]

SetGetExpField::SetGetExpField ( const SwFlyFrameFormat rFlyFormat,
const SwPosition pPos 
)

Member Function Documentation

◆ GetBookmark()

::sw::mark::IBookmark const * SetGetExpField::GetBookmark ( ) const
inline

Definition at line 98 of file docfld.hxx.

References BOOKMARK, m_CNTNT, and m_eSetGetExpFieldType.

◆ GetCntPosFromContent()

sal_Int32 SetGetExpField::GetCntPosFromContent ( ) const

Definition at line 339 of file docfld.cxx.

References BOOKMARK, CRSRPOS, m_CNTNT, m_eSetGetExpFieldType, TEXTFIELD, TEXTINET, and TEXTTOXMARK.

Referenced by GetPosOfContent(), and operator<().

◆ GetContent()

sal_Int32 SetGetExpField::GetContent ( ) const
inline

Definition at line 106 of file docfld.hxx.

References m_nContent.

◆ GetFlyFormat()

const SwFlyFrameFormat * SetGetExpField::GetFlyFormat ( ) const
inline

Definition at line 102 of file docfld.hxx.

References FLYFRAME, m_CNTNT, and m_eSetGetExpFieldType.

Referenced by SwCursorShell::SelectNxtPrvHyperlink().

◆ GetINetFormat()

const SwTextINetFormat * SetGetExpField::GetINetFormat ( ) const
inline

Definition at line 100 of file docfld.hxx.

References m_CNTNT, m_eSetGetExpFieldType, and TEXTINET.

Referenced by SwCursorShell::SelectNxtPrvHyperlink().

◆ GetNode()

SwNodeOffset SetGetExpField::GetNode ( ) const
inline

Definition at line 105 of file docfld.hxx.

References m_nNode.

Referenced by SwCursorShell::SelectNxtPrvHyperlink().

◆ GetNodeFromContent()

const SwNode * SetGetExpField::GetNodeFromContent ( ) const

◆ GetPointer()

const void * SetGetExpField::GetPointer ( ) const
inline

Definition at line 107 of file docfld.hxx.

References m_CNTNT.

◆ GetPosOfContent()

void SetGetExpField::GetPosOfContent ( SwPosition rPos) const

◆ GetSection()

const SwSection * SetGetExpField::GetSection ( ) const
inline

Definition at line 96 of file docfld.hxx.

References m_CNTNT, m_eSetGetExpFieldType, and SECTIONNODE.

◆ GetTextField()

const SwTextField * SetGetExpField::GetTextField ( ) const
inline

Definition at line 94 of file docfld.hxx.

References m_CNTNT, m_eSetGetExpFieldType, and TEXTFIELD.

◆ operator<()

bool SetGetExpField::operator< ( const SetGetExpField rField) const

◆ operator==()

bool SetGetExpField::operator== ( const SetGetExpField rField) const

Definition at line 220 of file docfld.cxx.

References m_CNTNT, m_nContent, m_nNode, and pTextField.

◆ SetBodyPos()

void SetGetExpField::SetBodyPos ( const SwContentFrame rFrame)

Member Data Documentation

◆ 

union { ... } SetGetExpField::m_CNTNT

◆ m_eSetGetExpFieldType

enum SetGetExpField::SetGetExpFieldType SetGetExpField::m_eSetGetExpFieldType
private

◆ m_nContent

sal_Int32 SetGetExpField::m_nContent
private

◆ m_nNode

SwNodeOffset SetGetExpField::m_nNode
private

Definition at line 50 of file docfld.hxx.

Referenced by GetNode(), GetPosOfContent(), operator<(), operator==(), SetBodyPos(), and SetGetExpField().

◆ m_nPageNumber

sal_uInt16 SetGetExpField::m_nPageNumber = 0
private

Definition at line 49 of file docfld.hxx.

Referenced by operator<().

◆ pBookmark

::sw::mark::IBookmark const* SetGetExpField::pBookmark

Definition at line 59 of file docfld.hxx.

◆ pFlyFormat

const SwFlyFrameFormat* SetGetExpField::pFlyFormat

Definition at line 58 of file docfld.hxx.

◆ pPos

const SwPosition* SetGetExpField::pPos

Definition at line 54 of file docfld.hxx.

Referenced by SetGetExpField().

◆ pSection

const SwSection* SetGetExpField::pSection

Definition at line 53 of file docfld.hxx.

◆ pTBox

const SwTableBox* SetGetExpField::pTBox

Definition at line 56 of file docfld.hxx.

◆ pTextField

const SwTextField* SetGetExpField::pTextField

Definition at line 52 of file docfld.hxx.

Referenced by operator==().

◆ pTextINet

const SwTextINetFormat* SetGetExpField::pTextINet

Definition at line 57 of file docfld.hxx.

◆ pTextTOX

const SwTextTOXMark* SetGetExpField::pTextTOX

Definition at line 55 of file docfld.hxx.


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