Computer Assited Medical Intervention Tool Kit  version 5.0
XmlHighlighter Class Reference

TODO Comment class here. More...

#include <Xmlhighlighter.h>

+ Inheritance diagram for XmlHighlighter:
+ Collaboration diagram for XmlHighlighter:

Classes

struct  HighlightingRule
 

Public Member Functions

 XmlHighlighter (QTextDocument *parent=nullptr)
 [0] More...
 

Protected Member Functions

void highlightBlock (const QString &text) override
 
void highlightSubBlock (const QString &text, const int startIndex, const int currState)
 

Private Types

enum  xmlState {
  inNothing, inProcInst, inDoctypeDecl, inOpenTag,
  inOpenTagName, inAttribute, inAttName, inAttVal,
  inCloseTag, inCloseTagName, inComment
}
 

Private Attributes

QVector< HighlightingRulehlRules
 
QRegExp xmlAttributeEndExpression
 
QTextCharFormat xmlAttributeFormat
 
QRegExp xmlAttributeStartExpression
 
QRegExp xmlAttValEndExpression
 
QRegExp xmlAttValExpression
 
QTextCharFormat xmlAttValFormat
 
QRegExp xmlAttValStartExpression
 
QRegExp xmlCloseTagEndExpression
 
QRegExp xmlCloseTagStartExpression
 
QRegExp xmlCommentEndExpression
 
QTextCharFormat xmlCommentFormat
 
QRegExp xmlCommentStartExpression
 
QRegExp xmlDoctypeEndExpression
 
QTextCharFormat xmlDoctypeFormat
 
QRegExp xmlDoctypeStartExpression
 
QTextCharFormat xmlEntityFormat
 
QRegExp xmlOpenTagEndExpression
 
QRegExp xmlOpenTagStartExpression
 
QRegExp xmlProcInstEndExpression
 
QTextCharFormat xmlProcInstFormat
 
QRegExp xmlProcInstStartExpression
 
QTextCharFormat xmlTagFormat
 

Detailed Description

TODO Comment class here.

Member Enumeration Documentation

◆ xmlState

Enumerator
inNothing 
inProcInst 
inDoctypeDecl 
inOpenTag 
inOpenTagName 
inAttribute 
inAttName 
inAttVal 
inCloseTag 
inCloseTagName 
inComment 

Constructor & Destructor Documentation

◆ XmlHighlighter()

Member Function Documentation

◆ highlightBlock()

void XmlHighlighter::highlightBlock ( const QString &  text)
overrideprotected

References XmlHighlighter::HighlightingRule::format, highlightSubBlock(), hlRules, and XmlHighlighter::HighlightingRule::pattern.

+ Here is the call graph for this function:

◆ highlightSubBlock()

void XmlHighlighter::highlightSubBlock ( const QString &  text,
const int  startIndex,
const int  currState 
)
protected

Member Data Documentation

◆ hlRules

QVector<HighlightingRule> XmlHighlighter::hlRules
private

Referenced by highlightBlock(), and XmlHighlighter().

◆ xmlAttributeEndExpression

QRegExp XmlHighlighter::xmlAttributeEndExpression
private

◆ xmlAttributeFormat

QTextCharFormat XmlHighlighter::xmlAttributeFormat
private

◆ xmlAttributeStartExpression

QRegExp XmlHighlighter::xmlAttributeStartExpression
private

◆ xmlAttValEndExpression

QRegExp XmlHighlighter::xmlAttValEndExpression
private

◆ xmlAttValExpression

QRegExp XmlHighlighter::xmlAttValExpression
private

◆ xmlAttValFormat

QTextCharFormat XmlHighlighter::xmlAttValFormat
private

◆ xmlAttValStartExpression

QRegExp XmlHighlighter::xmlAttValStartExpression
private

Referenced by XmlHighlighter().

◆ xmlCloseTagEndExpression

QRegExp XmlHighlighter::xmlCloseTagEndExpression
private

◆ xmlCloseTagStartExpression

QRegExp XmlHighlighter::xmlCloseTagStartExpression
private

◆ xmlCommentEndExpression

QRegExp XmlHighlighter::xmlCommentEndExpression
private

◆ xmlCommentFormat

QTextCharFormat XmlHighlighter::xmlCommentFormat
private

◆ xmlCommentStartExpression

QRegExp XmlHighlighter::xmlCommentStartExpression
private

◆ xmlDoctypeEndExpression

QRegExp XmlHighlighter::xmlDoctypeEndExpression
private

◆ xmlDoctypeFormat

QTextCharFormat XmlHighlighter::xmlDoctypeFormat
private

◆ xmlDoctypeStartExpression

QRegExp XmlHighlighter::xmlDoctypeStartExpression
private

◆ xmlEntityFormat

QTextCharFormat XmlHighlighter::xmlEntityFormat
private

Referenced by XmlHighlighter().

◆ xmlOpenTagEndExpression

QRegExp XmlHighlighter::xmlOpenTagEndExpression
private

◆ xmlOpenTagStartExpression

QRegExp XmlHighlighter::xmlOpenTagStartExpression
private

◆ xmlProcInstEndExpression

QRegExp XmlHighlighter::xmlProcInstEndExpression
private

◆ xmlProcInstFormat

QTextCharFormat XmlHighlighter::xmlProcInstFormat
private

◆ xmlProcInstStartExpression

QRegExp XmlHighlighter::xmlProcInstStartExpression
private

◆ xmlTagFormat

QTextCharFormat XmlHighlighter::xmlTagFormat
private

The documentation for this class was generated from the following files: