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-properties-view.h File Reference
#include <gtk/gtk.h>
#include <evince-document.h>
+ Include dependency graph for ev-properties-view.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define EV_TYPE_PROPERTIES   (ev_properties_view_get_type())
 
#define EV_PROPERTIES_VIEW(object)   (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_PROPERTIES, EvPropertiesView))
 
#define EV_PROPERTIES_VIEW_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_PROPERTIES, EvPropertiesViewClass))
 
#define EV_IS_PROPERTIES_VIEW(object)   (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_PROPERTIES))
 
#define EV_IS_PROPERTIES_VIEW_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_PROPERTIES))
 
#define EV_PROPERTIES_VIEW_GET_CLASS(object)   (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_PROPERTIES, EvPropertiesViewClass))
 

Typedefs

typedef typedefG_BEGIN_DECLS
struct _EvPropertiesView 
EvPropertiesView
 
typedef struct
_EvPropertiesViewClass 
EvPropertiesViewClass
 
typedef struct
_EvPropertiesViewPrivate 
EvPropertiesViewPrivate
 

Functions

GType ev_properties_view_get_type (void)
 
void ev_properties_view_register_type (GTypeModule *module)
 
GtkWidget * ev_properties_view_new (EvDocument *document)
 
void ev_properties_view_set_info (EvPropertiesView *properties, const EvDocumentInfo *info)
 

Macro Definition Documentation

#define EV_IS_PROPERTIES_VIEW (   object)    (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_PROPERTIES))

Definition at line 37 of file ev-properties-view.h.

#define EV_IS_PROPERTIES_VIEW_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_PROPERTIES))

Definition at line 38 of file ev-properties-view.h.

#define EV_PROPERTIES_VIEW (   object)    (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_PROPERTIES, EvPropertiesView))

Definition at line 35 of file ev-properties-view.h.

#define EV_PROPERTIES_VIEW_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_PROPERTIES, EvPropertiesViewClass))

Definition at line 36 of file ev-properties-view.h.

#define EV_PROPERTIES_VIEW_GET_CLASS (   object)    (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_PROPERTIES, EvPropertiesViewClass))

Definition at line 39 of file ev-properties-view.h.

#define EV_TYPE_PROPERTIES   (ev_properties_view_get_type())

Definition at line 34 of file ev-properties-view.h.

Typedef Documentation

typedef typedefG_BEGIN_DECLS struct _EvPropertiesView EvPropertiesView

Definition at line 30 of file ev-properties-view.h.

Definition at line 31 of file ev-properties-view.h.

typedef struct _EvPropertiesViewPrivate EvPropertiesViewPrivate

Definition at line 32 of file ev-properties-view.h.

Function Documentation

GType ev_properties_view_get_type ( void  )

+ Here is the caller graph for this function:

GtkWidget* ev_properties_view_new ( EvDocument document)

Definition at line 411 of file ev-properties-view.c.

412 {
414 
415  properties = g_object_new (EV_TYPE_PROPERTIES,
416  "orientation", GTK_ORIENTATION_VERTICAL,
417  NULL);
418  properties->uri = g_uri_unescape_string (ev_document_get_uri (document), NULL);
419  properties->file_size = ev_document_get_size (document);
420 
421  return GTK_WIDGET (properties);
422 }

+ Here is the caller graph for this function:

void ev_properties_view_register_type ( GTypeModule *  module)

Definition at line 405 of file ev-properties-view.c.

406 {
408 }

+ Here is the caller graph for this function:

void ev_properties_view_set_info ( EvPropertiesView properties,
const EvDocumentInfo info 
)

Definition at line 330 of file ev-properties-view.c.

331 {
332  GtkWidget *grid;
333  gchar *text;
334  gint row = 0;
335 
336  grid = properties->grid;
337 
338  if (info->fields_mask & EV_DOCUMENT_INFO_TITLE) {
339  set_property (properties, GTK_GRID (grid), TITLE_PROPERTY, info->title, &row);
340  }
341  set_property (properties, GTK_GRID (grid), URI_PROPERTY, properties->uri, &row);
342  if (info->fields_mask & EV_DOCUMENT_INFO_SUBJECT) {
343  set_property (properties, GTK_GRID (grid), SUBJECT_PROPERTY, info->subject, &row);
344  }
345  if (info->fields_mask & EV_DOCUMENT_INFO_AUTHOR) {
346  set_property (properties, GTK_GRID (grid), AUTHOR_PROPERTY, info->author, &row);
347  }
348  if (info->fields_mask & EV_DOCUMENT_INFO_KEYWORDS) {
349  set_property (properties, GTK_GRID (grid), KEYWORDS_PROPERTY, info->keywords, &row);
350  }
351  if (info->fields_mask & EV_DOCUMENT_INFO_PRODUCER) {
352  set_property (properties, GTK_GRID (grid), PRODUCER_PROPERTY, info->producer, &row);
353  }
354  if (info->fields_mask & EV_DOCUMENT_INFO_CREATOR) {
355  set_property (properties, GTK_GRID (grid), CREATOR_PROPERTY, info->creator, &row);
356  }
357  if (info->fields_mask & EV_DOCUMENT_INFO_CREATION_DATE) {
358  text = ev_document_misc_format_date (info->creation_date);
359  set_property (properties, GTK_GRID (grid), CREATION_DATE_PROPERTY, text, &row);
360  g_free (text);
361  }
362  if (info->fields_mask & EV_DOCUMENT_INFO_MOD_DATE) {
363  text = ev_document_misc_format_date (info->modified_date);
364  set_property (properties, GTK_GRID (grid), MOD_DATE_PROPERTY, text, &row);
365  g_free (text);
366  }
367  if (info->fields_mask & EV_DOCUMENT_INFO_FORMAT) {
368  set_property (properties, GTK_GRID (grid), FORMAT_PROPERTY, info->format, &row);
369  }
370  if (info->fields_mask & EV_DOCUMENT_INFO_N_PAGES) {
371  text = g_strdup_printf ("%d", info->n_pages);
372  set_property (properties, GTK_GRID (grid), N_PAGES_PROPERTY, text, &row);
373  g_free (text);
374  }
375  if (info->fields_mask & EV_DOCUMENT_INFO_LINEARIZED) {
376  set_property (properties, GTK_GRID (grid), LINEARIZED_PROPERTY, info->linearized, &row);
377  }
378  if (info->fields_mask & EV_DOCUMENT_INFO_SECURITY) {
379  set_property (properties, GTK_GRID (grid), SECURITY_PROPERTY, info->security, &row);
380  }
381  if (info->fields_mask & EV_DOCUMENT_INFO_PAPER_SIZE) {
382  text = ev_regular_paper_size (info);
383  set_property (properties, GTK_GRID (grid), PAPER_SIZE_PROPERTY, text, &row);
384  g_free (text);
385  }
386  if (properties->file_size) {
387  text = g_format_size (properties->file_size);
388  set_property (properties, GTK_GRID (grid), FILE_SIZE_PROPERTY, text, &row);
389  g_free (text);
390  }
391 }

+ Here is the caller graph for this function: