|
static guint64 | _ev_document_get_size_gfile (GFile *file) |
|
static guint64 | _ev_document_get_size (const char *uri) |
|
static gint | _ev_document_get_n_pages (EvDocument *document) |
|
static void | _ev_document_get_page_size (EvDocument *document, EvPage *page, double *width, double *height) |
|
static gchar * | _ev_document_get_page_label (EvDocument *document, EvPage *page) |
|
static EvDocumentInfo * | _ev_document_get_info (EvDocument *document) |
|
static gboolean | _ev_document_support_synctex (EvDocument *document) |
|
GQuark | ev_document_error_quark (void) |
|
static EvPage * | ev_document_impl_get_page (EvDocument *document, gint index) |
|
static EvDocumentInfo * | ev_document_impl_get_info (EvDocument *document) |
|
static void | ev_document_finalize (GObject *object) |
|
static void | ev_document_init (EvDocument *document) |
|
static void | ev_document_class_init (EvDocumentClass *klass) |
|
void | ev_document_doc_mutex_lock (void) |
|
void | ev_document_doc_mutex_unlock (void) |
|
gboolean | ev_document_doc_mutex_trylock (void) |
|
void | ev_document_fc_mutex_lock (void) |
|
void | ev_document_fc_mutex_unlock (void) |
|
gboolean | ev_document_fc_mutex_trylock (void) |
|
static void | ev_document_setup_cache (EvDocument *document) |
|
static void | ev_document_initialize_synctex (EvDocument *document, const gchar *uri) |
|
gboolean | ev_document_load_full (EvDocument *document, const char *uri, EvDocumentLoadFlags flags, GError **error) |
|
gboolean | ev_document_load (EvDocument *document, const char *uri, 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) |
|
EvPage * | ev_document_get_page (EvDocument *document, gint 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 *link) |
|
gint | ev_document_get_n_pages (EvDocument *document) |
|
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) |
|
EvDocumentInfo * | ev_document_get_info (EvDocument *document) |
|
gboolean | ev_document_get_backend_info (EvDocument *document, EvDocumentBackendInfo *info) |
|
cairo_surface_t * | ev_document_render (EvDocument *document, EvRenderContext *rc) |
|
static GdkPixbuf * | _ev_document_get_thumbnail (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) |
|
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) |
|
guint64 | ev_document_get_size (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) |
|
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) |
|
EvDocumentInfo * | ev_document_info_copy (EvDocumentInfo *info) |
|
void | ev_document_info_free (EvDocumentInfo *info) |
|
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) |
|
EvRectangle * | ev_rectangle_new (void) |
|
EvRectangle * | ev_rectangle_copy (EvRectangle *rectangle) |
|
void | ev_rectangle_free (EvRectangle *rectangle) |
|
gint | ev_rect_cmp (EvRectangle *a, EvRectangle *b) |
|
See ev_document_load() for more information.
Returns: TRUE if loading succeeded, or FALSE on error with filled in
Since: 3.6
Definition in file ev-document.c.
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);