Evince
Evince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ev-sidebar-page.h File Reference
#include <glib-object.h>
#include <glib.h>
#include "ev-document.h"
#include "ev-document-model.h"
+ Include dependency graph for ev-sidebar-page.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _EvSidebarPageInterface
 

Macros

#define EV_TYPE_SIDEBAR_PAGE   (ev_sidebar_page_get_type ())
 
#define EV_SIDEBAR_PAGE(o)   (G_TYPE_CHECK_INSTANCE_CAST ((o), EV_TYPE_SIDEBAR_PAGE, EvSidebarPage))
 
#define EV_SIDEBAR_PAGE_IFACE(k)   (G_TYPE_CHECK_CLASS_CAST((k), EV_TYPE_SIDEBAR_PAGE, EvSidebarPageInterface))
 
#define EV_IS_SIDEBAR_PAGE(o)   (G_TYPE_CHECK_INSTANCE_TYPE ((o), EV_TYPE_SIDEBAR_PAGE))
 
#define EV_IS_SIDEBAR_PAGE_IFACE(k)   (G_TYPE_CHECK_CLASS_TYPE ((k), EV_TYPE_SIDEBAR_PAGE))
 
#define EV_SIDEBAR_PAGE_GET_IFACE(inst)   (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EV_TYPE_SIDEBAR_PAGE, EvSidebarPageInterface))
 

Typedefs

typedef struct _EvSidebarPage EvSidebarPage
 
typedef struct
_EvSidebarPageInterface 
EvSidebarPageInterface
 

Functions

GType ev_sidebar_page_get_type (void) G_GNUC_CONST
 
gboolean ev_sidebar_page_support_document (EvSidebarPage *sidebar_page, EvDocument *document)
 
void ev_sidebar_page_set_model (EvSidebarPage *sidebar_page, EvDocumentModel *model)
 
const gchar * ev_sidebar_page_get_label (EvSidebarPage *page)
 

Macro Definition Documentation

#define EV_IS_SIDEBAR_PAGE (   o)    (G_TYPE_CHECK_INSTANCE_TYPE ((o), EV_TYPE_SIDEBAR_PAGE))

Definition at line 35 of file ev-sidebar-page.h.

#define EV_IS_SIDEBAR_PAGE_IFACE (   k)    (G_TYPE_CHECK_CLASS_TYPE ((k), EV_TYPE_SIDEBAR_PAGE))

Definition at line 36 of file ev-sidebar-page.h.

#define EV_SIDEBAR_PAGE (   o)    (G_TYPE_CHECK_INSTANCE_CAST ((o), EV_TYPE_SIDEBAR_PAGE, EvSidebarPage))

Definition at line 33 of file ev-sidebar-page.h.

#define EV_SIDEBAR_PAGE_GET_IFACE (   inst)    (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EV_TYPE_SIDEBAR_PAGE, EvSidebarPageInterface))

Definition at line 37 of file ev-sidebar-page.h.

#define EV_SIDEBAR_PAGE_IFACE (   k)    (G_TYPE_CHECK_CLASS_CAST((k), EV_TYPE_SIDEBAR_PAGE, EvSidebarPageInterface))

Definition at line 34 of file ev-sidebar-page.h.

#define EV_TYPE_SIDEBAR_PAGE   (ev_sidebar_page_get_type ())

Definition at line 32 of file ev-sidebar-page.h.

Typedef Documentation

typedef struct _EvSidebarPage EvSidebarPage

Definition at line 39 of file ev-sidebar-page.h.

Definition at line 40 of file ev-sidebar-page.h.

Function Documentation

const gchar* ev_sidebar_page_get_label ( EvSidebarPage page)

Definition at line 64 of file ev-sidebar-page.c.

65 {
67 
68  g_return_val_if_fail (EV_IS_SIDEBAR_PAGE (sidebar_page), NULL);
69 
70  iface = EV_SIDEBAR_PAGE_GET_IFACE (sidebar_page);
71 
72  g_assert (iface->get_label);
73 
74  return iface->get_label (sidebar_page);
75 }

+ Here is the caller graph for this function:

GType ev_sidebar_page_get_type ( void  )
void ev_sidebar_page_set_model ( EvSidebarPage sidebar_page,
EvDocumentModel model 
)

Definition at line 48 of file ev-sidebar-page.c.

50 {
52 
53  g_return_if_fail (EV_IS_SIDEBAR_PAGE (sidebar_page));
54  g_return_if_fail (EV_IS_DOCUMENT_MODEL (model));
55 
56  iface = EV_SIDEBAR_PAGE_GET_IFACE (sidebar_page);
57 
58  g_assert (iface->set_model);
59 
60  iface->set_model (sidebar_page, model);
61 }

+ Here is the caller graph for this function:

gboolean ev_sidebar_page_support_document ( EvSidebarPage sidebar_page,
EvDocument document 
)

Definition at line 32 of file ev-sidebar-page.c.

34 {
36 
37  g_return_val_if_fail (EV_IS_SIDEBAR_PAGE (sidebar_page), FALSE);
38  g_return_val_if_fail (EV_IS_DOCUMENT (document), FALSE);
39 
40  iface = EV_SIDEBAR_PAGE_GET_IFACE (sidebar_page);
41 
42  g_return_val_if_fail (iface->support_document, FALSE);
43 
44  return iface->support_document (sidebar_page, document);
45 }

+ Here is the caller graph for this function: