Go to the documentation of this file.
63 GString *stringue = NULL;
66 g_return_val_if_fail (a_this, NULL);
69 stringue = g_string_new (NULL) ;
70 g_return_val_if_fail (stringue, NULL) ;
73 cur_stmt; cur_stmt = cur_stmt->
next) {
75 g_string_append (stringue,
"\n\n") ;
79 g_string_append (stringue, str) ;
86 g_string_free (stringue, FALSE) ;
102 g_return_if_fail (a_this);
106 fprintf (a_fp,
"%s", str) ;
120 g_return_val_if_fail (a_this, -1);
135 g_return_val_if_fail (a_this, NULL);
143 g_return_if_fail (a_this);
151 g_return_val_if_fail (a_this, FALSE);
171 g_return_if_fail (a_this);
An abstraction of a css stylesheet as defined by the css2 spec in chapter 4.
CRStatement * cr_stylesheet_statement_get_from_list(CRStyleSheet *a_this, int itemnr)
Use an index to get a CRStatement from the rules in a given stylesheet.
void cr_stylesheet_ref(CRStyleSheet *a_this)
gint cr_stylesheet_nr_rules(CRStyleSheet const *a_this)
Return the number of rules in the stylesheet.
void cr_stylesheet_destroy(CRStyleSheet *a_this)
Destructor of the CRStyleSheet class.
The abstraction of css statement as defined in the chapter 4 and appendix D.1 of the css2 spec.
gboolean cr_stylesheet_unref(CRStyleSheet *a_this)
gchar * cr_statement_to_string(CRStatement const *a_this, gulong a_indent)
cr_statement_to_string:
void cr_stylesheet_dump(CRStyleSheet const *a_this, FILE *a_fp)
Dumps the current css2 stylesheet to a file.
gint cr_statement_nr_rules(CRStatement const *a_this)
cr_statement_nr_rules:
gulong ref_count
the reference count of this insance Please, don't never ever modify it directly.
CRStatement * statements
The css statements list.
void cr_statement_destroy(CRStatement *a_this)
cr_statement_destroy:
#define cr_utils_trace_info(a_msg)
Traces an info message.
CRStatement * cr_statement_get_from_list(CRStatement *a_this, int itemnr)
cr_statement_get_from_list:
gchar * cr_stylesheet_to_string(CRStyleSheet const *a_this)
CRStyleSheet * cr_stylesheet_new(CRStatement *a_stmts)
Constructor of the CRStyleSheet class.