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-link-action.h File Reference
#include <glib-object.h>
#include "ev-link-dest.h"
+ Include dependency graph for ev-link-action.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define EV_TYPE_LINK_ACTION   (ev_link_action_get_type())
 
#define EV_LINK_ACTION(object)   (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_LINK_ACTION, EvLinkAction))
 
#define EV_LINK_ACTION_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_LINK_ACTION, EvLinkActionClass))
 
#define EV_IS_LINK_ACTION(object)   (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_LINK_ACTION))
 
#define EV_IS_LINK_ACTION_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_LINK_ACTION))
 
#define EV_LINK_ACTION_GET_CLASS(object)   (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_LINK_ACTION, EvLinkActionClass))
 

Typedefs

typedef typedefG_BEGIN_DECLS
struct _EvLinkAction 
EvLinkAction
 
typedef struct _EvLinkActionClass EvLinkActionClass
 
typedef struct _EvLinkActionPrivate EvLinkActionPrivate
 

Enumerations

enum  EvLinkActionType {
  EV_LINK_ACTION_TYPE_GOTO_DEST, EV_LINK_ACTION_TYPE_GOTO_REMOTE, EV_LINK_ACTION_TYPE_EXTERNAL_URI, EV_LINK_ACTION_TYPE_LAUNCH,
  EV_LINK_ACTION_TYPE_NAMED, EV_LINK_ACTION_TYPE_LAYERS_STATE
}
 

Functions

GType ev_link_action_get_type (void) G_GNUC_CONST
 
EvLinkActionType ev_link_action_get_action_type (EvLinkAction *self)
 
EvLinkDestev_link_action_get_dest (EvLinkAction *self)
 
const gchar * ev_link_action_get_uri (EvLinkAction *self)
 
const gchar * ev_link_action_get_filename (EvLinkAction *self)
 
const gchar * ev_link_action_get_params (EvLinkAction *self)
 
const gchar * ev_link_action_get_name (EvLinkAction *self)
 
GList * ev_link_action_get_show_list (EvLinkAction *self)
 
GList * ev_link_action_get_hide_list (EvLinkAction *self)
 
GList * ev_link_action_get_toggle_list (EvLinkAction *self)
 
EvLinkActionev_link_action_new_dest (EvLinkDest *dest)
 
EvLinkActionev_link_action_new_remote (EvLinkDest *dest, const gchar *filename)
 
EvLinkActionev_link_action_new_external_uri (const gchar *uri)
 
EvLinkActionev_link_action_new_launch (const gchar *filename, const gchar *params)
 
EvLinkActionev_link_action_new_named (const gchar *name)
 
EvLinkActionev_link_action_new_layers_state (GList *show_list, GList *hide_list, GList *toggle_list)
 
gboolean ev_link_action_equal (EvLinkAction *a, EvLinkAction *b)
 

Macro Definition Documentation

#define EV_IS_LINK_ACTION (   object)    (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_LINK_ACTION))

Definition at line 40 of file ev-link-action.h.

#define EV_IS_LINK_ACTION_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_LINK_ACTION))

Definition at line 41 of file ev-link-action.h.

#define EV_LINK_ACTION (   object)    (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_LINK_ACTION, EvLinkAction))

Definition at line 38 of file ev-link-action.h.

#define EV_LINK_ACTION_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_LINK_ACTION, EvLinkActionClass))

Definition at line 39 of file ev-link-action.h.

#define EV_LINK_ACTION_GET_CLASS (   object)    (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_LINK_ACTION, EvLinkActionClass))

Definition at line 42 of file ev-link-action.h.

#define EV_TYPE_LINK_ACTION   (ev_link_action_get_type())

Definition at line 37 of file ev-link-action.h.

Typedef Documentation

typedef typedefG_BEGIN_DECLS struct _EvLinkAction EvLinkAction

Definition at line 33 of file ev-link-action.h.

