This file is indexed.

/usr/include/libetonyek-0.0/libetonyek/KEYDocument.h is in libetonyek-dev 0.0.3-0ubuntu2.

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
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
 * This file is part of the libetonyek 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 LIBETONYEK_KEYDOCUMENT_H_INCLUDED
#define LIBETONYEK_KEYDOCUMENT_H_INCLUDED

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

namespace libetonyek
{

class KEYPresentationInterface;
class KEYStringVector;

/** The type of Keynote file.
  */
enum KEYDocumentType
{
  KEY_DOCUMENT_TYPE_UNKNOWN,
  /// A standalone APXL file.
  KEY_DOCUMENT_TYPE_APXL_FILE,
  /// A complete package.
  KEY_DOCUMENT_TYPE_PACKAGE
};

class KEYDocument
{
public:

  /** Detect if the stream contains a valid Keynote document.
    *
    * The function can also optionally classify the type of the input
    * file. This is needed for proper support of documents created by
    * Keynote versions older than 5. The "documents" produced by these
    * versions were in fact directories, with the main file called
    * index.apxl.gz. But KEYDocument only works with a stream, so if a
    * file stream just for the main file is passed, it is not possible
    * to get to the rest of the files (i.e., the images used in the
    * document), because there is no way to get the path. Therefore we
    * provide the @c type as a hint to the application that it passed us
    * just the main file and it can try again with a stream wrapping the
    * whole directory :-)
    *
    * @arg[in] input the stream
    * @arg[out] type of document
    * @returns true if the stream contains a Keynote document, false
    * otherwise
    */
  static bool isSupported(::WPXInputStream *input, KEYDocumentType *type = 0);

  /** Parse the input stream content.
   *
   * It will make callbacks to the functions provided by a
   * KEYPresentationInterface class implementation when needed. This is
   * often commonly called the 'main parsing routine'.
   *
   * @arg[in] input the input stream
   * @arg[in] generator a KEYPresentationInterface implementation
   * @returns a value that indicates whether the parsing was successful
   */
  static bool parse(::WPXInputStream *input, KEYPresentationInterface *generator);

  /** Parse the input stream content and generate a sequence of SVG images.
    *
    * Provided as a convenience function for applications that support SVG
    * internally.
    *
    * @arg[in] input the input stream
    * @arg[in] output the output string whose content is the resulting SVG
    * @returns a value that indicates whether the SVG generation was successful
  */
  static bool generateSVG(::WPXInputStream *input, KEYStringVector &output);
};

} // namespace libetonyek

#endif // LIBETONYEK_KEYDOCUMENT_H_INCLUDED

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