Top |
struct | EvDocument |
struct | EvDocumentClass |
EvDocumentPrivate | |
#define | EV_DOCUMENT_ERROR |
#define | EV_DOC_MUTEX_LOCK |
#define | EV_DOC_MUTEX_UNLOCK |
enum | EvDocumentError |
EvPoint | |
struct | EvRectangle |
struct | EvDocumentBackendInfo |
#define | EV_TYPE_RECTANGLE |
gboolean ev_document_get_backend_info (EvDocument *document
,EvDocumentBackendInfo *info
);
gboolean ev_document_load (EvDocument *document
,const char *uri
,GError **error
);
Loads document
from uri
.
On failure, FALSE
is returned and error
is filled in.
If the document is encrypted, EV_DEFINE_ERROR_ENCRYPTED is returned.
If the backend cannot load the specific document, EV_DOCUMENT_ERROR_INVALID
is returned. Other errors are possible too, depending on the backend
used to load the document and the URI, e.g. GIOError, GFileError, and
GConvertError.
gboolean ev_document_save (EvDocument *document
,const char *uri
,GError **error
);
Saves document
to uri
.
void ev_document_get_page_size (EvDocument *document
,gint page_index
,double *width
,double *height
);
gchar * ev_document_get_page_label (EvDocument *document
,gint page_index
);
cairo_surface_t * ev_document_render (EvDocument *document
,EvRenderContext *rc
);
gboolean
ev_document_is_page_size_uniform (EvDocument *document
);
void ev_document_get_max_page_size (EvDocument *document
,gdouble *width
,gdouble *height
);
gboolean
ev_document_has_text_page_labels (EvDocument *document
);
gboolean ev_document_find_page_by_label (EvDocument *document
,const gchar *page_label
,gint *page_index
);
#define EV_BACKEND_REGISTER_WITH_CODE(BackendName, backend_name, CODE)
struct EvDocumentClass { GObjectClass base_class; /* Virtual Methods */ gboolean (* load) (EvDocument *document, const char *uri, GError **error); gboolean (* save) (EvDocument *document, const char *uri, GError **error); gint (* get_n_pages) (EvDocument *document); EvPage * (* get_page) (EvDocument *document, gint index); void (* get_page_size) (EvDocument *document, EvPage *page, double *width, double *height); gchar * (* get_page_label) (EvDocument *document, EvPage *page); cairo_surface_t * (* render) (EvDocument *document, EvRenderContext *rc); EvDocumentInfo * (* get_info) (EvDocument *document); gboolean (* get_backend_info)(EvDocument *document, EvDocumentBackendInfo *info); gboolean (* support_synctex) (EvDocument *document); void (* toggle_night_mode) (EvDocument *document,gboolean night); void (*check_add_night_sheet)(EvDocument *document); };
struct EvDocumentBackendInfo { const gchar *name; const gchar *version; };