#include <stdio.h>
#include "cr-utils.h"
#include "cr-term.h"
#include "cr-selector.h"
#include "cr-declaration.h"
Go to the source code of this file.
Data Structures | |
struct | _CRRuleSet |
The abstraction of a css ruleset. More... | |
struct | _CRAtImportRule |
struct | _CRAtMediaRule |
abstraction of an rule More... | |
struct | _CRAtCharsetRule |
struct | _CRAtFontFaceRule |
struct | _CRStatement |
Typedefs | |
typedef _CRAtMediaRule | CRAtMediaRule |
typedef _CRRuleSet | CRRuleSet |
typedef _CRStyleSheet | CRStyleSheet |
typedef _CRAtImportRule | CRAtImportRule |
The rule abstraction. | |
typedef _CRAtPageRule | CRAtPageRule |
typedef _CRAtCharsetRule | CRAtCharsetRule |
The rule abstraction. | |
typedef _CRAtFontFaceRule | CRAtFontFaceRule |
The abstaction of the -face rule. | |
Enumerations | |
enum | CRStatementType { AT_RULE_STMT = 0, RULESET_STMT, AT_IMPORT_RULE_STMT, AT_MEDIA_RULE_STMT, AT_PAGE_RULE_STMT, AT_CHARSET_RULE_STMT, AT_FONT_FACE_RULE_STMT } |
The possible types of css2 statements. More... | |
Functions | |
gboolean | cr_statement_does_buf_parses_against_core (const guchar *a_buf, enum CREncoding a_encoding) |
Tries to parse a buffer and says whether if the content of the buffer is a css statement as defined by the "Core CSS Grammar" (chapter 4 of the css spec) or not. | |
CRStatement * | cr_statement_parse_from_buf (const guchar *a_buf, enum CREncoding a_encoding) |
Parses a buffer that contains a css statement and returns an instance of CRStatement in case of successfull parsing. | |
CRStatement * | cr_statement_new_ruleset (CRStyleSheet *a_sheet, CRSelector *a_sel_list, CRDeclaration *a_decl_list, CRStatement *a_media_rule) |
Creates a new instance of CRStatement of type #CRRulSet. | |
CRStatement * | cr_statement_ruleset_parse_from_buf (const guchar *a_buf, enum CREncoding a_enc) |
Parses a buffer that contains a ruleset statement an instanciates a CRStatement of type RULESET_STMT. | |
CRStatement * | cr_statement_new_at_import_rule (CRStyleSheet *a_container_sheet, CRString *a_url, GList *a_media_list, CRStyleSheet *a_imported_sheet) |
Creates a new instance of #CRStatment of type CRAtImportRule. | |
CRStatement * | cr_statement_at_import_rule_parse_from_buf (const guchar *a_buf, enum CREncoding a_encoding) |
Parses a buffer that contains an "@import" rule and instanciate a CRStatement of type AT_IMPORT_RULE_STMT. | |
CRStatement * | cr_statement_new_at_media_rule (CRStyleSheet *a_sheet, CRStatement *a_ruleset, GList *a_media) |
Instanciates an instance of CRStatement of type AT_MEDIA_RULE_STMT ( ruleset). | |
CRStatement * | cr_statement_at_media_rule_parse_from_buf (const guchar *a_buf, enum CREncoding a_enc) |
Parses a buffer that contains an "@media" declaration and builds an css statement. | |
CRStatement * | cr_statement_new_at_charset_rule (CRStyleSheet *a_sheet, CRString *a_charset) |
Creates a new instance of CRStatement of type CRAtCharsetRule. | |
CRStatement * | cr_statement_at_charset_rule_parse_from_buf (const guchar *a_buf, enum CREncoding a_encoding) |
Parses a buffer that contains an '' rule and creates an instance of CRStatement of type AT_CHARSET_RULE_STMT. | |
CRStatement * | cr_statement_new_at_font_face_rule (CRStyleSheet *a_sheet, CRDeclaration *a_font_decls) |
Creates an instance of CRStatement of type CRAtFontFaceRule. | |
CRStatement * | cr_statement_font_face_rule_parse_from_buf (const guchar *a_buf, enum CREncoding a_encoding) |
Parses a buffer that contains an "@font-face" rule and builds an instance of CRStatement of type AT_FONT_FACE_RULE_STMT out of it. | |
CRStatement * | cr_statement_new_at_page_rule (CRStyleSheet *a_sheet, CRDeclaration *a_decl_list, CRString *a_name, CRString *a_pseudo) |
Creates a new instance of CRStatement of type CRAtPageRule. | |
CRStatement * | cr_statement_at_page_rule_parse_from_buf (const guchar *a_buf, enum CREncoding a_encoding) |
Parses a buffer that contains an "@page" production and, if the parsing succeeds, builds the page statement. | |
enum CRStatus | cr_statement_set_parent_sheet (CRStatement *a_this, CRStyleSheet *a_sheet) |
Sets the container stylesheet. | |
enum CRStatus | cr_statement_get_parent_sheet (CRStatement *a_this, CRStyleSheet **a_sheet) |
Gets the sheets that contains the current statement. | |
CRStatement * | cr_statement_append (CRStatement *a_this, CRStatement *a_new) |
Appends a new statement to the statement list. | |
CRStatement * | cr_statement_prepend (CRStatement *a_this, CRStatement *a_new) |
Prepends the an instance of CRStatement to the current statement list. | |
CRStatement * | cr_statement_unlink (CRStatement *a_stmt) |
Unlinks a statement from the statements list. | |
enum CRStatus | cr_statement_ruleset_set_sel_list (CRStatement *a_this, CRSelector *a_sel_list) |
Sets a selector list to a ruleset statement. | |
enum CRStatus | cr_statement_ruleset_get_sel_list (CRStatement *a_this, CRSelector **a_list) |
Gets a pointer to the selector list contained in the current ruleset statement. | |
enum CRStatus | cr_statement_ruleset_set_decl_list (CRStatement *a_this, CRDeclaration *a_list) |
Sets a declaration list to the current ruleset statement. | |
enum CRStatus | cr_statement_ruleset_get_declarations (CRStatement *a_this, CRDeclaration **a_decl_list) |
Gets a pointer to the list of declaration contained in the ruleset statement. | |
enum CRStatus | cr_statement_ruleset_append_decl2 (CRStatement *a_this, CRString *a_prop, CRTerm *a_value) |
Appends a declaration to the current ruleset statement. | |
enum CRStatus | cr_statement_ruleset_append_decl (CRStatement *a_this, CRDeclaration *a_decl) |
Appends a declaration to the current statement. | |
enum CRStatus | cr_statement_at_import_rule_set_imported_sheet (CRStatement *a_this, CRStyleSheet *a_sheet) |
Sets a stylesheet to the current rule. | |
enum CRStatus | cr_statement_at_import_rule_get_imported_sheet (CRStatement *a_this, CRStyleSheet **a_sheet) |
Gets the stylesheet contained by the rule statement. | |
enum CRStatus | cr_statement_at_import_rule_set_url (CRStatement *a_this, CRString *a_url) |
Sets an url to the current rule statement. | |
enum CRStatus | cr_statement_at_import_rule_get_url (CRStatement *a_this, CRString **a_url) |
Gets the url of the rule statement. | |
gint | cr_statement_at_media_nr_rules (CRStatement *a_this) |
Return the number of rules in the media rule;. | |
CRStatement * | cr_statement_at_media_get_from_list (CRStatement *a_this, int itemnr) |
Use an index to get a CRStatement from the media rule list of rules. | |
enum CRStatus | cr_statement_at_page_rule_set_sel (CRStatement *a_this, CRSelector *a_sel) |
enum CRStatus | cr_statement_at_page_rule_get_sel (CRStatement *a_this, CRSelector **a_sel) |
enum CRStatus | cr_statement_at_page_rule_set_declarations (CRStatement *a_this, CRDeclaration *a_decl_list) |
enum CRStatus | cr_statement_at_page_rule_get_declarations (CRStatement *a_this, CRDeclaration **a_decl_list) |
enum CRStatus | cr_statement_at_charset_rule_set_charset (CRStatement *a_this, CRString *a_charset) |
Sets the charset of the current rule statement. | |
enum CRStatus | cr_statement_at_charset_rule_get_charset (CRStatement *a_this, CRString **a_charset) |
Gets the charset string associated to the current rule statement. | |
enum CRStatus | cr_statement_at_font_face_rule_set_decls (CRStatement *a_this, CRDeclaration *a_decls) |
Sets a declaration list to the current -face rule statement. | |
enum CRStatus | cr_statement_at_font_face_rule_get_decls (CRStatement *a_this, CRDeclaration **a_decls) |
Gets the declaration list associated to the current instance of -face rule statement. | |
enum CRStatus | cr_statement_at_font_face_rule_add_decl (CRStatement *a_this, CRString *a_prop, CRTerm *a_value) |
Adds a declaration to the current -face rule statement. | |
gchar * | cr_statement_to_string (CRStatement *a_this, gulong a_indent) |
Serializes a css statement into a string. | |
gchar * | cr_statement_list_to_string (CRStatement *a_this, gulong a_indent) |
void | cr_statement_dump (CRStatement *a_this, FILE *a_fp, gulong a_indent) |
Dumps the css2 statement to a file. | |
void | cr_statement_dump_ruleset (CRStatement *a_this, FILE *a_fp, glong a_indent) |
Dumps a ruleset statement to a file. | |
void | cr_statement_dump_font_face_rule (CRStatement *a_this, FILE *a_fp, glong a_indent) |
Dumps a font face rule statement to a file. | |
void | cr_statement_dump_page (CRStatement *a_this, FILE *a_fp, gulong a_indent) |
void | cr_statement_dump_media_rule (CRStatement *a_this, FILE *a_fp, gulong a_indent) |
Dumps an rule statement to a file. | |
void | cr_statement_dump_import_rule (CRStatement *a_this, FILE *a_fp, gulong a_indent) |
Dumps an rule statement to a file. | |
void | cr_statement_dump_charset (CRStatement *a_this, FILE *a_fp, gulong a_indent) |
Dumps an rule statement to a file. | |
gint | cr_statement_nr_rules (CRStatement *a_this) |
Return the number of rules in the statement list;. | |
CRStatement * | cr_statement_get_from_list (CRStatement *a_this, int itemnr) |
Use an index to get a CRStatement from the statement list. | |
void | cr_statement_destroy (CRStatement *a_this) |
Destructor of CRStatement. | |
Variables | |
CRDeclaration * | decl_list |
CRString * | name |
page selector. | |
CRString * | pseudo |
Definition in file cr-statement.h.
|
The rule abstraction.
Definition at line 126 of file cr-statement.h. Referenced by cr_statement_new_at_charset_rule(). |
|
The abstaction of the -face rule.
Definition at line 133 of file cr-statement.h. Referenced by cr_statement_new_at_font_face_rule(). |
|
The rule abstraction.
Definition at line 88 of file cr-statement.h. Referenced by cr_statement_new_at_import_rule(). |
|
Definition at line 54 of file cr-statement.h. Referenced by cr_statement_new_at_media_rule(). |
|
Definition at line 113 of file cr-statement.h. Referenced by cr_statement_new_at_page_rule(). |
|
Definition at line 56 of file cr-statement.h. Referenced by cr_statement_new_ruleset(). |
|
|
The possible types of css2 statements.
Definition at line 144 of file cr-statement.h. |
|
Appends a new statement to the statement list.
Definition at line 1739 of file cr-statement.c. References CRStatement, _CRStatement::next, and _CRStatement::prev. Referenced by cr_statement_new_ruleset(). |
|
Gets the charset string associated to the current rule statement.
Definition at line 2215 of file cr-statement.c. References AT_CHARSET_RULE_STMT, _CRAtCharsetRule::charset, _CRStatement::charset_rule, CR_BAD_PARAM_ERROR, CRStatement, CRString, and _CRStatement::kind. |
|
Parses a buffer that contains an '' rule and creates an instance of CRStatement of type AT_CHARSET_RULE_STMT.
Definition at line 1553 of file cr-statement.c. References CR_OK, cr_parser_destroy(), cr_parser_new_from_buf(), cr_parser_parse_charset(), cr_parser_try_to_skip_spaces_and_comments(), cr_statement_new_at_charset_rule(), cr_string_destroy(), cr_utils_trace_info, CRParser, CRStatement, CRStatus, and CRString. Referenced by cr_statement_parse_from_buf(). |
|
Sets the charset of the current rule statement.
Definition at line 2192 of file cr-statement.c. References AT_CHARSET_RULE_STMT, _CRAtCharsetRule::charset, _CRStatement::charset_rule, CR_BAD_PARAM_ERROR, cr_string_destroy(), CRStatement, CRString, and _CRStatement::kind. |
|
Adds a declaration to the current -face rule statement.
Definition at line 2284 of file cr-statement.c. References AT_FONT_FACE_RULE_STMT, CR_BAD_PARAM_ERROR, cr_declaration_append2(), cr_declaration_ref(), CR_ERROR, CRDeclaration, CRStatement, CRString, CRTerm, _CRAtFontFaceRule::decl_list, _CRStatement::font_face_rule, and _CRStatement::kind. |
|
Gets the declaration list associated to the current instance of -face rule statement.
Definition at line 2262 of file cr-statement.c. References AT_FONT_FACE_RULE_STMT, CR_BAD_PARAM_ERROR, CRDeclaration, CRStatement, _CRAtFontFaceRule::decl_list, _CRStatement::font_face_rule, and _CRStatement::kind. |
|
Sets a declaration list to the current -face rule statement.
Definition at line 2235 of file cr-statement.c. References AT_FONT_FACE_RULE_STMT, CR_BAD_PARAM_ERROR, cr_declaration_ref(), cr_declaration_unref(), CRDeclaration, CRStatement, _CRAtFontFaceRule::decl_list, _CRStatement::font_face_rule, and _CRStatement::kind. |
|
Gets the stylesheet contained by the rule statement.
Definition at line 2048 of file cr-statement.c. References AT_IMPORT_RULE_STMT, CR_BAD_PARAM_ERROR, CRStatement, CRStyleSheet, _CRStatement::import_rule, _CRStatement::kind, and _CRAtImportRule::sheet. |
|
Gets the url of the rule statement.
Definition at line 2091 of file cr-statement.c. References AT_IMPORT_RULE_STMT, CR_BAD_PARAM_ERROR, CRStatement, CRString, _CRStatement::import_rule, _CRStatement::kind, and _CRAtImportRule::url. |
|
Parses a buffer that contains an "@import" rule and instanciate a CRStatement of type AT_IMPORT_RULE_STMT.
Definition at line 1324 of file cr-statement.c. References CR_OK, cr_parser_destroy(), cr_parser_new_from_buf(), cr_parser_parse_import(), cr_parser_try_to_skip_spaces_and_comments(), cr_parsing_location_copy(), cr_statement_new_at_import_rule(), cr_string_destroy(), cr_utils_trace_info, CRParser, CRParsingLocation, CRStatement, CRStatus, CRString, and _CRStatement::location. Referenced by cr_statement_parse_from_buf(). |
|
Sets a stylesheet to the current rule.
Definition at line 2027 of file cr-statement.c. References AT_IMPORT_RULE_STMT, CR_BAD_PARAM_ERROR, CRStatement, CRStyleSheet, _CRStatement::import_rule, _CRStatement::kind, and _CRAtImportRule::sheet. |
|
Sets an url to the current rule statement.
Definition at line 2067 of file cr-statement.c. References AT_IMPORT_RULE_STMT, CR_BAD_PARAM_ERROR, cr_string_destroy(), CRStatement, CRString, _CRStatement::import_rule, _CRStatement::kind, and _CRAtImportRule::url. |
|
Use an index to get a CRStatement from the media rule list of rules.
Definition at line 2127 of file cr-statement.c. References AT_MEDIA_RULE_STMT, cr_statement_get_from_list(), CRStatement, _CRStatement::kind, _CRStatement::media_rule, and _CRAtMediaRule::rulesets. |
|
Return the number of rules in the media rule;.
Definition at line 2110 of file cr-statement.c. References AT_MEDIA_RULE_STMT, CR_BAD_PARAM_ERROR, cr_statement_nr_rules(), CRStatement, _CRStatement::kind, _CRStatement::media_rule, and _CRAtMediaRule::rulesets. |
|
Parses a buffer that contains an "@media" declaration and builds an css statement.
Definition at line 1151 of file cr-statement.c. References cr_doc_handler_get_result(), cr_doc_handler_new(), cr_doc_handler_unref(), cr_parser_destroy(), cr_parser_new_from_buf(), cr_parser_parse_media(), cr_parser_set_sac_handler(), cr_parser_try_to_skip_spaces_and_comments(), cr_utils_trace_info, CRDocHandler, CRParser, CRStatement, and CRStatus. Referenced by cr_statement_parse_from_buf(). |
|
Definition at line 2173 of file cr-statement.c. References AT_PAGE_RULE_STMT, CR_BAD_PARAM_ERROR, CRDeclaration, CRStatement, _CRStatement::kind, and _CRStatement::page_rule. |
|
|
|
Parses a buffer that contains an "@page" production and, if the parsing succeeds, builds the page statement.
Definition at line 1444 of file cr-statement.c. References cr_doc_handler_get_result(), cr_doc_handler_new(), cr_doc_handler_unref(), cr_parser_destroy(), cr_parser_new_from_buf(), cr_parser_parse_page(), cr_parser_set_sac_handler(), cr_parser_try_to_skip_spaces_and_comments(), cr_utils_trace_info, CRDocHandler, CRParser, CRStatement, and CRStatus. Referenced by cr_statement_parse_from_buf(). |
|
Definition at line 2145 of file cr-statement.c. References AT_PAGE_RULE_STMT, CR_BAD_PARAM_ERROR, cr_declaration_ref(), cr_declaration_unref(), CRDeclaration, CRStatement, _CRStatement::kind, and _CRStatement::page_rule. |
|
|
|
Destructor of CRStatement.
Definition at line 2555 of file cr-statement.c. References CRStatement, _CRStatement::next, and _CRStatement::prev. Referenced by cr_statement_ruleset_parse_from_buf(), and cr_stylesheet_destroy(). |
|
Tries to parse a buffer and says whether if the content of the buffer is a css statement as defined by the "Core CSS Grammar" (chapter 4 of the css spec) or not.
Definition at line 912 of file cr-statement.c. References cr_parser_destroy(), cr_parser_new_from_buf(), cr_parser_parse_statement_core(), cr_parser_set_use_core_grammar(), CRParser, and CRStatus. |
|
Dumps the css2 statement to a file.
Definition at line 2401 of file cr-statement.c. References cr_statement_to_string(), and CRStatement. |
|
Dumps an rule statement to a file.
Definition at line 2466 of file cr-statement.c. References AT_CHARSET_RULE_STMT, and CRStatement. |
|
Dumps a font face rule statement to a file.
Definition at line 2443 of file cr-statement.c. References AT_FONT_FACE_RULE_STMT, and CRStatement. |
|
Dumps an rule statement to a file.
Definition at line 2534 of file cr-statement.c. References AT_IMPORT_RULE_STMT, CRStatement, _CRStatement::import_rule, and _CRStatement::kind. |
|
Dumps an rule statement to a file.
Definition at line 2513 of file cr-statement.c. References AT_MEDIA_RULE_STMT, and CRStatement. |
|
Definition at line 2489 of file cr-statement.c. References AT_PAGE_RULE_STMT, CRStatement, _CRStatement::kind, and _CRStatement::page_rule. |
|
Dumps a ruleset statement to a file.
Definition at line 2423 of file cr-statement.c. References CRStatement. |
|
Parses a buffer that contains an "@font-face" rule and builds an instance of CRStatement of type AT_FONT_FACE_RULE_STMT out of it.
Definition at line 1642 of file cr-statement.c. References cr_doc_handler_get_result(), cr_doc_handler_new(), cr_doc_handler_unref(), CR_OK, cr_parser_destroy(), cr_parser_new_from_buf(), cr_parser_parse_font_face(), cr_parser_set_sac_handler(), cr_parser_try_to_skip_spaces_and_comments(), CRDocHandler, CRParser, CRStatement, and CRStatus. Referenced by cr_statement_parse_from_buf(). |
|
Use an index to get a CRStatement from the statement list.
Definition at line 1858 of file cr-statement.c. References CRStatement, and _CRStatement::next. Referenced by cr_statement_at_media_get_from_list(), and cr_stylesheet_statement_get_from_list(). |
|
Gets the sheets that contains the current statement.
Definition at line 1725 of file cr-statement.c. References CR_BAD_PARAM_ERROR, CRStatement, CRStyleSheet, and _CRStatement::parent_sheet. |
|
Definition at line 2362 of file cr-statement.c. References cr_statement_to_string(), cr_utils_trace_info, CRStatement, _CRStatement::next, and _CRStatement::prev. |
|
Creates a new instance of CRStatement of type CRAtCharsetRule.
Definition at line 1514 of file cr-statement.c. References _CRAtCharsetRule::charset, _CRStatement::charset_rule, cr_statement_set_parent_sheet(), cr_utils_trace_info, CRAtCharsetRule, CRStatement, CRString, CRStyleSheet, and _CRStatement::kind. Referenced by cr_statement_at_charset_rule_parse_from_buf(). |
|
Creates an instance of CRStatement of type CRAtFontFaceRule.
Definition at line 1602 of file cr-statement.c. References cr_statement_set_parent_sheet(), cr_utils_trace_info, CRAtFontFaceRule, CRDeclaration, CRStatement, CRStyleSheet, _CRAtFontFaceRule::decl_list, _CRStatement::font_face_rule, and _CRStatement::kind. |
|
Creates a new instance of #CRStatment of type CRAtImportRule.
Definition at line 1280 of file cr-statement.c. References cr_statement_set_parent_sheet(), cr_utils_trace_info, CRAtImportRule, CRStatement, CRString, CRStyleSheet, _CRStatement::import_rule, _CRStatement::kind, _CRAtImportRule::media_list, _CRAtImportRule::sheet, and _CRAtImportRule::url. Referenced by cr_statement_at_import_rule_parse_from_buf(). |
|
Instanciates an instance of CRStatement of type AT_MEDIA_RULE_STMT ( ruleset).
Definition at line 1223 of file cr-statement.c. References cr_statement_set_parent_sheet(), cr_utils_trace_info, CRAtMediaRule, CRStatement, CRStyleSheet, _CRStatement::kind, _CRAtMediaRule::media_list, _CRStatement::media_rule, _CRStatement::next, _CRRuleSet::parent_media_rule, _CRStatement::ruleset, RULESET_STMT, and _CRAtMediaRule::rulesets. |
|
Creates a new instance of CRStatement of type CRAtPageRule.
Definition at line 1398 of file cr-statement.c. References cr_declaration_ref(), cr_statement_set_parent_sheet(), cr_utils_trace_info, CRAtPageRule, CRDeclaration, CRStatement, CRString, CRStyleSheet, _CRStatement::kind, and _CRStatement::page_rule. |
|
Creates a new instance of CRStatement of type #CRRulSet.
Definition at line 1088 of file cr-statement.c. References cr_selector_ref(), cr_statement_append(), cr_statement_set_parent_sheet(), cr_utils_trace_info, CRDeclaration, CRRuleSet, CRStatement, CRStyleSheet, _CRRuleSet::decl_list, _CRStatement::kind, _CRStatement::media_rule, _CRRuleSet::parent_media_rule, _CRStatement::ruleset, _CRAtMediaRule::rulesets, and _CRRuleSet::sel_list. |
|
Return the number of rules in the statement list;.
Definition at line 1838 of file cr-statement.c. References CRStatement, and _CRStatement::next. Referenced by cr_statement_at_media_nr_rules(), and cr_stylesheet_nr_rules(). |
|
Parses a buffer that contains a css statement and returns an instance of CRStatement in case of successfull parsing. TODO: at support of "@import" rules.
Definition at line 951 of file cr-statement.c. References cr_statement_at_charset_rule_parse_from_buf(), cr_statement_at_import_rule_parse_from_buf(), cr_statement_at_media_rule_parse_from_buf(), cr_statement_at_page_rule_parse_from_buf(), cr_statement_font_face_rule_parse_from_buf(), cr_statement_ruleset_parse_from_buf(), and CRStatement. |
|
Prepends the an instance of CRStatement to the current statement list.
Definition at line 1767 of file cr-statement.c. References CRStatement, _CRStatement::next, and _CRStatement::prev. |
|
Appends a declaration to the current statement.
Definition at line 2001 of file cr-statement.c. References CR_BAD_PARAM_ERROR, cr_declaration_append(), CR_ERROR, CRDeclaration, CRStatement, _CRRuleSet::decl_list, _CRStatement::kind, _CRStatement::ruleset, and RULESET_STMT. |
|
Appends a declaration to the current ruleset statement.
Definition at line 1975 of file cr-statement.c. References CR_BAD_PARAM_ERROR, cr_declaration_append2(), CR_ERROR, CRDeclaration, CRStatement, CRString, CRTerm, _CRRuleSet::decl_list, _CRStatement::kind, _CRStatement::ruleset, and RULESET_STMT. |
|
Gets a pointer to the list of declaration contained in the ruleset statement.
Definition at line 1908 of file cr-statement.c. References CR_BAD_PARAM_ERROR, CRDeclaration, CRStatement, _CRRuleSet::decl_list, _CRStatement::kind, _CRStatement::ruleset, and RULESET_STMT. |
|
Gets a pointer to the selector list contained in the current ruleset statement.
Definition at line 1930 of file cr-statement.c. References CR_BAD_PARAM_ERROR, CRStatement, _CRStatement::kind, _CRStatement::ruleset, RULESET_STMT, and _CRRuleSet::sel_list. |
|
Parses a buffer that contains a ruleset statement an instanciates a CRStatement of type RULESET_STMT.
Definition at line 1020 of file cr-statement.c. References cr_doc_handler_get_result(), cr_doc_handler_new(), cr_doc_handler_unref(), cr_parser_destroy(), cr_parser_new_from_buf(), cr_parser_parse_ruleset(), cr_parser_set_sac_handler(), cr_parser_try_to_skip_spaces_and_comments(), cr_statement_destroy(), CRDocHandler, CRParser, CRStatement, and CRStatus. Referenced by cr_statement_parse_from_buf(). |
|
Sets a declaration list to the current ruleset statement.
Definition at line 1948 of file cr-statement.c. References CR_BAD_PARAM_ERROR, cr_declaration_destroy(), CRDeclaration, CRStatement, _CRRuleSet::decl_list, _CRStatement::kind, _CRStatement::ruleset, RULESET_STMT, and _CRRuleSet::sel_list. |
|
Sets a selector list to a ruleset statement.
Definition at line 1881 of file cr-statement.c. References CR_BAD_PARAM_ERROR, cr_selector_ref(), cr_selector_unref(), CRStatement, _CRStatement::kind, _CRStatement::ruleset, RULESET_STMT, and _CRRuleSet::sel_list. |
|
Sets the container stylesheet.
Definition at line 1711 of file cr-statement.c. References CR_BAD_PARAM_ERROR, CRStatement, CRStyleSheet, and _CRStatement::parent_sheet. Referenced by cr_statement_new_at_charset_rule(), cr_statement_new_at_font_face_rule(), cr_statement_new_at_import_rule(), cr_statement_new_at_media_rule(), cr_statement_new_at_page_rule(), and cr_statement_new_ruleset(). |
|
Serializes a css statement into a string.
Definition at line 2316 of file cr-statement.c. References AT_CHARSET_RULE_STMT, AT_FONT_FACE_RULE_STMT, AT_IMPORT_RULE_STMT, AT_MEDIA_RULE_STMT, AT_PAGE_RULE_STMT, cr_utils_trace_info, CRStatement, and RULESET_STMT. Referenced by cr_statement_dump(), cr_statement_list_to_string(), and cr_stylesheet_to_string(). |
|
Unlinks a statement from the statements list.
Some sanity checks first Now, the real unlinking job. Definition at line 1793 of file cr-statement.c. References CRStatement, _CRStatement::next, _CRStatement::parent_sheet, _CRStatement::prev, and _CRStyleSheet::statements. |
|
Definition at line 118 of file cr-statement.h. |
|
page selector. Is a pseudo selector Definition at line 121 of file cr-statement.h. Referenced by cr_additional_sel_one_to_string(), cr_additional_sel_to_string(), cr_attr_sel_to_string(), cr_enc_handler_resolve_enc_alias(), cr_pseudo_to_string(), and cr_rgb_set_from_name(). |
|
Definition at line 122 of file cr-statement.h. |