Source-highlight Qt Library
srchiliteqt::TextFormatter Class Referenceabstract

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

#include <TextFormatter.h>

Inheritance diagram for srchiliteqt::TextFormatter:
Collaboration diagram for srchiliteqt::TextFormatter:

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: