Doxygen
DocStyleChange类 参考

Node representing a style change 更多...

#include <docparser.h>

+ 类 DocStyleChange 继承关系图:
+ DocStyleChange 的协作图:

Public 类型

enum  Style {
  Bold = (1<<0), Italic = (1<<1), Code = (1<<2), Center = (1<<3),
  Small = (1<<4), Subscript = (1<<5), Superscript = (1<<6), Preformatted = (1<<7),
  Span = (1<<8), Div = (1<<9), Strike = (1<<10), Underline = (1<<11),
  Del = (1<<12), Ins = (1<<13), S = (1<<14)
}
 
- Public 类型 继承自 DocNode
enum  Kind {
  Kind_Root = 0, Kind_Word = 1, Kind_WhiteSpace = 2, Kind_Para = 3,
  Kind_AutoList = 4, Kind_AutoListItem = 5, Kind_Symbol = 6, Kind_URL = 7,
  Kind_StyleChange = 8, Kind_SimpleSect = 9, Kind_Title = 10, Kind_SimpleList = 11,
  Kind_SimpleListItem = 12, Kind_Section = 13, Kind_Verbatim = 14, Kind_XRefItem = 15,
  Kind_HtmlList = 16, Kind_HtmlListItem = 17, Kind_HtmlDescList = 18, Kind_HtmlDescData = 19,
  Kind_HtmlDescTitle = 20, Kind_HtmlTable = 21, Kind_HtmlRow = 22, Kind_HtmlCell = 23,
  Kind_HtmlCaption = 24, Kind_LineBreak = 25, Kind_HorRuler = 26, Kind_Anchor = 27,
  Kind_IndexEntry = 28, Kind_Internal = 29, Kind_HRef = 30, Kind_Include = 31,
  Kind_IncOperator = 32, Kind_HtmlHeader = 33, Kind_Image = 34, Kind_DotFile = 35,
  Kind_Link = 36, Kind_Ref = 37, Kind_Formula = 38, Kind_SecRefItem = 39,
  Kind_SecRefList = 40, Kind_SimpleSectSep = 41, Kind_LinkedWord = 42, Kind_ParamSect = 43,
  Kind_ParamList = 44, Kind_InternalRef = 45, Kind_Copy = 46, Kind_Text = 47,
  Kind_MscFile = 48, Kind_HtmlBlockQuote = 49, Kind_VhdlFlow = 50, Kind_ParBlock = 51,
  Kind_DiaFile = 52, Kind_Emoji = 53, Kind_Sep = 54
}
 

Public 成员函数

 DocStyleChange (DocParser &parser, DocNode *parent, uint position, Style s, const QCString &tagName, bool enable, const HtmlAttribList *attribs=0)
 
Kind kind () const override
 
Style style () const
 
const char * styleString () const
 
bool enable () const
 
uint position () const
 
void accept (DocVisitor *v) override
 
const HtmlAttribListattribs () const
 
QCString tagName () const
 
- Public 成员函数 继承自 DocNode
 DocNode (DocParser &parser)
 
virtual ~DocNode ()
 
DocNodeparent () const
 
void setParent (DocNode *parent)
 
bool isPreformatted () const
 

Private 属性

uint m_position = 0
 
Style m_style = Bold
 
bool m_enable = false
 
HtmlAttribList m_attribs
 
QCString m_tagName
 

额外继承的成员函数

- Protected 类型 继承自 DocNode
enum  RefType { Unknown, Anchor, Section, Table }
 
- Protected 成员函数 继承自 DocNode
void setInsidePreformatted (bool p)
 
- Protected 属性 继承自 DocNode
DocNodem_parent = 0
 
DocParserm_parser
 

详细描述

Node representing a style change

在文件 docparser.h343 行定义.

成员枚举类型说明

◆ Style

枚举值
Bold 
Italic 
Code 
Center 
Small 
Subscript 
Superscript 
Preformatted 
Span 
Div 
Strike 
Underline 
Del 
Ins 

在文件 docparser.h346 行定义.

346  { Bold = (1<<0),
347  Italic = (1<<1),
348  Code = (1<<2),
349  Center = (1<<3),
350  Small = (1<<4),
351  Subscript = (1<<5),
352  Superscript = (1<<6),
353  Preformatted = (1<<7),
354  Span = (1<<8),
355  Div = (1<<9),
356  Strike = (1<<10),
357  Underline = (1<<11),
358  Del = (1<<12),
359  Ins = (1<<13),
360  S = (1<<14)
361  };

构造及析构函数说明

◆ DocStyleChange()

DocStyleChange::DocStyleChange ( DocParser parser,
DocNode parent,
uint  position,
Style  s,
const QCString tagName,
bool  enable,
const HtmlAttribList attribs = 0 
)
inline

成员函数说明

◆ accept()

void DocStyleChange::accept ( DocVisitor v)
inlineoverridevirtual

Acceptor function for node visitors. Part of the visitor pattern.

参数
vAbstract visitor.

实现了 DocNode.

在文件 docparser.h372 行定义.

372 { v->visit(this); }

引用了 DocVisitor::visit().

◆ attribs()

const HtmlAttribList& DocStyleChange::attribs ( ) const
inline

