Contains the structure data of the Epub file (metadata, manifest, cover, Xml files, ...)
More...
#include <epubexportStructure.h>
Contains the structure data of the Epub file (metadata, manifest, cover, Xml files, ...)
| EpubExportStructure::EpubExportStructure |
( |
| ) |
|
Store information related to the structure of content and return the strings for the "structural" files for the .epub file
| void EpubExportStructure::addToManifest |
( |
QString |
id, |
|
|
QString |
path, |
|
|
QString |
mediatype |
|
) |
| |
| void EpubExportStructure::addToToc |
( |
QString |
id, |
|
|
QString |
path, |
|
|
QString |
title |
|
) |
| |
| QString EpubExportStructure::getContainer |
( |
| ) |
|
add META-INF/container.xml to the current epub file
1 <?
xml version=
"1.0" encoding=
"UTF-8" ?>
2 <
container version=
"1.0" xmlns=
"urn:oasis:names:tc:opendocument:xmlns:container">
4 <
rootfile full-path=
"OEBPS/content.opf" media-type=
"application/oebps-package+xml"/>
| QString EpubExportStructure::getNCX |
( |
| ) |
|
creates the xml string for the NCX file
1 <?
xml version=
"1.0" encoding=
"UTF-8"?>
2 <!
DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN" 3 "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd">
4 <
ncx version=
"2005-1" xml:lang=
"en" xmlns=
"http://www.daisy.org/z3986/2005/ncx/">
6 <
meta name=
"dtb:uid" content=
"123456789X"/>
7 <
meta name=
"dtb:depth" content=
"1"/>
8 <
meta name=
"dtb:totalPageCount" content=
"0"/>
9 <
meta name=
"dtb:maxPageNumber" content=
"0"/>
12 <
text>
Pride and Prejudice</
text>
15 <
text>
Austen,
Jane</
text>
18 <
navPoint class=
"chapter" id=
"chapter1" playOrder=
"1">
19 <
navLabel><
text>
Chapter 1</
text></
navLabel>
20 <
content src=
"chapter1.xhtml"/>
| QString EpubExportStructure::getOPF |
( |
| ) |
|
creates the xml string for the OPF file
The OPF file, traditionally named content.opf, houses the EPUB book's metadata, file manifest, and linear reading order.
On the IDPF site you can find the full list of the possible metadata http://idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.2
2 <
package version=
"2.0" xmlns=
"http://www.idpf.org/2007/opf" unique-identifier=
"BookId">
3 <
metadata xmlns:dc=
"http://purl.org/dc/elements/1.1/" xmlns:opf=
"http://www.idpf.org/2007/opf">
4 <
dc:title>
Pride and Prejudice</
dc:title>
5 <
dc:language>
en</
dc:language>
6 <
dc:identifier id=
"BookId" opf:scheme=
"ISBN">123456789
X</
dc:identifier>
7 <
dc:creator opf:file-as=
"Austen, Jane" opf:role=
"aut">
Jane Austen</
dc:creator>
10 <
item id=
"chapter1" href=
"chapter1.xhtml" media-type=
"application/xhtml+xml"/>
11 <
item id=
"stylesheet" href=
"style.css" media-type=
"text/css"/>
12 <
item id=
"ch1-pic" href=
"ch1-pic.png" media-type=
"image/png"/>
13 <
item id=
"myfont" href=
"css/myfont.otf" media-type=
"application/x-font-opentype"/>
14 <
item id=
"ncx" href=
"toc.ncx" media-type=
"application/x-dtbncx+xml"/>
17 <
itemref idref=
"chapter1" />
20 <
reference type=
"loi" title=
"List Of Illustrations" href=
"appendix.html#figures" />
| void EpubExportStructure::setCover |
( |
QByteArray |
cover | ) |
|
|
inline |
- Parameters
-
| cover | content of a PNG file as a byte stream |
The documentation for this class was generated from the following files: