QsciLexerXML Class Reference

The QsciLexerXML class encapsulates the Scintilla XML lexer. More...

#include <qscilexerxml.h>

Inherits QsciLexerHTML.

List of all members.

Public Member Functions

Protected Member Functions


Detailed Description

The QsciLexerXML class encapsulates the Scintilla XML lexer.

Constructor & Destructor Documentation

QsciLexerXML::QsciLexerXML ( QObject *  parent = 0,
const char *  name = 0 
)

Construct a QsciLexerXML with parent parent and name name. parent is typically the QsciScintilla instance.

virtual QsciLexerXML::~QsciLexerXML (  )  [virtual]

Destroys the QsciLexerXML instance.


Member Function Documentation

const char* QsciLexerXML::language (  )  const [virtual]

Returns the name of the language.

Reimplemented from QsciLexerHTML.

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.

See also:
defaultPaper()

Reimplemented from QsciLexerHTML.

bool QsciLexerXML::defaultEolFill ( int  style  )  const [virtual]

Returns the end-of-line fill for style number style.

Reimplemented from QsciLexerHTML.

QFont QsciLexerXML::defaultFont ( int  style  )  const [virtual]

Returns the font 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.

See also:
defaultColor()

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.

See also:
scriptsStyled()

bool QsciLexerXML::scriptsStyled (  )  const

Returns true if scripts are styled.

See also:
setScriptsStyled()

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.


Generated on Fri Jun 5 10:00:43 2009 for QScintilla by  doxygen 1.5.8