23#ifndef __CR_DOC_HANDLER_H__
24#define __CR_DOC_HANDLER_H__
42struct _CRDocHandlerPriv ;
168 gboolean a_is_important) ;
218 GList *a_media_list) ;
CRDocHandler * cr_doc_handler_new(void)
void cr_doc_handler_ref(CRDocHandler *a_this)
typedefG_BEGIN_DECLS struct _CRDocHandler CRDocHandler
enum CRStatus cr_doc_handler_set_ctxt(CRDocHandler *a_this, gpointer a_ctxt)
struct _CRDocHandlerPriv CRDocHandlerPriv
gboolean cr_doc_handler_unref(CRDocHandler *a_this)
enum CRStatus cr_doc_handler_get_result(CRDocHandler const *a_this, gpointer *a_result)
enum CRStatus cr_doc_handler_get_ctxt(CRDocHandler const *a_this, gpointer *a_ctxt)
enum CRStatus cr_doc_handler_set_result(CRDocHandler *a_this, gpointer a_result)
void cr_doc_handler_associate_a_parser(CRDocHandler *a_this, gpointer a_parser)
enum CRStatus cr_doc_handler_set_default_sac_handler(CRDocHandler *a_this)
void cr_doc_handler_destroy(CRDocHandler *a_this)
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...