This file is indexed.

/usr/include/libepubgen-0.0/libepubgen/EPUBTextGenerator.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
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
/* -*- 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_EPUBTEXTGENERATOR_H
#define INCLUDED_LIBEPUBGEN_EPUBTEXTGENERATOR_H

#include <librevenge/librevenge.h>
#include <librevenge-stream/librevenge-stream.h>

#include "libepubgen-api.h"
#include "libepubgen-decls.h"

namespace libepubgen
{

class EPUBPackage;

/** EPUB generator for text documents.
  */
class EPUBGENAPI EPUBTextGenerator : public librevenge::RVNGTextInterface
{
  // disable copying
  EPUBTextGenerator(const EPUBTextGenerator &);
  EPUBTextGenerator &operator=(const EPUBTextGenerator &);

  struct Impl;

public:
  explicit EPUBTextGenerator(EPUBPackage *package, EPUBSplitMethod split = EPUB_SPLIT_METHOD_PAGE_BREAK);
  EPUBTextGenerator(EPUBEmbeddingContact &contact, EPUBPackage *package);
  virtual ~EPUBTextGenerator();

  void setSplitHeadingLevel(unsigned level);
  void setSplitSize(unsigned size);

  /** Register a handler for embedded images.
    *
    * The handler must convert the image to one of the OPS Core Media Types.
    *
    * @param[in] mimeType the MIME type of the image
    * @param[in] imageHandler a function that converts the image to a
    *   suitable format
    *
    * @sa EPUBEmbeddedImage
    */
  void registerEmbeddedImageHandler(const librevenge::RVNGString &mimeType, EPUBEmbeddedImage imageHandler);

  /** Register a handler for embedded objects.
    *
    * @param[in] mimeType the MIME type of the object
    * @param[in] objectHandler a function that generates EPUB content
    *   from an object's data
    *
    * @sa EPUBEmbeddedObject
    */
  void registerEmbeddedObjectHandler(const librevenge::RVNGString &mimeType, EPUBEmbeddedObject objectHandler);

  virtual void setDocumentMetaData(const librevenge::RVNGPropertyList &propList);

  virtual void startDocument(const librevenge::RVNGPropertyList &propList);

  virtual void endDocument();

  virtual void definePageStyle(const librevenge::RVNGPropertyList &propList);

  virtual void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList);

  virtual void openPageSpan(const librevenge::RVNGPropertyList &propList);
  virtual void closePageSpan();

  virtual void openHeader(const librevenge::RVNGPropertyList &propList);
  virtual void closeHeader();

  virtual void openFooter(const librevenge::RVNGPropertyList &propList);
  virtual void closeFooter();

  virtual void defineParagraphStyle(const librevenge::RVNGPropertyList &propList);

  virtual void openParagraph(const librevenge::RVNGPropertyList &propList);
  virtual void closeParagraph();

  virtual void defineCharacterStyle(const librevenge::RVNGPropertyList &propList);

  virtual void openSpan(const librevenge::RVNGPropertyList &propList);
  virtual void closeSpan();
  virtual void openLink(const librevenge::RVNGPropertyList &propList);
  virtual void closeLink();

  virtual void defineSectionStyle(const librevenge::RVNGPropertyList &propList);

  virtual void openSection(const librevenge::RVNGPropertyList &propList);
  virtual void closeSection();

  virtual void insertTab();
  virtual void insertSpace();
  virtual void insertText(const librevenge::RVNGString &text);
  virtual void insertLineBreak();

  virtual void insertField(const librevenge::RVNGPropertyList &propList);

  virtual void openOrderedListLevel(const librevenge::RVNGPropertyList &propList);
  virtual void openUnorderedListLevel(const librevenge::RVNGPropertyList &propList);
  virtual void closeOrderedListLevel();
  virtual void closeUnorderedListLevel();
  virtual void openListElement(const librevenge::RVNGPropertyList &propList);
  virtual void closeListElement();

  virtual void openFootnote(const librevenge::RVNGPropertyList &propList);
  virtual void closeFootnote();

  virtual void openEndnote(const librevenge::RVNGPropertyList &propList);
  virtual void closeEndnote();

  virtual void openComment(const librevenge::RVNGPropertyList &propList);
  virtual void closeComment();

  virtual void openTextBox(const librevenge::RVNGPropertyList &propList);
  virtual void closeTextBox();

  virtual void openTable(const librevenge::RVNGPropertyList &propList);
  virtual void openTableRow(const librevenge::RVNGPropertyList &propList);
  virtual void closeTableRow();
  virtual void openTableCell(const librevenge::RVNGPropertyList &propList);
  virtual void closeTableCell();
  virtual void insertCoveredTableCell(const librevenge::RVNGPropertyList &propList);
  virtual void closeTable();
  virtual void openFrame(const librevenge::RVNGPropertyList &propList);
  virtual void closeFrame();
  virtual void insertBinaryObject(const librevenge::RVNGPropertyList &propList);
  virtual void insertEquation(const librevenge::RVNGPropertyList &propList);

  virtual void openGroup(const librevenge::RVNGPropertyList &propList);
  virtual void closeGroup();

  virtual void defineGraphicStyle(const librevenge::RVNGPropertyList &propList);

  virtual void drawRectangle(const librevenge::RVNGPropertyList &propList);
  virtual void drawEllipse(const librevenge::RVNGPropertyList &propList);
  virtual void drawPolygon(const librevenge::RVNGPropertyList &propList);
  virtual void drawPolyline(const librevenge::RVNGPropertyList &propList);
  virtual void drawPath(const librevenge::RVNGPropertyList &propList);

  virtual void drawConnector(const librevenge::RVNGPropertyList &propList);

private:
  Impl *const m_impl;
};

} // namespace libepubgen

#endif // INCLUDED_LIBEPUBGEN_EPUBTEXTGENERATOR_H

/* vim:set shiftwidth=2 softtabstop=2 expandtab: */