#include "cr-utils.h"
#include "cr-stylesheet.h"
#include "cr-cascade.h"
#include "cr-style.h"
#include "cr-prop-list.h"
#include <libxml/tree.h>
Go to the source code of this file.
Data Structures | |
struct | _CRSelEng |
The Selection engine class. More... | |
Typedefs | |
typedef _CRSelEngPriv | CRSelEngPriv |
typedef gboolean(* | CRPseudoClassSelectorHandler )(CRSelEng *a_this, CRAdditionalSel *a_add_sel, xmlNode *a_node) |
Functions | |
CRSelEng * | cr_sel_eng_new (void) |
Creates a new instance of CRSelEng. | |
enum CRStatus | cr_sel_eng_register_pseudo_class_sel_handler (CRSelEng *a_this, guchar *a_pseudo_class_sel_name, enum CRPseudoType a_pseudo_class_type, CRPseudoClassSelectorHandler a_handler) |
Adds a new handler entry in the handlers entry table. | |
enum CRStatus | cr_sel_eng_unregister_pseudo_class_sel_handler (CRSelEng *a_this, guchar *a_pseudo_class_sel_name, enum CRPseudoType a_pseudo_class_type) |
enum CRStatus | cr_sel_eng_unregister_all_pseudo_class_sel_handlers (CRSelEng *a_this) |
Unregisters all the pseudo class sel handlers and frees all the associated allocated datastructures. | |
enum CRStatus | cr_sel_eng_get_pseudo_class_selector_handler (CRSelEng *a_this, guchar *a_pseudo_class_sel_name, enum CRPseudoType a_pseudo_class_type, CRPseudoClassSelectorHandler *a_handler) |
enum CRStatus | cr_sel_eng_matches_node (CRSelEng *a_this, CRSimpleSel *a_sel, xmlNode *a_node, gboolean *a_result) |
Evaluates a chained list of simple selectors (known as a css2 selector). | |
enum CRStatus | cr_sel_eng_get_matched_rulesets (CRSelEng *a_this, CRStyleSheet *a_sheet, xmlNode *a_node, CRStatement ***a_rulesets, gulong *a_len) |
Returns an array of pointers to selectors that matches the xml node given in parameter. | |
enum CRStatus | cr_sel_eng_get_matched_properties_from_cascade (CRSelEng *a_this, CRCascade *a_cascade, xmlNode *a_node, CRPropList **a_props) |
enum CRStatus | cr_sel_eng_get_matched_style (CRSelEng *a_this, CRCascade *a_cascade, xmlNode *a_node, CRStyle *a_parent_style, CRStyle **a_style, gboolean a_set_props_to_initial_values) |
void | cr_sel_eng_destroy (CRSelEng *a_this) |
The destructor of CRSelEng. | |
Variables | |
typedefG_BEGIN_DECLS struct _CRSelEng | CRSelEng |
The CRSelEng is actually the "Selection Engine" class.
Definition in file cr-sel-eng.h.
|
Definition at line 64 of file cr-sel-eng.h. |
|
Definition at line 49 of file cr-sel-eng.h. Referenced by cr_sel_eng_new(). |
|
The destructor of CRSelEng.
Definition at line 1538 of file cr-sel-eng.c. References cr_sel_eng_unregister_all_pseudo_class_sel_handlers(), and PRIVATE. |
|
Definition at line 1392 of file cr-sel-eng.c. References CR_BAD_PARAM_ERROR, cr_cascade_get_sheet(), cr_utils_trace_info, CRCascade, CRStatement, CRStatus, CRStyleOrigin, CRStyleSheet, _CRStatement::parent_sheet, and RULESET_STMT. Referenced by cr_sel_eng_get_matched_style(). |
|
Returns an array of pointers to selectors that matches the xml node given in parameter.
Definition at line 1326 of file cr-sel-eng.c. References CR_BAD_PARAM_ERROR, cr_utils_trace_info, CRStatement, CRStatus, and CRStyleSheet. |
|
Definition at line 1493 of file cr-sel-eng.c. References CR_BAD_PARAM_ERROR, CR_ERROR, CR_OK, cr_prop_list_destroy(), cr_sel_eng_get_matched_properties_from_cascade(), cr_style_new(), cr_style_set_props_to_default_values(), cr_style_set_props_to_initial_values(), CRCascade, CRPropList, and CRStatus. |
|
Definition at line 1249 of file cr-sel-eng.c. References CR_BAD_PARAM_ERROR, CRPseudoClassSelHandlerEntry::handler, CRPseudoClassSelHandlerEntry::name, and PRIVATE. |
|
Evaluates a chained list of simple selectors (known as a css2 selector). Says wheter if this selector matches the xml node given in parameter or not.
Definition at line 1292 of file cr-sel-eng.c. References CR_BAD_PARAM_ERROR, CRSimpleSel, and PRIVATE. |
|
Creates a new instance of CRSelEng.
Definition at line 1110 of file cr-sel-eng.c. References cr_sel_eng_register_pseudo_class_sel_handler(), cr_utils_trace_info, CRSelEng, CRSelEngPriv, and PRIVATE. |
|
Adds a new handler entry in the handlers entry table.
Definition at line 1150 of file cr-sel-eng.c. References CR_BAD_PARAM_ERROR, CRPseudoClassSelHandlerEntry::handler, CRPseudoClassSelHandlerEntry::name, and PRIVATE. Referenced by cr_sel_eng_new(). |
|
Unregisters all the pseudo class sel handlers and frees all the associated allocated datastructures.
Definition at line 1222 of file cr-sel-eng.c. References CR_BAD_PARAM_ERROR, CRPseudoClassSelHandlerEntry::name, and PRIVATE. Referenced by cr_sel_eng_destroy(). |
|
Definition at line 1181 of file cr-sel-eng.c. References CR_BAD_PARAM_ERROR, CRPseudoClassSelHandlerEntry::name, and PRIVATE. |
|
Definition at line 48 of file cr-sel-eng.h. Referenced by cr_sel_eng_new(). |