#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... | |
Defines | |
| #define | NEW_PROPERTIES_GETTER 1 |
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) |
| 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 26 of file cr-sel-eng.h. |
|
|
Definition at line 67 of file cr-sel-eng.h. Referenced by cr_sel_eng_get_pseudo_class_selector_handler(), cr_sel_eng_new(), and cr_sel_eng_register_pseudo_class_sel_handler(). |
|
|
Definition at line 52 of file cr-sel-eng.h. Referenced by cr_sel_eng_new(). |
|
|
The destructor of CRSelEng.
Definition at line 1758 of file cr-sel-eng.c. References cr_sel_eng_unregister_all_pseudo_class_sel_handlers(), and PRIVATE. |
|
||||||||||||||||||||
|
Definition at line 1587 of file cr-sel-eng.c. References CR_BAD_PARAM_ERROR, cr_cascade_get_sheet(), CR_ERROR, CR_OK, CR_OUTPUT_TOO_SHORT_ERROR, cr_utils_trace_info, CRCascade, CRStatement, CRStatus, CRStyleOrigin, CRStyleSheet, NB_ORIGINS, ORIGIN_UA, _CRStatement::parent_sheet, RULESET_STMT, and _CRStatement::type. 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 1414 of file cr-sel-eng.c. References CR_BAD_PARAM_ERROR, CR_ERROR, CR_OK, CR_OUTPUT_TOO_SHORT_ERROR, cr_utils_trace_info, CRStatement, CRStatus, and CRStyleSheet. |
|
||||||||||||||||||||||||
|
Definition at line 1689 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_defaults(), CRCascade, CRPropList, and CRStatus. |
|
||||||||||||||||||||
|
Definition at line 1339 of file cr-sel-eng.c. References CR_BAD_PARAM_ERROR, CR_OK, CR_PSEUDO_CLASS_SEL_HANDLER_NOT_FOUND_ERROR, CRPseudoClassSelectorHandler, 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 1382 of file cr-sel-eng.c. References CR_BAD_PARAM_ERROR, CR_OK, CRSimpleSel, and PRIVATE. |
|
|
Creates a new instance of CRSelEng.
Definition at line 1200 of file cr-sel-eng.c. References cr_sel_eng_register_pseudo_class_sel_handler(), cr_utils_trace_info, CRPseudoClassSelectorHandler, CRSelEng, CRSelEngPriv, FUNCTION_PSEUDO, IDENT_PSEUDO, and PRIVATE. |
|
||||||||||||||||||||
|
Adds a new handler entry in the handlers entry table.
Definition at line 1240 of file cr-sel-eng.c. References CR_BAD_PARAM_ERROR, CR_OK, CR_OUT_OF_MEMORY_ERROR, CRPseudoClassSelectorHandler, 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 1312 of file cr-sel-eng.c. References CR_BAD_PARAM_ERROR, CR_OK, and PRIVATE. Referenced by cr_sel_eng_destroy(). |
|
||||||||||||||||
|
Definition at line 1271 of file cr-sel-eng.c. References CR_BAD_PARAM_ERROR, CR_OK, CR_PSEUDO_CLASS_SEL_HANDLER_NOT_FOUND_ERROR, and PRIVATE. |
|
|
Definition at line 51 of file cr-sel-eng.h. Referenced by cr_sel_eng_new(). |
1.3.5