libepubgen::EPUBImageManager Class Reference

#include <EPUBImageManager.h>

List of all members.

Classes

struct  BinaryDataEqual
struct  BinaryDataHash

Public Member Functions

 EPUBImageManager (EPUBManifest &manifest)
const EPUBPathinsert (const librevenge::RVNGBinaryData &data, const librevenge::RVNGString &mimetype, const librevenge::RVNGString &properties="")
void writeTo (EPUBPackage &package)
std::string getFrameClass (librevenge::RVNGPropertyList const &pList)
 returns the class name corresponding to a propertylist
std::string getFrameStyle (librevenge::RVNGPropertyList const &pList)
 returns the style string corresponding to a propertylist
void send (EPUBCSSSink &out)
 send the data to the sink

Static Public Member Functions

static std::string getWrapStyle (librevenge::RVNGPropertyList const &pList)
 returns the style for a follow-up
element, based on wrapping properties.

Private Types

typedef std::unordered_map
< librevenge::RVNGBinaryData,
EPUBPath, BinaryDataHash,
BinaryDataEqual
MapType_t
typedef std::unordered_map
< EPUBCSSProperties,
std::string, boost::hash
< EPUBCSSProperties > > 
ContentNameMap_t

Private Member Functions

 EPUBImageManager (const EPUBImageManager &)
EPUBImageManageroperator= (const EPUBImageManager &)
void extractImageProperties (librevenge::RVNGPropertyList const &pList, EPUBCSSProperties &cssProps) const
 convert a property list into a CSS property map

Private Attributes

EPUBManifestm_manifest
MapType_t m_map
EPUBCounter m_number
ContentNameMap_t m_imageContentNameMap
 a map image content -> name

Member Typedef Documentation

typedef std::unordered_map<EPUBCSSProperties, std::string, boost::hash<EPUBCSSProperties> > libepubgen::EPUBImageManager::ContentNameMap_t [private]
typedef std::unordered_map<librevenge::RVNGBinaryData, EPUBPath, BinaryDataHash, BinaryDataEqual> libepubgen::EPUBImageManager::MapType_t [private]

Constructor & Destructor Documentation


Member Function Documentation

void libepubgen::EPUBImageManager::extractImageProperties ( librevenge::RVNGPropertyList const &  pList,
EPUBCSSProperties cssProps 
) const [private]

convert a property list into a CSS property map

Referenced by getFrameClass(), and getFrameStyle().

std::string libepubgen::EPUBImageManager::getFrameClass ( librevenge::RVNGPropertyList const &  pList)

returns the class name corresponding to a propertylist

std::string libepubgen::EPUBImageManager::getFrameStyle ( librevenge::RVNGPropertyList const &  pList)

returns the style string corresponding to a propertylist

std::string libepubgen::EPUBImageManager::getWrapStyle ( librevenge::RVNGPropertyList const &  pList) [static]

returns the style for a follow-up
element, based on wrapping properties.

const EPUBPath & libepubgen::EPUBImageManager::insert ( const librevenge::RVNGBinaryData &  data,
const librevenge::RVNGString &  mimetype,
const librevenge::RVNGString &  properties = "" 
)
EPUBImageManager& libepubgen::EPUBImageManager::operator= ( const EPUBImageManager ) [private]

send the data to the sink

Referenced by libepubgen::EPUBGenerator::writeStylesheet().


Member Data Documentation

a map image content -> name

Referenced by getFrameClass(), and send().


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