Go to the documentation of this file.
10 #ifndef INCLUDED_EPUBFONTMANAGER_H
11 #define INCLUDED_EPUBFONTMANAGER_H
13 #include <unordered_map>
14 #include <unordered_set>
16 #include <boost/functional/hash.hpp>
18 #include <librevenge/librevenge.h>
40 std::size_t
operator()(
const librevenge::RVNGBinaryData &data)
const;
45 bool operator()(
const librevenge::RVNGBinaryData &left,
const librevenge::RVNGBinaryData &right)
const;
48 typedef std::unordered_map<librevenge::RVNGBinaryData, EPUBPath, BinaryDataHash, BinaryDataEqual>
MapType_t;
49 typedef std::unordered_set<EPUBCSSProperties, boost::hash<EPUBCSSProperties>>
SetType_t;
54 void insert(
const librevenge::RVNGPropertyList &propertyList,
const EPUBPath &path);
56 void writeTo(EPUBPackage &package);
75 #endif // INCLUDED_EPUBFONTMANAGER
void extractFontProperties(librevenge::RVNGPropertyList const &pList, EPUBCSSProperties &cssProps) const
convert a property list into a CSS property map
Definition: EPUBFontManager.cpp:118
void insertBinaryData(const librevenge::RVNGBinaryData &data)
Definition: EPUBBinaryContent.cpp:22
void writeTo(EPUBPackage &package)
Definition: EPUBFontManager.cpp:134
Definition: EPUBCSSContent.h:23
Impl(EPUBPackage *const package, int version)
Definition: EPUBDrawingGenerator.cpp:29
void insert(const librevenge::RVNGPropertyList &propertyList, const EPUBPath &path)
Definition: EPUBFontManager.cpp:76
MapType_t m_map
Font filename -> content map.
Definition: EPUBFontManager.h:67
void insertRule(const librevenge::RVNGString &selector, const librevenge::RVNGPropertyList &properties)
Definition: EPUBCSSContent.cpp:22
void writeTo(EPUBPackage &package, const char *name)
Definition: EPUBBinaryContent.cpp:27
void fillPropertyList(const EPUBCSSProperties &cssProps, librevenge::RVNGPropertyList &props)
Definition: EPUBCSSProperties.cpp:15
Definition: EPUBBinaryContent.cpp:14
Definition: EPUBBinaryContent.h:20
std::unordered_set< EPUBCSSProperties, boost::hash< EPUBCSSProperties > > SetType_t
Definition: EPUBFontManager.h:49
Definition: EPUBCounter.h:16
std::map< std::string, std::string > EPUBCSSProperties
Definition: EPUBCSSProperties.h:21
unsigned next()
Definition: EPUBCounter.cpp:25
void insert(const EPUBPath &path, const std::string &mimetype, const std::string &id, const std::string &properties)
Definition: EPUBManifest.cpp:25
EPUBFontManager(const EPUBFontManager &)
std::size_t operator()(const librevenge::RVNGBinaryData &data) const
Definition: EPUBFontManager.cpp:47
Definition: EPUBDrawingGenerator.cpp:23
EPUBManifest & m_manifest
Definition: EPUBFontManager.h:65
EPUBFontManager & operator=(const EPUBFontManager &)
Representation of a path in the package.
Definition: EPUBPath.h:21
Definition: EPUBFontManager.h:43
Definition: EPUBFontManager.h:38
const std::string str() const
Definition: EPUBPath.cpp:87
Manages embedded fonts.
Definition: EPUBFontManager.h:32
std::unordered_map< librevenge::RVNGBinaryData, EPUBPath, BinaryDataHash, BinaryDataEqual > MapType_t
Definition: EPUBFontManager.h:48
bool operator()(const librevenge::RVNGBinaryData &left, const librevenge::RVNGBinaryData &right) const
Definition: EPUBFontManager.cpp:58
SetType_t m_set
Set of font properties.
Definition: EPUBFontManager.h:70
Definition: EPUBPagedGenerator.h:25
Definition: EPUBManifest.h:23
void send(EPUBCSSContent &out)
send the data to the sink
Definition: EPUBFontManager.cpp:144
EPUBCounter m_number
Definition: EPUBFontManager.h:68
Generated for libepubgen by
doxygen 1.8.16