Go to the documentation of this file.
23 #ifndef __CR_DOC_HANDLER_H__
24 #define __CR_DOC_HANDLER_H__
168 gboolean a_is_important) ;
218 GList *a_media_list) ;
void(* end_page)(CRDocHandler *a_this, CRString *a_name, CRString *pseudo_page)
Is called to notify the end of a page statement.
void(* import_style_result)(CRDocHandler *a_this, GList *a_media_list, CRString *a_uri, CRString *a_uri_default_ns, CRStyleSheet *a_sheet)
void(* property)(CRDocHandler *a_this, CRString *a_name, CRTerm *a_expression, gboolean a_is_important)
Is called to notify a declaration.
void(* unrecoverable_error)(CRDocHandler *a_this)
Is called to notify an unrecoverable parsing error.
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.
An abstraction of a css stylesheet as defined by the css2 spec in chapter 4.
gpointer app_data
This pointer is to be used by the application for it custom needs.
void(* charset)(CRDocHandler *a_this, CRString *a_charset, CRParsingLocation *a_charset_sym_location)
Is called to notify an at charset rule.
void(* namespace_declaration)(CRDocHandler *a_this, CRString *a_prefix, CRString *a_uri, CRParsingLocation *a_location)
Is called to notify a namespace declaration.
CRDocHandler * cr_doc_handler_new(void)
cr_doc_handler_new: Constructor 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.
typedefG_BEGIN_DECLS struct _CRString CRString
void(* comment)(CRDocHandler *a_this, CRString *a_comment)
Is called to notify a comment.
typedefG_BEGIN_DECLS struct _CRDocHandler CRDocHandler
void(* start_font_face)(CRDocHandler *a_this, CRParsingLocation *a_location)
Is called to notify the start of a font face statement.
void(* end_font_face)(CRDocHandler *a_this)
Is called to notify the end of a font face statement.
The SAC document handler.
void cr_doc_handler_ref(CRDocHandler *a_this)
cr_doc_handler_ref: @a_this: the current instance of CRDocHandler.
void(* start_document)(CRDocHandler *a_this)
Is called at the beginning of the parsing of the document.
void(* end_document)(CRDocHandler *a_this)
Is called to notify the end of the parsing of the document.
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
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.
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.
void cr_doc_handler_destroy(CRDocHandler *a_this)
cr_doc_handler_destroy: @a_this: the instance of CRDocHandler to destroy.
void(* start_selector)(CRDocHandler *a_this, CRSelector *a_selector_list)
Is called to notify the beginning of a rule statement.
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(* start_media)(CRDocHandler *a_this, GList *a_media_list, CRParsingLocation *a_location)
Is called to notify the beginning of a media statement.
void(* end_selector)(CRDocHandler *a_this, CRSelector *a_selector_list)
Is called to notify the end of a rule statement.
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.
An abstraction of a css2 term as defined in the CSS2 spec in appendix D.1: term ::= [ NUMBER S* | PER...
CRStatus
The status type returned by the methods of the croco library.
typedefG_BEGIN_DECLS struct _CRSelector CRSelector
void(* error)(CRDocHandler *a_this)
Is called to notify a parsing error.
gboolean cr_doc_handler_unref(CRDocHandler *a_this)
cr_doc_handler_unref: @a_this: the currrent instance of CRDocHandler.
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_media)(CRDocHandler *a_this, GList *a_media_list)
Is called to notify the end of a media statement.
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...