Definition at line 34 of file ev-link-action.h.

Definition at line 35 of file ev-link-action.h.

Enumeration Type Documentation

Enumerator
EV_LINK_ACTION_TYPE_GOTO_DEST 
EV_LINK_ACTION_TYPE_GOTO_REMOTE 
EV_LINK_ACTION_TYPE_EXTERNAL_URI 
EV_LINK_ACTION_TYPE_LAUNCH 
EV_LINK_ACTION_TYPE_NAMED 
EV_LINK_ACTION_TYPE_LAYERS_STATE 

Definition at line 44 of file ev-link-action.h.

44  {
51  /* We'll probably fill this in more as we support the other types of
52  * actions */

Function Documentation

gboolean ev_link_action_equal ( EvLinkAction a,
EvLinkAction b 
)

ev_link_action_equal: : a EvLinkAction : a EvLinkAction

Checks whether and are equal.

Returns: TRUE iff and are equal

Since: 3.8

Definition at line 494 of file ev-link-action.c.

496 {
497  g_return_val_if_fail (EV_IS_LINK_ACTION (a), FALSE);
498  g_return_val_if_fail (EV_IS_LINK_ACTION (b), FALSE);
499 
500  if (a == b)
501  return TRUE;
502 
503  if (a->priv->type != b->priv->type)
504  return FALSE;
505 
506  switch (a->priv->type) {
508  return ev_link_dest_equal (a->priv->dest, b->priv->dest);
509 
511  return ev_link_dest_equal (a->priv->dest, b->priv->dest) &&
512  !g_strcmp0 (a->priv->filename, b->priv->filename);
513 
515  return !g_strcmp0 (a->priv->uri, b->priv->uri);
516 
518  return !g_strcmp0 (a->priv->filename, b->priv->filename) &&
519  !g_strcmp0 (a->priv->params, b->priv->params);
520 
522  return !g_strcmp0 (a->priv->name, b->priv->name);
523 
524  default:
525  return FALSE;
526  }
527 
528  return FALSE;
529 }

+ Here is the caller graph for this function:

EvLinkActionType ev_link_action_get_action_type ( EvLinkAction self)

Definition at line 66 of file ev-link-action.c.

67 {
68  g_return_val_if_fail (EV_IS_LINK_ACTION (self), 0);
69 
70  return self->priv->type;
71 }

+ Here is the caller graph for this function:

EvLinkDest* ev_link_action_get_dest ( EvLinkAction self)

ev_link_action_get_dest: : an EvLinkAction

Returns: (transfer none): an EvLinkDest

Definition at line 80 of file ev-link-action.c.

81 {
82  g_return_val_if_fail (EV_IS_LINK_ACTION (self), NULL);
83 
84  return self->priv->dest;
85 }

+ Here is the caller graph for this function:

const gchar* ev_link_action_get_filename ( EvLinkAction self)

Definition at line 96 of file ev-link-action.c.

97 {
98  g_return_val_if_fail (EV_IS_LINK_ACTION (self), NULL);
99 
100  return self->priv->filename;
101 }

+ Here is the caller graph for this function:

GList* ev_link_action_get_hide_list ( EvLinkAction self)

ev_link_action_get_hide_list: : an EvLinkAction

Returns: (transfer none) (element-type EvLayer): a list of EvLayer objects

Definition at line 140 of file ev-link-action.c.

141 {
142  g_return_val_if_fail (EV_IS_LINK_ACTION (self), NULL);
143 
144  return self->priv->hide_list;
145 }

+ Here is the caller graph for this function:

const gchar* ev_link_action_get_name ( EvLinkAction self)

Definition at line 112 of file ev-link-action.c.

113 {
114  g_return_val_if_fail (EV_IS_LINK_ACTION (self), NULL);
115 
116  return self->priv->name;
117 }

+ Here is the caller graph for this function:

const gchar* ev_link_action_get_params ( EvLinkAction self)

Definition at line 104 of file ev-link-action.c.

105 {
106  g_return_val_if_fail (EV_IS_LINK_ACTION (self), NULL);
107 
108  return self->priv->params;
109 }
GList* ev_link_action_get_show_list ( EvLinkAction self)

ev_link_action_get_show_list: : an EvLinkAction

Returns: (transfer none) (element-type EvLayer): a list of EvLayer objects

Definition at line 126 of file ev-link-action.c.

127 {
128  g_return_val_if_fail (EV_IS_LINK_ACTION (self), NULL);
129 
130  return self->priv->show_list;
131 }

+ Here is the caller graph for this function:

GList* ev_link_action_get_toggle_list ( EvLinkAction self)

ev_link_action_get_toggle_list: : an EvLinkAction

Returns: (transfer none) (element-type EvLayer): a list of EvLayer objects

Definition at line 154 of file ev-link-action.c.

155 {
156  g_return_val_if_fail (EV_IS_LINK_ACTION (self), NULL);
157 
158  return self->priv->toggle_list;
159 }

+ Here is the caller graph for this function:

GType ev_link_action_get_type ( void  )
const gchar* ev_link_action_get_uri ( EvLinkAction self)

Definition at line 88 of file ev-link-action.c.

89 {
90  g_return_val_if_fail (EV_IS_LINK_ACTION (self), NULL);
91 
92  return self->priv->uri;
93 }

+ Here is the caller graph for this function:

EvLinkAction* ev_link_action_new_dest ( EvLinkDest dest)

Definition at line 413 of file ev-link-action.c.

414 {
415  return EV_LINK_ACTION (g_object_new (EV_TYPE_LINK_ACTION,
416  "dest", dest,
418  NULL));
419 }

+ Here is the caller graph for this function:

EvLinkAction* ev_link_action_new_external_uri ( const gchar *  uri)

Definition at line 433 of file ev-link-action.c.

434 {
435  return EV_LINK_ACTION (g_object_new (EV_TYPE_LINK_ACTION,
436  "uri", uri,
438  NULL));
439 }

+ Here is the caller graph for this function:

EvLinkAction* ev_link_action_new_launch ( const gchar *  filename,
const gchar *  params 
)

Definition at line 442 of file ev-link-action.c.

444 {
445  return EV_LINK_ACTION (g_object_new (EV_TYPE_LINK_ACTION,
446  "filename", filename,
447  "params", params,
449  NULL));
450 }

+ Here is the caller graph for this function:

EvLinkAction* ev_link_action_new_layers_state ( GList *  show_list,
GList *  hide_list,
GList *  toggle_list 
)

ev_link_action_new_layers_state: : (element-type EvLayer): a list of EvLayer objects : (element-type EvLayer): a list of EvLayer objects : (element-type EvLayer): a list of EvLayer objects

Returns: (transfer full): a new EvLinkAction

Definition at line 470 of file ev-link-action.c.

473 {
474  return EV_LINK_ACTION (g_object_new (EV_TYPE_LINK_ACTION,
475  "show-list", show_list,
476  "hide-list", hide_list,
477  "toggle-list", toggle_list,
479  NULL));
480 }

+ Here is the caller graph for this function:

EvLinkAction* ev_link_action_new_named ( const gchar *  name)

Definition at line 453 of file ev-link-action.c.

454 {
455  return EV_LINK_ACTION (g_object_new (EV_TYPE_LINK_ACTION,
456  "name", name,
458  NULL));
459 }

+ Here is the caller graph for this function:

EvLinkAction* ev_link_action_new_remote ( EvLinkDest dest,
const gchar *  filename 
)

Definition at line 422 of file ev-link-action.c.

424 {
425  return EV_LINK_ACTION (g_object_new (EV_TYPE_LINK_ACTION,
426  "dest", dest,
427  "filename", filename,
429  NULL));
430 }

+ Here is the caller graph for this function: