LibreOffice Module editeng (master) 1
Public Types | Public Member Functions | Private Attributes | Friends | List of all members
EditLine Class Reference

#include <editdoc.hxx>

Public Types

typedef std::vector< sal_Int32 > CharPosArrayType
 

Public Member Functions

 EditLine ()
 
 EditLine (const EditLine &)
 
 ~EditLine ()
 
bool IsIn (sal_Int32 nIndex) const
 
bool IsIn (sal_Int32 nIndex, bool bInclEnd) const
 
void SetStart (sal_Int32 n)
 
sal_Int32 GetStart () const
 
sal_Int32 & GetStart ()
 
void SetEnd (sal_Int32 n)
 
sal_Int32 GetEnd () const
 
sal_Int32 & GetEnd ()
 
void SetStartPortion (sal_Int32 n)
 
sal_Int32 GetStartPortion () const
 
sal_Int32 & GetStartPortion ()
 
void SetEndPortion (sal_Int32 n)
 
sal_Int32 GetEndPortion () const
 
sal_Int32 & GetEndPortion ()
 
void SetHeight (sal_uInt16 nH, sal_uInt16 nTxtH=0)
 
sal_uInt16 GetHeight () const
 
sal_uInt16 GetTxtHeight () const
 
void SetTextWidth (sal_Int32 n)
 
sal_Int32 GetTextWidth () const
 
void SetMaxAscent (sal_uInt16 n)
 
sal_uInt16 GetMaxAscent () const
 
void SetHangingPunctuation (bool b)
 
bool IsHangingPunctuation () const
 
sal_Int32 GetLen () const
 
sal_Int32 GetStartPosX () const
 
void SetStartPosX (sal_Int32 start)
 
Size CalcTextSize (ParaPortion &rParaPortion)
 
bool IsInvalid () const
 
bool IsValid () const
 
void SetInvalid ()
 
void SetValid ()
 
bool IsEmpty () const
 
CharPosArrayTypeGetCharPosArray ()
 
const CharPosArrayTypeGetCharPosArray () const
 
std::vector< sal_Bool > & GetKashidaArray ()
 
const std::vector< sal_Bool > & GetKashidaArray () const
 
EditLineClone () const
 
EditLineoperator= (const EditLine &rLine)
 

Private Attributes

CharPosArrayType aPositions
 
std::vector< sal_BoolaKashidaPositions
 
sal_Int32 nTxtWidth
 
sal_Int32 nStartPosX
 
sal_Int32 nStart
 
sal_Int32 nEnd
 
sal_Int32 nStartPortion
 
sal_Int32 nEndPortion
 
sal_uInt16 nHeight
 
sal_uInt16 nTxtHeight
 
sal_uInt16 nMaxAscent
 
bool bHangingPunctuation:1
 
bool bInvalid:1
 

Friends

bool operator== (const EditLine &r1, const EditLine &r2)
 

Detailed Description

Definition at line 481 of file editdoc.hxx.

Member Typedef Documentation

◆ CharPosArrayType

typedef std::vector<sal_Int32> EditLine::CharPosArrayType

Definition at line 484 of file editdoc.hxx.

Constructor & Destructor Documentation

◆ EditLine() [1/2]

EditLine::EditLine ( )

Definition at line 925 of file editdoc.cxx.

Referenced by Clone().

◆ EditLine() [2/2]

EditLine::EditLine ( const EditLine r)

Definition at line 941 of file editdoc.cxx.

◆ ~EditLine()

EditLine::~EditLine ( )

Definition at line 956 of file editdoc.cxx.

Member Function Documentation

◆ CalcTextSize()

Size EditLine::CalcTextSize ( ParaPortion rParaPortion)

◆ Clone()

EditLine * EditLine::Clone ( ) const

◆ GetCharPosArray() [1/2]

CharPosArrayType & EditLine::GetCharPosArray ( )
inline

◆ GetCharPosArray() [2/2]

const CharPosArrayType & EditLine::GetCharPosArray ( ) const
inline

Definition at line 555 of file editdoc.hxx.

References aPositions.

◆ GetEnd() [1/2]

sal_Int32 & EditLine::GetEnd ( )
inline

Definition at line 518 of file editdoc.hxx.

References nEnd.

◆ GetEnd() [2/2]

sal_Int32 EditLine::GetEnd ( ) const
inline

◆ GetEndPortion() [1/2]

sal_Int32 & EditLine::GetEndPortion ( )
inline

Definition at line 526 of file editdoc.hxx.

References nEndPortion.

◆ GetEndPortion() [2/2]

sal_Int32 EditLine::GetEndPortion ( ) const
inline

◆ GetHeight()

sal_uInt16 EditLine::GetHeight ( ) const
inline

◆ GetKashidaArray() [1/2]

std::vector< sal_Bool > & EditLine::GetKashidaArray ( )
inline

Definition at line 557 of file editdoc.hxx.

References aKashidaPositions.

Referenced by ImpEditEngine::ImpAdjustBlocks(), and ImpEditEngine::Paint().

◆ GetKashidaArray() [2/2]

const std::vector< sal_Bool > & EditLine::GetKashidaArray ( ) const
inline

Definition at line 558 of file editdoc.hxx.

References aKashidaPositions.

◆ GetLen()

sal_Int32 EditLine::GetLen ( ) const
inline

Definition at line 541 of file editdoc.hxx.

References nEnd, and nStart.

Referenced by ImpEditEngine::CreateLines(), and ImpEditEngine::GetLineLen().

◆ GetMaxAscent()

sal_uInt16 EditLine::GetMaxAscent ( ) const
inline

◆ GetStart() [1/2]

sal_Int32 & EditLine::GetStart ( )
inline

Definition at line 514 of file editdoc.hxx.

References nStart.

◆ GetStart() [2/2]

sal_Int32 EditLine::GetStart ( ) const
inline

◆ GetStartPortion() [1/2]

sal_Int32 & EditLine::GetStartPortion ( )
inline

Definition at line 522 of file editdoc.hxx.

References nStartPortion.

◆ GetStartPortion() [2/2]

sal_Int32 EditLine::GetStartPortion ( ) const
inline

◆ GetStartPosX()

sal_Int32 EditLine::GetStartPosX ( ) const
inline

◆ GetTextWidth()

sal_Int32 EditLine::GetTextWidth ( ) const
inline

Definition at line 533 of file editdoc.hxx.

References nTxtWidth.

Referenced by ImpEditEngine::ImpAdjustBlocks().

◆ GetTxtHeight()

sal_uInt16 EditLine::GetTxtHeight ( ) const
inline

Definition at line 530 of file editdoc.hxx.

References nTxtHeight.

Referenced by ImpEditEngine::CreateLines(), and EditEngine::GetParagraphInfos().

◆ IsEmpty()

bool EditLine::IsEmpty ( ) const
inline

Definition at line 552 of file editdoc.hxx.

References nEnd, and nStart.

Referenced by ImpEditEngine::ImpAdjustBlocks().

◆ IsHangingPunctuation()

bool EditLine::IsHangingPunctuation ( ) const
inline

Definition at line 539 of file editdoc.hxx.

References bHangingPunctuation.

Referenced by ImpEditEngine::CreateLines().

◆ IsIn() [1/2]

bool EditLine::IsIn ( sal_Int32  nIndex) const
inline

Definition at line 506 of file editdoc.hxx.

References nEnd, nIndex, and nStart.

◆ IsIn() [2/2]

bool EditLine::IsIn ( sal_Int32  nIndex,
bool  bInclEnd 
) const
inline

Definition at line 509 of file editdoc.hxx.

References nEnd, nIndex, and nStart.

◆ IsInvalid()

bool EditLine::IsInvalid ( ) const
inline

Definition at line 547 of file editdoc.hxx.

References bInvalid.

◆ IsValid()

bool EditLine::IsValid ( ) const
inline

Definition at line 548 of file editdoc.hxx.

References bInvalid.

◆ operator=()

EditLine & EditLine::operator= ( const EditLine rLine)

Definition at line 995 of file editdoc.cxx.

References nEnd, nEndPortion, nStart, and nStartPortion.

◆ SetEnd()

void EditLine::SetEnd ( sal_Int32  n)
inline

◆ SetEndPortion()

void EditLine::SetEndPortion ( sal_Int32  n)
inline

◆ SetHangingPunctuation()

void EditLine::SetHangingPunctuation ( bool  b)
inline

Definition at line 538 of file editdoc.hxx.

References bHangingPunctuation.

Referenced by ImpEditEngine::ImpBreakLine().

◆ SetHeight()

void EditLine::SetHeight ( sal_uInt16  nH,
sal_uInt16  nTxtH = 0 
)

◆ SetInvalid()

void EditLine::SetInvalid ( )
inline

Definition at line 549 of file editdoc.hxx.

References bInvalid.

Referenced by ImpEditEngine::CreateLines(), and ImpEditEngine::InsertTextObject().

◆ SetMaxAscent()

void EditLine::SetMaxAscent ( sal_uInt16  n)
inline

Definition at line 535 of file editdoc.hxx.

References n, and nMaxAscent.

Referenced by ImpEditEngine::CreateAndInsertEmptyLine(), and ImpEditEngine::CreateLines().

◆ SetStart()

void EditLine::SetStart ( sal_Int32  n)
inline

Definition at line 512 of file editdoc.hxx.

References n, and nStart.

Referenced by ImpEditEngine::CreateAndInsertEmptyLine(), and ImpEditEngine::CreateLines().

◆ SetStartPortion()

void EditLine::SetStartPortion ( sal_Int32  n)
inline

Definition at line 520 of file editdoc.hxx.

References n, and nStartPortion.

Referenced by ImpEditEngine::CreateAndInsertEmptyLine(), and ImpEditEngine::CreateLines().

◆ SetStartPosX()

void EditLine::SetStartPosX ( sal_Int32  start)

Definition at line 1011 of file editdoc.cxx.

References nStartPosX, and start.

Referenced by ImpEditEngine::CreateAndInsertEmptyLine(), and ImpEditEngine::CreateLines().

◆ SetTextWidth()

void EditLine::SetTextWidth ( sal_Int32  n)
inline

Definition at line 532 of file editdoc.hxx.

References n, and nTxtWidth.

Referenced by ImpEditEngine::CreateLines(), and ImpEditEngine::ImpAdjustBlocks().

◆ SetValid()

void EditLine::SetValid ( )
inline

Friends And Related Function Documentation

◆ operator==

bool operator== ( const EditLine r1,
const EditLine r2 
)
friend

Definition at line 978 of file editdoc.cxx.

Member Data Documentation

◆ aKashidaPositions

std::vector<sal_Bool> EditLine::aKashidaPositions
private

Definition at line 488 of file editdoc.hxx.

Referenced by GetKashidaArray().

◆ aPositions

CharPosArrayType EditLine::aPositions
private

Definition at line 487 of file editdoc.hxx.

Referenced by Clone(), and GetCharPosArray().

◆ bHangingPunctuation

bool EditLine::bHangingPunctuation
private

Definition at line 498 of file editdoc.hxx.

Referenced by IsHangingPunctuation(), and SetHangingPunctuation().

◆ bInvalid

bool EditLine::bInvalid
private

Definition at line 499 of file editdoc.hxx.

Referenced by IsInvalid(), IsValid(), SetInvalid(), and SetValid().

◆ nEnd

sal_Int32 EditLine::nEnd
private

Definition at line 492 of file editdoc.hxx.

Referenced by Clone(), GetEnd(), GetLen(), IsEmpty(), IsIn(), operator=(), and SetEnd().

◆ nEndPortion

sal_Int32 EditLine::nEndPortion
private

Definition at line 494 of file editdoc.hxx.

Referenced by CalcTextSize(), Clone(), GetEndPortion(), operator=(), and SetEndPortion().

◆ nHeight

sal_uInt16 EditLine::nHeight
private

Definition at line 495 of file editdoc.hxx.

Referenced by Clone(), GetHeight(), and SetHeight().

◆ nMaxAscent

sal_uInt16 EditLine::nMaxAscent
private

Definition at line 497 of file editdoc.hxx.

Referenced by Clone(), GetMaxAscent(), and SetMaxAscent().

◆ nStart

sal_Int32 EditLine::nStart
private

Definition at line 491 of file editdoc.hxx.

Referenced by Clone(), GetLen(), GetStart(), IsEmpty(), IsIn(), operator=(), and SetStart().

◆ nStartPortion

sal_Int32 EditLine::nStartPortion
private

Definition at line 493 of file editdoc.hxx.

Referenced by CalcTextSize(), Clone(), GetStartPortion(), operator=(), and SetStartPortion().

◆ nStartPosX

sal_Int32 EditLine::nStartPosX
private

Definition at line 490 of file editdoc.hxx.

Referenced by Clone(), GetStartPosX(), and SetStartPosX().

◆ nTxtHeight

sal_uInt16 EditLine::nTxtHeight
private

Definition at line 496 of file editdoc.hxx.

Referenced by Clone(), GetTxtHeight(), and SetHeight().

◆ nTxtWidth

sal_Int32 EditLine::nTxtWidth
private

Definition at line 489 of file editdoc.hxx.

Referenced by Clone(), GetTextWidth(), and SetTextWidth().


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