cong-util

cong-util —

Synopsis




gboolean    cong_util_is_docbook            (CongDocument *doc);
gboolean    cong_util_is_pure_whitespace    (const gchar *utf8_text);
gchar*      cong_util_cleanup_text          (const xmlChar *text);
gchar*      cong_utils_get_norman_walsh_stylesheet_path
                                            (void);
gchar*      cong_utils_get_norman_walsh_stylesheet
                                            (const gchar *stylesheet_relative_path);
GdkPixbuf*  cong_util_load_icon             (const gchar *icon_basename);
void        cong_util_append                (gchar **string,
                                             const gchar *to_add);
void        cong_util_prepend               (gchar **string,
                                             const gchar *to_add);
void        cong_util_print_xslfo           (GtkWindow *toplevel_window,
                                             GnomePrintContext *gpc,
                                             xmlDocPtr xml_doc);
#define     CONG_GET_VAR_STR                (msg, str)
xmlDtdPtr   cong_util_make_dtd              (xmlDocPtr xml_doc,
                                             const xmlChar *root_element,
                                             const xmlChar *ExternalID,
                                             const xmlChar *SystemID);
xmlDtdPtr   cong_util_add_external_dtd      (xmlDocPtr xml_doc,
                                             const xmlChar *root_element,
                                             const xmlChar *ExternalID,
                                             const xmlChar *SystemID);
void        cong_util_draw_blended_line     (GtkWidget *w,
                                             const GdkColor *col,
                                             int x0,
                                             int y0,
                                             int x1);

Description

Details

cong_util_is_docbook ()

gboolean    cong_util_is_docbook            (CongDocument *doc);

doc :
Returns :

cong_util_is_pure_whitespace ()

gboolean    cong_util_is_pure_whitespace    (const gchar *utf8_text);

utf8_text :
Returns :

cong_util_cleanup_text ()

gchar*      cong_util_cleanup_text          (const xmlChar *text);

text: input xml text

Handy function for taking xml text and turning it into something you can see in a log: tabs and carriage returns etc are turned into visible characters.

text :
Returns : a freshly-allocated string, with all tabs and carriage returns turned into their printf equivalents

cong_utils_get_norman_walsh_stylesheet_path ()

gchar*      cong_utils_get_norman_walsh_stylesheet_path
                                            (void);

Try to locate Norman Walsh's stylesheets for DocBook using the local catalog to find them.

Returns : a string containing the path (which the caller must delete), or NULL

cong_utils_get_norman_walsh_stylesheet ()

gchar*      cong_utils_get_norman_walsh_stylesheet
                                            (const gchar *stylesheet_relative_path);

stylesheet_relative_path :
Returns :

cong_util_load_icon ()

GdkPixbuf*  cong_util_load_icon             (const gchar *icon_basename);

icon_basename :
Returns :

cong_util_append ()

void        cong_util_append                (gchar **string,
                                             const gchar *to_add);

string :
to_add :

cong_util_prepend ()

void        cong_util_prepend               (gchar **string,
                                             const gchar *to_add);

string :
to_add :

cong_util_print_xslfo ()

void        cong_util_print_xslfo           (GtkWindow *toplevel_window,
                                             GnomePrintContext *gpc,
                                             xmlDocPtr xml_doc);

toplevel_window :
gpc :
xml_doc :

CONG_GET_VAR_STR()

#define     CONG_GET_VAR_STR(msg, str)

msg :
str :

cong_util_make_dtd ()

xmlDtdPtr   cong_util_make_dtd              (xmlDocPtr xml_doc,
                                             const xmlChar *root_element,
                                             const xmlChar *ExternalID,
                                             const xmlChar *SystemID);

Make DTD declaration, and assigns it to the given document. Doesn't add it to doc tree

xml_doc :
root_element :
ExternalID :
SystemID :
Returns : the xmlDtdPtr that was assigned

cong_util_add_external_dtd ()

xmlDtdPtr   cong_util_add_external_dtd      (xmlDocPtr xml_doc,
                                             const xmlChar *root_element,
                                             const xmlChar *ExternalID,
                                             const xmlChar *SystemID);

Make DTD declaration, assigns it to the given document, and add it to the tree. Call cong_document_set_external_dtd() instead if you want notifications to work.

xml_doc :
root_element :
ExternalID :
SystemID :
Returns : the xmlDtdPtr that was assigned

cong_util_draw_blended_line ()

void        cong_util_draw_blended_line     (GtkWidget *w,
                                             const GdkColor *col,
                                             int x0,
                                             int y0,
                                             int x1);

w :
col :
x0 :
y0 :
x1 :