![]() |
![]() |
![]() |
libgebr Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Signals |
GebrGuiHtmlViewerWidget; GebrGuiHtmlViewerWidgetClass; GtkWidget * (*GebrGuiHtmlViewerCustomTab) (GebrGuiHtmlViewerWidget *self); GtkWidget * gebr_gui_html_viewer_widget_new (); void gebr_gui_html_viewer_widget_print (GebrGuiHtmlViewerWidget *self); void gebr_gui_html_viewer_widget_show_html (GebrGuiHtmlViewerWidget *self, const gchar *content); void gebr_gui_html_viewer_widget_generate_links (GebrGuiHtmlViewerWidget *self, GebrGeoXmlObject *object); void gebr_gui_html_viewer_widget_set_custom_tab (GebrGuiHtmlViewerWidget *self, const gchar *label, GebrGuiHtmlViewerCustomTab callback); const gchar * gebr_gui_html_viewer_widget_get_html (GebrGuiHtmlViewerWidget *self);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBox +----GtkVBox +----GebrGuiHtmlViewerWidget
GebrGuiHtmlViewerWidget implements AtkImplementorIface, GtkBuildable and GtkOrientable.
typedef struct { GtkVBoxClass parent_class; /* Signals */ void (*title_ready) (GebrGuiHtmlViewerWidget * self, const gchar * title); void (*print_requested) (GebrGuiHtmlViewerWidget * self); } GebrGuiHtmlViewerWidgetClass;
GtkWidget * (*GebrGuiHtmlViewerCustomTab) (GebrGuiHtmlViewerWidget *self);
GtkWidget * gebr_gui_html_viewer_widget_new ();
Creates a new html viewer widget.
void gebr_gui_html_viewer_widget_print (GebrGuiHtmlViewerWidget *self);
Prints the content of a html viewer widget
void gebr_gui_html_viewer_widget_show_html (GebrGuiHtmlViewerWidget *self, const gchar *content);
Show the html content
void gebr_gui_html_viewer_widget_generate_links (GebrGuiHtmlViewerWidget *self, GebrGeoXmlObject *object);
Schedules the generation of the links for object
, which happens when the next call to
gebr_gui_html_viewer_widget_show_html()
is done.
|
The HTML viewer widget |
|
A GebrGeoXmlObject for generating the links |
void gebr_gui_html_viewer_widget_set_custom_tab (GebrGuiHtmlViewerWidget *self, const gchar *label, GebrGuiHtmlViewerCustomTab callback);
Create the custom print tab
|
an html viewer widget |
|
Name the new custom tab |
|
The widget to attach to the print dialog, as the only custom tab |
const gchar * gebr_gui_html_viewer_widget_get_html (GebrGuiHtmlViewerWidget *self);
Retrieves the content shown by this HTML viewer widget. Notice that this may not be the same HTML set with
gebr_gui_html_viewer_widget_show_html()
, since the string is processed before shown.
|
an html viewer widget |
Returns : |
the HTML content shown by this widget. The string is owned by GêBR and should not be modified or freed. |
"print-requested"
signalvoid user_function (GebrGuiHtmlViewerWidget *arg0, gpointer user_data) : Run Last
|
user data set when the signal handler was connected. |
"title-ready"
signalvoid user_function (GebrGuiHtmlViewerWidget *widget, gchar *title, gpointer user_data) : Run Last
This signal is fired when the title is ready to be set. The title is passed by parameter title
, and its
value may depend on context. If this viewer is showing the help of a geoxml-menu, the title is the same as
the menu. Otherwise, the title is defined by the <title> tag inside the Html.
|
This GebrGuiHtmlViewerWidget |
|
The title. |
|
user data set when the signal handler was connected. |