在文件 docparser.h373 行定义.

373 { return m_attribs; }

引用了 m_attribs.

被这些函数引用 DocStyleChange(), DocParser::handleInitialStyleCommands() , 以及 HtmlDocVisitor::visit().

◆ enable()

◆ kind()

Kind DocStyleChange::kind ( ) const
inlineoverridevirtual

Returns the kind of node. Provides runtime type information

实现了 DocNode.

在文件 docparser.h367 行定义.

367 { return Kind_StyleChange; }

引用了 DocNode::Kind_StyleChange.

◆ position()

uint DocStyleChange::position ( ) const
inline

在文件 docparser.h371 行定义.

371 { return m_position; }

引用了 m_position.

被这些函数引用 DocParser::handlePendingStyleCommands().

◆ style()

◆ styleString()

const char * DocStyleChange::styleString ( ) const

在文件 docparser.cpp979 行定义.

980 {
981  switch (m_style)
982  {
983  case DocStyleChange::Bold: return "b";
984  case DocStyleChange::Italic: return "em";
985  case DocStyleChange::Code: return "code";
986  case DocStyleChange::Center: return "center";
987  case DocStyleChange::Small: return "small";
988  case DocStyleChange::Subscript: return "subscript";
989  case DocStyleChange::Superscript: return "superscript";
990  case DocStyleChange::Preformatted: return "pre";
991  case DocStyleChange::Div: return "div";
992  case DocStyleChange::Span: return "span";
993  case DocStyleChange::Strike: return "strike";
994  case DocStyleChange::S: return "s";
995  case DocStyleChange::Del: return "del";
996  case DocStyleChange::Underline: return "u";
997  case DocStyleChange::Ins: return "ins";
998  }
999  return "<invalid>";
1000 }

引用了 Bold, Center, Code, Del, Div, Ins, Italic, m_style, Preformatted, S, Small, Span, Strike, Subscript, Superscript , 以及 Underline.

◆ tagName()

QCString DocStyleChange::tagName ( ) const
inline

类成员变量说明

◆ m_attribs

HtmlAttribList DocStyleChange::m_attribs
private

在文件 docparser.h380 行定义.

被这些函数引用 attribs() , 以及 DocStyleChange().

◆ m_enable

bool DocStyleChange::m_enable = false
private

在文件 docparser.h379 行定义.

被这些函数引用 enable().

◆ m_position

uint DocStyleChange::m_position = 0
private

在文件 docparser.h377 行定义.

被这些函数引用 position().

◆ m_style

Style DocStyleChange::m_style = Bold
private

在文件 docparser.h378 行定义.

被这些函数引用 style() , 以及 styleString().

◆ m_tagName

QCString DocStyleChange::m_tagName
private

在文件 docparser.h381 行定义.

被这些函数引用 DocStyleChange() , 以及 tagName().


该类的文档由以下文件生成:
DocStyleChange::position
uint position() const
Definition: docparser.h:371
DocVisitor::visit
virtual void visit(DocWord *)=0
DocStyleChange::Center
@ Center
Definition: docparser.h:349
DocStyleChange::Strike
@ Strike
Definition: docparser.h:356
DocStyleChange::Del
@ Del
Definition: docparser.h:358
DocStyleChange::m_position
uint m_position
Definition: docparser.h:377
DocStyleChange::Italic
@ Italic
Definition: docparser.h:347
DocStyleChange::Bold
@ Bold
Definition: docparser.h:346
DocStyleChange::Span
@ Span
Definition: docparser.h:354
DocStyleChange::Superscript
@ Superscript
Definition: docparser.h:352
DocStyleChange::m_attribs
HtmlAttribList m_attribs
Definition: docparser.h:380
DocNode::Kind_StyleChange
@ Kind_StyleChange
Definition: docparser.h:108
DocStyleChange::Ins
@ Ins
Definition: docparser.h:359
DocStyleChange::m_enable
bool m_enable
Definition: docparser.h:379
QCString::lower
QCString lower() const
Definition: qcstring.h:232
DocStyleChange::m_style
Style m_style
Definition: docparser.h:378
DocStyleChange::Small
@ Small
Definition: docparser.h:350
DocStyleChange::tagName
QCString tagName() const
Definition: docparser.h:374
DocStyleChange::m_tagName
QCString m_tagName
Definition: docparser.h:381
DocStyleChange::Subscript
@ Subscript
Definition: docparser.h:351
DocStyleChange::Code
@ Code
Definition: docparser.h:348
DocStyleChange::Preformatted
@ Preformatted
Definition: docparser.h:353
DocStyleChange::enable
bool enable() const
Definition: docparser.h:370
DocStyleChange::Underline
@ Underline
Definition: docparser.h:357
DocStyleChange::Div
@ Div
Definition: docparser.h:355
DocStyleChange::attribs
const HtmlAttribList & attribs() const
Definition: docparser.h:373
DocNode::DocNode
DocNode(DocParser &parser)
Definition: docparser.h:157
DocNode::parent
DocNode * parent() const
Definition: docparser.h:166
DocStyleChange::S
@ S
Definition: docparser.h:360
DocNode::m_parent
DocNode * m_parent
Definition: docparser.h:182