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

Search Toolkit Book for CCalcNBPosOStream

#include <gui/widgets/text_widget/calc_nbpos_stream.hpp>

+ Inheritance diagram for CCalcNBPosOStream:
+ Collaboration diagram for CCalcNBPosOStream:

Public Types

typedef CStyledTextOStream TParent
 
- Public Types inherited from CStyledTextOStream
enum  StreamHint { kDisplay , kTextPos , kCopyText }
 

Public Member Functions

 CCalcNBPosOStream ()
 
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 ()
 
virtual void NBtoggle ()
 
void GetNBPos (int &start, int &end, int &row) 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
 
void WriteMultiLineText (const string &text)
 

Private Attributes

int m_Row
 
int m_CurrentLineLength
 
bool m_NB
 
int m_NBStartChar
 
int m_NBEndChar
 
int m_NBRow
 

Additional Inherited Members

- Protected Member Functions inherited from CStyledTextOStream
virtual void x_OnNBStart ()
 
virtual void x_OnNBEnd ()
 
virtual bool x_InNB () const
 

Detailed Description

Definition at line 45 of file calc_nbpos_stream.hpp.

Member Typedef Documentation

◆ TParent

Definition at line 48 of file calc_nbpos_stream.hpp.

Constructor & Destructor Documentation

◆ CCalcNBPosOStream()

CCalcNBPosOStream::CCalcNBPosOStream ( )

Definition at line 38 of file calc_nbpos_stream.cpp.

Member Function Documentation

◆ CurrentRowLength()

int CCalcNBPosOStream::CurrentRowLength ( ) const
virtual

Implements CStyledTextOStream.

Definition at line 79 of file calc_nbpos_stream.cpp.

References m_CurrentLineLength.

◆ GetHint()

virtual StreamHint CCalcNBPosOStream::GetHint ( ) const
inlinevirtual

Implements CStyledTextOStream.

Definition at line 52 of file calc_nbpos_stream.hpp.

References CStyledTextOStream::kDisplay.

◆ GetNBPos()

void CCalcNBPosOStream::GetNBPos ( int start,
int end,
int row 
) const

◆ Indent()

void CCalcNBPosOStream::Indent ( size_t  steps)
virtual

Implements CStyledTextOStream.

Definition at line 74 of file calc_nbpos_stream.cpp.

References m_CurrentLineLength.

◆ NBtoggle()

void CCalcNBPosOStream::NBtoggle ( )
virtual

Reimplemented from CStyledTextOStream.

Definition at line 55 of file calc_nbpos_stream.cpp.

References m_CurrentLineLength, m_NB, m_NBEndChar, m_NBRow, m_NBStartChar, and m_Row.

◆ NewLine()

void CCalcNBPosOStream::NewLine ( )
virtual

Implements CStyledTextOStream.

Definition at line 44 of file calc_nbpos_stream.cpp.

References m_CurrentLineLength, m_NB, m_NBEndChar, and m_Row.

◆ operator<<()

CStyledTextOStream & CCalcNBPosOStream::operator<< ( const string text)
virtual

Implements CStyledTextOStream.

Definition at line 68 of file calc_nbpos_stream.cpp.

References m_CurrentLineLength, and text().

◆ SetDefaultStyle()

virtual void CCalcNBPosOStream::SetDefaultStyle ( )
inlinevirtual

Implements CStyledTextOStream.

Definition at line 57 of file calc_nbpos_stream.hpp.

◆ SetStyle()

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

Definition at line 56 of file calc_nbpos_stream.hpp.

Member Data Documentation

◆ m_CurrentLineLength

int CCalcNBPosOStream::m_CurrentLineLength
private

Definition at line 66 of file calc_nbpos_stream.hpp.

Referenced by CurrentRowLength(), GetNBPos(), Indent(), NBtoggle(), NewLine(), and operator<<().

◆ m_NB

bool CCalcNBPosOStream::m_NB
private

Definition at line 67 of file calc_nbpos_stream.hpp.

Referenced by NBtoggle(), and NewLine().

◆ m_NBEndChar

int CCalcNBPosOStream::m_NBEndChar
private

Definition at line 69 of file calc_nbpos_stream.hpp.

Referenced by GetNBPos(), NBtoggle(), and NewLine().

◆ m_NBRow

int CCalcNBPosOStream::m_NBRow
private

Definition at line 70 of file calc_nbpos_stream.hpp.

Referenced by GetNBPos(), and NBtoggle().

◆ m_NBStartChar

int CCalcNBPosOStream::m_NBStartChar
private

Definition at line 68 of file calc_nbpos_stream.hpp.

Referenced by GetNBPos(), and NBtoggle().

◆ m_Row

int CCalcNBPosOStream::m_Row
private

Definition at line 65 of file calc_nbpos_stream.hpp.

Referenced by GetNBPos(), NBtoggle(), and NewLine().


The documentation for this class was generated from the following files:
Modified on Sun May 19 04:48:30 2024 by modify_doxy.py rev. 669887