Evince
Evince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ev-document-info.h
Go to the documentation of this file.
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; c-indent-level: 8 -*- */
2 /*
3  * Copyright (C) 2000-2003 Marco Pesenti Gritti
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2, or (at your option)
8  * any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  *
19  */
20 
21 #if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
22 #error "Only <evince-document.h> can be included directly."
23 #endif
24 
25 #ifndef EV_DOCUMENT_INFO_H
26 #define EV_DOCUMENT_INFO_H
27 
28 #include <glib-object.h>
29 #include <glib.h>
30 
31 G_BEGIN_DECLS
32 
35 
36 #define EV_TYPE_DOCUMENT_INFO (ev_document_info_get_type())
37 
38 typedef enum
39 {
47 
48 typedef enum
49 {
57 
58 typedef enum
59 {
68 
69 /* This define is needed because glib-mkenums chokes with multiple lines */
70 #define _PERMISSIONS_FULL (EV_DOCUMENT_PERMISSIONS_OK_TO_PRINT \
71  | EV_DOCUMENT_PERMISSIONS_OK_TO_MODIFY \
72  | EV_DOCUMENT_PERMISSIONS_OK_TO_COPY \
73  | EV_DOCUMENT_PERMISSIONS_OK_TO_ADD_NOTES)
74 
75 typedef enum
76 {
83 
84 typedef enum
85 {
104 
106 
108 {
109  char *title;
110  char *format; /* eg, "pdf-1.5" */
111  char *author;
112  char *subject;
113  char *keywords;
114  char *creator;
115  char *producer;
116  char *linearized;
117  char *security;
122  guint ui_hints;
123  guint permissions;
124  int n_pages;
125  double paper_height;
126  double paper_width;
128 
129  /* Mask of all the valid fields */
130  guint fields_mask;
131 };
132 
133 GType ev_document_info_get_type (void) G_GNUC_CONST;
136 
137 /* EvDocumentLicense */
138 #define EV_TYPE_DOCUMENT_LICENSE (ev_document_license_get_type())
140  gchar *text;
141  gchar *uri;
143 };
144 GType ev_document_license_get_type (void) G_GNUC_CONST;
148 const gchar *ev_document_license_get_text (EvDocumentLicense *license);
149 const gchar *ev_document_license_get_uri (EvDocumentLicense *license);
151 
152 G_END_DECLS
153 
154 #endif /* EV_DOCUMENT_INFO_H */