NCBI C++ ToolKit
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CXmlValueItem Class Reference

Search Toolkit Book for CXmlValueItem

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

+ Inheritance diagram for CXmlValueItem:
+ Collaboration diagram for CXmlValueItem:

Public Member Functions

 CXmlValueItem (size_t indent, const string &tag, CConstObjectInfo &objInfo)
- Public Member Functions inherited from CXmlBaseItem
 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_RenderXml (CStyledTextOStream &ostream, CTextPanelContext *context) const
void x_WriteString (CStyledTextOStream &ostream, const string &str) const
void x_WriteOctetString (CStyledTextOStream &ostream, const vector< char > &value) const
- Protected Member Functions inherited from CXmlBaseItem
virtual void x_RenderText (CStyledTextOStream &ostream, CTextPanelContext *context) const
- 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

CConstObjectInfo m_ObjectInfo
- Protected Attributes inherited from CXmlBaseItem
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 42 of file xml_value_item.hpp.

Constructor & Destructor Documentation

◆ CXmlValueItem()

CXmlValueItem::CXmlValueItem ( size_t  indent,
const string tag,
CConstObjectInfo objInfo 

Definition at line 45 of file xml_value_item.hpp.

Member Function Documentation

◆ x_RenderXml()

void CXmlValueItem::x_RenderXml ( CStyledTextOStream ostream,
CTextPanelContext context 
) const

◆ x_WriteOctetString()

void CXmlValueItem::x_WriteOctetString ( CStyledTextOStream ostream,
const vector< char > &  value 
) const

Definition at line 250 of file xml_value_item.cpp.

References buffer, HEX, i, string, and rapidjson::value.

Referenced by x_RenderXml().

◆ x_WriteString()

void CXmlValueItem::x_WriteString ( CStyledTextOStream ostream,
const string str 
) const

Member Data Documentation

◆ m_ObjectInfo

CConstObjectInfo CXmlValueItem::m_ObjectInfo

Definition at line 54 of file xml_value_item.hpp.

Referenced by x_RenderXml().

The documentation for this class was generated from the following files:
Modified on Mon May 27 04:39:40 2024 by rev. 669887