]> www.fi.muni.cz Git - evince.git/blobdiff - libdocument/ev-document-info.h
[dualscreen] fix crash on ctrl+w and fix control window closing
[evince.git] / libdocument / ev-document-info.h
index 51d5f7d9e4c099339168886134e91f3cdc7f15dc..0f55d212911d8a014ae5cd63689d086121cf9481 100644 (file)
  *
  *  You should have received a copy of the GNU General Public License
  *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  *
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef EV_DOCUMENT_INFO_H
 #define EV_DOCUMENT_INFO_H
 
@@ -27,6 +31,7 @@
 G_BEGIN_DECLS
 
 typedef struct _EvDocumentInfo    EvDocumentInfo;
+typedef struct _EvDocumentLicense EvDocumentLicense;
 
 #define EV_TYPE_DOCUMENT_INFO (ev_document_info_get_type())
 
@@ -94,7 +99,9 @@ typedef enum
        EV_DOCUMENT_INFO_PERMISSIONS = 1 << 13,
        EV_DOCUMENT_INFO_N_PAGES = 1 << 14,
        EV_DOCUMENT_INFO_SECURITY = 1 << 15,
-       EV_DOCUMENT_INFO_PAPER_SIZE = 1 << 16
+       EV_DOCUMENT_INFO_PAPER_SIZE = 1 << 16,
+       EV_DOCUMENT_INFO_LICENSE = 1 << 17,
+
 } EvDocumentInfoFields;
 
 struct _EvDocumentInfo
@@ -117,6 +124,7 @@ struct _EvDocumentInfo
        int   n_pages;
        double paper_height;
        double paper_width;
+       EvDocumentLicense *license;
 
        /* Mask of all the valid fields */
        guint fields_mask;
@@ -126,6 +134,21 @@ GType           ev_document_info_get_type (void) G_GNUC_CONST;
 EvDocumentInfo *ev_document_info_copy     (EvDocumentInfo *info);
 void            ev_document_info_free     (EvDocumentInfo *info);
 
+/* EvDocumentLicense */
+#define EV_TYPE_DOCUMENT_LICENSE (ev_document_license_get_type())
+struct _EvDocumentLicense {
+       gchar *text;
+       gchar *uri;
+       gchar *web_statement;
+};
+GType              ev_document_license_get_type          (void) G_GNUC_CONST;
+EvDocumentLicense *ev_document_license_new               (void);
+EvDocumentLicense *ev_document_license_copy              (EvDocumentLicense *license);
+void               ev_document_license_free              (EvDocumentLicense *license);
+const gchar       *ev_document_license_get_text          (EvDocumentLicense *license);
+const gchar       *ev_document_license_get_uri           (EvDocumentLicense *license);
+const gchar       *ev_document_license_get_web_statement (EvDocumentLicense *license);
+
 G_END_DECLS
 
 #endif /* EV_DOCUMENT_INFO_H */