From 35512dd1ae66e5dbbeb490d3846dafcf150f1f28 Mon Sep 17 00:00:00 2001 From: Wouter Bolsterlee Date: Mon, 04 Dec 2006 11:53:25 +0000 Subject: Adds a paper size field to the properties dialog. Fixes bug #307315. Patch 2006-12-04 Wouter Bolsterlee * backend/ev-document-info.h: * data/evince-properties.glade: * pdf/ev-poppler.cc: * properties/ev-properties-view.c: (ev_regular_paper_size), (ev_properties_view_set_info): * ps/ps-document.c: (ps_document_get_info): Adds a paper size field to the properties dialog. Fixes bug #307315. Patch by Kasper Svendsen (with some i18n changes done by me). --- (limited to 'backend/ev-document-info.h') diff --git a/backend/ev-document-info.h b/backend/ev-document-info.h index 3930910..0cd1ef8 100644 --- a/backend/ev-document-info.h +++ b/backend/ev-document-info.h @@ -90,7 +90,8 @@ typedef enum EV_DOCUMENT_INFO_UI_HINTS = 1 << 12, EV_DOCUMENT_INFO_PERMISSIONS = 1 << 13, EV_DOCUMENT_INFO_N_PAGES = 1 << 14, - EV_DOCUMENT_INFO_SECURITY = 1 << 15 + EV_DOCUMENT_INFO_SECURITY = 1 << 15, + EV_DOCUMENT_INFO_PAPER_SIZE = 1 << 16 } EvDocumentInfoFields; struct _EvDocumentInfo @@ -111,6 +112,8 @@ struct _EvDocumentInfo guint ui_hints; guint permissions; int n_pages; + double paper_height; + double paper_width; /* Mask of all the valid fields */ guint fields_mask; -- cgit v0.9.1