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-form-field.c File Reference
#include <config.h>
#include "ev-form-field.h"
+ Include dependency graph for ev-form-field.c:

Go to the source code of this file.

Functions

static void ev_form_field_init (EvFormField *field)
 
static void ev_form_field_class_init (EvFormFieldClass *klass)
 
static void ev_form_field_text_init (EvFormFieldText *field_text)
 
static void ev_form_field_text_class_init (EvFormFieldTextClass *klass)
 
static void ev_form_field_button_init (EvFormFieldButton *field_button)
 
static void ev_form_field_button_class_init (EvFormFieldButtonClass *klass)
 
static void ev_form_field_choice_init (EvFormFieldChoice *field_choice)
 
static void ev_form_field_choice_class_init (EvFormFieldChoiceClass *klass)
 
static void ev_form_field_signature_init (EvFormFieldSignature *field_choice)
 
static void ev_form_field_signature_class_init (EvFormFieldSignatureClass *klass)
 
static void ev_form_field_finalize (GObject *object)
 
static void ev_form_field_text_finalize (GObject *object)
 
static void ev_form_field_choice_finalize (GObject *object)
 
EvFormFieldev_form_field_text_new (gint id, EvFormFieldTextType type)
 
EvFormFieldev_form_field_button_new (gint id, EvFormFieldButtonType type)
 
EvFormFieldev_form_field_choice_new (gint id, EvFormFieldChoiceType type)
 
EvFormFieldev_form_field_signature_new (gint id)
 

Function Documentation

static void ev_form_field_button_class_init ( EvFormFieldButtonClass klass)
static

Definition at line 103 of file ev-form-field.c.

104 {
105 }
static void ev_form_field_button_init ( EvFormFieldButton field_button)
static

Definition at line 98 of file ev-form-field.c.

99 {
100 }
EvFormField* ev_form_field_button_new ( gint  id,
EvFormFieldButtonType  type 
)

Definition at line 166 of file ev-form-field.c.

168 {
169  EvFormField *field;
170 
171  g_return_val_if_fail (id >= 0, NULL);
172  g_return_val_if_fail (type >= EV_FORM_FIELD_BUTTON_PUSH &&
173  type <= EV_FORM_FIELD_BUTTON_RADIO, NULL);
174 
175  field = EV_FORM_FIELD (g_object_new (EV_TYPE_FORM_FIELD_BUTTON, NULL));
176  field->id = id;
177  EV_FORM_FIELD_BUTTON (field)->type = type;
178 
179  return field;
180 }

+ Here is the caller graph for this function:

static void ev_form_field_choice_class_init ( EvFormFieldChoiceClass klass)
static

Definition at line 131 of file ev-form-field.c.

132 {
133  GObjectClass *object_class = G_OBJECT_CLASS (klass);
134 
135  object_class->finalize = ev_form_field_choice_finalize;
136 }
static void ev_form_field_choice_finalize ( GObject *  object)
static

Definition at line 108 of file ev-form-field.c.

109 {
110  EvFormFieldChoice *field_choice = EV_FORM_FIELD_CHOICE (object);
111 
112  if (field_choice->selected_items) {
113  g_list_free (field_choice->selected_items);
114  field_choice->selected_items = NULL;
115  }
116 
117  if (field_choice->text) {
118  g_free (field_choice->text);
119  field_choice->text = NULL;
120  }
121 
122  (* G_OBJECT_CLASS (ev_form_field_choice_parent_class)->finalize) (object);
123 }

+ Here is the caller graph for this function:

static void ev_form_field_choice_init ( EvFormFieldChoice field_choice)
static

Definition at line 126 of file ev-form-field.c.

127 {
128 }
EvFormField* ev_form_field_choice_new ( gint  id,
EvFormFieldChoiceType  type 
)

Definition at line 183 of file ev-form-field.c.

