*
* 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.
*
*/
G_BEGIN_DECLS
typedef struct _EvDocumentInfo EvDocumentInfo;
+typedef struct _EvDocumentLicense EvDocumentLicense;
#define EV_TYPE_DOCUMENT_INFO (ev_document_info_get_type())
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
int n_pages;
double paper_height;
double paper_width;
+ EvDocumentLicense *license;
/* Mask of all the valid fields */
guint fields_mask;
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 */