39 #include <wx/dcclient.h>
60 virtual void Indent (
size_t steps) { x_AddChars((
int)steps); }
61 virtual void NewLine() { m_LineSize = 0; ++m_LineCount; }
63 wxSize GetSize()
const;
69 if (m_LineSize > m_MaxLineSize)
70 m_MaxLineSize = m_LineSize;
94 wxSize wSize =
context->GetWSize();
95 m_Size = wxSize(
size.GetWidth()*wSize.GetWidth(),
size.GetHeight()*wSize.GetHeight());
104 static CSelectionModifier& GetInstance()
106 static CSelectionModifier _inst;
109 virtual void SetStyle(wxDC& dc)
111 wxColor background(49, 106, 197);
112 dc.SetBackgroundMode(wxSOLID);
113 dc.SetTextForeground(wxColor(255,255,255));
114 dc.SetTextBackground(background);
115 dc.SetBrush(wxBrush(background));
116 dc.SetPen(wxPen(background));
124 static CTestModifier _inst;
127 virtual void SetStyle(wxDC& dc)
129 dc.SetBackgroundMode(wxTRANSPARENT);
130 dc.SetTextForeground(wxColor(0,222,0));
155 dc.GetCharHeight(),
context->GetIndentWidth());
173 wxRect rect(wxPoint(0, 0),
GetSize());
174 if (rect.Contains(event.GetPosition())) {
181 if (selHelper.ProcessEvent(event))
static void Indent(FILE *output_stream, int indent_depth, const char *indent)
CAtomicCounter_WithAutoInit –.
void x_AddChars(int count)
virtual void Indent(size_t steps)
virtual int CurrentRowLength() const
virtual void SetDefaultStyle()
virtual void SetStyle(const CTextStyle *WXUNUSED(style))
virtual StreamHint GetHint() const
void AddMarker(int startRow, int startCol, int endRow, int endCol, IStyleModifier *style)
static CSelectionHelper & GetInstance()
void SetItem(ITextItem *item)
void Draw(wxDC &dc, const wxRect &updateRect, CTextPanelContext *context)
virtual CStyledTextOStream & operator<<(const string &text)=0
CTextPosition GetEnd() const
CTextPosition GetStart() const
virtual int GetStartLine() const
virtual void CalcSize(wxDC &dc, CTextPanelContext *context)
virtual void x_Indent(CStyledTextOStream &ostream) const
virtual size_t GetLineCount() const
virtual void TextPosToCollapsed(CTextPosition &WXUNUSED(pos), CTextPanelContext *WXUNUSED(context)) const
virtual int GetIndent() const
virtual wxSize GetSize() const
virtual void x_RenderText(CStyledTextOStream &WXUNUSED(ostream), CTextPanelContext *WXUNUSED(context)) const
virtual int GetTextLeftMargin(CTextPanelContext *context) const
virtual void MouseEvent(wxMouseEvent &event, CTextPanelContext &context)
virtual ITextItem * GetItemByLine(int lineNum, bool expanded)
virtual void Draw(wxDC &dc, const wxRect &updateRect, CTextPanelContext *context)
virtual bool IsSelectable() const
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GUIWIDGETS_TEXT_WIDGET_EXPORT
static void text(MDB_val *v)
const struct ncbi::grid::netcache::search::fields::SIZE size
CAtomicCounter_WithAutoInit gITextItemCount
static CS_CONTEXT * context