/usr/include/libepubgen-0.0/libepubgen/libepubgen-decls.h is in libepubgen-dev 0.0.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* This file is part of the libepubgen project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef INCLUDED_LIBEPUBGEN_LIBEPUBGEN_DECLS_H
#define INCLUDED_LIBEPUBGEN_LIBEPUBGEN_DECLS_H
namespace libepubgen
{
/** Possible type of image for embedded images handler.
*/
enum EPUBImageType
{
EPUB_IMAGE_TYPE_GIF, //< GIF
EPUB_IMAGE_TYPE_JPEG, //< JPEG
EPUB_IMAGE_TYPE_PNG, //< PNG
EPUB_IMAGE_TYPE_SVG //< SVG
};
/** The possible ways to split the content to multiple HTML files.
*/
enum EPUBSplitMethod
{
EPUB_SPLIT_METHOD_PAGE_BREAK, //< The content will be split on explicit page breaks.
EPUB_SPLIT_METHOD_HEADING, //< The content will be split on headings.
EPUB_SPLIT_METHOD_SIZE, //< The content will be split into roughly equal-sized chunks.
EPUB_SPLIT_METHOD_NONE, //< The whole content will be in a single HTML.
EPUB_SPLIT_METHOD_DETECT //< The first method that actually results in splitting will be used.
};
/** An opaque type used for communication with the parent generator.
*
* Embedded objects are generated into completely separate flows. But there are
* still items that the generator for the embedded object needs to push into
* its parent generator; manifest entries, for example. This class is used for
* that purpose.
*/
class EPUBEmbeddingContact;
/** Handler for embedded images.
*
* This must convert the input image to one of the OPS Core Media Types:
* GIF, JPEG, PNG or SVG.
*
* @param[in] input the image's data
* @param[in] output the same image in one of the OPS Core Media Types
* @param[in] type type of the output image
*/
typedef bool (*EPUBEmbeddedImage)(const librevenge::RVNGBinaryData &input, librevenge::RVNGBinaryData &output, EPUBImageType &type);
/** Handler for embedded objects.
*
* @param[in] input the objects's data
* @param[in] contact the contact to the parent generator
*/
typedef bool (*EPUBEmbeddedObject)(const librevenge::RVNGBinaryData &data, const EPUBEmbeddingContact &contact);
}
#endif // INCLUDED_LIBEPUBGEN_LIBEPUBGEN_DECLS_H
/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
|