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)
 
bool IsInside (sal_Int32 nIndex)
 
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::TextCharAttrib ( const TextAttrib rAttr,
sal_Int32  nStart,
sal_Int32  nEnd 
)

Definition at line 31 of file textdoc.cxx.

References Clone(), mnEnd, and mnStart.

TextCharAttrib::TextCharAttrib ( const TextCharAttrib rTextCharAttrib)

Definition at line 38 of file textdoc.cxx.

References Clone(), mnEnd, and mnStart.

Member Function Documentation

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().

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().

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().

sal_Int32 TextCharAttrib::GetEnd ( ) const
inline
sal_Int32 TextCharAttrib::GetLen ( ) const
inline

Definition at line 140 of file txtattr.hxx.

References DBG_ASSERT, mnEnd, and mnStart.

Referenced by TextNode::Append().

sal_Int32 TextCharAttrib::GetStart ( ) const
inline
bool TextCharAttrib::IsEmpty ( ) const
inline

Definition at line 182 of file txtattr.hxx.

References mnEnd, and mnStart.

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

bool TextCharAttrib::IsIn ( sal_Int32  nIndex)
inline

Definition at line 172 of file txtattr.hxx.

References mnEnd, and mnStart.

bool TextCharAttrib::IsInside ( sal_Int32  nIndex)
inline

Definition at line 177 of file txtattr.hxx.

References mnEnd, and mnStart.

Referenced by TextNode::Split().

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().

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().

void TextCharAttrib::SetEnd ( sal_Int32  n)
inline

Definition at line 124 of file txtattr.hxx.

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

void TextCharAttrib::SetStart ( sal_Int32  n)
inline

Definition at line 121 of file txtattr.hxx.

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

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

sal_Int32 TextCharAttrib::mnEnd
private

Definition at line 110 of file txtattr.hxx.

Referenced by Collaps(), Expand(), GetEnd(), GetLen(), IsEmpty(), IsIn(), IsInside(), MoveBackward(), and MoveForward().

sal_Int32 TextCharAttrib::mnStart
private

Definition at line 109 of file txtattr.hxx.

Referenced by Collaps(), GetLen(), GetStart(), IsEmpty(), IsIn(), IsInside(), MoveBackward(), and MoveForward().

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: