NCBI C++ ToolKit
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CCalcSizeStream Class Reference

Search Toolkit Book for CCalcSizeStream

+ Inheritance diagram for CCalcSizeStream:
+ Collaboration diagram for CCalcSizeStream:

Public Member Functions

 CCalcSizeStream ()
 
virtual StreamHint GetHint () const
 
virtual CStyledTextOStreamoperator<< (const string &text)
 
virtual int CurrentRowLength () const
 
virtual void SetStyle (const CTextStyle *WXUNUSED(style))
 
virtual void SetDefaultStyle ()
 
virtual void Indent (size_t steps)
 
virtual void NewLine ()
 
wxSize GetSize () const
 
- Public Member Functions inherited from CStyledTextOStream
virtual ~CStyledTextOStream ()
 
virtual wxTextOutputStream * GetTextStream () const
 
virtual bool IsVisible () const
 
virtual void UpdatePosition (int)
 
virtual void SetStyle (const CTextStyle *style)=0
 
virtual void NBtoggle ()
 
void WriteMultiLineText (const string &text)
 

Private Member Functions

void x_AddChars (int count)
 

Private Attributes

int m_LineSize
 
int m_LineCount
 
int m_MaxLineSize
 

Additional Inherited Members

- Public Types inherited from CStyledTextOStream
enum  StreamHint { kDisplay , kTextPos , kCopyText }
 
- Protected Member Functions inherited from CStyledTextOStream
virtual void x_OnNBStart ()
 
virtual void x_OnNBEnd ()
 
virtual bool x_InNB () const
 

Detailed Description

Definition at line 47 of file text_item.cpp.

Constructor & Destructor Documentation

◆ CCalcSizeStream()

CCalcSizeStream::CCalcSizeStream ( )
inline

Definition at line 50 of file text_item.cpp.

Member Function Documentation

◆ CurrentRowLength()

virtual int CCalcSizeStream::CurrentRowLength ( ) const
inlinevirtual

Implements CStyledTextOStream.

Definition at line 56 of file text_item.cpp.

References m_LineSize.

◆ GetHint()

virtual StreamHint CCalcSizeStream::GetHint ( ) const
inlinevirtual

Implements CStyledTextOStream.

Definition at line 52 of file text_item.cpp.

References CStyledTextOStream::kDisplay.

◆ GetSize()

wxSize CCalcSizeStream::GetSize ( void  ) const

Definition at line 77 of file text_item.cpp.

References m_LineCount, and m_MaxLineSize.

Referenced by CTextItem::CalcSize().

◆ Indent()

virtual void CCalcSizeStream::Indent ( size_t  steps)
inlinevirtual

Implements CStyledTextOStream.

Definition at line 60 of file text_item.cpp.

References x_AddChars().

◆ NewLine()

virtual void CCalcSizeStream::NewLine ( )
inlinevirtual

Implements CStyledTextOStream.

Definition at line 61 of file text_item.cpp.

References m_LineCount, and m_LineSize.

◆ operator<<()

virtual CStyledTextOStream& CCalcSizeStream::operator<< ( const string text)
inlinevirtual

Implements CStyledTextOStream.

Definition at line 54 of file text_item.cpp.

References text(), and x_AddChars().

◆ SetDefaultStyle()

virtual void CCalcSizeStream::SetDefaultStyle ( )
inlinevirtual

Implements CStyledTextOStream.

Definition at line 59 of file text_item.cpp.

◆ SetStyle()

virtual void CCalcSizeStream::SetStyle ( const CTextStyle WXUNUSEDstyle)
inlinevirtual

Definition at line 58 of file text_item.cpp.

◆ x_AddChars()

void CCalcSizeStream::x_AddChars ( int  count)
inlineprivate

Definition at line 66 of file text_item.cpp.

References m_LineSize, and m_MaxLineSize.

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

Member Data Documentation

◆ m_LineCount

int CCalcSizeStream::m_LineCount
private

Definition at line 73 of file text_item.cpp.

Referenced by GetSize(), and NewLine().

◆ m_LineSize

int CCalcSizeStream::m_LineSize
private

Definition at line 72 of file text_item.cpp.

Referenced by CurrentRowLength(), NewLine(), and x_AddChars().

◆ m_MaxLineSize

int CCalcSizeStream::m_MaxLineSize
private

Definition at line 74 of file text_item.cpp.

Referenced by GetSize(), and x_AddChars().


The documentation for this class was generated from the following file:
Modified on Tue May 28 05:54:37 2024 by modify_doxy.py rev. 669887