VaKeR CYBER ARMY
Logo of a company Server : Apache/2.4.41 (Ubuntu)
System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /usr/share/emscripten/tests/poppler/glib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/emscripten/tests/poppler/glib/poppler-form-field.h
/* poppler-form-field.h: glib interface to poppler
 *
 * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * 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., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
 */

#ifndef __POPPLER_FORM_FIELD_H__
#define __POPPLER_FORM_FIELD_H__

#include <glib-object.h>
#include "poppler.h"

G_BEGIN_DECLS

#define POPPLER_TYPE_FORM_FIELD             (poppler_form_field_get_type ())
#define POPPLER_FORM_FIELD(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_FORM_FIELD, PopplerFormField))
#define POPPLER_IS_FORM_FIELD(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POPPLER_TYPE_FORM_FIELD))

typedef enum
{
  POPPLER_FORM_FIELD_UNKNOWN,
  POPPLER_FORM_FIELD_BUTTON,
  POPPLER_FORM_FIELD_TEXT,
  POPPLER_FORM_FIELD_CHOICE,
  POPPLER_FORM_FIELD_SIGNATURE
} PopplerFormFieldType;

typedef enum
{
  POPPLER_FORM_BUTTON_PUSH,
  POPPLER_FORM_BUTTON_CHECK,
  POPPLER_FORM_BUTTON_RADIO
} PopplerFormButtonType;

typedef enum
{
  POPPLER_FORM_TEXT_NORMAL,
  POPPLER_FORM_TEXT_MULTILINE,
  POPPLER_FORM_TEXT_FILE_SELECT
} PopplerFormTextType;

typedef enum
{
  POPPLER_FORM_CHOICE_COMBO,
  POPPLER_FORM_CHOICE_LIST
} PopplerFormChoiceType;

GType                 poppler_form_field_get_type                (void) G_GNUC_CONST;

PopplerFormFieldType  poppler_form_field_get_field_type          (PopplerFormField *field);
gint                  poppler_form_field_get_id                  (PopplerFormField *field);
gdouble               poppler_form_field_get_font_size           (PopplerFormField *field);
gboolean              poppler_form_field_is_read_only            (PopplerFormField *field);
gchar                *poppler_form_field_get_partial_name        (PopplerFormField *field);
gchar                *poppler_form_field_get_mapping_name        (PopplerFormField *field);
gchar                *poppler_form_field_get_name                (PopplerFormField *field);

/* Button Field */
PopplerFormButtonType poppler_form_field_button_get_button_type  (PopplerFormField *field);
gboolean              poppler_form_field_button_get_state        (PopplerFormField *field);
void                  poppler_form_field_button_set_state        (PopplerFormField *field,
								  gboolean          state);

/* Text Field */
PopplerFormTextType   poppler_form_field_text_get_text_type      (PopplerFormField *field);
gchar                *poppler_form_field_text_get_text           (PopplerFormField *field);
void                  poppler_form_field_text_set_text           (PopplerFormField *field,
								  const gchar      *text);
gint                  poppler_form_field_text_get_max_len        (PopplerFormField *field);
gboolean              poppler_form_field_text_do_spell_check     (PopplerFormField *field);
gboolean              poppler_form_field_text_do_scroll          (PopplerFormField *field);
gboolean              poppler_form_field_text_is_rich_text       (PopplerFormField *field);
gboolean              poppler_form_field_text_is_password        (PopplerFormField *field);

/* Choice Field */
PopplerFormChoiceType poppler_form_field_choice_get_choice_type  (PopplerFormField *field);
gboolean              poppler_form_field_choice_is_editable      (PopplerFormField *field);
gboolean           poppler_form_field_choice_can_select_multiple (PopplerFormField *field);
gboolean              poppler_form_field_choice_do_spell_check   (PopplerFormField *field);
gboolean              poppler_form_field_choice_commit_on_change (PopplerFormField *field);
gint                  poppler_form_field_choice_get_n_items      (PopplerFormField *field);
gchar                *poppler_form_field_choice_get_item         (PopplerFormField *field,
								  gint              index);
gboolean              poppler_form_field_choice_is_item_selected (PopplerFormField *field,
								  gint              index);
void                  poppler_form_field_choice_select_item      (PopplerFormField *field,
								  gint              index);
void                  poppler_form_field_choice_unselect_all     (PopplerFormField *field);
void                  poppler_form_field_choice_toggle_item      (PopplerFormField *field,
								  gint              index);
void                  poppler_form_field_choice_set_text         (PopplerFormField *field,
								  const gchar      *text);
gchar                *poppler_form_field_choice_get_text         (PopplerFormField *field);

G_END_DECLS

#endif /* __POPPLER_FORM_FIELD_H__ */

VaKeR 2022