23 #ifndef __CR_DOC_HANDLER_H__
24 #define __CR_DOC_HANDLER_H__
168 gboolean a_is_important) ;
218 GList *a_media_list) ;
void cr_doc_handler_ref(CRDocHandler *a_this)
cr_doc_handler_ref: @a_this: the current instance of CRDocHandler.
typedefG_BEGIN_DECLS struct _CRDocHandler CRDocHandler
enum CRStatus cr_doc_handler_set_ctxt(CRDocHandler *a_this, gpointer a_ctxt)
cr_doc_handler_set_ctxt: @a_this: the current instance of CRDocHandler @a_ctxt: a pointer to the pars...
CRDocHandler * cr_doc_handler_new(void)
cr_doc_handler_new: Constructor of CRDocHandler.
gboolean cr_doc_handler_unref(CRDocHandler *a_this)
cr_doc_handler_unref: @a_this: the currrent instance of CRDocHandler.
enum CRStatus cr_doc_handler_get_result(CRDocHandler const *a_this, gpointer *a_result)
cr_doc_handler_get_result: @a_this: the current instance of CRDocHandler @a_result: out parameter.
enum CRStatus cr_doc_handler_get_ctxt(CRDocHandler const *a_this, gpointer *a_ctxt)
cr_doc_handler_get_ctxt: @a_this: the current instance of CRDocHandler.
enum CRStatus cr_doc_handler_set_result(CRDocHandler *a_this, gpointer a_result)
cr_doc_handler_set_result: @a_this: the current instance of CRDocHandler @a_result: the new result.
void cr_doc_handler_associate_a_parser(CRDocHandler *a_this, gpointer a_parser)
cr_doc_handler_associate_a_parser: Associates a parser to the current document handler
enum CRStatus cr_doc_handler_set_default_sac_handler(CRDocHandler *a_this)
cr_doc_handler_set_default_sac_handler: @a_this: a pointer to the current instance of CRDocHandler.
void cr_doc_handler_destroy(CRDocHandler *a_this)
cr_doc_handler_destroy: @a_this: the instance of CRDocHandler to destroy.
typedefG_BEGIN_DECLS struct _CRSelector CRSelector
typedefG_BEGIN_DECLS struct _CRString CRString
The declaration of the CRStyleSheet class.
The Croco library basic types definitions And global definitions.
CRStatus
The status type returned by the methods of the croco library.
The SAC document handler.
void(* start_document)(CRDocHandler *a_this)
Is called at the beginning of the parsing of the document.
gpointer app_data
This pointer is to be used by the application for it custom needs.
void(* import_style_result)(CRDocHandler *a_this, GList *a_media_list, CRString *a_uri, CRString *a_uri_default_ns, CRStyleSheet *a_sheet)
void(* start_font_face)(CRDocHandler *a_this, CRParsingLocation *a_location)
Is called to notify the start of a font face statement.
void(* end_document)(CRDocHandler *a_this)
Is called to notify the end of the parsing of the document.
void(* error)(CRDocHandler *a_this)
Is called to notify a parsing error.
void(* start_selector)(CRDocHandler *a_this, CRSelector *a_selector_list)
Is called to notify the beginning of a rule statement.
void(* end_selector)(CRDocHandler *a_this, CRSelector *a_selector_list)
Is called to notify the end of a rule statement.
void(* charset)(CRDocHandler *a_this, CRString *a_charset, CRParsingLocation *a_charset_sym_location)
Is called to notify an at charset rule.
void(* end_media)(CRDocHandler *a_this, GList *a_media_list)
Is called to notify the end of a media statement.
void(* namespace_declaration)(CRDocHandler *a_this, CRString *a_prefix, CRString *a_uri, CRParsingLocation *a_location)
Is called to notify a namespace declaration.
void(* end_font_face)(CRDocHandler *a_this)
Is called to notify the end of a font face statement.
void(* unrecoverable_error)(CRDocHandler *a_this)
Is called to notify an unrecoverable parsing error.
void(* import_style)(CRDocHandler *a_this, GList *a_media_list, CRString *a_uri, CRString *a_uri_default_ns, CRParsingLocation *a_location)
Is called to notify an import statement in the stylesheet.
void(* property)(CRDocHandler *a_this, CRString *a_name, CRTerm *a_expression, gboolean a_is_important)
Is called to notify a declaration.
void(* comment)(CRDocHandler *a_this, CRString *a_comment)
Is called to notify a comment.
void(* ignorable_at_rule)(CRDocHandler *a_this, CRString *a_name)
Is Called to notify an unknown at-rule not supported by this parser.
void(* end_page)(CRDocHandler *a_this, CRString *a_name, CRString *pseudo_page)
Is called to notify the end of a page statement.
void(* start_media)(CRDocHandler *a_this, GList *a_media_list, CRParsingLocation *a_location)
Is called to notify the beginning of a media statement.
void(* start_page)(CRDocHandler *a_this, CRString *a_name, CRString *a_pseudo_page, CRParsingLocation *a_location)
Is called to notify the beginning of a page statement.
An abstraction of a css stylesheet as defined by the css2 spec in chapter 4.
An abstraction of a css2 term as defined in the CSS2 spec in appendix D.1: term ::= [ NUMBER S* | PER...