QScintilla
2.7.1
|
#include <qscilexerxml.h>
Inherits QsciLexerHTML.
The QsciLexerXML class encapsulates the Scintilla XML lexer.
QsciLexerXML::QsciLexerXML | ( | QObject * | parent = 0 | ) |
Construct a QsciLexerXML with parent parent. parent is typically the QsciScintilla instance.
const char* QsciLexerXML::lexer | ( | ) | const [virtual] |
Returns the name of the lexer. Some lexers support a number of languages.
Reimplemented from QsciLexerHTML.
QColor QsciLexerXML::defaultColor | ( | int | style | ) | const [virtual] |
Returns the foreground colour of the text for style number style.
Reimplemented from QsciLexerHTML.
QColor QsciLexerXML::defaultPaper | ( | int | style | ) | const [virtual] |
Returns the background colour of the text for style number style.
Reimplemented from QsciLexerHTML.
const char* QsciLexerXML::keywords | ( | int | set | ) | const [virtual] |
Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.
Reimplemented from QsciLexerHTML.
void QsciLexerXML::refreshProperties | ( | ) | [virtual] |
Causes all properties to be refreshed by emitting the propertyChanged() signal as required.
Reimplemented from QsciLexerHTML.
void QsciLexerXML::setScriptsStyled | ( | bool | styled | ) |
If allowed is true then scripts are styled. The default is true.
bool QsciLexerXML::scriptsStyled | ( | ) | const |
Returns true if scripts are styled.
bool QsciLexerXML::readProperties | ( | QSettings & | qs, |
const QString & | prefix | ||
) | [protected, virtual] |
The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.
Reimplemented from QsciLexerHTML.
bool QsciLexerXML::writeProperties | ( | QSettings & | qs, |
const QString & | prefix | ||
) | const [protected, virtual] |
The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.
Reimplemented from QsciLexerHTML.