|
Public Member Functions |
| NCRichText (NCWidget *parent, const YWidgetOpt &opt, const YCPString &text) |
virtual | ~NCRichText () |
virtual long | nicesize (YUIDimension dim) |
virtual void | setSize (long newwidth, long newheight) |
virtual void | setLabel (const YCPString &nlabel) |
virtual NCursesEvent | wHandleInput (wint_t key) |
virtual void | setText (const YCPString &ntext) |
virtual void | setEnabling (bool do_bv) |
virtual bool | setKeyboardFocus () |
Protected Member Functions |
virtual const char * | location () const |
virtual void | wRedraw () |
virtual void | wRecoded () |
virtual NCPad * | CreatePad () |
virtual void | DrawPad () |
virtual void | HScroll (unsigned total, unsigned visible, unsigned start) |
virtual void | VScroll (unsigned total, unsigned visible, unsigned start) |
virtual bool | handleInput (wint_t key) |
Private Types |
enum | TOKEN {
T_UNKNOWN = 0x0000,
T_IGNORE = 0x0001,
T_BR = 0x0002,
T_PAR = 0x0004,
T_LEVEL = 0x0008,
T_LI = 0x0010,
T_PLAIN = 0x0012,
T_BOLD = 0x0100,
T_IT = 0x0200,
T_TT = 0x0400,
T_ANC = 0x0800,
T_HEAD = 0x1000
} |
Private Member Functions |
NCRichText & | operator= (const NCRichText &) |
| NCRichText (const NCRichText &) |
void | PadChangeLevel (bool down, int tag) |
void | PadSetLevel () |
size_t | textWidth (wstring wstr) |
void | openAnchor (wstring args) |
void | closeAnchor () |
void | arm (unsigned i) |
void | disarm () |
void | PadSetAttr () |
void | DrawPlainPad () |
void | DrawHTMLPad () |
void | PadNL () |
void | PadBOL () |
void | PadWS (const bool tab=false) |
void | PadTXT (const wchar_t *sch, const unsigned len) |
void | PadPlainTXT (const wchar_t *sch, const unsigned len) |
bool | PadTOKEN (const wchar_t *sch, const wchar_t *&ech) |
Static Private Member Functions |
const wstring | entityLookup (const std::wstring &val_r) |
Private Attributes |
NCstring | text |
bool | plainText |
unsigned | textwidth |
unsigned | cl |
unsigned | cc |
unsigned | cindent |
bool | atbol |
bool | preTag |
unsigned | Tattr |
stack< int > | liststack |
Anchor | canchor |
vector< Anchor > | anchors |
unsigned | armed |
unsigned | vScrollFirstvisible |
unsigned | vScrollNextinvisible |
Static Private Attributes |
std::map< std::wstring, std::wstring > | _charentity |
const unsigned | Tfontmask = 0xff00 |
const unsigned | listindent = 4 |
const wstring | listleveltags |
const bool | showLinkTarget = false |
Friends |
std::ostream & | operator<< (std::ostream &STREAM, const NCRichText &OBJ) |