X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=libdocument%2Fev-form-field.h;h=8a1e87f92c61bd86ef54a99af3f1c907f16f73df;hb=2297bff1e7d745f0f837d44feeda03244368d7f1;hp=1405999893bcaaa2c2ee2bdf860a064e2e4a2f66;hpb=6426ce3672bf190ab39d9c49c841232c127d174f;p=evince.git diff --git a/libdocument/ev-form-field.h b/libdocument/ev-form-field.h index 14059998..8a1e87f9 100644 --- a/libdocument/ev-form-field.h +++ b/libdocument/ev-form-field.h @@ -15,9 +15,13 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EV_FORM_FIELD_H #define EV_FORM_FIELD_H @@ -81,7 +85,6 @@ typedef enum { EV_FORM_FIELD_TEXT_NORMAL, EV_FORM_FIELD_TEXT_MULTILINE, - EV_FORM_FIELD_TEXT_PASSWORD, EV_FORM_FIELD_TEXT_FILE_SELECT } EvFormFieldTextType; @@ -106,7 +109,7 @@ struct _EvFormField gboolean is_read_only; gdouble font_size; - gint page; + EvPage *page; gboolean changed; }; @@ -125,6 +128,7 @@ struct _EvFormFieldText gboolean do_scroll : 1; gboolean comb : 1; gboolean is_rich_text : 1; + gboolean is_password; gint max_len; gchar *text; @@ -204,26 +208,6 @@ GType ev_form_field_signature_get_type (void) G_GNUC_CONST; EvFormField *ev_form_field_signature_new (gint id); -/* FormField Mapping stuff */ -typedef struct _EvFormFieldMapping EvFormFieldMapping; -struct _EvFormFieldMapping { - EvFormField *field; - gdouble x1; - gdouble y1; - gdouble x2; - gdouble y2; -}; - -void ev_form_field_mapping_free (GList *field_mapping); -EvFormField *ev_form_field_mapping_find (GList *field_mapping, - gdouble x, - gdouble y); -void ev_form_field_mapping_get_area (GList *field_mapping, - EvFormField *field, - EvRectangle *area); -EvFormField *ev_form_field_mapping_find_by_id (GList *form_field_mapping, - gint id); - G_END_DECLS #endif /* !EV_FORM_FIELD_H */