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

#include <txtcache.hxx>

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

Public Member Functions

 SwTextLine (SwTextFrame const *pFrame, std::unique_ptr< SwParaPortion > pNew=nullptr)
 
virtual ~SwTextLine () override
 
SwParaPortionGetPara ()
 
const SwParaPortionGetPara () const
 
void SetPara (SwParaPortion *pNew, bool bDelete)
 
- Public Member Functions inherited from SwCacheObj
 SwCacheObj (const void *pOwner)
 
virtual ~SwCacheObj ()
 
const void * GetOwner () const
 
bool IsOwner (const void *pNew) const
 
sal_uInt16 GetCachePos () const
 
bool IsLocked () const
 
void Lock ()
 
void Unlock ()
 

Private Member Functions

virtual void UpdateCachePos () override
 

Private Attributes

std::unique_ptr< SwParaPortionm_pLine
 

Additional Inherited Members

- Protected Attributes inherited from SwCacheObj
const void * m_pOwner
 

Detailed Description

Definition at line 28 of file txtcache.hxx.

Constructor & Destructor Documentation

◆ SwTextLine()

SwTextLine::SwTextLine ( SwTextFrame const *  pFrame,
std::unique_ptr< SwParaPortion pNew = nullptr 
)

Definition at line 28 of file txtcache.cxx.

◆ ~SwTextLine()

SwTextLine::~SwTextLine ( )
overridevirtual

Definition at line 34 of file txtcache.cxx.

Member Function Documentation

◆ GetPara() [1/2]

SwParaPortion * SwTextLine::GetPara ( )
inline

Definition at line 38 of file txtcache.hxx.

References m_pLine.

Referenced by SwTextFrame::GetPara(), SwTextLineAccess::GetPara(), and SwTextFrame::HasPara_().

◆ GetPara() [2/2]

const SwParaPortion * SwTextLine::GetPara ( ) const
inline

Definition at line 39 of file txtcache.hxx.

References m_pLine.

◆ SetPara()

void SwTextLine::SetPara ( SwParaPortion pNew,
bool  bDelete 
)
inline

Definition at line 41 of file txtcache.hxx.

References m_pLine.

Referenced by SwTextFrame::ClearPara(), SwTextLineAccess::GetPara(), and SwTextFrame::SetPara().

◆ UpdateCachePos()

void SwTextLine::UpdateCachePos ( )
overrideprivatevirtual

Reimplemented from SwCacheObj.

Definition at line 38 of file txtcache.cxx.

References SwCacheObj::GetCachePos(), SwCacheObj::m_pOwner, and SwTextFrame::SetCacheIdx().

Member Data Documentation

◆ m_pLine

std::unique_ptr<SwParaPortion> SwTextLine::m_pLine
private

Definition at line 30 of file txtcache.hxx.

Referenced by GetPara(), and SetPara().


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