NCBI C++ ToolKit
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CXmlBaseItem Class Referenceabstract

Search Toolkit Book for CXmlBaseItem

#include <gui/widgets/seq/xml_base_item.hpp>

+ Inheritance diagram for CXmlBaseItem:
+ Collaboration diagram for CXmlBaseItem:

Public Member Functions

 CXmlBaseItem (size_t indent, const string &tag)
virtual int GetIndent () const
- Public Member Functions inherited from CTextSelectItem
virtual void MouseEvent (wxMouseEvent &event, CTextPanelContext &context)
virtual void GetText (wxTextOutputStream &os, const CTextBlock &block, CTextPanelContext *context)
- Public Member Functions inherited from CTextItem
 CTextItem ()
virtual void SetContainer (IContainer *container, int index)
virtual void GetContainer (IContainer *&container, int &index)
virtual wxPoint GetPosition () const
virtual wxSize GetSize () const
virtual int GetStartLine () const
virtual size_t GetLineCount () const
virtual ITextItemGetItemByLine (int lineNum, bool expanded)
virtual void SetLineCount (size_t lineCount)
virtual int GetTextLeftMargin (CTextPanelContext *context) const
virtual void CalcSize (wxDC &dc, CTextPanelContext *context)
virtual void Draw (wxDC &dc, const wxRect &updateRect, CTextPanelContext *context)
virtual bool Traverse (ICompositeTraverser &traverser)
virtual void TextPosToExpanded (CTextPosition &WXUNUSED(pos), CTextPanelContext *WXUNUSED(context)) const
virtual void TextPosToCollapsed (CTextPosition &WXUNUSED(pos), CTextPanelContext *WXUNUSED(context)) const
void RenderText (CStyledTextOStream &ostream, CTextPanelContext *context) const
- Public Member Functions inherited from ITextItem
 ITextItem ()
virtual ~ITextItem ()
virtual wxRect GetRect () const
virtual string GetToolTipText (CTextPanelContext *) const
virtual void FillContextMenu (wxMenu &WXUNUSED(menu)) const
virtual const CConstRef< CObjectGetAssosiatedObject () const
virtual objects::CScope * GetAssosiatedScope () const
virtual bool IsSelectable () const
CTextBlock GetItemBlock () const
virtual ITextItemClone ()

Protected Member Functions

virtual void x_RenderText (CStyledTextOStream &ostream, CTextPanelContext *context) const
virtual void x_RenderXml (CStyledTextOStream &ostream, CTextPanelContext *context) const =0
- Protected Member Functions inherited from CTextSelectItem
void MouseMove (wxMouseEvent &event)
void MouseLeftDown (wxMouseEvent &event)
void MouseLeftUp (wxMouseEvent &event)
void MouseLeftDClick (wxMouseEvent &event)
virtual void x_CalcTextPos (CTextPanelContext *context, int x, int y, int &textX, int &textY, int &caretX, int &caretY)
- Protected Member Functions inherited from CTextItem
virtual void x_Indent (CStyledTextOStream &ostream) const
virtual void x_RenderText (CStyledTextOStream &WXUNUSED(ostream), CTextPanelContext *WXUNUSED(context)) const

Protected Attributes

const size_t m_Indent
const string m_Tag
- Protected Attributes inherited from CTextItem
size_t m_LineCount
wxSize m_Size
int m_Index

Detailed Description

Definition at line 45 of file xml_base_item.hpp.

Constructor & Destructor Documentation

◆ CXmlBaseItem()

CXmlBaseItem::CXmlBaseItem ( size_t  indent,
const string tag 

Definition at line 48 of file xml_base_item.hpp.

Member Function Documentation

◆ GetIndent()

int CXmlBaseItem::GetIndent ( ) const

Reimplemented from CTextItem.

Definition at line 38 of file xml_base_item.cpp.

References CXmlStyles::GetIndentSize(), and m_Indent.

Referenced by CXmlClosedBlock::TextPosToCollapsed(), and CXmlClosedBlock::TextPosToExpanded().

◆ x_RenderText()

void CXmlBaseItem::x_RenderText ( CStyledTextOStream ostream,
CTextPanelContext context 
) const

◆ x_RenderXml()

virtual void CXmlBaseItem::x_RenderXml ( CStyledTextOStream ostream,
CTextPanelContext context 
) const
protectedpure virtual

Member Data Documentation

◆ m_Indent

const size_t CXmlBaseItem::m_Indent

Definition at line 58 of file xml_base_item.hpp.

Referenced by GetIndent().

◆ m_Tag

const string CXmlBaseItem::m_Tag

The documentation for this class was generated from the following files:
Modified on Thu May 30 12:27:52 2024 by rev. 669887