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

#include <txtattr.hxx>

Public Member Functions

 TextCharAttrib (const TextAttrib &rAttr, sal_Int32 nStart, sal_Int32 nEnd)
 
 TextCharAttrib (const TextCharAttrib &rTextCharAttrib)
 
const TextAttribGetAttr () const
 
sal_uInt16 Which () const
 
sal_Int32 GetStart () const
 
void SetStart (sal_Int32 n)
 
sal_Int32 GetEnd () const
 
void SetEnd (sal_Int32 n)
 
sal_Int32 GetLen () const
 
void MoveForward (sal_Int32 nDiff)
 
void MoveBackward (sal_Int32 nDiff)
 
void Expand (sal_Int32 nDiff)
 
void Collaps (sal_Int32 nDiff)
 
bool IsIn (sal_Int32 nIndex) const
 
bool IsInside (sal_Int32 nIndex) const
 
bool IsEmpty () const
 

Private Attributes

std::unique_ptr< TextAttribmpAttr
 
sal_Int32 mnStart
 
sal_Int32 mnEnd
 

Detailed Description

Definition at line 104 of file txtattr.hxx.

Constructor & Destructor Documentation

◆ TextCharAttrib() [1/2]

TextCharAttrib::TextCharAttrib ( const TextAttrib rAttr,
sal_Int32  nStart,
sal_Int32  nEnd 
)

Definition at line 33 of file textdoc.cxx.

References Clone(), mnEnd, and mnStart.

◆ TextCharAttrib() [2/2]

TextCharAttrib::TextCharAttrib ( const TextCharAttrib rTextCharAttrib)

Definition at line 40 of file textdoc.cxx.

References Clone(), mnEnd, and mnStart.

Member Function Documentation

◆ Collaps()

void TextCharAttrib::Collaps ( sal_Int32  nDiff)
inline

Definition at line 166 of file txtattr.hxx.

References DBG_ASSERT, mnEnd, and mnStart.

Referenced by TextNode::CollapseAttribs().

◆ Expand()

void TextCharAttrib::Expand ( sal_Int32  nDiff)
inline

Definition at line 160 of file txtattr.hxx.

References DBG_ASSERT, mnEnd, and SAL_MAX_INT32.

Referenced by TextNode::ExpandAttribs().

◆ GetAttr()

const TextAttrib & TextCharAttrib::GetAttr ( void  ) const
inline

Definition at line 116 of file txtattr.hxx.

References mpAttr.

Referenced by TextNode::Append(), TextEngine::FindAttrib(), and TextEngine::SeekCursor().

◆ GetEnd()

sal_Int32 TextCharAttrib::GetEnd ( ) const
inline

◆ GetLen()

sal_Int32 TextCharAttrib::GetLen ( ) const
inline

Definition at line 140 of file txtattr.hxx.

References DBG_ASSERT, mnEnd, and mnStart.

Referenced by TextNode::Append().

◆ GetStart()

sal_Int32 TextCharAttrib::GetStart ( ) const
inline

◆ IsEmpty()

bool TextCharAttrib::IsEmpty ( ) const
inline

Definition at line 182 of file txtattr.hxx.

References mnEnd, and mnStart.

Referenced by TextNode::CollapseAttribs(), and TextNode::ExpandAttribs().

◆ IsIn()

bool TextCharAttrib::IsIn ( sal_Int32  nIndex) const
inline

Definition at line 172 of file txtattr.hxx.

References mnEnd, mnStart, and nIndex.

◆ IsInside()

bool TextCharAttrib::IsInside ( sal_Int32  nIndex) const
inline

Definition at line 177 of file txtattr.hxx.

References mnEnd, mnStart, and nIndex.

Referenced by TextNode::Split().

◆ MoveBackward()

void TextCharAttrib::MoveBackward ( sal_Int32  nDiff)
inline

Definition at line 153 of file txtattr.hxx.

References DBG_ASSERT, mnEnd, and mnStart.

Referenced by TextNode::CollapseAttribs().

◆ MoveForward()

void TextCharAttrib::MoveForward ( sal_Int32  nDiff)
inline

Definition at line 146 of file txtattr.hxx.

References DBG_ASSERT, mnEnd, mnStart, and SAL_MAX_INT32.

Referenced by TextNode::ExpandAttribs().

◆ SetEnd()

void TextCharAttrib::SetEnd ( sal_Int32  n)
inline

Definition at line 124 of file txtattr.hxx.

References mnEnd, and n.

Referenced by TextNode::Append(), TextNode::CollapseAttribs(), and TextNode::Split().

◆ SetStart()

void TextCharAttrib::SetStart ( sal_Int32  n)
inline

Definition at line 121 of file txtattr.hxx.

References mnStart, and n.

Referenced by TextNode::CollapseAttribs(), and TextNode::Split().

◆ Which()

sal_uInt16 TextCharAttrib::Which ( ) const
inline

Definition at line 118 of file txtattr.hxx.

References mpAttr.

Referenced by TextNode::Append(), TextNode::ExpandAttribs(), TextEngine::SeekCursor(), and TextNode::Split().

Member Data Documentation

◆ mnEnd

sal_Int32 TextCharAttrib::mnEnd
private

◆ mnStart

sal_Int32 TextCharAttrib::mnStart
private

◆ mpAttr

std::unique_ptr<TextAttrib> TextCharAttrib::mpAttr
private

Definition at line 108 of file txtattr.hxx.

Referenced by GetAttr(), and Which().


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