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

Go to the source code of this file.

Data Structures

struct  _EvFormField
 
struct  _EvFormFieldClass
 
struct  _EvFormFieldText
 
struct  _EvFormFieldTextClass
 
struct  _EvFormFieldButton
 
struct  _EvFormFieldButtonClass
 
struct  _EvFormFieldChoice
 
struct  _EvFormFieldChoiceClass
 
struct  _EvFormFieldSignature
 
struct  _EvFormFieldSignatureClass
 

Macros

#define EV_TYPE_FORM_FIELD   (ev_form_field_get_type())
 
#define EV_FORM_FIELD(object)   (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_FORM_FIELD, EvFormField))
 
#define EV_FORM_FIELD_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_FORM_FIELD, EvFormFieldClass))
 
#define EV_IS_FORM_FIELD(object)   (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_FORM_FIELD))
 
#define EV_IS_FORM_FIELD_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_FORM_FIELD))
 
#define EV_FORM_FIELD_GET_CLASS(object)   (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_FORM_FIELD, EvFormFieldClass))
 
#define EV_TYPE_FORM_FIELD_TEXT   (ev_form_field_text_get_type())
 
#define EV_FORM_FIELD_TEXT(object)   (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_FORM_FIELD_TEXT, EvFormFieldText))
 
#define EV_FORM_FIELD_TEXT_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_FORM_FIELD_TEXT, EvFormFieldTextClass))
 
#define EV_IS_FORM_FIELD_TEXT(object)   (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_FORM_FIELD_TEXT))
 
#define EV_IS_FORM_FIELD_TEXT_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_FORM_FIELD_TEXT))
 
#define EV_FORM_FIELD_TEXT_GET_CLASS(object)   (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_FORM_FIELD_TEXT, EvFormFieldTextClass))
 
#define EV_TYPE_FORM_FIELD_BUTTON   (ev_form_field_button_get_type())
 
#define EV_FORM_FIELD_BUTTON(object)   (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_FORM_FIELD_BUTTON, EvFormFieldButton))
 
#define EV_FORM_FIELD_BUTTON_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_FORM_FIELD_BUTTON, EvFormFieldButtonClass))
 
#define EV_IS_FORM_FIELD_BUTTON(object)   (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_FORM_FIELD_BUTTON))
 
#define EV_IS_FORM_FIELD_BUTTON_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_FORM_FIELD_BUTTON))
 
#define EV_FORM_FIELD_BUTTON_GET_CLASS(object)   (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_FORM_FIELD_BUTTON, EvFormFieldButtonClass))
 
#define EV_TYPE_FORM_FIELD_CHOICE   (ev_form_field_choice_get_type())
 
#define EV_FORM_FIELD_CHOICE(object)   (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_FORM_FIELD_CHOICE, EvFormFieldChoice))
 
#define EV_FORM_FIELD_CHOICE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_FORM_FIELD_CHOICE, EvFormFieldChoiceClass))
 
#define EV_IS_FORM_FIELD_CHOICE(object)   (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_FORM_FIELD_CHOICE))
 
#define EV_IS_FORM_FIELD_CHOICE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_FORM_FIELD_CHOICE))
 
#define EV_FORM_FIELD_CHOICE_GET_CLASS(object)   (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_FORM_FIELD_CHOICE, EvFormFieldChoiceClass))
 
#define EV_TYPE_FORM_FIELD_SIGNATURE   (ev_form_field_signature_get_type())
 
#define EV_FORM_FIELD_SIGNATURE(object)   (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_FORM_FIELD_SIGNATURE, EvFormFieldSignature))
 
#define EV_FORM_FIELD_SIGNATURE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_FORM_FIELD_SIGNATURE, EvFormFieldSignatureClass))
 
#define EV_IS_FORM_FIELD_SIGNATURE(object)   (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_FORM_FIELD_SIGNATURE))
 
#define EV_IS_FORM_FIELD_SIGNATURE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_FORM_FIELD_SIGNATURE))
 
#define EV_FORM_FIELD_SIGNATURE_GET_CLASS(object)   (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_FORM_FIELD_SIGNATURE, EvFormFieldSignatureClass))
 

Typedefs

typedef struct _EvFormField EvFormField
 
typedef struct _EvFormFieldClass EvFormFieldClass
 
