Scribus
Open source desktop publishing at your fingertips
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
textfilter.h
1
/*
2
For general Scribus (>=1.3.2) copyright and licensing information please refer
3
to the COPYING file provided with the program. Following this notice may exist
4
a copyright and/or license notice that predates the release of Scribus 1.3.2
5
for which a new license (GPL+exception) is in place.
6
*/
7
#ifndef TEXTFILTER_H
8
#define TEXTFILTER_H
9
10
#include "pluginapi.h"
11
12
#include <prefscontext.h>
13
#include "gtwriter.h"
14
#include "tffilter.h"
15
16
extern
"C"
PLUGIN_API
void
GetText(QString filename, QString encoding,
bool
textOnly,
gtWriter
*writer);
17
18
extern
"C"
PLUGIN_API QString FileFormatName();
19
20
extern
"C"
PLUGIN_API QStringList FileExtensions();
21
22
class
TextFilter
23
{
24
private
:
25
PrefsContext
* prefs;
26
QString text;
27
QString encoding;
28
QString filename;
29
gtWriter
* writer;
30
std::vector<tfFilter*> *filters;
31
void
loadText();
32
void
write();
33
void
replace(QString* text);
34
void
replaceHex(QString* text);
35
public
:
36
TextFilter
(
const
QString& fname,
const
QString& enc,
gtWriter
* w);
37
~
TextFilter
();
38
};
39
40
#endif // TEXTFILTER_H
gtWriter
Definition:
gtwriter.h:38
TextFilter
Definition:
textfilter.h:22
PrefsContext
Definition:
prefscontext.h:40
scribus
plugins
gettext
textfilter
textfilter.h
Generated on Tue Sep 29 2015 09:15:03 for Scribus by
1.8.9.1