NCBI C++ ToolKit
|
Search Toolkit Book for CCalcTextPosOStream
#include <gui/widgets/text_widget/calc_textpos_stream.hpp>
Public Types | |
typedef CBaseTextOStream | TParent |
Public Types inherited from CStyledTextOStream | |
enum | StreamHint { kDisplay , kTextPos , kCopyText } |
Public Member Functions | |
CCalcTextPosOStream (wxDC &dc, int x, int y, size_t rowHeight, size_t indentStep, int mouseX, int mouseY) | |
virtual StreamHint | GetHint () const |
virtual CStyledTextOStream & | operator<< (const string &text_in) |
virtual void | Indent (size_t steps) |
virtual void | NewLine () |
void | GetTextPos (int &textPosX, int &textPosY) const |
string | GetCurrentLine () |
Public Member Functions inherited from CBaseTextOStream | |
CBaseTextOStream (wxDC &dc, int x, int y, size_t rowHeight, size_t indentStep) | |
~CBaseTextOStream () | |
virtual int | CurrentRowLength () const |
virtual void | SetStyle (const CTextStyle *style) |
virtual void | SetDefaultStyle () |
virtual void | NBtoggle () |
wxRect | GetNBRect () const |
Public Member Functions inherited from CStyledTextOStream | |
virtual | ~CStyledTextOStream () |
virtual wxTextOutputStream * | GetTextStream () const |
virtual bool | IsVisible () const |
virtual void | UpdatePosition (int) |
void | WriteMultiLineText (const string &text) |
Protected Member Functions | |
virtual void | x_OnNBStart () |
virtual void | x_OnNBEnd () |
Protected Member Functions inherited from CBaseTextOStream | |
void | x_UpdateNBRect (wxSize size) |
virtual bool | x_InNB () const |
void | x_UpdatePos (int chars, int width) |
Private Attributes | |
int | m_MouseX |
int | m_MouseY |
int | m_TextPosX |
int | m_TextPosY |
int | m_NBStartChar |
int | m_NBRow |
CNcbiOstrstream | m_Ostr |
Additional Inherited Members | |
Protected Attributes inherited from CBaseTextOStream | |
wxDC & | m_DC |
int | m_StartX |
int | m_StartY |
int | m_RowHeight |
size_t | m_IndentStep |
int | m_x |
int | m_Row |
const CTextStyle * | m_CurrentStyle |
int | m_CurrentLineLength |
int | m_BackgroundMode |
wxColor | m_TextForeground |
wxColor | m_TextBackground |
wxFont | m_SaveFont |
wxBrush | m_SaveBrush |
wxPen | m_SavePen |
bool | m_NB |
wxRect | m_NBRect |
Definition at line 42 of file calc_textpos_stream.hpp.
Definition at line 45 of file calc_textpos_stream.hpp.
CCalcTextPosOStream::CCalcTextPosOStream | ( | wxDC & | dc, |
int | x, | ||
int | y, | ||
size_t | rowHeight, | ||
size_t | indentStep, | ||
int | mouseX, | ||
int | mouseY | ||
) |
Definition at line 39 of file calc_textpos_stream.cpp.
References m_MouseY, CBaseTextOStream::m_RowHeight, and m_TextPosY.
|
inline |
Definition at line 59 of file calc_textpos_stream.hpp.
References m_Ostr, and string.
Referenced by CTextSelectItem::MouseLeftDClick().
|
inlinevirtual |
Implements CStyledTextOStream.
Definition at line 51 of file calc_textpos_stream.hpp.
References CStyledTextOStream::kTextPos.
Definition at line 56 of file calc_textpos_stream.hpp.
References m_TextPosX, and m_TextPosY.
Referenced by CTextSelectItem::MouseLeftDClick(), and CTextSelectItem::x_CalcTextPos().
|
virtual |
Implements CStyledTextOStream.
Definition at line 103 of file calc_textpos_stream.cpp.
References CBaseTextOStream::m_CurrentLineLength, CBaseTextOStream::m_IndentStep, m_MouseX, m_MouseY, m_Ostr, CBaseTextOStream::m_Row, CBaseTextOStream::m_RowHeight, m_TextPosX, m_TextPosY, CBaseTextOStream::m_x, min(), string, CBaseTextOStream::x_InNB(), CBaseTextOStream::x_UpdateNBRect(), and CBaseTextOStream::x_UpdatePos().
|
virtual |
Reimplemented from CBaseTextOStream.
Definition at line 50 of file calc_textpos_stream.cpp.
References m_MouseY, CBaseTextOStream::m_Row, CBaseTextOStream::m_RowHeight, m_TextPosY, and CBaseTextOStream::NewLine().
|
virtual |
Implements CStyledTextOStream.
Definition at line 58 of file calc_textpos_stream.cpp.
References CBaseTextOStream::m_CurrentLineLength, CBaseTextOStream::m_DC, m_MouseX, m_MouseY, m_Ostr, CBaseTextOStream::m_Row, CBaseTextOStream::m_RowHeight, m_TextPosX, m_TextPosY, CBaseTextOStream::m_x, text(), ToWxString(), CBaseTextOStream::x_InNB(), CBaseTextOStream::x_UpdateNBRect(), and CBaseTextOStream::x_UpdatePos().
|
protectedvirtual |
Reimplemented from CStyledTextOStream.
Definition at line 133 of file calc_textpos_stream.cpp.
References CBaseTextOStream::GetNBRect(), CBaseTextOStream::m_CurrentLineLength, m_MouseX, m_MouseY, m_NBStartChar, CBaseTextOStream::m_Row, m_TextPosX, and m_TextPosY.
|
protectedvirtual |
Reimplemented from CStyledTextOStream.
Definition at line 127 of file calc_textpos_stream.cpp.
References CBaseTextOStream::m_CurrentLineLength, m_NBRow, m_NBStartChar, and CBaseTextOStream::m_Row.
|
private |
Definition at line 66 of file calc_textpos_stream.hpp.
Referenced by Indent(), operator<<(), and x_OnNBEnd().
|
private |
Definition at line 67 of file calc_textpos_stream.hpp.
Referenced by CCalcTextPosOStream(), Indent(), NewLine(), operator<<(), and x_OnNBEnd().
|
private |
Definition at line 72 of file calc_textpos_stream.hpp.
Referenced by x_OnNBStart().
|
private |
Definition at line 71 of file calc_textpos_stream.hpp.
Referenced by x_OnNBEnd(), and x_OnNBStart().
|
private |
Definition at line 74 of file calc_textpos_stream.hpp.
Referenced by GetCurrentLine(), Indent(), and operator<<().
|
private |
Definition at line 68 of file calc_textpos_stream.hpp.
Referenced by GetTextPos(), Indent(), operator<<(), and x_OnNBEnd().
|
private |
Definition at line 69 of file calc_textpos_stream.hpp.
Referenced by CCalcTextPosOStream(), GetTextPos(), Indent(), NewLine(), operator<<(), and x_OnNBEnd().