185 {
186  EvFormField *field;
187 
188  g_return_val_if_fail (id >= 0, NULL);
189  g_return_val_if_fail (type >= EV_FORM_FIELD_CHOICE_COMBO &&
190  type <= EV_FORM_FIELD_CHOICE_LIST, NULL);
191 
192  field = EV_FORM_FIELD (g_object_new (EV_TYPE_FORM_FIELD_CHOICE, NULL));
193  field->id = id;
194  EV_FORM_FIELD_CHOICE (field)->type = type;
195 
196  return field;
197 }

+ Here is the caller graph for this function:

static void ev_form_field_class_init ( EvFormFieldClass klass)
static

Definition at line 64 of file ev-form-field.c.

65 {
66  GObjectClass *object_class = G_OBJECT_CLASS (klass);
67 
68  object_class->finalize = ev_form_field_finalize;
69 }
static void ev_form_field_finalize ( GObject *  object)
static

Definition at line 51 of file ev-form-field.c.

52 {
53  EvFormField *field = EV_FORM_FIELD (object);
54 
55  g_object_unref (field->page);
56  field->page = NULL;
57 
58  g_clear_object (&field->activation_link);
59 
60  (* G_OBJECT_CLASS (ev_form_field_parent_class)->finalize) (object);
61 }

+ Here is the caller graph for this function:

static void ev_form_field_init ( EvFormField field)
static

Definition at line 43 of file ev-form-field.c.

44 {
45  field->page = NULL;
46  field->changed = FALSE;
47  field->is_read_only = FALSE;
48 }
static void ev_form_field_signature_class_init ( EvFormFieldSignatureClass klass)
static

Definition at line 144 of file ev-form-field.c.

145 {
146 }
static void ev_form_field_signature_init ( EvFormFieldSignature field_choice)
static

Definition at line 139 of file ev-form-field.c.

140 {
141 }
EvFormField* ev_form_field_signature_new ( gint  id)

Definition at line 200 of file ev-form-field.c.

201 {
202  EvFormField *field;
203 
204  g_return_val_if_fail (id >= 0, NULL);
205 
206  field = EV_FORM_FIELD (g_object_new (EV_TYPE_FORM_FIELD_SIGNATURE, NULL));
207  field->id = id;
208 
209  return field;
210 }

+ Here is the caller graph for this function:

static void ev_form_field_text_class_init ( EvFormFieldTextClass klass)
static

Definition at line 90 of file ev-form-field.c.

91 {
92  GObjectClass *object_class = G_OBJECT_CLASS (klass);
93 
94  object_class->finalize = ev_form_field_text_finalize;
95 }
static void ev_form_field_text_finalize ( GObject *  object)
static

Definition at line 72 of file ev-form-field.c.

73 {
74  EvFormFieldText *field_text = EV_FORM_FIELD_TEXT (object);
75 
76  if (field_text->text) {
77  g_free (field_text->text);
78  field_text->text = NULL;
79  }
80 
81  (* G_OBJECT_CLASS (ev_form_field_text_parent_class)->finalize) (object);
82 }

+ Here is the caller graph for this function:

static void ev_form_field_text_init ( EvFormFieldText field_text)
static

Definition at line 85 of file ev-form-field.c.

86 {
87 }
EvFormField* ev_form_field_text_new ( gint  id,
EvFormFieldTextType  type 
)

Definition at line 149 of file ev-form-field.c.

151 {
152  EvFormField *field;
153 
154  g_return_val_if_fail (id >= 0, NULL);
155  g_return_val_if_fail (type >= EV_FORM_FIELD_TEXT_NORMAL &&
156  type <= EV_FORM_FIELD_TEXT_FILE_SELECT, NULL);
157 
158  field = EV_FORM_FIELD (g_object_new (EV_TYPE_FORM_FIELD_TEXT, NULL));
159  field->id = id;
160  EV_FORM_FIELD_TEXT (field)->type = type;
161 
162  return field;
163 }

+ Here is the caller graph for this function: