Source-highlight Qt Library
Main Page
Related Pages
Classes
Files
File List
TextFormatter.h
1
/*
2
* Copyright (C) 2008-2010 Lorenzo Bettini, http://www.lorenzobettini.it
3
* License: See COPYING file that comes with this distribution
4
*/
5
6
#ifndef TEXTFORMATTER_H_
7
#define TEXTFORMATTER_H_
8
9
#include <string>
10
11
#include <boost/shared_ptr.hpp>
12
13
#include <srchilite/formatter.h>
14
15
class
FormatterParams;
16
class
QSyntaxHighlighter;
17
18
namespace
srchiliteqt {
19
30
class
TextFormatter
:
public
srchilite::Formatter {
31
protected
:
33
std::string
elem
;
34
35
public
:
36
TextFormatter
(
const
std::string &elem_ =
"normal"
);
37
virtual
~
TextFormatter
();
38
42
const
std::string &
getElem
()
const
{
return
elem
; }
43
void
setElem(
const
std::string &e) {
elem
= e; }
44
45
virtual
void
setQSyntaxHighlighter(QSyntaxHighlighter *qSyntaxHighlighter_) = 0;
46
};
47
49
typedef
boost::shared_ptr<TextFormatter> TextFormatterPtr;
50
51
}
52
53
#endif
/* TEXTFORMATTER_H_ */
TextFormatter.h
Generated on Sat Aug 25 2012 15:37:49 for Source-highlight Qt Library by
1.8.1.2