X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=libdocument%2Fev-document-info.h;h=0f55d212911d8a014ae5cd63689d086121cf9481;hb=7d753f38cc5e97bdfbbbf2b918aa5397e5249342;hp=c27f63a37a34d72f8b910e1672deb24756ca56a0;hpb=e12e13eb0eabdc8dfbe99e958380df6779473c27;p=evince.git diff --git a/libdocument/ev-document-info.h b/libdocument/ev-document-info.h index c27f63a3..0f55d212 100644 --- a/libdocument/ev-document-info.h +++ b/libdocument/ev-document-info.h @@ -14,10 +14,14 @@ * * 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 can be included directly." +#endif + #ifndef EV_DOCUMENT_INFO_H #define EV_DOCUMENT_INFO_H @@ -27,6 +31,9 @@ G_BEGIN_DECLS typedef struct _EvDocumentInfo EvDocumentInfo; +typedef struct _EvDocumentLicense EvDocumentLicense; + +#define EV_TYPE_DOCUMENT_INFO (ev_document_info_get_type()) typedef enum { @@ -92,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 @@ -115,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; @@ -124,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 */