GTK_HTML_EMBEDDED
#define GTK_HTML_EMBEDDED(obj) GTK_CHECK_CAST (obj, gtk_html_embedded_get_type (), GtkHTMLEmbedded)
GTK_HTML_EMBEDDED_CLASS
#define GTK_HTML_EMBEDDED_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_html_embedded_get_type (), GtkHTMLEmbeddedClass)
GTK_IS_HTML_EMBEDDED
#define GTK_IS_HTML_EMBEDDED(obj) GTK_CHECK_TYPE (obj, gtk_html_embedded_get_type ())
GtkHTMLEmbedded
struct GtkHTMLEmbedded {
GtkBin bin;
/* class id of this object */
char *classid;
char *name;
char *type;
char *data;
/* parameters to class */
int width, height;
GHashTable *params;
GtkHTMLEmbeddedPrivate *priv;
int descent;
};
gtk_html_embedded_get_type
guint
void
gtk_html_embedded_new
GtkWidget *
char *classid, char *name, char *type, char *data, int width, int height
gtk_html_embedded_set_parameter
void
GtkHTMLEmbedded *ge, char *param, char *value
gtk_html_embedded_get_parameter
char *
GtkHTMLEmbedded *ge, char *param
gtk_html_embedded_set_descent
void
GtkHTMLEmbedded *ge, int descent
GtkHTMLCommandType
typedef enum {
GTK_HTML_COMMAND_UNDO,
GTK_HTML_COMMAND_REDO,
GTK_HTML_COMMAND_COPY,
GTK_HTML_COMMAND_CUT,
GTK_HTML_COMMAND_PASTE,
GTK_HTML_COMMAND_CUT_LINE,
GTK_HTML_COMMAND_INSERT_PARAGRAPH,
GTK_HTML_COMMAND_INSERT_RULE,
GTK_HTML_COMMAND_INSERT_RULE_PARAM,
GTK_HTML_COMMAND_INSERT_IMAGE_PARAM,
GTK_HTML_COMMAND_MAKE_LINK,
GTK_HTML_COMMAND_REMOVE_LINK,
GTK_HTML_COMMAND_DELETE,
GTK_HTML_COMMAND_DELETE_BACK,
GTK_HTML_COMMAND_DELETE_BACK_OR_INDENT_DEC,
GTK_HTML_COMMAND_SET_MARK,
GTK_HTML_COMMAND_DISABLE_SELECTION,
GTK_HTML_COMMAND_BOLD_ON,
GTK_HTML_COMMAND_BOLD_OFF,
GTK_HTML_COMMAND_BOLD_TOGGLE,
GTK_HTML_COMMAND_ITALIC_ON,
GTK_HTML_COMMAND_ITALIC_OFF,
GTK_HTML_COMMAND_ITALIC_TOGGLE,
GTK_HTML_COMMAND_UNDERLINE_ON,
GTK_HTML_COMMAND_UNDERLINE_OFF,
GTK_HTML_COMMAND_UNDERLINE_TOGGLE,
GTK_HTML_COMMAND_STRIKEOUT_ON,
GTK_HTML_COMMAND_STRIKEOUT_OFF,
GTK_HTML_COMMAND_STRIKEOUT_TOGGLE,
GTK_HTML_COMMAND_SIZE_MINUS_2,
GTK_HTML_COMMAND_SIZE_MINUS_1,
GTK_HTML_COMMAND_SIZE_PLUS_0,
GTK_HTML_COMMAND_SIZE_PLUS_1,
GTK_HTML_COMMAND_SIZE_PLUS_2,
GTK_HTML_COMMAND_SIZE_PLUS_3,
GTK_HTML_COMMAND_SIZE_PLUS_4,
GTK_HTML_COMMAND_SIZE_INCREASE,
GTK_HTML_COMMAND_SIZE_DECREASE,
GTK_HTML_COMMAND_ALIGN_LEFT,
GTK_HTML_COMMAND_ALIGN_CENTER,
GTK_HTML_COMMAND_ALIGN_RIGHT,
GTK_HTML_COMMAND_INDENT_ZERO,
GTK_HTML_COMMAND_INDENT_INC,
GTK_HTML_COMMAND_INDENT_DEC,
GTK_HTML_COMMAND_INDENT_PARAGRAPH,
GTK_HTML_COMMAND_PARAGRAPH_STYLE_NORMAL,
GTK_HTML_COMMAND_PARAGRAPH_STYLE_H1,
GTK_HTML_COMMAND_PARAGRAPH_STYLE_H2,
GTK_HTML_COMMAND_PARAGRAPH_STYLE_H3,
GTK_HTML_COMMAND_PARAGRAPH_STYLE_H4,
GTK_HTML_COMMAND_PARAGRAPH_STYLE_H5,
GTK_HTML_COMMAND_PARAGRAPH_STYLE_H6,
GTK_HTML_COMMAND_PARAGRAPH_STYLE_ADDRESS,
GTK_HTML_COMMAND_PARAGRAPH_STYLE_PRE,
GTK_HTML_COMMAND_PARAGRAPH_STYLE_ITEMDOTTED,
GTK_HTML_COMMAND_PARAGRAPH_STYLE_ITEMROMAN,
GTK_HTML_COMMAND_PARAGRAPH_STYLE_ITEMDIGIT,
GTK_HTML_COMMAND_MODIFY_SELECTION_UP,
GTK_HTML_COMMAND_MODIFY_SELECTION_DOWN,
GTK_HTML_COMMAND_MODIFY_SELECTION_LEFT,
GTK_HTML_COMMAND_MODIFY_SELECTION_RIGHT,
GTK_HTML_COMMAND_MODIFY_SELECTION_PAGEUP,
GTK_HTML_COMMAND_MODIFY_SELECTION_PAGEDOWN,
GTK_HTML_COMMAND_MODIFY_SELECTION_BOL,
GTK_HTML_COMMAND_MODIFY_SELECTION_EOL,
GTK_HTML_COMMAND_MODIFY_SELECTION_BOD,
GTK_HTML_COMMAND_MODIFY_SELECTION_EOD,
GTK_HTML_COMMAND_CAPITALIZE_WORD,
GTK_HTML_COMMAND_UPCASE_WORD,
GTK_HTML_COMMAND_DOWNCASE_WORD,
GTK_HTML_COMMAND_SPELL_SUGGEST,
GTK_HTML_COMMAND_SPELL_PERSONAL_DICTIONARY_ADD,
GTK_HTML_COMMAND_SPELL_SESSION_DICTIONARY_ADD,
GTK_HTML_COMMAND_SEARCH,
GTK_HTML_COMMAND_SEARCH_INCREMENTAL_FORWARD,
GTK_HTML_COMMAND_SEARCH_INCREMENTAL_BACKWARD,
GTK_HTML_COMMAND_SEARCH_REGEX,
GTK_HTML_COMMAND_FOCUS_FORWARD,
GTK_HTML_COMMAND_FOCUS_BACKWARD,
GTK_HTML_COMMAND_POPUP_MENU,
GTK_HTML_COMMAND_PROPERTIES_DIALOG,
GTK_HTML_COMMAND_CURSOR_FORWARD,
GTK_HTML_COMMAND_CURSOR_BACKWARD
} GtkHTMLCommandType;
GtkHTMLCursorSkipType
typedef enum {
GTK_HTML_CURSOR_SKIP_ONE,
GTK_HTML_CURSOR_SKIP_WORD,
GTK_HTML_CURSOR_SKIP_PAGE,
GTK_HTML_CURSOR_SKIP_ALL
} GtkHTMLCursorSkipType;
GtkHTMLEditorEventType
typedef enum {
GTK_HTML_EDITOR_EVENT_COMMAND,
GTK_HTML_EDITOR_EVENT_IMAGE_URL
} GtkHTMLEditorEventType;
GtkHTMLEtchStyle
typedef enum {
GTK_HTML_ETCH_IN,
GTK_HTML_ETCH_OUT,
GTK_HTML_ETCH_NONE
} GtkHTMLEtchStyle;
GtkHTMLFontStyle
typedef enum {
GTK_HTML_FONT_STYLE_DEFAULT = 0,
GTK_HTML_FONT_STYLE_SIZE_1 = 1,
GTK_HTML_FONT_STYLE_SIZE_2 = 2,
GTK_HTML_FONT_STYLE_SIZE_3 = 3,
GTK_HTML_FONT_STYLE_SIZE_4 = 4,
GTK_HTML_FONT_STYLE_SIZE_5 = 5,
GTK_HTML_FONT_STYLE_SIZE_6 = 6,
GTK_HTML_FONT_STYLE_SIZE_7 = 7,
GTK_HTML_FONT_STYLE_SIZE_MASK = 0x7,
GTK_HTML_FONT_STYLE_BOLD = 1 << 3,
GTK_HTML_FONT_STYLE_ITALIC = 1 << 4,
GTK_HTML_FONT_STYLE_UNDERLINE = 1 << 5,
GTK_HTML_FONT_STYLE_STRIKEOUT = 1 << 6,
GTK_HTML_FONT_STYLE_FIXED = 1 << 7,
GTK_HTML_FONT_STYLE_SUBSCRIPT = 1 << 8,
GTK_HTML_FONT_STYLE_SUPERSCRIPT = 1 << 9
} GtkHTMLFontStyle;
GtkHTMLParagraphAlignment
typedef enum {
GTK_HTML_PARAGRAPH_ALIGNMENT_LEFT,
GTK_HTML_PARAGRAPH_ALIGNMENT_RIGHT,
GTK_HTML_PARAGRAPH_ALIGNMENT_CENTER
} GtkHTMLParagraphAlignment;
GtkHTMLParagraphStyle
typedef enum {
GTK_HTML_PARAGRAPH_STYLE_NORMAL,
GTK_HTML_PARAGRAPH_STYLE_H1,
GTK_HTML_PARAGRAPH_STYLE_H2,
GTK_HTML_PARAGRAPH_STYLE_H3,
GTK_HTML_PARAGRAPH_STYLE_H4,
GTK_HTML_PARAGRAPH_STYLE_H5,
GTK_HTML_PARAGRAPH_STYLE_H6,
GTK_HTML_PARAGRAPH_STYLE_ADDRESS,
GTK_HTML_PARAGRAPH_STYLE_PRE,
GTK_HTML_PARAGRAPH_STYLE_ITEMDOTTED,
GTK_HTML_PARAGRAPH_STYLE_ITEMROMAN,
GTK_HTML_PARAGRAPH_STYLE_ITEMDIGIT
} GtkHTMLParagraphStyle;
GtkHTMLStreamStatus
typedef enum {
GTK_HTML_STREAM_OK,
GTK_HTML_STREAM_ERROR
} GtkHTMLStreamStatus;
gtk_html_im_focus_in
void
GtkHTML *html
gtk_html_im_focus_out
void
GtkHTML *html
gtk_html_im_realize
void
GtkHTML *html
gtk_html_im_unrealize
void
GtkHTML *html
gtk_html_im_size_allocate
void
GtkHTML *html
gtk_html_im_style_set
void
GtkHTML *html
gtk_html_handle_key_event
gint
GtkHTML *html,GdkEventKey *event,gboolean *update_styles
GtkHTMLPrivate
struct GtkHTMLPrivate {
guint idle_handler_id;
guint scroll_timeout_id;
GtkHTMLParagraphStyle paragraph_style;
guint paragraph_indentation;
GtkHTMLParagraphAlignment paragraph_alignment;
GtkHTMLFontStyle insertion_font_style;
gint last_selection_type;
gchar *content_type;
#ifdef GTKHTML_HAVE_GCONF
guint set_font_id;
#endif
#ifdef GTK_HTML_USE_XIM
GdkICAttr *ic_attr;
GdkIC *ic;
#endif
};
gtk_html_private_calc_scrollbars
void
GtkHTML *html
gtk_html_editor_event_command
void
GtkHTML *html,GtkHTMLCommandType com_type
gtk_html_isearch
void
GtkHTML *html, gboolean forward
GtkHTMLStream
struct GtkHTMLStream {
GtkHTMLStreamWriteFunc write_func;
GtkHTMLStreamCloseFunc close_func;
gpointer user_data;
};
gtk_html_stream_new
GtkHTMLStream *
GtkHTML *html,GtkHTMLStreamWriteFunc write_func,GtkHTMLStreamCloseFunc close_func,gpointer user_data
gtk_html_stream_write
void
GtkHTMLStream *stream,const gchar *buffer,size_t size
gtk_html_stream_destroy
void
GtkHTMLStream *stream
gtk_html_stream_close
void
GtkHTMLStream *stream,GtkHTMLStreamStatus status
gtk_html_stream_ref
GtkHTMLStream *
GtkHTMLStream *handle
gtk_html_stream_unref
void
GtkHTMLStream *handle
GtkHTML
GtkHTMLClass
GtkHTMLClassProperties
GtkHTMLEditorAPI
GtkHTMLEmbedded
GtkHTMLEmbeddedClass
GtkHTMLEmbeddedPrivate
GtkHTMLPrivate
GtkHTMLStream
GtkHTMLStreamCloseFunc
void
GtkHTMLStream *stream,
GtkHTMLStreamStatus status,
gpointer user_data
GtkHTMLStreamWriteFunc
void
GtkHTMLStream *stream,
const gchar *buffer,
guint size,
gpointer user_data
GtkHTMLSaveReceiverFn
gboolean
gpointer engine,
const gchar *data,
guint len,
gpointer user_data
GtkHTMLPrintCallback
void
GtkHTML *html, GnomePrintContext *print_context,
gdouble x, gdouble y, gdouble width, gdouble height, gpointer user_data
GTK_TYPE_HTML
#define GTK_TYPE_HTML (gtk_html_get_type ())
GTK_HTML
#define GTK_HTML(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_HTML, GtkHTML))
GTK_HTML_CLASS
#define GTK_HTML_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_HTML, GtkHTMLClass))
GTK_IS_HTML
#define GTK_IS_HTML(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_HTML))
GTK_IS_HTML_CLASS
#define GTK_IS_HTML_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HTML))
GtkHTML
struct GtkHTML {
GtkLayout layout;
GtkBindingSet *editor_bindings;
GtkWidget *iframe_parent;
GtkHTMLEditorAPI *editor_api;
gpointer editor_data;
HTMLEngine *engine;
/* The URL of the link over which the pointer currently is. NULL if
the pointer is not over a link. */
gchar *pointer_url;
/* The cursors we use within the widget. */
GdkCursor *hand_cursor;
GdkCursor *arrow_cursor;
GdkCursor *ibeam_cursor;
gint selection_x1, selection_y1;
guint in_selection : 1;
guint button1_pressed : 1;
guint load_in_progress : 1;
guint debug : 1;
guint allow_selection : 1;
guint hadj_connection;
guint vadj_connection;
gboolean binding_handled;
GtkHTMLPrivate *priv;
};
GtkHTMLEditorAPI
struct GtkHTMLEditorAPI
{
/* spell checking methods */
gboolean (* check_word) (GtkHTML *html, const gchar *word, gpointer data);
void (* suggestion_request) (GtkHTML *html, const gchar *word, gpointer data);
void (* add_to_session) (GtkHTML *html, const gchar *word, gpointer data);
void (* add_to_personal) (GtkHTML *html, const gchar *word, gpointer data);
/* unhandled commands */
gboolean (* command) (GtkHTML *html, GtkHTMLCommandType com_type, gpointer data);
GtkArg * (* event) (GtkHTML *html, GtkHTMLEditorEventType event_type, GtkArg **args, gpointer data);
/* input line */
GtkEntry * (* create_input_line) (GtkHTML *html, gpointer data);
};
gtk_html_get_type
GtkType
void
gtk_html_construct
void
GtkWidget *html
gtk_html_new
GtkWidget *
void
gtk_html_new_from_string
GtkWidget *
const gchar *str,gint len
gtk_html_set_editor_api
void
GtkHTML *html,GtkHTMLEditorAPI *api,gpointer data
gtk_html_set_iframe_parent
void
GtkHTML *html,GtkWidget *parent
gtk_html_enable_debug
void
GtkHTML *html,gboolean debug
gtk_html_allow_selection
void
GtkHTML *html,gboolean allow
gtk_html_select_word
void
GtkHTML *html
gtk_html_select_line
void
GtkHTML *html
gtk_html_request_paste
int
GtkHTML *html,gint type,gint32 time
gtk_html_begin
GtkHTMLStream *
GtkHTML *html
gtk_html_begin_content
GtkHTMLStream *
GtkHTML *html,gchar *content_type
gtk_html_write
void
GtkHTML *html,GtkHTMLStream *handle,const gchar *buffer,size_t size
gtk_html_end
void
GtkHTML *html,GtkHTMLStream *handle,GtkHTMLStreamStatus status
gtk_html_load_empty
void
GtkHTML *html
gtk_html_load_from_string
void
GtkHTML *html,const gchar *str,gint len
gtk_html_save
gboolean
GtkHTML *html,GtkHTMLSaveReceiverFn receiver,gpointer data
gtk_html_export
gboolean
GtkHTML *html,const char *type,GtkHTMLSaveReceiverFn receiver,gpointer data
gtk_html_set_editable
void
GtkHTML *html,gboolean editable
gtk_html_get_editable
gboolean
const GtkHTML *html
gtk_html_print_with_header_footer
void
GtkHTML *html,GnomePrintContext *print_context,gdouble header_height,gdouble footer_height,GtkHTMLPrintCallback header_print,GtkHTMLPrintCallback footer_print,gpointer user_data
gtk_html_print
void
GtkHTML *html,GnomePrintContext *print_context
gtk_html_get_title
const gchar *
GtkHTML *html
gtk_html_jump_to_anchor
gboolean
GtkHTML *html,const gchar *anchor
gtk_html_get_paragraph_style
GtkHTMLParagraphStyle
GtkHTML *html
gtk_html_set_paragraph_style
void
GtkHTML *html,GtkHTMLParagraphStyle style
gtk_html_set_indent
void
GtkHTML *html,gint level
gtk_html_modify_indent_by_delta
void
GtkHTML *html,gint delta
gtk_html_set_font_style
void
GtkHTML *html,GtkHTMLFontStyle and_mask,GtkHTMLFontStyle or_mask
gtk_html_set_color
void
GtkHTML *html,HTMLColor *color
gtk_html_toggle_font_style
void
GtkHTML *html,GtkHTMLFontStyle style
gtk_html_get_paragraph_alignment
GtkHTMLParagraphAlignment
GtkHTML *html
gtk_html_set_paragraph_alignment
void
GtkHTML *html,GtkHTMLParagraphAlignment alignment
gtk_html_cut
void
GtkHTML *html
gtk_html_copy
void
GtkHTML *html
gtk_html_paste
void
GtkHTML *html
gtk_html_undo
void
GtkHTML *html
gtk_html_redo
void
GtkHTML *html
gtk_html_set_default_background_color
void
GtkHTML *html,GdkColor *c
gtk_html_set_default_content_type
void
GtkHTML *html,gchar *content_type
gtk_html_get_object_by_id
gpointer
GtkHTML *html,const gchar *id
gtk_html_editor_command
void
GtkHTML *html,const gchar *command_name
gtk_html_edit_make_cursor_visible
gboolean
GtkHTML *html
gtk_html_debug_log
void
GtkHTML *html,const gchar *format,...
gtk_html_debug_dump_tree
void
HTMLObject *o,gint level
gtk_html_debug_dump_object_type
void
HTMLObject *o
gtk_html_debug_dump_table
void
HTMLObject *o,gint level
gtk_html_debug_dump_tree_simple
void
HTMLObject *o,gint level
gtk_html_debug_dump_list_simple
void
GList *list,gint level
gtk_html_debug_dump_object
void
HTMLObject *o,gint level
GTK_HTML_FONT_STYLE_SIZE_MAX
#define GTK_HTML_FONT_STYLE_SIZE_MAX 7
GTK_HTML_FONT_STYLE_MAX
#define GTK_HTML_FONT_STYLE_MAX \
(GTK_HTML_FONT_STYLE_SIZE_MASK | GTK_HTML_FONT_STYLE_BOLD | GTK_HTML_FONT_STYLE_ITALIC \
| GTK_HTML_FONT_STYLE_UNDERLINE | GTK_HTML_FONT_STYLE_STRIKEOUT | GTK_HTML_FONT_STYLE_FIXED \
| GTK_HTML_FONT_STYLE_SUBSCRIPT | GTK_HTML_FONT_STYLE_SUPERSCRIPT)
GTK_HTML_FONT_STYLE_MAX_FONT
#define GTK_HTML_FONT_STYLE_MAX_FONT ((GTK_HTML_FONT_STYLE_ITALIC) << 1)
GTK_HTML_FONT_STYLE_MAX_FONT_MASK
#define GTK_HTML_FONT_STYLE_MAX_FONT_MASK (GTK_HTML_FONT_STYLE_MAX_FONT - 1)
gtk_html_font_style_merge
GtkHTMLFontStyle
GtkHTMLFontStyle a, GtkHTMLFontStyle b
HTML_ANCHOR
#define HTML_ANCHOR(x) ((HTMLAnchor *) x)
HTML_ANCHOR_CLASS
#define HTML_ANCHOR_CLASS(x) ((HTMLAnchorClass *) x)
HTMLAnchor
struct HTMLAnchor {
HTMLObject object;
GString *name;
};
html_anchor_type_init
void
void
html_anchor_class_init
void
HTMLAnchorClass *klass,HTMLType type,guint object_size
html_anchor_new
HTMLObject *
const gchar *name
html_anchor_init
void
HTMLAnchor *anchor,HTMLAnchorClass *klass,const gchar *name
html_anchor_get_name
const gchar *
HTMLAnchor *anchor
HTML_BUTTON
#define HTML_BUTTON(x) ((HTMLButton *) (x))
HTML_BUTTON_CLASS
#define HTML_BUTTON_CLASS(x) ((HTMLButtonClass *) (x))
HTMLButton
struct HTMLButton {
HTMLEmbedded element;
HTMLButtonType type;
};
html_button_class
extern HTMLButtonClass html_button_class;
html_button_type_init
void
void
html_button_class_init
void
HTMLButtonClass *klass,HTMLType type,guint object_size
html_button_init
void
HTMLButton *button,HTMLButtonClass *klass,GtkWidget *parent,gchar *name,gchar *value,HTMLButtonType type
html_button_new
HTMLObject *
GtkWidget *parent,gchar *name,gchar *value,HTMLButtonType type
HTML_CHECKBOX
#define HTML_CHECKBOX(x) ((HTMLCheckBox *) (x))
HTML_CHECKBOX_CLASS
#define HTML_CHECKBOX_CLASS(x) ((HTMLCheckBoxClass *) (x))
HTMLCheckBox
struct HTMLCheckBox {
HTMLEmbedded element;
gint default_checked;
};
html_checkbox_class
extern HTMLCheckBoxClass html_checkbox_class;
html_checkbox_type_init
void
void
html_checkbox_class_init
void
HTMLCheckBoxClass *klass,HTMLType type,guint object_size
html_checkbox_init
void
HTMLCheckBox *checkbox,HTMLCheckBoxClass *klass,GtkWidget *parent,gchar *name,gchar *value,gboolean checked
html_checkbox_new
HTMLObject *
GtkWidget *parent,gchar *name,gchar *value,gboolean checked
HTML_CLUE
#define HTML_CLUE(x) ((HTMLClue *)(x))
HTML_CLUE_CLASS
#define HTML_CLUE_CLASS(x) ((HTMLClueClass *)(x))
HTMLClue
struct HTMLClue {
HTMLObject object;
HTMLObject *head;
HTMLObject *tail;
HTMLObject *curr;
HTMLVAlignType valign;
HTMLHAlignType halign;
};
html_clue_class
extern HTMLClueClass html_clue_class;
html_clue_type_init
void
void
html_clue_class_init
void
HTMLClueClass *klass,HTMLType type,guint object_size
html_clue_init
void
HTMLClue *clue,HTMLClueClass *klass
html_clue_get_left_clear
gint
HTMLClue *clue,gint y
html_clue_get_right_clear
gint
HTMLClue *clue,gint y
html_clue_find_free_area
void
HTMLClue *clue,gint y,gint width,gint height,gint indent,gint *y_pos,gint *lmargin,gint *rmargin
html_clue_append_right_aligned
void
HTMLClue *clue,HTMLClue *aclue
html_clue_append_left_aligned
void
HTMLClue *clue,HTMLClue *aclue
html_clue_appended
gboolean
HTMLClue *clue,HTMLClue *aclue
html_clue_append_after
void
HTMLClue *clue,HTMLObject *o,HTMLObject *where
html_clue_append
void
HTMLClue *clue,HTMLObject *o
html_clue_prepend
void
HTMLClue *clue,HTMLObject *o
html_clue_remove
void
HTMLClue *clue,HTMLObject *o
HTML_CLUEALIGNED
#define HTML_CLUEALIGNED(x) ((HTMLClueAligned *)(x))
HTML_CLUEALIGNED_CLASS
#define HTML_CLUEALIGNED_CLASS(x) ((HTMLClueAlignedClass *)(x))
HTMLClueAligned
struct HTMLClueAligned {
HTMLClue clue;
HTMLClueAligned *next_aligned;
};
html_cluealigned_class
extern HTMLClueAlignedClass html_cluealigned_class;
html_cluealigned_type_init
void
void
html_cluealigned_class_init
void
HTMLClueAlignedClass *klass,HTMLType type,guint object_size
html_cluealigned_init
void
HTMLClueAligned *aligned,HTMLClueAlignedClass *klass,HTMLObject *parent,gint x,gint y,gint max_width,gint percent
html_cluealigned_new
HTMLObject *
HTMLObject *parent,gint x,gint y,gint max_width,gint percent
HTML_CLUEFLOW
#define HTML_CLUEFLOW(x) ((HTMLClueFlow *)(x))
HTML_CLUEFLOW_CLASS
#define HTML_CLUEFLOW_CLASS(x) ((HTMLClueFlowClass *)(x))
HTMLClueFlow
struct HTMLClueFlow {
HTMLClue clue;
/* Paragraph style. */
HTMLClueFlowStyle style;
/* Indentation level for blockquote and lists. */
guint8 level;
};
html_clueflow_class
extern HTMLClueFlowClass html_clueflow_class;
html_clueflow_type_init
void
void
html_clueflow_class_init
void
HTMLClueFlowClass *klass,HTMLType type,guint object_size
html_clueflow_init
void
HTMLClueFlow *flow,HTMLClueFlowClass *klass,HTMLClueFlowStyle style,guint8 indentation
html_clueflow_new
HTMLObject *
HTMLClueFlowStyle style,guint8 indentation
html_clueflow_new_from_flow
HTMLObject *
HTMLClueFlow *flow
html_clueflow_get_default_font_style
GtkHTMLFontStyle
const HTMLClueFlow *self
html_clueflow_split
HTMLClueFlow *
HTMLClueFlow *clue,HTMLObject *child
html_clueflow_set_style
void
HTMLClueFlow *flow,HTMLEngine *engine,HTMLClueFlowStyle style
html_clueflow_get_style
HTMLClueFlowStyle
HTMLClueFlow *flow
html_clueflow_set_halignment
void
HTMLClueFlow *flow,HTMLEngine *engine,HTMLHAlignType alignment
html_clueflow_get_halignment
HTMLHAlignType
HTMLClueFlow *flow
html_clueflow_modify_indentation_by_delta
void
HTMLClueFlow *flow,HTMLEngine *engine,gint indentation
html_clueflow_set_indentation
void
HTMLClueFlow *flow,HTMLEngine *engine,guint8 indentation
html_clueflow_get_indentation
guint8
HTMLClueFlow *flow
html_clueflow_set_properties
void
HTMLClueFlow *flow,HTMLEngine *engine,HTMLClueFlowStyle style,guint8 indentation,HTMLHAlignType alignment
html_clueflow_get_properties
void
HTMLClueFlow *flow,HTMLClueFlowStyle *style_return,guint8 *indentation_return,HTMLHAlignType *alignment_return
html_clueflow_remove_text_slaves
void
HTMLClueFlow *flow
html_clueflow_spell_check
void
HTMLClueFlow *flow,HTMLEngine *e,HTMLInterval *i
SPELL_CHECK
#define SPELL_CHECK(f, e) if (f && HTML_OBJECT_TYPE (f) == HTML_TYPE_CLUEFLOW) \
html_clueflow_spell_check (HTML_CLUEFLOW (f), e, NULL)
HTML_CLUEH
#define HTML_CLUEH(x) ((HTMLClueH *)(x))
HTML_CLUEH_CLASS
#define HTML_CLUEH_CLASS(X) ((HTMLClueHClass *)(x))
HTMLClueH
struct HTMLClueH {
HTMLClue clue;
gshort indent;
};
html_clue_h_class
extern HTMLClueHClass html_clue_h_class;
html_clueh_type_init
void
void
html_clueh_class_init
void
HTMLClueHClass *klass,HTMLType type,guint object_size
html_clueh_init
void
HTMLClueH *clue,HTMLClueHClass *klass,gint x,gint y,gint max_width
html_clueh_new
HTMLObject *
gint x,gint y,gint max_width
HTML_CLUEV
#define HTML_CLUEV(x) ((HTMLClueV *)(x))
HTML_CLUEV_CLASS
#define HTML_CLUEV_CLASS(x) ((HTMLClueVClass *)(x))
HTMLClueV
struct HTMLClueV {
HTMLClue clue;
/* FIXME: htmlcluealigned */
HTMLObject *align_left_list;
HTMLObject *align_right_list;
gushort padding;
};
html_cluev_class
extern HTMLClueVClass html_cluev_class;
html_cluev_type_init
void
void
html_cluev_class_init
void
HTMLClueVClass *klass,HTMLType type,guint object_size
html_cluev_init
void
HTMLClueV *cluev,HTMLClueVClass *klass,gint x,gint y,gint percent
html_cluev_new
HTMLObject *
gint x,gint y,gint percent
HTMLColor
struct HTMLColor {
GdkColor color;
gboolean allocated;
guint refcount;
};
html_color_new
HTMLColor *
void
html_color_new_from_gdk_color
HTMLColor *
const GdkColor *color
html_color_new_from_rgb
HTMLColor *
gushort red, gushort green, gushort blue
html_color_ref
void
HTMLColor *color
html_color_unref
void
HTMLColor *color
html_color_alloc
void
HTMLColor *color, HTMLPainter *painter
html_color_free
void
HTMLColor *color, HTMLPainter *painter
html_color_equal
gboolean
HTMLColor *color1, HTMLColor *color2
html_color_set
void
HTMLColor *color, GdkColor *c
HTMLColorSet
struct HTMLColorSet
{
HTMLColor *color [HTMLColors];
gboolean changed [HTMLColors];
/* slave sets - they must be updated when setting this one
engine has master set and painters have slave ones
*/
GSList *slaves;
};
html_colorset_new
HTMLColorSet *
GtkWidget *w
html_colorset_destroy
void
HTMLColorSet *set
html_colorset_add_slave
void
HTMLColorSet *set,HTMLColorSet *slave
html_colorset_set_color
void
HTMLColorSet *set,GdkColor *color,HTMLColorId idx
html_colorset_get_color
HTMLColor *
HTMLColorSet *set,HTMLColorId idx
html_colorset_get_color_allocated
HTMLColor *
HTMLPainter *painter,HTMLColorId idx
html_colorset_set_by
void
HTMLColorSet *s, HTMLColorSet *o
html_colorset_set_unchanged
void
HTMLColorSet *s, HTMLColorSet *o
html_colorset_set_style
void
HTMLColorSet *s, GtkStyle *style
HTMLCursor
struct HTMLCursor {
HTMLObject *object;
guint offset;
gint target_x;
guint have_target_x : 1;
gint position;
};
html_cursor_new
HTMLCursor *
void
html_cursor_destroy
void
HTMLCursor *cursor
html_cursor_dup
HTMLCursor *
const HTMLCursor *cursor
html_cursor_copy
void
HTMLCursor *dest,const HTMLCursor *src
html_cursor_home
void
HTMLCursor *cursor,HTMLEngine *engine
html_cursor_forward
gboolean
HTMLCursor *cursor,HTMLEngine *engine
html_cursor_backward
gboolean
HTMLCursor *cursor,HTMLEngine *engine
html_cursor_forward_n
gboolean
HTMLCursor *cursor,HTMLEngine *e,guint n
html_cursor_backward_n
gboolean
HTMLCursor *cursor,HTMLEngine *e,guint n
html_cursor_up
gboolean
HTMLCursor *cursor,HTMLEngine *engine
html_cursor_down
gboolean
HTMLCursor *cursor,HTMLEngine *engine
html_cursor_beginning_of_document
void
HTMLCursor *cursor,HTMLEngine *engine
html_cursor_end_of_document
void
HTMLCursor *cursor,HTMLEngine *engine
html_cursor_beginning_of_line
gboolean
HTMLCursor *cursor,HTMLEngine *engine
html_cursor_end_of_line
gboolean
HTMLCursor *cursor,HTMLEngine *engine
html_cursor_beginning_of_paragraph
gboolean
HTMLCursor *cursor,HTMLEngine *engine
html_cursor_end_of_paragraph
gboolean
HTMLCursor *cursor,HTMLEngine *engine
html_cursor_jump_to
gboolean
HTMLCursor *cursor,HTMLEngine *engine,HTMLObject *obj,guint offset
html_cursor_normalize
void
HTMLCursor *cursor
html_cursor_get_position
gint
HTMLCursor *cursor
html_cursor_jump_to_position
void
HTMLCursor *cursor,HTMLEngine *engine,gint position
html_cursor_get_current_char
unicode_char_t
const HTMLCursor *cursor
html_cursor_get_prev_char
unicode_char_t
const HTMLCursor *cursor
html_cursor_equal
gboolean
const HTMLCursor *a,const HTMLCursor *b
html_cursor_precedes
gboolean
const HTMLCursor *a,const HTMLCursor *b
html_cursor_follows
gboolean
const HTMLCursor *a,const HTMLCursor *b
HTMLDrawQueueClearElement
struct HTMLDrawQueueClearElement {
gint x, y;
guint width, height;
GdkColor *background_color;
GdkPixbuf *background_image;
guint background_image_x_offset, background_image_y_offset;
};
HTMLDrawQueue
struct HTMLDrawQueue {
/* The associated engine. */
HTMLEngine *engine;
/* Elements to be drawn. */
GList *elems;
/* Pointer to the last element in the list, for faster appending. */
GList *last;
/* Elements to be cleared (HTMLDrawQueueClearElement). */
GList *clear_elems;
/* Pointer to the last element. */
GList *clear_last;
};
html_draw_queue_new
HTMLDrawQueue *
HTMLEngine *engine
html_draw_queue_destroy
void
HTMLDrawQueue *queue
html_draw_queue_flush
void
HTMLDrawQueue *queue
html_draw_queue_clear
void
HTMLDrawQueue *queue
html_draw_queue_add
void
HTMLDrawQueue *queue,HTMLObject *object
html_draw_queue_add_clear
void
HTMLDrawQueue *queue,gint x,gint y,guint width,guint height,const GdkColor *background_color
html_draw_queue_add_clear_with_background
void
HTMLDrawQueue *queue,gint x,gint y,guint width,guint height,GdkPixbuf *background_image,guint image_x_offset,guint image_y_offset
HTML_EMBEDDED
#define HTML_EMBEDDED(x) ((HTMLEmbedded *)(x))
HTML_EMBEDDED_CLASS
#define HTML_EMBEDDED_CLASS(x) ((HTMLEmbeddedClass *)(x))
HTMLEmbedded
struct HTMLEmbedded {
HTMLObject object;
gchar *name;
gchar *value;
HTMLForm *form;
GtkWidget *widget, *parent;
gint16 width, height;
gint abs_x, abs_y;
};
html_embedded_class
extern HTMLEmbeddedClass html_embedded_class;
html_embedded_type_init
void
void
html_embedded_class_init
void
HTMLEmbeddedClass *klass,HTMLType type,guint object_size
html_embedded_init
void
HTMLEmbedded *element,HTMLEmbeddedClass *klass,GtkWidget *parent,gchar *name,gchar *value
html_embedded_set_widget
void
HTMLEmbedded *element,GtkWidget *widget
html_embedded_get_name
gchar *
HTMLEmbedded *element
html_embedded_set_form
void
HTMLEmbedded *element,HTMLForm *form
html_embedded_reset
void
HTMLEmbedded *element
html_embedded_encode
gchar *
HTMLEmbedded *element
html_embedded_encode_string
gchar *
gchar *str
html_embedded_new_widget
HTMLEmbedded *
GtkWidget *parent,GtkHTMLEmbedded *eb
html_embedded_size_recalc
void
HTMLEmbedded *em
html_engine_get_current_clueflow_style
HTMLClueFlowStyle
HTMLEngine *engine
html_engine_get_current_clueflow_indentation
guint
HTMLEngine *engine
html_engine_get_current_clueflow_alignment
HTMLHAlignType
HTMLEngine *engine
html_engine_set_clueflow_style
gboolean
HTMLEngine *engine,HTMLClueFlowStyle style,HTMLHAlignType alignment,gint indentation_delta,HTMLEngineSetClueFlowStyleMask mask,gboolean do_undo
html_engine_get_current_clueflow_style
HTMLClueFlowStyle
HTMLEngine *engine
html_engine_get_current_clueflow_indentation
guint
HTMLEngine *engine
html_engine_get_current_clueflow_alignment
HTMLHAlignType
HTMLEngine *engine
html_engine_hide_cursor
void
HTMLEngine *engine
html_engine_show_cursor
void
HTMLEngine *engine
html_engine_draw_cursor_in_area
void
HTMLEngine *engine,gint x,gint y,gint width,gint height
html_engine_setup_blinking_cursor
void
HTMLEngine *engine
html_engine_stop_blinking_cursor
void
HTMLEngine *engine
html_engine_reset_blinking_cursor
void
HTMLEngine *engine
html_engine_update_insertion_font_style
gboolean
HTMLEngine *engine
html_engine_get_font_style
GtkHTMLFontStyle
HTMLEngine *engine
html_engine_get_document_font_style
GtkHTMLFontStyle
HTMLEngine *engine
html_engine_set_font_style
gboolean
HTMLEngine *engine,GtkHTMLFontStyle and_mask,GtkHTMLFontStyle or_mask
html_engine_toggle_font_style
gboolean
HTMLEngine *engine,GtkHTMLFontStyle style
html_engine_font_size_inc_dec
void
HTMLEngine *e,gboolean inc
html_engine_update_insertion_color
gboolean
HTMLEngine *engine
html_engine_set_color
gboolean
HTMLEngine *engine,HTMLColor *color
html_engine_get_color
HTMLColor *
HTMLEngine *engine
html_engine_get_document_color
HTMLColor *
HTMLEngine *engine
html_engine_update_insertion_url_and_target
gboolean
HTMLEngine *engine
html_engine_get_url
const gchar *
HTMLEngine *e
html_engine_set_url
void
HTMLEngine *e,const gchar *url
html_engine_get_target
const gchar *
HTMLEngine *e
html_engine_set_target
void
HTMLEngine *e,const gchar *url
html_engine_get_document_url
const gchar *
HTMLEngine *e
html_engine_get_document_target
const gchar *
HTMLEngine *e
html_engine_insert_image
void
HTMLEngine *e,const gchar *file,const gchar *url,const gchar *target,gint16 width,gint16 height,gboolean percent_width,gboolean percent_height,gint8 border,HTMLColor *border_color,HTMLHAlignType halign,HTMLVAlignType valign,gint8 hspace,gint8 vspace
html_engine_move_cursor
guint
HTMLEngine *e,HTMLEngineCursorMovement movement,guint count
html_engine_jump_to_object
void
HTMLEngine *e,HTMLObject *object,guint offset
html_engine_jump_at
void
HTMLEngine *e,gint x,gint y
html_engine_beginning_of_document
void
HTMLEngine *engine
html_engine_end_of_document
void
HTMLEngine *engine
html_engine_beginning_of_line
gboolean
HTMLEngine *engine
html_engine_end_of_line
gboolean
HTMLEngine *engine
html_engine_scroll_down
gint
HTMLEngine *engine,gint amount
html_engine_scroll_up
gint
HTMLEngine *engine,gint amount
html_engine_forward_word
gboolean
HTMLEngine *engine
html_engine_backward_word
gboolean
HTMLEngine *engine
html_engine_insert_rule
void
HTMLEngine *e,gint length,gint percent,gint size,gboolean shade,HTMLHAlignType halign
html_rule_set
void
HTMLRule *rule,HTMLEngine *e,gint length,gint percent,gint size,gboolean shade,HTMLHAlignType halign
html_engine_edit_selection_updater_new
HTMLEngineEditSelectionUpdater *
HTMLEngine *engine
html_engine_edit_selection_updater_destroy
void
HTMLEngineEditSelectionUpdater *updater
html_engine_edit_selection_updater_reset
void
HTMLEngineEditSelectionUpdater *updater
html_engine_edit_selection_updater_schedule
void
HTMLEngineEditSelectionUpdater *updater
html_engine_edit_selection_updater_update_now
void
HTMLEngineEditSelectionUpdater *updater
html_engine_create_table
HTMLObject *
HTMLEngine *e,gint width,gint percent,gint padding,gint spacing,gint border
html_engine_insert_table
void
HTMLEngine *e, gint *values
html_engine_insert_table_cell
HTMLObject *
HTMLEngine *e,gint percent,gint rs,gint cs,gint pad,gint width,HTMLImagePointer *imagePtr
html_engine_capitalize_word
void
HTMLEngine *e
html_engine_upcase_downcase_word
void
HTMLEngine *e,gboolean up
html_engine_undo
void
HTMLEngine *e
html_engine_redo
void
HTMLEngine *e
html_engine_set_mark
void
HTMLEngine *e
html_engine_select_word_editable
void
HTMLEngine *e
html_engine_select_line_editable
void
HTMLEngine *e
html_engine_clipboard_push
void
HTMLEngine *e
html_engine_clipboard_pop
void
HTMLEngine *e
html_engine_clipboard_clear
void
HTMLEngine *e
html_engine_selection_push
void
HTMLEngine *e
html_engine_selection_pop
void
HTMLEngine *e
html_engine_cut_and_paste_begin
void
HTMLEngine *e,gchar *op_name
html_engine_cut_and_paste_end
void
HTMLEngine *e
html_engine_cut_and_paste
void
HTMLEngine *e,gchar *op_name,HTMLObjectForallFunc iterator,gpointer data
html_engine_spell_check_range
void
HTMLEngine *e,HTMLCursor *begin,HTMLCursor *end
html_engine_set_data_by_type
void
HTMLEngine *e,HTMLType object_type,const gchar *key,const gpointer value
html_engine_ensure_editable
void
HTMLEngine *e
html_engine_new_text
HTMLObject *
HTMLEngine *e,const gchar *text,gint len
html_engine_new_text_empty
HTMLObject *
HTMLEngine *e
html_engine_cursor_on_bop
gboolean
HTMLEngine *e
html_engine_get_indent
guint
HTMLEngine *e
html_engine_indent_pre_paragraph
void
HTMLEngine *e
html_is_in_word
gboolean
unicode_char_t uc
paragraph_alignment_to_html
HTMLHAlignType
GtkHTMLParagraphAlignment alignment
paragraph_style_to_clueflow_style
HTMLClueFlowStyle
GtkHTMLParagraphStyle style
html_alignment_to_paragraph
GtkHTMLParagraphAlignment
HTMLHAlignType alignment
clueflow_style_to_paragraph_style
GtkHTMLParagraphStyle
HTMLClueFlowStyle style
html_engine_print
void
HTMLEngine *e,GnomePrintContext *print_context
html_engine_print_with_header_footer
void
HTMLEngine *e,GnomePrintContext *print_context,gdouble header_height,gdouble footer_height,GtkHTMLPrintCallback header_print,GtkHTMLPrintCallback footer_print,gpointer user_data
html_engine_print_set_min_split_index
void
HTMLEngine *e,gdouble idx
HTMLEngineSaveState
struct HTMLEngineSaveState {
HTMLEngine *engine;
HTMLEngineSaveReceiverFn receiver;
guint br_count;
guint error : 1;
guint last_level;
gpointer user_data;
};
html_engine_save_encode
gboolean
HTMLEngineSaveState *state,const gchar *buffer,guint length
html_engine_save_encode_string
gboolean
HTMLEngineSaveState *state,const gchar *s
html_engine_save_output_string
gboolean
HTMLEngineSaveState *state,const gchar *format,...
html_engine_save
gboolean
HTMLEngine *engine,HTMLEngineSaveReceiverFn receiver,gpointer user_data
html_engine_save_plain
gboolean
HTMLEngine *engine,HTMLEngineSaveReceiverFn receiver,gpointer user_data
html_engine_save_buffer_free
void
HTMLEngineSaveState *state
html_engine_save_buffer_peek_text
guchar *
HTMLEngineSaveState *state
html_engine_save_buffer_new
HTMLEngineSaveState *
HTMLEngine *engine
html_engine_save_get_sample_body
gchar *
HTMLEngine *e,HTMLObject *o
html_engine_save_get_paragraph_align
const gchar *
GtkHTMLParagraphAlignment align
html_engine_save_get_paragraph_style
const gchar *
GtkHTMLParagraphStyle style
html_engine_search
gboolean
HTMLEngine *e,const gchar *text,gboolean case_sensitive,gboolean forward,gboolean regular
html_engine_search_next
gboolean
HTMLEngine *e
html_engine_search_incremental
gboolean
HTMLEngine *e,const gchar *text,gboolean forward
HTML_TYPE_ENGINE
#define HTML_TYPE_ENGINE (html_engine_get_type ())
HTML_ENGINE
#define HTML_ENGINE(obj) (GTK_CHECK_CAST ((obj), HTML_TYPE_ENGINE, HTMLEngine))
HTML_ENGINE_CLASS
#define HTML_ENGINE_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), HTML_TYPE_ENGINE, HTMLEngineClass))
HTML_IS_ENGINE
#define HTML_IS_ENGINE(obj) (GTK_CHECK_TYPE ((obj), HTML_TYPE_ENGINE))
HTML_IS_ENGINE_CLASS
#define HTML_IS_ENGINE_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), HTML_TYPE_ENGINE))
LEFT_BORDER
#define LEFT_BORDER 10
RIGHT_BORDER
#define RIGHT_BORDER 10
TOP_BORDER
#define TOP_BORDER 10
BOTTOM_BORDER
#define BOTTOM_BORDER 10
HTMLEngine
struct HTMLEngine {
GtkObject parent;
HTMLDrawQueue *draw_queue;
HTMLPainter *painter;
HTMLSettings *settings;
HTMLSettings *defaultSettings;
HTMLUndo *undo;
GdkWindow *window;
GdkGC *invert_gc;
gboolean editable;
HTMLObject *clipboard;
guint clipboard_len;
GList *clipboard_stack;
/* Freeze counter. When greater than zero, we never trigger relayouts
nor repaints. When going from nonzero to zero, we relayout and
repaint everything. */
guint freeze_count;
guint thaw_idle_id;
gboolean parsing;
HTMLTokenizer *ht;
HTMLStringTokenizer *st;
HTMLObject *clue;
HTMLObject *flow;
gint leftBorder;
gint rightBorder;
gint topBorder;
gint bottomBorder;
/* Current indentation level. */
guint indent_level;
/* For the widget */
gint width;
gint height;
HTMLHAlignType divAlign;
/* Number of tokens parsed in the current time-slice */
gint parseCount;
gint granularity;
/* Offsets */
gint x_offset, y_offset;
gboolean inTitle;
gboolean inPre;
gboolean inOption;
gboolean inTextArea;
gboolean eat_space;
gboolean newPage;
HTMLStack *font_style_stack; /* Font style stack, elements are GtkHTMLFontStyles. */
HTMLStack *font_face_stack;
HTMLStack *color_stack; /* Color stack, elements are GdkColors. */
HTMLStack *clueflow_style_stack; /* Clueflow style stack, elements are HTMLClueFlowStyles. */
gchar *url;
gchar *target;
HTMLBlockStackElement *blockStack;
/* timer id to schedule paint events */
guint updateTimer;
/* timer id for parsing routine */
guint timerId;
/* FIXME: replace with a `gchar *'? */
GString *title;
gboolean writing;
/* The background pixmap, an HTMLImagePointer */
gpointer bgPixmapPtr;
/* Stack of lists currently active */
HTMLStack *listStack;
/* Stack of embedded "object"'s */
HTMLStack *embeddedStack;
/* The associated widget. */
GtkHTML *widget;
gpointer image_factory;
HTMLStack *glossaryStack; /* HTMLGlossaryEntry */
/*
* This list holds strings which are displayed in the view,
* but are not actually contained in the HTML source.
* e.g. The numbers in an ordered list.
* FIXME?
*/
GList *tempStrings;
HTMLForm *form;
HTMLSelect *formSelect;
HTMLTextArea *formTextArea;
GList *formList;
GString *formText;
gboolean noWrap;
/* This is TRUE if we cannot insert a paragraph break (which is just an
extra empty line). It's set to FALSE as soon as some element is
added to a flow. The purpose is to avoid having paragraph breaks to
be inserted in sequence, or after elements that have some vspace of
their own. */
gboolean avoid_para;
/* This is TRUE if we want a paragraph break to be inserted before the
next element. */
gboolean pending_para;
/* Alignment for the pending paragraph we are going to insert. */
HTMLHAlignType pending_para_alignment;
/* Whether we have the keyboard focus. */
guint have_focus : 1;
HTMLInterval *selection;
gboolean selected_in;
/* --- */
/* Editing stuff. -- FIXME it should be in a separate object. */
/* The current position of the cursor. */
HTMLCursor *cursor;
/* If no region is active, this is NULL. Otherwise, this is
one extreme of the selected region. The other extreme is
always the cursor. */
HTMLCursor *mark;
/* Hide counter for the cursor. When greater than zero, it
means the cursor is invisible. */
gint cursor_hide_count;
/* Timer ID for cursor blink. */
gint blinking_timer_id;
/* Blinking status (visible/invisible). */
gboolean blinking_status;
/* Font style for insertion. If HTML_FONT_STYLE_DEFAULT, use that of
the text we are in. */
GtkHTMLFontStyle insertion_font_style;
HTMLColor *insertion_color;
gchar *insertion_url;
gchar *insertion_target;
/* if we are doing shift selection - Shift + some event (arrows, mouse motion, ...) */
gboolean shift_selection;
/* This object is used to update the keyboard selection in the
idle loop. */
HTMLEngineEditSelectionUpdater *selection_updater;
/* keeps selection between operation, which are changing selection
and need restore it after done */
GList *selection_stack;
/* search & replace */
HTMLSearch *search_info;
HTMLReplace *replace_info;
/* id-to-object mapping */
GHashTable *id_table;
gdouble min_split_index;
gboolean need_spell_check;
};
html_engine_get_type
guint
void
html_engine_new
HTMLEngine *
GtkWidget *
html_engine_realize
void
HTMLEngine *engine,GdkWindow *window
html_engine_unrealize
void
HTMLEngine *engine
html_engine_set_editable
void
HTMLEngine *e,gboolean editable
html_engine_get_editable
gboolean
HTMLEngine *e
html_engine_set_focus
void
HTMLEngine *engine,gboolean have_focus
html_engine_begin
GtkHTMLStream *
HTMLEngine *p,char *content_type
html_engine_parse
void
HTMLEngine *p
html_engine_stop_parser
void
HTMLEngine *e
html_engine_calc_size
void
HTMLEngine *p
html_engine_get_doc_height
gint
HTMLEngine *p
html_engine_get_doc_width
gint
HTMLEngine *e
html_engine_draw
void
HTMLEngine *e,gint x,gint y,gint width,gint height
html_engine_draw_background
void
HTMLEngine *e,gint x,gint y,gint width,gint height
html_engine_schedule_update
void
HTMLEngine *p
html_engine_make_cursor_visible
gboolean
HTMLEngine *e
html_engine_goto_anchor
gboolean
HTMLEngine *e,const gchar *anchor
html_engine_flush_draw_queue
void
HTMLEngine *e
html_engine_queue_draw
void
HTMLEngine *e,HTMLObject *o
html_engine_queue_clear
void
HTMLEngine *e,gint x,gint y,guint width,guint height
html_engine_set_painter
void
HTMLEngine *e,HTMLPainter *painter,gint max_width
html_engine_get_object_at
HTMLObject *
HTMLEngine *e,gint x,gint y,guint *offset_return,gboolean for_cursor
html_engine_get_point_at
HTMLPoint *
HTMLEngine *e,gint x,gint y,gboolean for_cursor
html_engine_get_link_at
const gchar *
HTMLEngine *e,gint x,gint y
html_engine_form_submitted
void
HTMLEngine *engine,const gchar *method,const gchar *action,const gchar *encoding
html_engine_canonicalize_url
gchar *
HTMLEngine *e,const char *in_url
html_engine_get_cursor
HTMLCursor *
HTMLEngine *e
html_engine_normalize_cursor
void
HTMLEngine *e
html_engine_frozen
gboolean
HTMLEngine *engine
html_engine_freeze
void
HTMLEngine *engine
html_engine_thaw
void
HTMLEngine *engine
html_engine_load_empty
void
HTMLEngine *engine
html_engine_replace
void
HTMLEngine *e,const gchar *text,const gchar *rep_text,gboolean case_sensitive,gboolean forward,gboolean regular,void (*ask)(HTMLEngine *, gpointer), gpointer ask_data
html_engine_replace_do
void
HTMLEngine *e, HTMLReplaceQueryAnswer answer
html_engine_replaced
gint
void
html_engine_init_magic_links
void
void
html_engine_spell_check
void
HTMLEngine *e
html_engine_get_word
gchar *
HTMLEngine *e
html_engine_word_is_valid
gboolean
HTMLEngine *e
html_engine_replace_word_with
void
HTMLEngine *e,const gchar *word
html_engine_get_view_width
gint
HTMLEngine *e
html_engine_get_view_height
gint
HTMLEngine *e
html_engine_add_object_with_id
void
HTMLEngine *e,const gchar *id,HTMLObject *obj
html_engine_get_object_by_id
HTMLObject *
HTMLEngine *e,const gchar *id
html_engine_get_top_html_engine
HTMLEngine *
HTMLEngine *e
html_engine_thaw_idle_reset
void
HTMLEngine *e
ENTITY_NBSP
#define ENTITY_NBSP 160
html_entity_parse
gulong
const gchar *s, guint len
html_entity_prepare
gchar *
const gchar *s
HTMLButtonType
typedef enum {
BUTTON_NORMAL,
BUTTON_SUBMIT,
BUTTON_RESET
} HTMLButtonType;
HTMLChangeFlags
typedef enum {
HTML_CHANGE_NONE = 0,
HTML_CHANGE_MIN_WIDTH = 1 << 0,
HTML_CHANGE_PREF_WIDTH = 1 << 1,
HTML_CHANGE_ALL = ((HTML_CHANGE_PREF_WIDTH << 1) - 1)
} HTMLChangeFlags;
HTMLClearType
typedef enum {
HTML_CLEAR_NONE,
HTML_CLEAR_LEFT,
HTML_CLEAR_RIGHT,
HTML_CLEAR_ALL
} HTMLClearType;
HTMLClueFlowStyle
typedef enum {
HTML_CLUEFLOW_STYLE_NORMAL,
HTML_CLUEFLOW_STYLE_H1,
HTML_CLUEFLOW_STYLE_H2,
HTML_CLUEFLOW_STYLE_H3,
HTML_CLUEFLOW_STYLE_H4,
HTML_CLUEFLOW_STYLE_H5,
HTML_CLUEFLOW_STYLE_H6,
HTML_CLUEFLOW_STYLE_ADDRESS,
HTML_CLUEFLOW_STYLE_PRE,
HTML_CLUEFLOW_STYLE_ITEMDOTTED,
HTML_CLUEFLOW_STYLE_ITEMROMAN,
HTML_CLUEFLOW_STYLE_ITEMDIGIT,
HTML_CLUEFLOW_STYLE_NOWRAP,
HTML_CLUEFLOW_NUMSTYLES
} HTMLClueFlowStyle;
HTMLColorId
typedef enum {
HTMLBgColor = 0,
HTMLTextColor,
HTMLLinkColor,
HTMLVLinkColor,
HTMLALinkColor,
HTMLHighlightColor,
HTMLHighlightTextColor,
HTMLSpellErrorColor,
HTMLColors
} HTMLColorId;
HTMLEngineCursorMovement
typedef enum {
HTML_ENGINE_CURSOR_UP,
HTML_ENGINE_CURSOR_DOWN,
HTML_ENGINE_CURSOR_RIGHT,
HTML_ENGINE_CURSOR_LEFT,
HTML_ENGINE_CURSOR_HOME,
HTML_ENGINE_CURSOR_END,
HTML_ENGINE_CURSOR_PGUP,
HTML_ENGINE_CURSOR_PGDOWN
} HTMLEngineCursorMovement;
HTMLEngineSetClueFlowStyleMask
typedef enum {
HTML_ENGINE_SET_CLUEFLOW_NONE = 0,
HTML_ENGINE_SET_CLUEFLOW_STYLE = 1 << 0,
HTML_ENGINE_SET_CLUEFLOW_ALIGNMENT = 1 << 1,
HTML_ENGINE_SET_CLUEFLOW_INDENTATION = 1 << 2,
HTML_ENGINE_SET_CLUEFLOW_INDENTATION_DELTA = 1 << 3
} HTMLEngineSetClueFlowStyleMask;
HTMLFitType
typedef enum {
HTML_FIT_NONE,
HTML_FIT_PARTIAL,
HTML_FIT_COMPLETE
} HTMLFitType;
HTMLGlossaryEntry
typedef enum {
HTML_GLOSSARY_DL = 1,
HTML_GLOSSARY_DD = 2
} HTMLGlossaryEntry;
HTMLHAlignType
typedef enum {
HTML_HALIGN_LEFT,
HTML_HALIGN_CENTER,
HTML_HALIGN_RIGHT,
HTML_HALIGN_NONE
} HTMLHAlignType;
HTMLListNumType
typedef enum {
HTML_LIST_NUM_TYPE_NUMERIC,
HTML_LIST_NUM_TYPE_LOWALPHA,
HTML_LIST_NUM_TYPE_UPALPHA,
HTML_LIST_NUM_TYPE_LOWROMAN,
HTML_LIST_NUM_TYPE_UPROMAN
} HTMLListNumType;
HTMLListType
typedef enum {
HTML_LIST_TYPE_UNORDERED,
HTML_LIST_TYPE_UNORDEREDPLAIN,
HTML_LIST_TYPE_ORDERED,
HTML_LIST_TYPE_MENU,
HTML_LIST_TYPE_DIR
} HTMLListType;
HTMLObjectFlags
typedef enum {
HTML_OBJECT_FLAG_NONE = 0,
HTML_OBJECT_FLAG_SEPARATOR = 1 << 0,
HTML_OBJECT_FLAG_NEWLINE = 1 << 1,
HTML_OBJECT_FLAG_SELECTED = 1 << 2,
HTML_OBJECT_FLAG_ALLSELECTED = 1 << 3,
HTML_OBJECT_FLAG_FIXEDWIDTH = 1 << 4,
HTML_OBJECT_FLAG_ALIGNED = 1 << 5,
HTML_OBJECT_FLAG_PRINTED = 1 << 6,
HTML_OBJECT_FLAG_HIDDEN = 1 << 7
} HTMLObjectFlags;
HTMLReplaceQueryAnswer
typedef enum {
RQA_Replace,
RQA_ReplaceAll,
RQA_Next,
RQA_Cancel
} HTMLReplaceQueryAnswer;
HTMLType
typedef enum {
HTML_TYPE_NONE,
HTML_TYPE_ANCHOR,
HTML_TYPE_BULLET,
HTML_TYPE_BUTTON,
HTML_TYPE_CHECKBOX,
HTML_TYPE_CLUE,
HTML_TYPE_CLUEALIGNED,
HTML_TYPE_CLUEFLOW,
HTML_TYPE_CLUEH,
HTML_TYPE_CLUEV,
HTML_TYPE_EMBEDDED,
HTML_TYPE_HIDDEN,
HTML_TYPE_HSPACE,
HTML_TYPE_IMAGE,
HTML_TYPE_IMAGEINPUT,
HTML_TYPE_LINKTEXT,
HTML_TYPE_OBJECT,
HTML_TYPE_RADIO,
HTML_TYPE_RULE,
HTML_TYPE_SELECT,
HTML_TYPE_TABLE,
HTML_TYPE_TABLECELL,
HTML_TYPE_TEXT,
HTML_TYPE_TEXTAREA,
HTML_TYPE_TEXTINPUT,
HTML_TYPE_TEXTSLAVE,
HTML_TYPE_VSPACE,
HTML_TYPE_IFRAME,
HTML_NUM_TYPES
} HTMLType;
HTMLUndoDirection
typedef enum {
HTML_UNDO_UNDO,
HTML_UNDO_REDO
} HTMLUndoDirection;
HTMLURLDupFlags
typedef enum {
HTML_URL_DUP_ALL = 0,
HTML_URL_DUP_NOPROTOCOL = 1 << 0,
HTML_URL_DUP_NOUSERNAME = 1 << 1,
HTML_URL_DUP_NOPASSWORD = 1 << 2,
HTML_URL_DUP_NOHOSTNAME = 1 << 3,
HTML_URL_DUP_NOPORT = 1 << 4,
HTML_URL_DUP_NOPATH = 1 << 5,
HTML_URL_DUP_NOREFERENCE = 1 << 6,
HTML_URL_DUP_NOCGIARGS = 1 << 7
} HTMLURLDupFlags;
HTMLVAlignType
typedef enum {
HTML_VALIGN_TOP,
HTML_VALIGN_CENTER,
HTML_VALIGN_BOTTOM,
HTML_VALIGN_NONE
} HTMLVAlignType;
html_valign_name
const gchar *
HTMLVAlignType valign
html_halign_name
const gchar *
HTMLHAlignType halign
GTK_HTML_GCONF_DIR
#define GTK_HTML_GCONF_DIR "/GNOME/Documents/HTML_Editor"
GTK_HTML_GNOME_CONFIG_PREFIX
#define GTK_HTML_GNOME_CONFIG_PREFIX "/gtkhtml/Settings/"
GTK_HTML_PROPERTY
#define GTK_HTML_PROPERTY(w,p) (GTK_HTML_CLASS (GTK_OBJECT (w)->klass)->properties-> ## p)
gtk_html_class_properties_new
GtkHTMLClassProperties *
void
gtk_html_class_properties_destroy
void
GtkHTMLClassProperties *p
gtk_html_class_properties_copy
void
GtkHTMLClassProperties *p1,GtkHTMLClassProperties *p2
gtk_html_class_properties_load
void
GtkHTMLClassProperties *p,GConfClient *client
gtk_html_class_properties_update
void
GtkHTMLClassProperties *p,GConfClient *client,GtkHTMLClassProperties *old
gtk_html_class_properties_load
void
GtkHTMLClassProperties *p
gtk_html_class_properties_save
void
GtkHTMLClassProperties *p
GTK_TYPE_HTML_CURSOR_SKIP
#define GTK_TYPE_HTML_CURSOR_SKIP (gtk_html_cursor_skip_get_type ())
GTK_TYPE_HTML_COMMAND
#define GTK_TYPE_HTML_COMMAND (gtk_html_command_get_type ())
gtk_html_cursor_skip_get_type
GtkType
void
gtk_html_command_get_type
GtkType
void
HTML_FONT_MANAGER
#define HTML_FONT_MANAGER(x) ((HTMLFontManager *)x)
HTMLFont
struct HTMLFont {
gpointer data;
guint space_width;
gint ref_count;
};
HTMLFontSet
struct HTMLFontSet {
HTMLFont *font [GTK_HTML_FONT_STYLE_MAX_FONT];
gint ref_count;
gchar *face;
};
HTMLFontManager
struct HTMLFontManager {
HTMLPainter *painter;
GHashTable *font_sets;
HTMLFontSet variable;
HTMLFontSet fixed;
gint var_size;
gint fix_size;
};
html_font_manager_init
void
HTMLFontManager *manager,HTMLPainter *painter
html_font_manager_finalize
void
HTMLFontManager *manager
html_font_manager_set_default
void
HTMLFontManager *manager,gchar *variable,gchar *fixed,gint var_size,gint fix_size
html_font_manager_get_font
HTMLFont *
HTMLFontManager *manager,gchar *face,GtkHTMLFontStyle style
html_font_new
HTMLFont *
gpointer data,guint space_width
html_font_destroy
void
HTMLFont *font
html_font_ref
void
HTMLFont *font,HTMLPainter *painter
html_font_unref
void
HTMLFont *font,HTMLPainter *painter
HTML_FORM
#define HTML_FORM(x) ((HTMLForm *) (x))
HTMLForm
struct HTMLForm {
gchar *action;
gchar *method;
GList *elements;
GList *hidden;
/* Used by radio buttons */
GSList *radio_group;
HTMLEngine *engine;
};
html_form_new
HTMLForm *
HTMLEngine *engine, gchar *_action, gchar *_method
html_form_add_element
void
HTMLForm *form, HTMLEmbedded *e
html_form_add_hidden
void
HTMLForm *form, HTMLHidden *h
html_form_remove_element
void
HTMLForm *form, HTMLEmbedded *e
html_form_submit
void
HTMLForm *form
html_form_reset
void
HTMLForm *form
html_form_destroy
void
HTMLForm *form
HTML_TYPE_GDK_PAINTER
#define HTML_TYPE_GDK_PAINTER (html_gdk_painter_get_type ())
HTML_GDK_PAINTER
#define HTML_GDK_PAINTER(obj) (GTK_CHECK_CAST ((obj), HTML_TYPE_GDK_PAINTER, HTMLGdkPainter))
HTML_GDK_PAINTER_CLASS
#define HTML_GDK_PAINTER_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), HTML_TYPE_GDK_PAINTER, HTMLGdkPainterClass))
HTML_IS_GDK_PAINTER
#define HTML_IS_GDK_PAINTER(obj) (GTK_CHECK_TYPE ((obj), HTML_TYPE_GDK_PAINTER))
HTML_IS_GDK_PAINTER_CLASS
#define HTML_IS_GDK_PAINTER_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), HTML_TYPE_GDK_PAINTER))
HTMLGdkPainter
struct HTMLGdkPainter {
HTMLPainter base;
/* GdkWindow to draw on */
GdkWindow *window;
/* The current GC used. */
GdkGC *gc;
/* For the double-buffering system. */
gboolean double_buffer;
GdkPixmap *pixmap;
gint x1, y1, x2, y2;
GdkColor background;
gboolean set_background;
gboolean do_clear;
gboolean alpha;
/* Colors used for shading. */
GdkColor dark;
GdkColor light;
GdkColor black;
};
html_gdk_painter_get_type
GtkType
void
html_gdk_painter_new
HTMLPainter *
gboolean double_buffer
html_gdk_painter_realize
void
HTMLGdkPainter *painter,GdkWindow *window
html_gdk_painter_unrealize
void
HTMLGdkPainter *painter
html_gdk_painter_realized
gboolean
HTMLGdkPainter *painter
HTML_HIDDEN
#define HTML_HIDDEN(x) ((HTMLHidden *) (x))
HTML_HIDDEN_CLASS
#define HTML_HIDDEN_CLASS(x) ((HTMLHiddenClass *) (x))
HTMLHidden
struct HTMLHidden {
HTMLEmbedded element;
};
html_hidden_class
extern HTMLHiddenClass html_hidden_class;
html_hidden_type_init
void
void
html_hidden_class_init
void
HTMLHiddenClass *klass,HTMLType type,guint object_size
html_hidden_init
void
HTMLHidden *hidden,HTMLHiddenClass *klass,gchar *name,gchar *value
html_hidden_new
HTMLObject *
gchar *name,gchar *value
HTML_HSPACE
#define HTML_HSPACE(x) ((HTMLHSpace *)(x))
HTML_HSPACE_CLASS
#define HTML_HSPACE_CLASS(x) ((HTMLHSpaceClass *)(x))
HTMLHSpace
struct HTMLHSpace {
HTMLObject object;
/* FIXME!!! WHY!?!?!? Shouldn't we use the one from HTMLObject??? */
HTMLFont *font;
};
html_hspace_class
extern HTMLHSpaceClass html_hspace_class;
html_hspace_type_init
void
void
html_hspace_class_init
void
HTMLHSpaceClass *klass,HTMLType type,guint object_size
html_hspace_init
void
HTMLHSpace *hspace,HTMLHSpaceClass *klass,HTMLFont *font,gboolean hidden
html_hspace_new
HTMLObject *
HTMLFont *font,gboolean hidden
HTML_IFRAME
#define HTML_IFRAME(x) ((HTMLIFrame *)(x))
HTML_IFRAME_CLASS
#define HTML_IFRAME_CLASS(x) ((HTMLIFrameClass *)(x))
HTMLIFrame
struct HTMLIFrame {
HTMLEmbedded embedded;
char *url;
GtkWidget *scroll;
GtkWidget *html;
HTMLPainter *gdk_painter;
gint width;
gint height;
gboolean frameborder;
};
html_iframe_type_init
void
void
html_iframe_class_init
void
HTMLIFrameClass *klass,HTMLType type,guint object_size
html_iframe_init
void
HTMLIFrame *iframe,HTMLIFrameClass *klass,GtkWidget *parent,char *url,gint width,gint height,gboolean border
html_iframe_new
HTMLObject *
GtkWidget *parent,char *src,gint width,gint height,gboolean border
HTMLImagePointer
struct HTMLImagePointer {
gint refcount;
gchar *url;
GdkPixbufLoader *loader;
GdkPixbuf *pixbuf;
GdkPixbufAnimation *animation;
GSList *interests; /* A list of HTMLImage's, or a NULL pointer for the background pixmap */
HTMLImageFactory *factory;
gint stall;
guint stall_timeout;
};
HTMLImageAnimation
struct HTMLImageAnimation {
/* stuff for animated image */
/* draw coordination */
gint x;
gint y;
/* remember engine offset */
gint ex, ey;
/* current frame */
GList *cur_frame;
gint cur_n;
/* animation timeout function */
gint timeout;
/* helper buffer */
GdkPixbuf *pixbuf;
/* active draw flag */
gint active;
};
HTML_IMAGE
#define HTML_IMAGE(x) ((HTMLImage *)(x))
HTML_IMAGE_POINTER
#define HTML_IMAGE_POINTER(x) ((HTMLImagePointer *)(x))
HTMLImage
struct HTMLImage {
HTMLObject object;
HTMLImagePointer *image_ptr;
HTMLImageAnimation *animation;
HTMLColor *color;
guint have_color: 1;
gint8 border;
gint16 specified_width;
gint16 specified_height;
gboolean percent_width;
gboolean percent_height;
gint8 hspace;
gint8 vspace;
HTMLVAlignType valign;
gchar *url;
gchar *target;
gchar *alt;
};
image_class
extern HTMLImageClass image_class;
html_image_type_init
void
void
html_image_class_init
void
HTMLImageClass *klass,HTMLType type,guint object_size
html_image_init
void
HTMLImage *image,HTMLImageClass *klass,HTMLImageFactory *imf,const gchar *filename,const gchar *url,const gchar *target,gint16 width,gint16 height,gboolean percent_width,gboolean percent_height,gint8 border,HTMLColor *border_color,HTMLVAlignType valign
html_image_new
HTMLObject *
HTMLImageFactory *imf,const gchar *filename,const gchar *url,const gchar *target,gint16 width,gint16 height,gboolean percent_width,gboolean percent_height,gint8 border,HTMLColor *border_color,HTMLVAlignType valign
html_image_set_size
void
HTMLImage *image,gint w,gint h,gboolean pw,gboolean ph
html_image_set_spacing
void
HTMLImage *image,gint hspace,gint vspace
html_image_set_url
void
HTMLImage *image,const gchar *url
html_image_set_valign
void
HTMLImage *image,HTMLVAlignType valign
html_image_set_border
void
HTMLImage *image,gint border
html_image_set_alt
void
HTMLImage *image,gchar *alt
html_image_resolve_image_url
gchar *
GtkHTML *html,gchar *image_url
html_image_factory_new
HTMLImageFactory *
HTMLEngine *e
html_image_factory_free
void
HTMLImageFactory *factory
html_image_factory_cleanup
void
HTMLImageFactory *factory
html_image_factory_stop_animations
void
HTMLImageFactory *factory
html_image_factory_deactivate_animations
void
HTMLImageFactory *factory
html_image_factory_register
HTMLImagePointer *
HTMLImageFactory *factory,HTMLImage *i,const char *filename
html_image_factory_unregister
void
HTMLImageFactory *factory,HTMLImagePointer *pointer,HTMLImage *i
HTML_IMAGEINPUT
#define HTML_IMAGEINPUT(x) ((HTMLImageInput *) (x))
HTML_IMAGEINPUT_CLASS
#define HTML_IMAGEINPUT_CLASS(x) ((HTMLImageInputClass *) (x))
HTMLImageInput
struct HTMLImageInput {
HTMLEmbedded element;
HTMLImage *image;
gint m_x, m_y;
};
html_imageinput_class
extern HTMLImageInputClass html_imageinput_class;
html_imageinput_type_init
void
void
html_imageinput_class_init
void
HTMLImageInputClass *klass,HTMLType type,guint object_size
html_imageinput_init
void
HTMLImageInput *img,HTMLImageInputClass *klass,HTMLImageFactory *imf,gchar *name,gchar *url
html_imageinput_new
HTMLObject *
HTMLImageFactory *imf,gchar *name,gchar *url
HTMLPoint
struct HTMLPoint {
HTMLObject *object;
guint offset;
};
html_point_new
HTMLPoint *
HTMLObject *o,guint off
html_point_construct
void
HTMLPoint *p,HTMLObject *o,guint off
html_point_destroy
void
HTMLPoint *p
html_point_max
HTMLPoint *
HTMLPoint *a,HTMLPoint *b
html_point_min
HTMLPoint *
HTMLPoint *a,HTMLPoint *b
html_point_eq
gboolean
const HTMLPoint *a,const HTMLPoint *b
HTMLInterval
struct HTMLInterval {
HTMLPoint from;
HTMLPoint to;
};
html_interval_new
HTMLInterval *
HTMLObject *from,HTMLObject *to,guint from_offset,guint to_offset
html_interval_new_from_cursor
HTMLInterval *
HTMLCursor *a,HTMLCursor *b
html_interval_new_from_points
HTMLInterval *
HTMLPoint *from,HTMLPoint *to
html_interval_validate
void
HTMLInterval *i
html_interval_destroy
void
HTMLInterval *i
html_interval_get_length
guint
HTMLInterval *i,HTMLObject *obj
html_interval_get_bytes
guint
HTMLInterval *i,HTMLObject *obj
html_interval_get_start
guint
HTMLInterval *i,HTMLObject *obj
html_interval_get_start_index
guint
HTMLInterval *i,HTMLObject *obj
html_interval_get_head
HTMLObject *
HTMLInterval *i,HTMLObject *o
html_interval_select
void
HTMLInterval *i,HTMLEngine *e
html_interval_unselect
void
HTMLInterval *i,HTMLEngine *e
html_interval_get_from_index
gint
HTMLInterval *i
html_interval_get_to_index
gint
HTMLInterval *i
html_interval_forall
void
HTMLInterval *i,HTMLEngine *e,HTMLObjectForallFunc f,gpointer data
html_interval_eq
gboolean
const HTMLInterval *a,const HTMLInterval *b
html_interval_intersection
HTMLInterval *
HTMLInterval *a,HTMLInterval *b
html_interval_substract
void *
HTMLInterval *a,HTMLInterval *b,HTMLInterval **s1,HTMLInterval **s2
HTML_LINK_TEXT
#define HTML_LINK_TEXT(x) ((HTMLLinkText *)(x))
HTML_LINK_TEXT_CLASS
#define HTML_LINK_TEXT_CLASS(x) ((HTMLLinkTextClass *)(x))
HTMLLinkText
struct HTMLLinkText {
HTMLText text;
gchar *url;
gchar *target;
};
html_link_text_class
extern HTMLLinkTextClass html_link_text_class;
html_link_text_type_init
void
void
html_link_text_class_init
void
HTMLLinkTextClass *klass,HTMLType type,guint object_size
html_link_text_init
void
HTMLLinkText *link_text_,HTMLLinkTextClass *klass,const gchar *text,gint len,GtkHTMLFontStyle font_style,HTMLColor *color,const gchar *url,const gchar *target
html_link_text_new
HTMLObject *
const gchar *text,GtkHTMLFontStyle font_style,HTMLColor *color,const gchar *url,const gchar *target
html_link_text_new_with_len
HTMLObject *
const gchar *text,gint len,GtkHTMLFontStyle font_style,HTMLColor *color,const gchar *url,const gchar *target
html_link_text_set_url
void
HTMLLinkText *link,const gchar *url
html_link_text_to_text
void
HTMLLinkText *link,HTMLEngine *e
HTMLList
struct HTMLList {
HTMLListType type;
HTMLListNumType numType;
gint itemNumber;
};
html_list_new
HTMLList *
HTMLListType t, HTMLListNumType nt
html_list_destroy
void
HTMLList *list
HTML_OBJECT
#define HTML_OBJECT(x) ((HTMLObject *) (x))
HTML_OBJECT_CLASS
#define HTML_OBJECT_CLASS(x) ((HTMLObjectClass *) (x))
HTML_OBJECT_TYPE
#define HTML_OBJECT_TYPE(x) (HTML_OBJECT (x)->klass->type)
HTMLObject
struct HTMLObject {
HTMLObjectClass *klass;
/* Pointer to the parent object. */
HTMLObject *parent;
HTMLObject *prev;
HTMLObject *next;
HTMLChangeFlags change;
gint x, y;
gint ascent, descent;
gint min_width;
gint width;
gint pref_width;
gint max_width;
gint percent;
guchar flags;
/* FIXME maybe unify with `flags'? */
guint redraw_pending : 1;
guint selected : 1;
/* If an object has a redraw pending and is being destroyed, this flag
is set to TRUE instead of g_free()ing the object. When the draw
queue is flushed, the g_free() is performed. */
guint free_pending : 1;
GData *object_data;
};
html_object_class
extern HTMLObjectClass html_object_class;
html_object_type_init
void
void
html_object_init
void
HTMLObject *self,HTMLObjectClass *klass
html_object_class_init
void
HTMLObjectClass *klass,HTMLType type,guint object_size
html_object_new
HTMLObject *
HTMLObject *parent
html_object_destroy
void
HTMLObject *self
html_object_copy
void
HTMLObject *self,HTMLObject *dest
html_object_dup
HTMLObject *
HTMLObject *self
html_object_op_copy
HTMLObject *
HTMLObject *self,HTMLEngine *e,GList *from,GList *to,guint *len
html_object_op_cut
HTMLObject *
HTMLObject *self,HTMLEngine *e,GList *from,GList *to,GList *left,GList *right,guint *len
html_object_merge
gboolean
HTMLObject *self,HTMLObject *with,HTMLEngine *e
html_object_remove_child
void
HTMLObject *self,HTMLObject *child
html_object_split
void
HTMLObject *self,HTMLEngine *e,HTMLObject *child,gint offset,gint level,GList **left,GList **right
html_object_set_parent
void
HTMLObject *self,HTMLObject *parent
html_object_get_left_margin
gint
HTMLObject *self,gint y
html_object_get_right_margin
gint
HTMLObject *self,gint y
html_object_set_painter
void
HTMLObject *o,HTMLPainter *p,gint max_width
html_object_clear_word_width
void
HTMLObject *o
html_object_reset
void
HTMLObject *o
html_object_is_text
gboolean
HTMLObject *object
html_object_get_engine
HTMLEngine *
HTMLObject *self,HTMLEngine *e
html_object_forall
void
HTMLObject *self,HTMLEngine *e,HTMLObjectForallFunc func,gpointer data
html_object_is_container
gboolean
HTMLObject *self
html_object_next_not_type
HTMLObject *
HTMLObject *self,HTMLType t
html_object_prev_not_type
HTMLObject *
HTMLObject *self,HTMLType t
html_object_next_not_slave
HTMLObject *
HTMLObject *self
html_object_prev_not_slave
HTMLObject *
HTMLObject *self
html_object_next_by_type
HTMLObject *
HTMLObject *self,HTMLType t
html_object_prev_by_type
HTMLObject *
HTMLObject *self,HTMLType t
html_object_search
gboolean
HTMLObject *self,HTMLSearch *info
html_object_search_next
gboolean
HTMLObject *self,HTMLSearch *info
html_object_draw
void
HTMLObject *o,HTMLPainter *p,gint x,gint y,gint width,gint height,gint tx,gint ty
html_object_draw_background
void
HTMLObject *o,HTMLPainter *p,gint x,gint y,gint width,gint height,gint tx,gint ty
html_object_set_bg_color
void
HTMLObject *o,GdkColor *color
html_object_get_bg_color
GdkColor *
HTMLObject *o,HTMLPainter *p
html_object_is_transparent
gboolean
HTMLObject *self
html_object_fit_line
HTMLFitType
HTMLObject *o,HTMLPainter *painter,gboolean start_of_line,gboolean first_run,gint width_left
html_object_calc_size
gboolean
HTMLObject *o,HTMLPainter *painter
html_object_set_max_ascent
void
HTMLObject *o,HTMLPainter *painter,gint a
html_object_set_max_descent
void
HTMLObject *o,HTMLPainter *painter,gint d
html_object_set_max_width
void
HTMLObject *o,HTMLPainter *painter,gint max_width
html_object_calc_min_width
gint
HTMLObject *o,HTMLPainter *painter
html_object_calc_preferred_width
gint
HTMLObject *o,HTMLPainter *painter
html_object_calc_abs_position
void
HTMLObject *o,gint *x_return,gint *y_return
html_object_calc_intersection
void
HTMLObject *o,ArtIRect *intersection,gint x,gint y,gint width,gint height
html_object_relayout
gboolean
HTMLObject *obj,HTMLEngine *engine,HTMLObject *child
html_object_get_valign
HTMLVAlignType
HTMLObject *self
html_object_get_url
const gchar *
HTMLObject *o
html_object_get_target
const gchar *
HTMLObject *o
html_object_find_anchor
HTMLAnchor *
HTMLObject *o,const gchar *name,gint *x,gint *y
html_object_set_link
HTMLObject *
HTMLObject *self,HTMLColor *color,const gchar *url,const gchar *target
html_object_remove_link
HTMLObject *
HTMLObject *self,HTMLColor *color
html_object_accepts_cursor
gboolean
HTMLObject *obj
html_object_get_cursor
void
HTMLObject *obj,HTMLPainter *painter,guint offset,gint *x1,gint *y1,gint *x2,gint *y2
html_object_get_cursor_base
void
HTMLObject *obj,HTMLPainter *painter,guint offset,gint *x,gint *y
html_object_get_length
guint
HTMLObject *self
html_object_get_bytes
guint
HTMLObject *self
html_object_get_index
guint
HTMLObject *self,guint offset
html_object_check_point
HTMLObject *
HTMLObject *clue,HTMLPainter *painter,gint x,gint y,guint *offset_return,gboolean for_cursor
html_object_cursor_forward
gboolean
HTMLObject *self,HTMLCursor *cursor
html_object_cursor_backward
gboolean
HTMLObject *self,HTMLCursor *cursor
html_object_next
HTMLObject *
HTMLObject *self,HTMLObject *child
html_object_prev
HTMLObject *
HTMLObject *self,HTMLObject *child
html_object_head
HTMLObject *
HTMLObject *self
html_object_tail
HTMLObject *
HTMLObject *self
html_object_tail_not_slave
HTMLObject *
HTMLObject *self
html_object_next_leaf
HTMLObject *
HTMLObject *self
html_object_prev_leaf
HTMLObject *
HTMLObject *self
html_object_next_leaf_not_type
HTMLObject *
HTMLObject *self,HTMLType t
html_object_prev_leaf_not_type
HTMLObject *
HTMLObject *self,HTMLType t
html_object_get_head_leaf
HTMLObject *
HTMLObject *o
html_object_get_tail_leaf
HTMLObject *
HTMLObject *o
html_object_check_page_split
gint
HTMLObject *self,gint y
html_object_select_range
gboolean
HTMLObject *self,HTMLEngine *engine,guint start,gint length,gboolean queue_draw
html_object_append_selection_string
void
HTMLObject *self,GString *buffer
html_object_get_selection_string
gchar *
HTMLObject *o
html_object_save
gboolean
HTMLObject *self,HTMLEngineSaveState *state
html_object_save_plain
gboolean
HTMLObject *self,HTMLEngineSaveState *state,gint requested_width
html_object_change_set
void
HTMLObject *self,HTMLChangeFlags f
html_object_change_set_down
void
HTMLObject *self,HTMLChangeFlags f
html_object_set_data
void
HTMLObject *object,const gchar *key,gpointer data
html_object_get_data
gpointer
HTMLObject *object,const gchar *key
html_object_copy_data_from_object
void
HTMLObject *dst,HTMLObject *src
html_object_get_bound_list
GList *
HTMLObject *obj,GList *list
html_object_move_cursor_before_remove
void
HTMLObject *o,HTMLEngine *e
html_object_could_remove_whole
gboolean
HTMLObject *o,GList *from,GList *to,GList *left,GList *right
html_object_check_cut_lists
void
HTMLObject *self,HTMLObject *replacement,GList *left,GList *right
HTML_TYPE_PAINTER
#define HTML_TYPE_PAINTER (html_painter_get_type ())
HTML_PAINTER
#define HTML_PAINTER(obj) (GTK_CHECK_CAST ((obj), HTML_TYPE_PAINTER, HTMLPainter))
HTML_PAINTER_CLASS
#define HTML_PAINTER_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), HTML_TYPE_PAINTER, HTMLPainterClass))
HTML_IS_PAINTER
#define HTML_IS_PAINTER(obj) (GTK_CHECK_TYPE ((obj), HTML_TYPE_PAINTER))
HTML_IS_PAINTER_CLASS
#define HTML_IS_PAINTER_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), HTML_TYPE_PAINTER))
HTMLPainter
struct HTMLPainter {
GtkObject base;
HTMLFontManager font_manager;
HTMLColorSet *color_set;
HTMLFontFace *font_face;
GtkHTMLFontStyle font_style;
};
html_painter_get_type
GtkType
void
html_painter_new
HTMLPainter *
void
html_painter_begin
void
HTMLPainter *painter,int x1,int y1,int x2,int y2
html_painter_end
void
HTMLPainter *painter
html_painter_alloc_color
void
HTMLPainter *painter,GdkColor *color
html_painter_free_color
void
HTMLPainter *painter,GdkColor *color
html_painter_set_color_set
void
HTMLPainter *painter,HTMLColorSet *color_set
html_painter_get_default_background_color
const GdkColor *
HTMLPainter *painter
html_painter_get_default_foreground_color
const GdkColor *
HTMLPainter *painter
html_painter_get_default_link_color
const GdkColor *
HTMLPainter *painter
html_painter_get_default_highlight_color
const GdkColor *
HTMLPainter *painter
html_painter_get_default_highlight_foreground_color
const GdkColor *
HTMLPainter *painter
html_painter_get_black
const GdkColor *
const HTMLPainter *painter
html_painter_find_font_face
HTMLFontFace *
HTMLPainter *p,const gchar *families
html_painter_set_font_style
void
HTMLPainter *p,GtkHTMLFontStyle f
html_painter_get_font_style
GtkHTMLFontStyle
HTMLPainter *p
html_painter_set_font_face
void
HTMLPainter *p,HTMLFontFace *f
html_painter_get_font
gpointer
HTMLPainter *painter,HTMLFontFace *face,GtkHTMLFontStyle style
html_painter_calc_ascent
guint
HTMLPainter *p,GtkHTMLFontStyle f,HTMLFontFace *face
html_painter_calc_descent
guint
HTMLPainter *p,GtkHTMLFontStyle f,HTMLFontFace *face
html_painter_calc_text_width
guint
HTMLPainter *p,const gchar *text,guint len,GtkHTMLFontStyle font_style,HTMLFontFace *face
html_painter_set_pen
void
HTMLPainter *painter,const GdkColor *color
html_painter_draw_line
void
HTMLPainter *painter,gint x1,gint y1,gint x2,gint y2
html_painter_draw_rect
void
HTMLPainter *painter,gint x,gint y,gint width,gint height
html_painter_draw_text
void
HTMLPainter *painter,gint x,gint y,const gchar *text,gint len
html_painter_fill_rect
void
HTMLPainter *painter,gint x,gint y,gint width,gint height
html_painter_draw_pixmap
void
HTMLPainter *painter,GdkPixbuf *pixbuf,gint x,gint y,gint scale_width,gint scale_height,const GdkColor *color
html_painter_draw_ellipse
void
HTMLPainter *painter,gint x,gint y,gint width,gint height
html_painter_clear
void
HTMLPainter *painter
html_painter_set_background_color
void
HTMLPainter *painter,const GdkColor *color
html_painter_draw_shade_line
void
HTMLPainter *p,gint x,gint y,gint width
html_painter_draw_panel
void
HTMLPainter *painter,GdkColor *bg,gint x,gint y,gint width,gint height,GtkHTMLEtchStyle inset,gint bordersize
html_painter_set_clip_rectangle
void
HTMLPainter *painter,gint x,gint y,gint width,gint height
html_painter_draw_background
void
HTMLPainter *painter,GdkColor *color,GdkPixbuf *pixbuf,gint x,gint y,gint width,gint height,gint tile_x,gint tile_y
html_painter_get_pixel_size
guint
HTMLPainter *painter
html_painter_draw_spell_error
void
HTMLPainter *painter,gint x,gint y,const gchar *text,guint off,gint len
html_painter_alloc_font
HTMLFont *
HTMLPainter *painter,gchar *face_name,gdouble size,GtkHTMLFontStyle style
html_painter_ref_font
void
HTMLPainter *painter,HTMLFont *font
html_painter_unref_font
void
HTMLPainter *painter,HTMLFont *font
html_painter_get_space_width
guint
HTMLPainter *painter,GtkHTMLFontStyle font_style,HTMLFontFace *face
HTML_TYPE_PRINTER
#define HTML_TYPE_PRINTER (html_printer_get_type ())
HTML_PRINTER
#define HTML_PRINTER(obj) (GTK_CHECK_CAST ((obj), HTML_TYPE_PRINTER, HTMLPrinter))
HTML_PRINTER_CLASS
#define HTML_PRINTER_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), HTML_TYPE_PRINTER, HTMLPrinterClass))
HTML_IS_PRINTER
#define HTML_IS_PRINTER(obj) (GTK_CHECK_TYPE ((obj), HTML_TYPE_PRINTER))
HTML_IS_PRINTER_CLASS
#define HTML_IS_PRINTER_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), HTML_TYPE_PRINTER))
HTMLPrinter
struct HTMLPrinter {
HTMLPainter base;
GnomePrintContext *print_context;
};
html_printer_get_type
GtkType
void
html_printer_new
HTMLPainter *
GnomePrintContext *print_context
html_printer_get_page_width
guint
HTMLPrinter *printer
html_printer_get_page_height
guint
HTMLPrinter *printer
html_printer_scale_to_gnome_print
gdouble
gint x
html_printer_coordinates_to_gnome_print
void
HTMLPrinter *printer,gint engine_x,gint engine_y,gdouble *print_x_return,gdouble *print_y_return
HTML_RADIO
#define HTML_RADIO(x) ((HTMLRadio *) (x))
HTML_RADIO_CLASS
#define HTML_RADIO_CLASS(x) ((HTMLRadioClass *) (x))
HTMLRadio
struct HTMLRadio {
HTMLEmbedded element;
gint default_checked;
};
html_radio_class
extern HTMLRadioClass html_radio_class;
html_radio_type_init
void
void
html_radio_class_init
void
HTMLRadioClass *klass,HTMLType type,guint object_size
html_radio_init
void
HTMLRadio *radio,HTMLRadioClass *klass,GtkWidget *parent,gchar *name,gchar *value,gboolean checked,GSList **radio_group
html_radio_new
HTMLObject *
GtkWidget *parent,gchar *name,gchar *value,gboolean checked,GSList **radio_group
HTMLReplace
struct HTMLReplace {
gchar *text;
gint replaced;
void (*ask) (HTMLEngine *, gpointer);
gpointer ask_data;
};
html_replace_new
HTMLReplace *
const gchar *text, void (*ask) (HTMLEngine *, gpointer), gpointer ask_data
html_replace_destroy
void
HTMLReplace *replace
HTML_RULE
#define HTML_RULE(x) ((HTMLRule *) (x))
HTML_RULE_CLASS
#define HTML_RULE_CLASS(x) ((HTMLRuleClass *) (x))
HTMLRule
struct HTMLRule {
HTMLObject object;
guint length;
gchar size;
gboolean shade;
HTMLHAlignType halign;
};
html_rule_class
extern HTMLRuleClass html_rule_class;
html_rule_type_init
void
void
html_rule_class_init
void
HTMLRuleClass *klass,HTMLType type,guint object_size
html_rule_init
void
HTMLRule *rule,HTMLRuleClass *klass,gint length,gint percent,gint size,gboolean shade,HTMLHAlignType halign
html_rule_new
HTMLObject *
gint length,gint percent,gint size,gboolean shade,HTMLHAlignType halign
HTMLSearch
struct HTMLSearch {
HTMLEngine *engine;
gchar *trans;
gchar *text;
guint text_len;
guint found_len;
gboolean case_sensitive;
gboolean forward;
gboolean regular;
GSList *stack;
GList *found;
HTMLObject *last;
guint start_pos;
guint stop_pos;
regex_t *reb; /* regex buffer */
};
html_search_new
HTMLSearch *
HTMLEngine *e,const gchar *text,gboolean case_sensitive,gboolean forward,gboolean regular
html_search_destroy
void
HTMLSearch *search
html_search_push
void
HTMLSearch *search, HTMLObject *obj
html_search_pop
HTMLObject *
HTMLSearch *search
html_search_child_on_stack
gboolean
HTMLSearch *search, HTMLObject *obj
html_search_next_parent
gboolean
HTMLSearch *search
html_search_set_text
void
HTMLSearch *search,const gchar *text
html_search_set_forward
void
HTMLSearch *search,gboolean forward
HTML_SELECT
#define HTML_SELECT(x) ((HTMLSelect *) (x))
HTML_SELECT_CLASS
#define HTML_SELECT_CLASS(x) ((HTMLSelectClass *) (x))
HTMLSelect
struct HTMLSelect {
HTMLEmbedded element;
gint size;
gboolean multi;
gint default_selected;
GList *values;
GList *strings;
GList *default_selection;
GtkWidget *clist;
};
html_select_class
extern HTMLSelectClass html_select_class;
html_select_type_init
void
void
html_select_class_init
void
HTMLSelectClass *klass,HTMLType type,guint object_size
html_select_init
void
HTMLSelect *ti,HTMLSelectClass *klass,GtkWidget *parent,gchar *name,gint size,gboolean multi
html_select_new
HTMLObject *
GtkWidget *parent,gchar *name,gint size,gboolean multi
html_select_add_option
void
HTMLSelect *select,gchar *value,gboolean selected
html_select_set_text
void
HTMLSelect *select,gchar *text
html_engine_select_interval
void
HTMLEngine *e,HTMLInterval *i
html_engine_select_region
void
HTMLEngine *e,gint x1,gint y1,gint x2,gint y2
html_engine_select_word
void
HTMLEngine *e
html_engine_select_line
void
HTMLEngine *e
html_engine_unselect_all
void
HTMLEngine *e
html_engine_clear_selection
void
HTMLEngine *e
html_engine_deactivate_selection
void
HTMLEngine *e
html_engine_disable_selection
void
HTMLEngine *e
html_engine_get_selection_string
gchar *
HTMLEngine *e
html_engine_is_selection_active
gboolean
HTMLEngine *e
html_engine_activate_selection
void
HTMLEngine *e,guint32 time
HTML_NUM_FONT_SIZES
#define HTML_NUM_FONT_SIZES 7
HTMLSettings
struct HTMLSettings {
gint fontSizes [HTML_NUM_FONT_SIZES];
gint fontBaseSize;
gchar *fontBaseFace;
gchar *fixedFontFace;
guint underlineLinks : 1;
guint forceDefault : 1;
HTMLColorSet *color_set;
};
html_settings_new
HTMLSettings *
GtkWidget *w
html_settings_reset
void
HTMLSettings *settings,HTMLSettings *orig,HTMLPainter *painter
html_settings_destroy
void
HTMLSettings *settings
html_settings_set_font_sizes
void
HTMLSettings *settings,const gint *newFontSizes
html_settings_get_font_sizes
void
HTMLSettings *settings,gint *fontSizes
html_settings_reset_font_sizes
void
HTMLSettings *settings
html_settings_copy
void
HTMLSettings *dest, HTMLSettings *src
html_settings_set_font_base_face
void
HTMLSettings *settings, const gchar *face
html_settings_set_fixed_font_face
void
HTMLSettings *settings, const gchar *face
HTMLStack
struct HTMLStack {
HTMLStackFreeFunc free_func;
GList *list;
};
html_stack_new
HTMLStack *
HTMLStackFreeFunc free_func
html_stack_clear
void
HTMLStack *stack
html_stack_destroy
void
HTMLStack *stack
html_stack_pop
gpointer
HTMLStack *stack
html_stack_top
gpointer
HTMLStack *stack
html_stack_push
void
HTMLStack *stack, gpointer data
html_stack_is_empty
gboolean
HTMLStack *stack
html_stack_count
guint
HTMLStack *stack
HTMLStringTokenizer
struct HTMLStringTokenizer {
gchar *buffer;
gint buffer_length;
gchar *pos;
gchar *end;
};
html_string_tokenizer_new
HTMLStringTokenizer *
void
html_string_tokenizer_destroy
void
HTMLStringTokenizer *st
html_string_tokenizer_tokenize
void
HTMLStringTokenizer *t,const gchar *str,gchar *separators
html_string_tokenizer_has_more_tokens
gboolean
HTMLStringTokenizer *t
html_string_tokenizer_next_token
gchar *
HTMLStringTokenizer *t
HTML_TABLE
#define HTML_TABLE(x) ((HTMLTable *)(x))
HTML_TABLE_CLASS
#define HTML_TABLE_CLASS(x) ((HTMLTableClass *)(x))
HTMLTable
struct HTMLTable {
HTMLObject object;
gint specified_width;
HTMLTableCell ***cells;
gint col, totalCols;
gint row, totalRows, allocRows;
gint spacing;
gint padding;
gint border;
HTMLClueV *caption;
HTMLVAlignType capAlign;
GArray *columnMin;
GArray *columnPref;
GArray *columnFixed;
GArray *columnOpt;
GArray *rowHeights;
GdkColor *bgColor;
HTMLImagePointer *bgPixmap;
};
html_table_type_init
void
void
html_table_class_init
void
HTMLTableClass *klass,HTMLType type,guint object_size
html_table_init
void
HTMLTable *table,HTMLTableClass *klass,gint width,gint percent,gint padding,gint spacing,gint border
html_table_new
HTMLObject *
gint width,gint percent,gint padding,gint spacing,gint border
html_table_end_row
void
HTMLTable *table
html_table_start_row
void
HTMLTable *table
html_table_add_cell
void
HTMLTable *table,HTMLTableCell *cell
html_table_end_table
void
HTMLTable *table
HTML_TABLE_CELL
#define HTML_TABLE_CELL(x) ((HTMLTableCell *)(x))
HTML_TABLE_CELL_CLASS
#define HTML_TABLE_CELL_CLASS(x) ((HTMLTableCellClass *)(x))
HTMLTableCell
struct HTMLTableCell {
HTMLClueV cluev;
gint fixed_width;
gint fixed_height;
gint rspan;
gint cspan;
gint padding;
gint refcount;
gint row;
gint col;
GdkColor bg;
guint have_bg : 1;
guint bg_allocated : 1;
HTMLImagePointer *bgPixmap;
gboolean have_bgPixmap;
};
html_table_cell_class
extern HTMLTableCellClass html_table_cell_class;
html_table_cell_type_init
void
void
html_table_cell_class_init
void
HTMLTableCellClass *klass,HTMLType type,guint object_size
html_table_cell_init
void
HTMLTableCell *cell,HTMLTableCellClass *klass,gint percent,gint rs,gint cs,gint pad
html_table_cell_new
HTMLObject *
gint percent,gint rs,gint cs,gint pad
html_table_cell_link
void
HTMLTableCell *cell
html_table_cell_unlink
void
HTMLTableCell *cell
html_table_cell_set_fixed_width
void
HTMLTableCell *cell,gint width
html_table_cell_set_fixed_height
void
HTMLTableCell *cell,gint height
html_table_cell_set_bg_pixmap
void
HTMLTableCell *cell,HTMLImagePointer *imagePtr
html_table_cell_set_position
void
HTMLTableCell *cell,gint row,gint col
html_table_cell_get_fixed_width
gint
HTMLTableCell *cell,HTMLPainter *painter
HTML_TEXT
#define HTML_TEXT(x) ((HTMLText *)(x))
HTML_TEXT_CLASS
#define HTML_TEXT_CLASS(x) ((HTMLTextClass *)(x))
SpellError
struct SpellError {
guint off;
guint len;
};
HTMLText
struct HTMLText {
HTMLObject object;
gchar *text;
guint text_len;
guint *word_width;
guint words;
GtkHTMLFontStyle font_style;
HTMLFontFace *face;
HTMLColor *color;
guint select_start;
guint select_length;
GList *spell_errors;
};
html_text_class
extern HTMLTextClass html_text_class;
html_text_type_init
void
void
html_text_class_init
void
HTMLTextClass *klass,HTMLType type,guint object_size
html_text_init
void
HTMLText *text_object,HTMLTextClass *klass,const gchar *text,gint len,GtkHTMLFontStyle font_style,HTMLColor *color
html_text_new
HTMLObject *
const gchar *text,GtkHTMLFontStyle font_style,HTMLColor *color
html_text_new_with_len
HTMLObject *
const gchar *text,gint len,GtkHTMLFontStyle font_style,HTMLColor *color
html_text_queue_draw
void
HTMLText *text,HTMLEngine *engine,guint offset,guint len
html_text_get_font_style
GtkHTMLFontStyle
const HTMLText *text
html_text_get_color
HTMLColor *
HTMLText *text,HTMLPainter *painter
html_text_set_font_style
void
HTMLText *text,HTMLEngine *engine,GtkHTMLFontStyle style
html_text_set_color
void
HTMLText *text,HTMLEngine *engine,HTMLColor *color
html_text_append
void
HTMLText *text,const gchar *str,gint len
html_text_set_text
void
HTMLText *text,const gchar *new_text
html_text_set_font_face
void
HTMLText *text,HTMLFontFace *face
html_text_get_nb_width
gint
HTMLText *text,HTMLPainter *painter,gboolean begin
html_text_get_bytes
guint
HTMLText *text
html_text_get_index
guint
HTMLText *text,guint offset
html_text_get_char
unicode_char_t
HTMLText *text,guint offset
html_text_get_text
gchar *
HTMLText *text,guint offset
html_text_spell_errors_clear
void
HTMLText *text
html_text_spell_errors_clear_interval
void
HTMLText *text,HTMLInterval *i
html_text_spell_errors_add
void
HTMLText *text,guint off,guint len
html_text_magic_link
gboolean
HTMLText *text,HTMLEngine *engine,guint offset
html_text_trail_space_width
gint
HTMLText *text,HTMLPainter *painter
html_text_request_word_width
void
HTMLText *text,HTMLPainter *painter
html_text_convert_nbsp
gboolean
HTMLText *text,gboolean free_text
HTMLTextHelperFunc
HTMLObject *
HTMLText *, gint begin, gint end
html_text_op_copy_helper
HTMLObject *
HTMLText *text,GList *from,GList *to,guint *len,HTMLTextHelperFunc f
html_text_op_cut_helper
HTMLObject *
HTMLText *text,HTMLEngine *e,GList *from,GList *to,GList *left,GList *right,guint *len,HTMLTextHelperFunc f
html_text_clear_word_width
void
HTMLText *text
HTML_TEXTAREA
#define HTML_TEXTAREA(x) ((HTMLTextArea *) (x))
HTML_TEXTAREA_CLASS
#define HTML_TEXTAREA_CLASS(x) ((HTMLTextAreaClass *) (x))
HTMLTextArea
struct HTMLTextArea {
HTMLEmbedded element;
GtkWidget *text;
gchar *default_text;
};
html_textarea_class
extern HTMLTextAreaClass html_textarea_class;
html_textarea_type_init
void
void
html_textarea_class_init
void
HTMLTextAreaClass *klass,HTMLType type,guint object_size
html_textarea_init
void
HTMLTextArea *ti,HTMLTextAreaClass *klass,GtkWidget *parent,gchar *name,gint r,gint c
html_textarea_new
HTMLObject *
GtkWidget *parent,gchar *name,gint r,gint c
html_textarea_set_text
void
HTMLTextArea *textarea,gchar *text
HTML_TEXTINPUT
#define HTML_TEXTINPUT(x) ((HTMLTextInput *) (x))
HTML_TEXTINPUT_CLASS
#define HTML_TEXTINPUT_CLASS(x) ((HTMLTextInputClass *) (x))
HTMLTextInput
struct HTMLTextInput {
HTMLEmbedded element;
gint size, maxlen;
gboolean password;
gchar *default_text;
};
html_text_input_class
extern HTMLTextInputClass html_text_input_class;
html_text_input_type_init
void
void
html_text_input_class_init
void
HTMLTextInputClass *klass,HTMLType type,guint object_size
html_text_input_init
void
HTMLTextInput *ti,HTMLTextInputClass *klass,GtkWidget *parent,gchar *name,gchar *value,gint size,gint maxlen,gboolean password
html_text_input_new
HTMLObject *
GtkWidget *parent,gchar *name,gchar *value,gint size,gint maxlen,gboolean password
HTML_TEXT_SLAVE
#define HTML_TEXT_SLAVE(x) ((HTMLTextSlave *) (x))
HTML_TEXT_SLAVE_CLASS
#define HTML_TEXT_SLAVE_CLASS(x) ((HTMLTextSlaveClass *) (x))
HTMLTextSlave
struct HTMLTextSlave {
HTMLObject object;
HTMLText *owner;
guint posStart;
guint posLen;
guint start_word;
};
html_text_slave_type_init
void
void
html_text_slave_class_init
void
HTMLTextSlaveClass *klass,HTMLType type,guint object_size
html_text_slave_init
void
HTMLTextSlave *slave,HTMLTextSlaveClass *klass,HTMLText *owner,guint posStart,guint posLen,guint start_word
html_text_slave_new
HTMLObject *
HTMLText *owner,guint posStart,guint posLen,guint start_word
TAG_ESCAPE
#define TAG_ESCAPE 13
TAB_SIZE
#define TAB_SIZE 8
html_tokenizer_new
HTMLTokenizer *
void
html_tokenizer_destroy
void
HTMLTokenizer *tokenizer
html_tokenizer_begin
void
HTMLTokenizer *t,gchar *content_type
html_tokenizer_write
void
HTMLTokenizer *t,const gchar *string,size_t size
html_tokenizer_end
void
HTMLTokenizer *t
html_tokenizer_peek_token
gchar *
HTMLTokenizer *t
html_tokenizer_next_token
gchar *
HTMLTokenizer *t
html_tokenizer_has_more_tokens
gboolean
HTMLTokenizer *t
g_unichar_to_utf8
gint
gint c, gchar *outbuf
html_types_init
void
void
html_type_name
const gchar *
HTMLType type
html_type_from_name
HTMLType
const gchar *name
HTMLObject
HTMLObjectClass
HTMLAnchor
HTMLAnchorClass
HTMLBlockStackElement
HTMLButton
HTMLButtonClass
HTMLCheckBox
HTMLCheckBoxClass
HTMLClue
HTMLClueAligned
HTMLClueAlignedClass
HTMLClueClass
HTMLClueFlow
HTMLClueFlowClass
HTMLClueH
HTMLClueHClass
HTMLClueV
HTMLClueVClass
HTMLColor
HTMLColorSet
HTMLCursor
HTMLDrawQueue
HTMLDrawQueueClearElement
HTMLEmbedded
HTMLEmbeddedClass
HTMLEngine
HTMLEngineClass
HTMLEngineEditSelectionUpdater
HTMLEngineSaveState
HTMLFontFace
typedef gchar HTMLFontFace;
HTMLFont
HTMLFontManager
HTMLFontSet
HTMLForm
HTMLGdkPainter
HTMLGdkPainterClass
HTMLHidden
HTMLHiddenClass
HTMLHSpace
HTMLHSpaceClass
HTMLIFrame
HTMLIFrameClass
HTMLImage
HTMLImageAnimation
HTMLImageClass
HTMLImageFactory
HTMLImageInput
HTMLImageInputClass
HTMLImagePointer
HTMLInterval
HTMLLinkText
HTMLLinkTextClass
HTMLList
HTMLPainter
HTMLPainterClass
HTMLPoint
HTMLPrinter
HTMLPrinterClass
HTMLRadio
HTMLRadioClass
HTMLReplace
HTMLRule
HTMLRuleClass
HTMLSelect
HTMLSelectClass
HTMLSearch
HTMLSettings
HTMLStack
HTMLStringTokenizer
HTMLTable
HTMLTableCell
HTMLTableCellClass
HTMLTableClass
HTMLText
HTMLTextArea
HTMLTextAreaClass
HTMLTextClass
HTMLTextInput
HTMLTextInputClass
HTMLTextSlave
HTMLTextSlaveClass
HTMLTokenizer
HTMLUndo
HTMLUndoData
HTMLUndoAction
HTMLVSpace
HTMLVSpaceClass
SpellError
HTMLObjectForallFunc
void
HTMLObject *self,
HTMLEngine *e,
gpointer data
HTMLFontManagerAllocFont
gpointer
gchar *face_name,
gdouble size,
GtkHTMLFontStyle style
HTMLFontManagerRefFont
void
gpointer font
HTMLFontManagerUnrefFont
void
gpointer font
HTMLStackFreeFunc
void
gpointer data
HTMLUndoFunc
void
HTMLEngine *engine,
HTMLUndoData *data,
HTMLUndoDirection dir
HTMLUndoDataDestroyFunc
void
HTMLUndoData *data
HTMLEngineSaveReceiverFn
typedef GtkHTMLSaveReceiverFn HTMLEngineSaveReceiverFn;
HTML_UNDO_ACTION
#define HTML_UNDO_ACTION(x) ((HTMLUndoAction *) x)
HTMLUndoAction
struct HTMLUndoAction {
gchar *description; /* A text description of the action, to be displayed in the menus. */
HTMLUndoFunc function; /* Function to call when the action is performed. */
HTMLUndoData *data; /* Data to pass to the action function when it's called. */
guint position; /* Cursor position, to be set when the action is executed. */
};
html_undo_action_new
HTMLUndoAction *
const gchar *description,HTMLUndoFunc function,HTMLUndoData *data,guint position
html_undo_action_destroy
void
HTMLUndoAction *action
HTML_UNDO_LIMIT
#define HTML_UNDO_LIMIT 1024
HTMLUndo
struct HTMLUndo {
/* List of undo actions (HTMLUndoAction). */
GList *undo_stack;
guint undo_stack_size;
/* List of redo actions (HTMLUndoAction). */
GList *redo_stack;
guint redo_stack_size;
/* these lists are stacks containing other
levels undo/redo after calling html_undo_level_start */
GSList *undo_levels;
GSList *redo_levels;
guint undo_levels_size;
};
HTML_UNDO_DATA
#define HTML_UNDO_DATA(x) ((HTMLUndoData *) x)
HTMLUndoData
struct HTMLUndoData {
HTMLUndoDataDestroyFunc destroy;
gint ref_count;
};
html_undo_new
HTMLUndo *
void
html_undo_destroy
void
HTMLUndo *undo
html_undo_do_undo
void
HTMLUndo *undo,HTMLEngine *engine
html_undo_do_redo
void
HTMLUndo *undo,HTMLEngine *engine
html_undo_discard_redo
void
HTMLUndo *undo
html_undo_add_undo_action
void
HTMLUndo *undo,HTMLUndoAction *action
html_undo_add_redo_action
void
HTMLUndo *undo,HTMLUndoAction *action
html_undo_add_action
void
HTMLUndo *undo,HTMLUndoAction *action,HTMLUndoDirection dir
html_undo_level_begin
void
HTMLUndo *undo,const gchar *description
html_undo_level_end
void
HTMLUndo *undo
html_undo_data_init
void
HTMLUndoData *data
html_undo_data_ref
void
HTMLUndoData *data
html_undo_data_unref
void
HTMLUndoData *data
html_undo_direction_reverse
HTMLUndoDirection
HTMLUndoDirection dir
HTMLURL
struct HTMLURL {
gchar *protocol;
gchar *username;
gchar *password;
gchar *hostname;
guint16 port;
gchar *path;
gchar *reference;
};
HTMLURL
html_url_new
HTMLURL *
const gchar *s
html_url_destroy
void
HTMLURL *url
html_url_dup
HTMLURL *
const HTMLURL *url, HTMLURLDupFlags flags
html_url_set_protocol
void
HTMLURL *url, const gchar *protocol
html_url_set_username
void
HTMLURL *url, const gchar *username
html_url_set_password
void
HTMLURL *url, const gchar *password
html_url_set_hostname
void
HTMLURL *url, const gchar *password
html_url_set_port
void
HTMLURL *url, gushort port
html_url_set_path
void
HTMLURL *url, const gchar *path
html_url_set_reference
void
HTMLURL *url, const gchar *reference
html_url_get_protocol
const gchar *
const HTMLURL *url
html_url_get_username
const gchar *
const HTMLURL *url
html_url_get_password
const gchar *
const HTMLURL *url
html_url_get_hostname
const gchar *
const HTMLURL *url
html_url_get_port
gushort
const HTMLURL *url
html_url_get_path
const gchar *
const HTMLURL *url
html_url_get_reference
const gchar *
const HTMLURL *url
html_url_to_string
gchar *
const HTMLURL *url
html_url_append_path
HTMLURL *
const HTMLURL *url, const gchar *path
HTML_VSPACE
#define HTML_VSPACE(x) ((HTMLVSpace *)(x))
HTMLVSpace
struct HTMLVSpace {
HTMLObject object;
HTMLClearType clear;
};
html_vspace_class
extern HTMLVSpaceClass html_vspace_class;
html_vspace_type_init
void
void
html_vspace_class_init
void
HTMLVSpaceClass *klass,HTMLType type,guint object_size
html_vspace_init
void
HTMLVSpace *vspace,HTMLVSpaceClass *klass,HTMLClearType clear
html_vspace_new
HTMLObject *
HTMLClearType clear
LEFT_BORDER
#define LEFT_BORDER 10
RIGHT_BORDER
#define RIGHT_BORDER 10
TOP_BORDER
#define TOP_BORDER 10
BOTTOM_BORDER
#define BOTTOM_BORDER 10
HTMLParser
struct HTMLParser {
HTMLEngine *engine;
gboolean parsing;
HTMLTokenizer *ht;
HTMLStringTokenizer *st;
HTMLObject *clue;
HTMLObject *flow;
gint leftBorder;
gint rightBorder;
gint topBorder;
gint bottomBorder;
/* Current indentation level. */
guint indent_level;
/* For the widget */
gint width;
gint height;
HTMLHAlignType divAlign;
/* Number of tokens parsed in the current time-slice */
gint parseCount;
gint granularity;
gboolean inTitle;
gboolean inPre;
gboolean inOption;
gboolean inTextArea;
gboolean eat_space;
gboolean newPage;
HTMLStack *font_style_stack; /* Font style stack, elements are GtkHTMLFontStyles. */
HTMLStack *font_face_stack;
HTMLStack *color_stack; /* Color stack, elements are GdkColors. */
HTMLStack *clueflow_style_stack; /* Clueflow style stack, elements are HTMLClueFlowStyles. */
gchar *url;
gchar *target;
HTMLBlockStackElement *blockStack;
/* timer id to schedule paint events */
guint updateTimer;
/* timer id for parsing routine */
guint timerId;
/* FIXME: replace with a `gchar *'? */
GString *title;
gboolean writing;
/* The background pixmap, an HTMLImagePointer */
gpointer bgPixmapPtr;
HTMLStack *listStack; /* Stack of lists currently active */
HTMLStack *embeddedStack; /* Stack of embedded "object"'s */
HTMLStack *glossaryStack; /* HTMLGlossaryEntry */
/*
* This list holds strings which are displayed in the view,
* but are not actually contained in the HTML source.
* e.g. The numbers in an ordered list.
* FIXME?
*/
GList *tempStrings;
HTMLForm *form;
HTMLSelect *formSelect;
HTMLTextArea *formTextArea;
GList *formList;
GString *formText;
gboolean noWrap;
/* This is TRUE if we cannot insert a paragraph break (which is just an
extra empty line). It's set to FALSE as soon as some element is
added to a flow. The purpose is to avoid having paragraph breaks to
be inserted in sequence, or after elements that have some vspace of
their own. */
gboolean avoid_para;
/* This is TRUE if we want a paragraph break to be inserted before the
next element. */
gboolean pending_para;
/* Alignment for the pending paragraph we are going to insert. */
HTMLHAlignType pending_para_alignment;
};
html_parser_new
HTMLParser *
HTMLEngine *e
html_parser_destroy
void
HTMLParser *p
html_parser_begin
GtkHTMLStream *
HTMLParser *p,char *content_type
html_parser_run
void
HTMLParser *p
html_parser_stop
void
HTMLParser *p
html_engine_copy
void
HTMLEngine *e
html_engine_cut
void
HTMLEngine *e
html_engine_cut_line
void
HTMLEngine *e
html_engine_delete
void
HTMLEngine *e
html_engine_paste
void
HTMLEngine *e
html_engine_paste_object
void
HTMLEngine *e,HTMLObject *o,guint len
html_engine_paste_text
void
HTMLEngine *e,const gchar *text,guint len
html_engine_insert_text
void
HTMLEngine *e,const gchar *text,guint len
html_engine_insert_object
void
HTMLEngine *e,HTMLObject *o,guint len
html_engine_insert_link
void
HTMLEngine *e,const gchar *url,const gchar *target
html_engine_insert_empty_paragraph
void
HTMLEngine *e
html_engine_delete_n
void
HTMLEngine *e,guint len,gboolean forward