typedef struct _EvFormFieldText EvFormFieldText
 
typedef struct
_EvFormFieldTextClass 
EvFormFieldTextClass
 
typedef struct _EvFormFieldButton EvFormFieldButton
 
typedef struct
_EvFormFieldButtonClass 
EvFormFieldButtonClass
 
typedef struct _EvFormFieldChoice EvFormFieldChoice
 
typedef struct
_EvFormFieldChoiceClass 
EvFormFieldChoiceClass
 
typedef struct
_EvFormFieldSignature 
EvFormFieldSignature
 
typedef struct
_EvFormFieldSignatureClass 
EvFormFieldSignatureClass
 

Enumerations

enum  EvFormFieldTextType { EV_FORM_FIELD_TEXT_NORMAL, EV_FORM_FIELD_TEXT_MULTILINE, EV_FORM_FIELD_TEXT_FILE_SELECT }
 
enum  EvFormFieldButtonType { EV_FORM_FIELD_BUTTON_PUSH, EV_FORM_FIELD_BUTTON_CHECK, EV_FORM_FIELD_BUTTON_RADIO }
 
enum  EvFormFieldChoiceType { EV_FORM_FIELD_CHOICE_COMBO, EV_FORM_FIELD_CHOICE_LIST }
 

Functions

GType ev_form_field_get_type (void) G_GNUC_CONST
 
GType ev_form_field_text_get_type (void) G_GNUC_CONST
 
EvFormFieldev_form_field_text_new (gint id, EvFormFieldTextType type)
 
GType ev_form_field_button_get_type (void) G_GNUC_CONST
 
EvFormFieldev_form_field_button_new (gint id, EvFormFieldButtonType type)
 
GType ev_form_field_choice_get_type (void) G_GNUC_CONST
 
EvFormFieldev_form_field_choice_new (gint id, EvFormFieldChoiceType type)
 
GType ev_form_field_signature_get_type (void) G_GNUC_CONST
 
EvFormFieldev_form_field_signature_new (gint id)
 

Macro Definition Documentation

#define EV_FORM_FIELD (   object)    (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_FORM_FIELD, EvFormField))

Definition at line 36 of file ev-form-field.h.

#define EV_FORM_FIELD_BUTTON (   object)    (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_FORM_FIELD_BUTTON, EvFormFieldButton))

Definition at line 50 of file ev-form-field.h.

#define EV_FORM_FIELD_BUTTON_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_FORM_FIELD_BUTTON, EvFormFieldButtonClass))

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

#define EV_FORM_FIELD_BUTTON_GET_CLASS (   object)    (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_FORM_FIELD_BUTTON, EvFormFieldButtonClass))

Definition at line 54 of file ev-form-field.h.

#define EV_FORM_FIELD_CHOICE (   object)    (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_FORM_FIELD_CHOICE, EvFormFieldChoice))

Definition at line 57 of file ev-form-field.h.

#define EV_FORM_FIELD_CHOICE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_FORM_FIELD_CHOICE, EvFormFieldChoiceClass))

Definition at line 58 of file ev-form-field.h.

#define EV_FORM_FIELD_CHOICE_GET_CLASS (   object)    (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_FORM_FIELD_CHOICE, EvFormFieldChoiceClass))

Definition at line 61 of file ev-form-field.h.

#define EV_FORM_FIELD_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_FORM_FIELD, EvFormFieldClass))

Definition at line 37 of file ev-form-field.h.

#define EV_FORM_FIELD_GET_CLASS (   object)    (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_FORM_FIELD, EvFormFieldClass))

Definition at line 40 of file ev-form-field.h.

#define EV_FORM_FIELD_SIGNATURE (   object)    (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_FORM_FIELD_SIGNATURE, EvFormFieldSignature))

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

#define EV_FORM_FIELD_SIGNATURE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_FORM_FIELD_SIGNATURE, EvFormFieldSignatureClass))

Definition at line 65 of file ev-form-field.h.

#define EV_FORM_FIELD_SIGNATURE_GET_CLASS (   object)    (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_FORM_FIELD_SIGNATURE, EvFormFieldSignatureClass))

Definition at line 68 of file ev-form-field.h.

#define EV_FORM_FIELD_TEXT (   object)    (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_FORM_FIELD_TEXT, EvFormFieldText))

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

