|
#define | EV_TYPE_DOCUMENT (ev_document_get_type ()) |
|
#define | EV_DOCUMENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EV_TYPE_DOCUMENT, EvDocument)) |
|
#define | EV_DOCUMENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), EV_TYPE_DOCUMENT, EvDocumentClass)) |
|
#define | EV_IS_DOCUMENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EV_TYPE_DOCUMENT)) |
|
#define | EV_IS_DOCUMENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EV_TYPE_DOCUMENT)) |
|
#define | EV_DOCUMENT_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), EV_TYPE_DOCUMENT, EvDocumentClass)) |
|
#define | EV_DOCUMENT_ERROR ev_document_error_quark () |
|
#define | EV_DOC_MUTEX_LOCK (ev_document_doc_mutex_lock ()) |
|
#define | EV_DOC_MUTEX_UNLOCK (ev_document_doc_mutex_unlock ()) |
|
#define | EV_TYPE_RECTANGLE (ev_rectangle_get_type ()) |
|
#define | EV_TYPE_SOURCE_LINK (ev_source_link_get_type ()) |
|
#define | EV_BACKEND_IMPLEMENT_INTERFACE(TYPE_IFACE, iface_init) |
|
#define | EV_BACKEND_REGISTER_WITH_CODE(BackendName, backend_name, CODE) |
|
#define | EV_BACKEND_REGISTER(BackendName, backend_name) EV_BACKEND_REGISTER_WITH_CODE(BackendName, backend_name, ;) |
|
|
GType | ev_document_get_type (void) G_GNUC_CONST |
|
GQuark | ev_document_error_quark (void) |
|
GMutex * | ev_document_get_doc_mutex (void) |
|
void | ev_document_doc_mutex_lock (void) |
|
void | ev_document_doc_mutex_unlock (void) |
|
gboolean | ev_document_doc_mutex_trylock (void) |
|
GMutex * | ev_document_get_fc_mutex (void) |
|
void | ev_document_fc_mutex_lock (void) |
|
void | ev_document_fc_mutex_unlock (void) |
|
gboolean | ev_document_fc_mutex_trylock (void) |
|
EvDocumentInfo * | ev_document_get_info (EvDocument *document) |
|
gboolean | ev_document_get_backend_info (EvDocument *document, EvDocumentBackendInfo *info) |
|
gboolean | ev_document_load (EvDocument *document, const char *uri, GError **error) |
|
gboolean | ev_document_load_full (EvDocument *document, const char *uri, EvDocumentLoadFlags flags, GError **error) |
|
gboolean | ev_document_load_stream (EvDocument *document, GInputStream *stream, EvDocumentLoadFlags flags, GCancellable *cancellable, GError **error) |
|
gboolean | ev_document_load_gfile (EvDocument *document, GFile *file, EvDocumentLoadFlags flags, GCancellable *cancellable, GError **error) |
|
gboolean | ev_document_save (EvDocument *document, const char *uri, GError **error) |
|
gint | ev_document_get_n_pages (EvDocument *document) |
|
EvPage * | ev_document_get_page (EvDocument *document, gint index) |
|
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) |
|
GdkPixbuf * | ev_document_get_thumbnail (EvDocument *document, EvRenderContext *rc) |
|
cairo_surface_t * | ev_document_get_thumbnail_surface (EvDocument *document, EvRenderContext *rc) |
|
guint64 | ev_document_get_size (EvDocument *document) |
|
const gchar * | ev_document_get_uri (EvDocument *document) |
|
const gchar * | ev_document_get_title (EvDocument *document) |
|
gboolean | ev_document_is_page_size_uniform (EvDocument *document) |
|
void | ev_document_get_max_page_size (EvDocument *document, gdouble *width, gdouble *height) |
|
void | ev_document_get_min_page_size (EvDocument *document, gdouble *width, gdouble *height) |
|
gboolean | ev_document_check_dimensions (EvDocument *document) |
|
gint | ev_document_get_max_label_len (EvDocument *document) |
|
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) |
|
gboolean | ev_document_has_synctex (EvDocument *document) |
|
EvSourceLink * | ev_document_synctex_backward_search (EvDocument *document, gint page_index, gfloat x, gfloat y) |
|
EvMapping * | ev_document_synctex_forward_search (EvDocument *document, EvSourceLink *source_link) |
|
gint | ev_rect_cmp (EvRectangle *a, EvRectangle *b) |
|
GType | ev_rectangle_get_type (void) G_GNUC_CONST |
|
EvRectangle * | ev_rectangle_new (void) |
|
EvRectangle * | ev_rectangle_copy (EvRectangle *ev_rect) |
|
void | ev_rectangle_free (EvRectangle *ev_rect) |
|
GType | ev_source_link_get_type (void) G_GNUC_CONST |
|
EvSourceLink * | ev_source_link_new (const gchar *filename, gint line, gint col) |
|
EvSourceLink * | ev_source_link_copy (EvSourceLink *link) |
|
void | ev_source_link_free (EvSourceLink *link) |
|
gboolean ev_document_load |
( |
EvDocument * |
document, |
|
|
const char * |
uri, |
|
|
GError ** |
error |
|
) |
| |
ev_document_load: : a EvDocument : the document's URI : a #GError location to store an error, or NULL
Loads from .
On failure, FALSE is returned and 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.
Returns: TRUE on success, or FALSE on failure.
Definition at line 369 of file ev-document.c.
ev_document_load_full: : a EvDocument : the document's URI : flags from EvDocumentLoadFlags : a #GError location to store an error, or NULL
Loads from .
On failure, FALSE is returned and 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.
Returns: TRUE on success, or FALSE on failure.
Definition at line 315 of file ev-document.c.
324 retval = klass->
load (document, uri, &err);
327 g_propagate_error (error, err);
329 g_warning (
"%s::EvDocument::load returned FALSE but did not fill in @error; fix the backend!\n",
330 G_OBJECT_TYPE_NAME (document));
333 g_set_error_literal (error,
336 "Internal error in backend");
343 document->
priv->
uri = g_strdup (uri);