Scribus Epub Export Plugin
epubexportXhtml.h
1 
4 #ifndef EPUBEXPORTXHTML_H
5 #define EPUBEXPORTXHTML_H
6 
7 #include <QObject>
8 #include <QDebug>
9 
10 #include <QDomElement>
11 #include <QList>
12 
13 class QString;
14 
15 class ScribusAPIDocumentItemImageWeb;
16 
20 class EpubExportXhtml : public QObject
21 {
22  Q_OBJECT
23 
24 public:
26  ~EpubExportXhtml();
27  void initialize(QString language, QString title, QString styleUrl);
28  QString getString();
29  QDomDocument getQDomDocument() { return xhtmlDocument; }
30  void addContentText(QList<QDomElement> content);
31  void addContentImage(ScribusAPIDocumentItemImageWeb image);
32 private:
33  QDomDocument xhtmlDocument;
34  QDomElement xhtmlRoot;
35  QDomElement xhtmlBody;
36 
37  QString getFixedXhtml(QString xhtml);
38 
39 };
40 
41 QDebug operator<<(QDebug dbg, const EpubExportXhtml xhtml);
42 
43 #endif // EPUBEXPORTXHTML_H
44 
void addContentText(QList< QDomElement > content)
Append the content one paragraph at a time.
Definition: epubexportXhtml.cpp:87
QString getString()
Get the Xhtml file as a string.
Definition: epubexportXhtml.cpp:124
void initialize(QString language, QString title, QString styleUrl)
create the xhtml document structure and give access to xhtmlBody where addText and addImage will add ...
Definition: epubexportXhtml.cpp:41
void addContentImage(ScribusAPIDocumentItemImageWeb image)
Definition: epubexportXhtml.cpp:99
collect the content of the Xhtml files that are to be added to the epub file.
Definition: epubexportXhtml.h:20