libepubgen::EPUBImageManager Class Reference documentation

libepubgen::EPUBImageManager Class Reference

`#include <EPUBImageManager.h>`

## Classes
struct | BinaryDataHash
struct | BinaryDataEqual

## Public Member Functions
| EPUBImageManager (EPUBManifest &manifest)
const EPUBPath & | insert (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 &)
EPUBImageManager & | operator= (const EPUBImageManager &)
void | extractImageProperties (librevenge::RVNGPropertyList const &pList, EPUBCSSProperties &cssProps) const
| convert a property list into a CSS property map

## Private Attributes
EPUBManifest & | m_manifest
MapType_t | m_map
EPUBCounter | m_number
ContentNameMap_t | m_imageContentNameMap
| a map image content -> name

## Member Typedef Documentation

## ◆ ContentNameMap_t

typedef std::unordered_map<EPUBCSSProperties, std::string, boost::hash<EPUBCSSProperties> > libepubgen::EPUBImageManager::ContentNameMap_t
| private

## ◆ MapType_t

typedef std::unordered_map<librevenge::RVNGBinaryData, EPUBPath, BinaryDataHash, BinaryDataEqual> libepubgen::EPUBImageManager::MapType_t
| private

## Constructor & Destructor Documentation

## ◆ EPUBImageManager() [1/2]

libepubgen::EPUBImageManager::EPUBImageManager | ( | const EPUBImageManager & |  | ) |
| private

Referenced by EPUBImageManager(), and operator=().

## ◆ EPUBImageManager() [2/2]

libepubgen::EPUBImageManager::EPUBImageManager | ( | EPUBManifest & | manifest | ) |
| explicit

## Member Function Documentation

## ◆ extractImageProperties()

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().

## ◆ getFrameClass()

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

returns the class name corresponding to a propertylist

## ◆ getFrameStyle()

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

returns the style string corresponding to a propertylist

## ◆ getWrapStyle()

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

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

## ◆ insert()

const EPUBPath & libepubgen::EPUBImageManager::insert | ( | const librevenge::RVNGBinaryData & | data,
|  | const librevenge::RVNGString & | mimetype,
|  | const librevenge::RVNGString & | properties = "" )

## ◆ operator=()

EPUBImageManager & libepubgen::EPUBImageManager::operator= | ( | const EPUBImageManager & |  | ) |
| private

## ◆ send()

void libepubgen::EPUBImageManager::send | ( | EPUBCSSSink & | out | ) |

send the data to the sink

## ◆ writeTo()

void libepubgen::EPUBImageManager::writeTo | ( | EPUBPackage & | package | ) |

## Member Data Documentation

## ◆ m_imageContentNameMap

ContentNameMap_t libepubgen::EPUBImageManager::m_imageContentNameMap
| private

a map image content -> name

Referenced by EPUBImageManager(), getFrameClass(), and send().

## ◆ m_manifest

EPUBManifest& libepubgen::EPUBImageManager::m_manifest
| private

Referenced by EPUBImageManager(), and insert().

## ◆ m_map

MapType_t libepubgen::EPUBImageManager::m_map
| private

Referenced by EPUBImageManager(), insert(), and writeTo().

## ◆ m_number

EPUBCounter libepubgen::EPUBImageManager::m_number
| private

Referenced by EPUBImageManager(), and insert().

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

- EPUBImageManager.h
- EPUBImageManager.cpp