Evince
Evince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
|
#include <string.h>
#include <gio/gio.h>
#include <glib/gstdio.h>
#include <glib/gi18n-lib.h>
#include <gtk/gtk.h>
#include "ev-backend-info.h"
#include "ev-document-factory.h"
#include "ev-file-helpers.h"
#include "ev-module.h"
#include "ev-backends-manager.h"
Go to the source code of this file.
Macros | |
#define | BACKEND_DATA_KEY "ev-backend-info" |
Variables | |
static GList * | ev_backends_list = NULL |
static GHashTable * | ev_module_hash = NULL |
static gchar * | ev_backends_dir = NULL |
#define BACKEND_DATA_KEY "ev-backend-info" |
Definition at line 41 of file ev-document-factory.c.
gboolean _ev_document_factory_init | ( | void | ) |
void _ev_document_factory_shutdown | ( | void | ) |
GList* ev_backends_manager_get_all_types_info | ( | void | ) |
EvDocument* ev_backends_manager_get_document | ( | const gchar * | mime_type) |
ev_backends_manager_get_document: : a mime type hint
Returns: (transfer full): a new EvDocument
Definition at line 620 of file ev-document-factory.c.
const gchar* ev_backends_manager_get_document_module_name | ( | EvDocument * | document) |
Definition at line 626 of file ev-document-factory.c.
EvTypeInfo* ev_backends_manager_get_document_type_info | ( | EvDocument * | document) |
Definition at line 635 of file ev-document-factory.c.
void ev_document_factory_add_filters | ( | GtkWidget * | chooser, |
EvDocument * | document | ||
) |
ev_document_factory_add_filters: : a #GtkFileChooser : a EvDocument, or NULL
Adds some file filters to .
Always add a "All documents" format.
If is not NULL, adds a #GtkFileFilter for 's MIME type.
If is NULL, adds a #GtkFileFilter for each document type that evince can handle.
Definition at line 567 of file ev-document-factory.c.
EvDocument* ev_document_factory_get_document | ( | const char * | uri, |
GError ** | error | ||
) |
ev_document_factory_get_document: : an URI : a #GError location to store an error, or NULL
Creates a EvDocument for the document at ; or, if no backend handling the document's type is found, or an error occurred on opening the document, returns NULL and fills in . If the document is encrypted, it is returned but also is set to EV_DOCUMENT_ERROR_ENCRYPTED.
Returns: (transfer full): a new EvDocument, or NULL
Definition at line 397 of file ev-document-factory.c.
EvDocument* ev_document_factory_get_document_for_gfile | ( | GFile * | file, |
EvDocumentLoadFlags | flags, | ||
GCancellable * | cancellable, | ||
GError ** | error | ||
) |
EvDocument* ev_document_factory_get_document_for_stream | ( | GInputStream * | stream, |
const char * | mime_type, | ||
EvDocumentLoadFlags | flags, | ||
GCancellable * | cancellable, | ||
GError ** | error | ||
) |
ev_document_factory_get_document_for_stream: : a #GInputStream : (allow-none): a mime type hint : flags from EvDocumentLoadFlags : (allow-none): a #GCancellable, or NULL : (allow-none): a #GError location to store an error, or NULL
Synchronously creates a EvDocument for the document from ; or, if no backend handling the document's type is found, or an error occurred on opening the document, returns NULL and fills in . If the document is encrypted, it is returned but also is set to EV_DOCUMENT_ERROR_ENCRYPTED.
If is non-NULL, this overrides any type inferred from the stream. If the mime type cannot be inferred from the stream, and is NULL, an error is returned.
Returns: (transfer full): a new EvDocument, or NULL
Since: 3.6
Definition at line 490 of file ev-document-factory.c.
EvDocument* ev_document_factory_get_document_full | ( | const char * | uri, |
EvDocumentLoadFlags | flags, | ||
GError ** | error | ||
) |
ev_document_factory_get_document_full: : an URI : flags from EvDocumentLoadFlags : a #GError location to store an error, or NULL
Creates a EvDocument for the document at ; or, if no backend handling the document's type is found, or an error occurred on opening the document, returns NULL and fills in . If the document is encrypted, it is returned but also is set to EV_DOCUMENT_ERROR_ENCRYPTED.
Returns: (transfer full): a new EvDocument, or NULL
Definition at line 287 of file ev-document-factory.c.
|
static |
|
static |
Definition at line 81 of file ev-document-factory.c.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 45 of file ev-document-factory.c.
|
static |
Definition at line 43 of file ev-document-factory.c.
|
static |
Definition at line 44 of file ev-document-factory.c.