Something went wrong. Try again.
A fork of https://github.com/crosspoint-reader/crosspoint-reader
Something went wrong. Try again.
1.4 kB · 32 lines
C++
123456789101112131415161718192021222324252627282930313233#include <Epub/Page.h>#include <Epub/TokenBoundary.h>#include <Epub/blocks/ImageBlock.h>#include <Epub/blocks/TextBlock.h>#include <Epub/converters/ImageDecoderFactory.h>#include <Epub/converters/ImageToFramebufferDecoder.h>#include <Epub/hyphenation/Hyphenator.h>#include <GfxRenderer.h>
const char* lookupHtmlEntity(const char*, size_t) { return nullptr; }
#include <BidiUtils.h>
bool isExplicitHyphen(uint32_t) { return false; }bool isSoftHyphen(uint32_t) { return false; }
std::vector<Hyphenator::BreakInfo> Hyphenator::breakOffsets(const std::string&, bool) { return {}; }
ImageBlock::ImageBlock(const std::string& imagePath, const std::string& srcPath, int16_t width, int16_t height) : imagePath(imagePath), srcPath(srcPath), width(width), height(height) {}
bool ImageDecoderFactory::isFormatSupported(const std::string&) { return false; }ImageToFramebufferDecoder* ImageDecoderFactory::getDecoder(const std::string&) { return nullptr; }bool ImageToFramebufferDecoder::validateAndStoreDimensions(int64_t, int64_t, ImageDimensions&, const char*) { return false;}
void ImageBlock::render(GfxRenderer&, int, int) {}void ImageBlock::renderPlaceholder(GfxRenderer&, int, int) const {}bool ImageBlock::needsDecode() const { return false; }bool ImageBlock::serialize(HalFile&) { return false; }std::unique_ptr<ImageBlock> ImageBlock::deserialize(HalFile&) { return nullptr; }