Scribus Epub Export Plugin
Public Member Functions | List of all members
EpubExportXhtml Class Reference

collect the content of the Xhtml files that are to be added to the epub file. More...

#include <epubexportXhtml.h>

Inheritance diagram for EpubExportXhtml:
Inheritance graph
[legend]
Collaboration diagram for EpubExportXhtml:
Collaboration graph
[legend]

Public Member Functions

void initialize (QString language, QString title, QString styleUrl)
 create the xhtml document structure and give access to xhtmlBody where addText and addImage will add the content More...
 
QString getString ()
 Get the Xhtml file as a string. More...
 
QDomDocument getQDomDocument ()
 
void addContentText (QList< QDomElement > content)
 Append the content one paragraph at a time.
 
void addContentImage (ScribusAPIDocumentItemImageWeb image)
 

Detailed Description

collect the content of the Xhtml files that are to be added to the epub file.

Member Function Documentation

void EpubExportXhtml::addContentImage ( ScribusAPIDocumentItemImageWeb  image)

Add one image.

QString EpubExportXhtml::getString ( )

Get the Xhtml file as a string.

TODO:

  • refactor and include getFixedXhtml() in here
void EpubExportXhtml::initialize ( QString  language,
QString  title,
QString  styleUrl 
)

create the xhtml document structure and give access to xhtmlBody where addText and addImage will add the content

1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
4  <head>
5  <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
6  <title>Pride and Prejudice</title>
7  <link rel="stylesheet" href="css/main.css" type="text/css" />
8  </head>
9  <body>
10  </body>
11 </html>

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