#define EV_FORM_FIELD_TEXT_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_FORM_FIELD_TEXT, EvFormFieldTextClass))

Definition at line 44 of file ev-form-field.h.

#define EV_FORM_FIELD_TEXT_GET_CLASS (   object)    (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_FORM_FIELD_TEXT, EvFormFieldTextClass))

Definition at line 47 of file ev-form-field.h.

#define EV_IS_FORM_FIELD (   object)    (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_FORM_FIELD))

Definition at line 38 of file ev-form-field.h.

#define EV_IS_FORM_FIELD_BUTTON (   object)    (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_FORM_FIELD_BUTTON))

Definition at line 52 of file ev-form-field.h.

#define EV_IS_FORM_FIELD_BUTTON_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_FORM_FIELD_BUTTON))

Definition at line 53 of file ev-form-field.h.

#define EV_IS_FORM_FIELD_CHOICE (   object)    (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_FORM_FIELD_CHOICE))

Definition at line 59 of file ev-form-field.h.

#define EV_IS_FORM_FIELD_CHOICE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_FORM_FIELD_CHOICE))

Definition at line 60 of file ev-form-field.h.

#define EV_IS_FORM_FIELD_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_FORM_FIELD))

Definition at line 39 of file ev-form-field.h.

#define EV_IS_FORM_FIELD_SIGNATURE (   object)    (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_FORM_FIELD_SIGNATURE))

Definition at line 66 of file ev-form-field.h.

#define EV_IS_FORM_FIELD_SIGNATURE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_FORM_FIELD_SIGNATURE))

Definition at line 67 of file ev-form-field.h.

#define EV_IS_FORM_FIELD_TEXT (   object)    (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_FORM_FIELD_TEXT))

Definition at line 45 of file ev-form-field.h.

#define EV_IS_FORM_FIELD_TEXT_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_FORM_FIELD_TEXT))

Definition at line 46 of file ev-form-field.h.

#define EV_TYPE_FORM_FIELD   (ev_form_field_get_type())

Definition at line 35 of file ev-form-field.h.

#define EV_TYPE_FORM_FIELD_BUTTON   (ev_form_field_button_get_type())

Definition at line 49 of file ev-form-field.h.

#define EV_TYPE_FORM_FIELD_CHOICE   (ev_form_field_choice_get_type())

Definition at line 56 of file ev-form-field.h.

#define EV_TYPE_FORM_FIELD_SIGNATURE   (ev_form_field_signature_get_type())

Definition at line 63 of file ev-form-field.h.

#define EV_TYPE_FORM_FIELD_TEXT   (ev_form_field_text_get_type())

Definition at line 42 of file ev-form-field.h.

Typedef Documentation

typedef struct _EvFormField EvFormField

Definition at line 70 of file ev-form-field.h.

Definition at line 76 of file ev-form-field.h.

Definition at line 77 of file ev-form-field.h.

Definition at line 79 of file ev-form-field.h.

Definition at line 80 of file ev-form-field.h.

Definition at line 71 of file ev-form-field.h.

Definition at line 82 of file ev-form-field.h.

Definition at line 83 of file ev-form-field.h.

Definition at line 73 of file ev-form-field.h.

Definition at line 74 of file ev-form-field.h.

Enumeration Type Documentation

Enumerator
EV_FORM_FIELD_BUTTON_PUSH 
EV_FORM_FIELD_BUTTON_CHECK 
EV_FORM_FIELD_BUTTON_RADIO 

Definition at line 92 of file ev-form-field.h.

Enumerator
EV_FORM_FIELD_CHOICE_COMBO 
EV_FORM_FIELD_CHOICE_LIST 

Definition at line 99 of file ev-form-field.h.

Enumerator
EV_FORM_FIELD_TEXT_NORMAL 
EV_FORM_FIELD_TEXT_MULTILINE 
EV_FORM_FIELD_TEXT_FILE_SELECT 

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

Function Documentation

GType ev_form_field_button_get_type ( void  )
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:

GType ev_form_field_choice_get_type ( void  )
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:

GType ev_form_field_get_type ( void  )
GType ev_form_field_signature_get_type ( void  )
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:

GType ev_form_field_text_get_type ( void  )
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: