srchiliteqt::TextFormatter Class Reference

A specialization of srchilite::Formatter in order to format parts of a document, instead of outputting the formatted text. More...

#include <TextFormatter.h>

Inherited by srchiliteqt::Qt3TextFormatter, and srchiliteqt::Qt4TextFormatter.

Collaboration diagram for srchiliteqt::TextFormatter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TextFormatter (const std::string &elem_="normal")
const std::string & getElem () const
void setElem (const std::string &e)
virtual void setQSyntaxHighlighter (QSyntaxHighlighter *qSyntaxHighlighter_)=0

Protected Attributes

std::string elem
 the language element represented by this formatter

Detailed Description

A specialization of srchilite::Formatter in order to format parts of a document, instead of outputting the formatted text.

Note that the abstract method setQSyntaxHighlighter(QSyntaxHighlighter *). Since this header file does not include the header file for QSyntaxHighlighter, then this same class can be re-used both for Qt3 and for Qt4 (the subclasses of this class will include the correct header file for QSyntaxHighlighter).


Member Function Documentation

const std::string& srchiliteqt::TextFormatter::getElem (  )  const [inline]
Returns:
the language element represented by this formatter

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

Generated on Sat Mar 6 11:23:00 2010 for Source-highlight Qt Library by  doxygen 1.6.1