• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/gettext-0.17/gettext-tools/gnulib-lib/libcroco/

Lines Matching refs:a_this

36 static void cr_statement_clear (CRStatement * a_this);
39 parse_font_face_start_font_face_cb (CRDocHandler * a_this,
48 status = cr_doc_handler_set_ctxt (a_this, stmt);
53 parse_font_face_unrecoverable_error_cb (CRDocHandler * a_this)
59 g_return_if_fail (a_this);
62 status = cr_doc_handler_get_ctxt (a_this, (gpointer *) stmtptr);
70 cr_doc_handler_set_ctxt (a_this, NULL);
76 parse_font_face_property_cb (CRDocHandler * a_this,
86 g_return_if_fail (a_this && a_name);
89 status = cr_doc_handler_get_ctxt (a_this, (gpointer *) stmtptr);
121 parse_font_face_end_font_face_cb (CRDocHandler * a_this)
127 g_return_if_fail (a_this);
130 status = cr_doc_handler_get_ctxt (a_this, (gpointer *) resultptr);
134 status = cr_doc_handler_set_result (a_this, result);
139 parse_page_start_page_cb (CRDocHandler * a_this,
159 status = cr_doc_handler_set_ctxt (a_this, stmt);
164 parse_page_unrecoverable_error_cb (CRDocHandler * a_this)
170 g_return_if_fail (a_this);
173 status = cr_doc_handler_get_ctxt (a_this, (gpointer *) stmtptr);
182 cr_doc_handler_set_ctxt (a_this, NULL);
187 parse_page_property_cb (CRDocHandler * a_this,
198 status = cr_doc_handler_get_ctxt (a_this, (gpointer *) stmtptr);
213 parse_page_end_page_cb (CRDocHandler * a_this,
222 status = cr_doc_handler_get_ctxt (a_this, (gpointer *) stmtptr);
226 status = cr_doc_handler_set_result (a_this, stmt);
231 parse_at_media_start_media_cb (CRDocHandler * a_this,
239 g_return_if_fail (a_this && a_this->priv);
252 status = cr_doc_handler_set_ctxt (a_this, at_media);
254 status = cr_doc_handler_set_result (a_this, at_media);
259 parse_at_media_unrecoverable_error_cb (CRDocHandler * a_this)
265 g_return_if_fail (a_this);
268 status = cr_doc_handler_get_result (a_this, (gpointer *) stmtptr);
277 cr_doc_handler_set_ctxt (a_this, NULL);
278 cr_doc_handler_set_result (a_this, NULL);
283 parse_at_media_start_selector_cb (CRDocHandler * a_this,
291 g_return_if_fail (a_this && a_this->priv && a_sellist);
294 status = cr_doc_handler_get_ctxt (a_this, (gpointer *) at_media_ptr);
299 status = cr_doc_handler_set_ctxt (a_this, ruleset);
304 parse_at_media_property_cb (CRDocHandler * a_this,
319 g_return_if_fail (a_this && a_name);
325 status = cr_doc_handler_get_ctxt (a_this,
338 parse_at_media_end_selector_cb (CRDocHandler * a_this,
350 g_return_if_fail (a_this && a_sellist);
353 status = cr_doc_handler_get_ctxt (a_this, (gpointer *) stmtptr);
359 (a_this, stmt->kind.ruleset->parent_media_rule);
364 parse_at_media_end_media_cb (CRDocHandler * a_this,
371 g_return_if_fail (a_this && a_this->priv);
374 status = cr_doc_handler_get_ctxt (a_this,
377 status = cr_doc_handler_set_result (a_this, at_media);
381 parse_ruleset_start_selector_cb (CRDocHandler * a_this,
386 g_return_if_fail (a_this && a_this->priv && a_sellist);
391 cr_doc_handler_set_result (a_this, ruleset);
395 parse_ruleset_unrecoverable_error_cb (CRDocHandler * a_this)
402 status = cr_doc_handler_get_result (a_this, (gpointer *) stmtptr);
411 cr_doc_handler_set_result (a_this, NULL);
416 parse_ruleset_property_cb (CRDocHandler * a_this,
426 g_return_if_fail (a_this && a_this->priv && a_name);
432 status = cr_doc_handler_get_result (a_this, (gpointer *) rulesetptr);
445 parse_ruleset_end_selector_cb (CRDocHandler * a_this,
452 g_return_if_fail (a_this && a_sellist);
455 status = cr_doc_handler_get_result (a_this, (gpointer *) resultptr);
463 cr_statement_clear (CRStatement * a_this)
465 g_return_if_fail (a_this);
467 switch (a_this->type) {
471 if (!a_this->kind.ruleset)
473 if (a_this->kind.ruleset->sel_list) {
474 cr_selector_unref (a_this->kind.ruleset->sel_list);
475 a_this->kind.ruleset->sel_list = NULL;
477 if (a_this->kind.ruleset->decl_list) {
479 (a_this->kind.ruleset->decl_list);
480 a_this->kind.ruleset->decl_list = NULL;
482 g_free (a_this->kind.ruleset);
483 a_this->kind.ruleset = NULL;
487 if (!a_this->kind.import_rule)
489 if (a_this->kind.import_rule->url) {
491 (a_this->kind.import_rule->url) ;
492 a_this->kind.import_rule->url = NULL;
494 g_free (a_this->kind.import_rule);
495 a_this->kind.import_rule = NULL;
499 if (!a_this->kind.media_rule)
501 if (a_this->kind.media_rule->rulesets) {
503 (a_this->kind.media_rule->rulesets);
504 a_this->kind.media_rule->rulesets = NULL;
506 if (a_this->kind.media_rule->media_list) {
509 for (cur = a_this->kind.media_rule->media_list;
517 g_list_free (a_this->kind.media_rule->media_list);
518 a_this->kind.media_rule->media_list = NULL;
520 g_free (a_this->kind.media_rule);
521 a_this->kind.media_rule = NULL;
525 if (!a_this->kind.page_rule)
528 if (a_this->kind.page_rule->decl_list) {
530 (a_this->kind.page_rule->decl_list);
531 a_this->kind.page_rule->decl_list = NULL;
533 if (a_this->kind.page_rule->name) {
535 (a_this->kind.page_rule->name);
536 a_this->kind.page_rule->name = NULL;
538 if (a_this->kind.page_rule->pseudo) {
540 (a_this->kind.page_rule->pseudo);
541 a_this->kind.page_rule->pseudo = NULL;
543 g_free (a_this->kind.page_rule);
544 a_this->kind.page_rule = NULL;
548 if (!a_this->kind.charset_rule)
551 if (a_this->kind.charset_rule->charset) {
553 (a_this->kind.charset_rule->charset);
554 a_this->kind.charset_rule->charset = NULL;
556 g_free (a_this->kind.charset_rule);
557 a_this->kind.charset_rule = NULL;
561 if (!a_this->kind.font_face_rule)
564 if (a_this->kind.font_face_rule->decl_list) {
566 (a_this->kind.font_face_rule->decl_list);
567 a_this->kind.font_face_rule->decl_list = NULL;
569 g_free (a_this->kind.font_face_rule);
570 a_this->kind.font_face_rule = NULL;
581 *@a_this: the current instance of #CRStatement
590 cr_statement_ruleset_to_string (CRStatement * a_this, glong a_indent)
596 g_return_val_if_fail (a_this && a_this->type == RULESET_STMT, NULL);
600 if (a_this->kind.ruleset->sel_list) {
605 cr_selector_to_string (a_this->kind.ruleset->
614 if (a_this->kind.ruleset->decl_list) {
616 (a_this->kind.ruleset->decl_list,
644 *@a_this: the current instance of #CRStatement to consider
654 cr_statement_font_face_rule_to_string (CRStatement * a_this,
660 g_return_val_if_fail (a_this
661 && a_this->type == AT_FONT_FACE_RULE_STMT,
664 if (a_this->kind.font_face_rule->decl_list) {
672 (a_this->kind.font_face_rule->decl_list,
695 *@a_this: the statement to serialize.
701 cr_statement_charset_to_string (CRStatement *a_this,
707 g_return_val_if_fail (a_this
708 && a_this->type == AT_CHARSET_RULE_STMT,
711 if (a_this->kind.charset_rule
712 && a_this->kind.charset_rule->charset
713 && a_this->kind.charset_rule->charset->stryng
714 && a_this->kind.charset_rule->charset->stryng->str) {
715 str = g_strndup (a_this->kind.charset_rule->charset->stryng->str,
716 a_this->kind.charset_rule->charset->stryng->len);
740 *@a_this: the current instance of #CRStatement. Must
745 cr_statement_at_page_rule_to_string (CRStatement *a_this,
755 if (a_this->kind.page_rule->name
756 && a_this->kind.page_rule->name->stryng) {
759 a_this->kind.page_rule->name->stryng->str) ;
763 if (a_this->kind.page_rule->pseudo
764 && a_this->kind.page_rule->pseudo->stryng) {
767 a_this->kind.page_rule->pseudo->stryng->str) ;
769 if (a_this->kind.page_rule->decl_list) {
773 (a_this->kind.page_rule->decl_list,
791 *@param a_this the current instance of #CRStatement
797 cr_statement_media_rule_to_string (CRStatement *a_this,
804 g_return_val_if_fail (a_this->type == AT_MEDIA_RULE_STMT,
807 if (a_this->kind.media_rule) {
812 for (cur = a_this->kind.media_rule->media_list; cur;
834 (a_this->kind.media_rule->rulesets,
852 cr_statement_import_rule_to_string (CRStatement *a_this,
858 g_return_val_if_fail (a_this
859 && a_this->type == AT_IMPORT_RULE_STMT
860 && a_this->kind.import_rule,
863 if (a_this->kind.import_rule->url
864 && a_this->kind.import_rule->url->stryng) {
867 str = g_strndup (a_this->kind.import_rule->url->stryng->str,
868 a_this->kind.import_rule->url->stryng->len);
879 if (a_this->kind.import_rule->media_list) {
882 for (cur = a_this->kind.import_rule->media_list;
1778 *@a_this: the current instance of #CRStatement.
1786 cr_statement_set_parent_sheet (CRStatement * a_this, CRStyleSheet * a_sheet)
1788 g_return_val_if_fail (a_this, CR_BAD_PARAM_ERROR);
1789 a_this->parent_sheet = a_sheet;
1796 *@a_this: the current #CRStatement.
1804 cr_statement_get_parent_sheet (CRStatement * a_this, CRStyleSheet ** a_sheet)
1806 g_return_val_if_fail (a_this && a_sheet, CR_BAD_PARAM_ERROR);
1807 *a_sheet = a_this->parent_sheet;
1814 *@a_this: the current instance of the statement list.
1822 cr_statement_append (CRStatement * a_this, CRStatement * a_new)
1828 if (!a_this) {
1833 for (cur = a_this; cur && cur->next; cur = cur->next) ;
1838 return a_this;
1844 *@a_this: the current instance of #CRStatement.
1854 cr_statement_prepend (CRStatement * a_this, CRStatement * a_new)
1860 if (!a_this)
1863 a_new->next = a_this;
1864 a_this->prev = a_new;
1875 *@a_this: the current statements list.
1926 *@a_this: the current instance of #CRStatement.
1933 cr_statement_nr_rules (CRStatement * a_this)
1938 g_return_val_if_fail (a_this, -1);
1940 for (cur = a_this; cur; cur = cur->next)
1948 *@a_this: the current instance of #CRStatement.
1957 cr_statement_get_from_list (CRStatement * a_this, int itemnr)
1962 g_return_val_if_fail (a_this, NULL);
1964 for (cur = a_this; cur; cur = cur->next)
1973 *@a_this: the current ruleset statement.
1984 cr_statement_ruleset_set_sel_list (CRStatement * a_this,
1987 g_return_val_if_fail (a_this && a_this->type == RULESET_STMT,
1990 if (a_this->kind.ruleset->sel_list)
1991 cr_selector_unref (a_this->kind.ruleset->sel_list);
1993 a_this->kind.ruleset->sel_list = a_sel_list;
2004 *@a_this: the current instance of #CRStatement.
2015 cr_statement_ruleset_get_declarations (CRStatement * a_this,
2018 g_return_val_if_fail (a_this
2019 && a_this->type == RULESET_STMT
2020 && a_this->kind.ruleset
2023 *a_decl_list = a_this->kind.ruleset->decl_list;
2031 *@a_this: the current ruleset statement.
2041 cr_statement_ruleset_get_sel_list (CRStatement * a_this, CRSelector ** a_list)
2043 g_return_val_if_fail (a_this && a_this->type == RULESET_STMT
2044 && a_this->kind.ruleset, CR_BAD_PARAM_ERROR);
2046 *a_list = a_this->kind.ruleset->sel_list;
2054 *@a_this: the current ruleset statement.
2063 cr_statement_ruleset_set_decl_list (CRStatement * a_this,
2066 g_return_val_if_fail (a_this && a_this->type == RULESET_STMT
2067 && a_this->kind.ruleset, CR_BAD_PARAM_ERROR);
2069 if (a_this->kind.ruleset->decl_list == a_list)
2072 if (a_this->kind.ruleset->sel_list) {
2073 cr_declaration_destroy (a_this->kind.ruleset->decl_list);
2076 a_this->kind.ruleset->sel_list = NULL;
2084 *@a_this: the current statement.
2094 cr_statement_ruleset_append_decl2 (CRStatement * a_this,
2100 g_return_val_if_fail (a_this && a_this->type == RULESET_STMT
2101 && a_this->kind.ruleset, CR_BAD_PARAM_ERROR);
2104 (a_this->kind.ruleset->decl_list,
2107 a_this->kind.ruleset->decl_list = new_decls;
2117 *@a_this: the current statement.
2123 cr_statement_ruleset_append_decl (CRStatement * a_this,
2128 g_return_val_if_fail (a_this && a_this->type == RULESET_STMT
2129 && a_this->kind.ruleset, CR_BAD_PARAM_ERROR);
2132 (a_this->kind.ruleset->decl_list, a_decl);
2134 a_this->kind.ruleset->decl_list = new_decls;
2143 *@a_this: the current @import rule.
2151 cr_statement_at_import_rule_set_imported_sheet (CRStatement * a_this,
2154 g_return_val_if_fail (a_this
2155 && a_this->type == AT_IMPORT_RULE_STMT
2156 && a_this->kind.import_rule,
2159 a_this->kind.import_rule->sheet = a_sheet;
2167 *@a_this: the current @import rule statement.
2175 cr_statement_at_import_rule_get_imported_sheet (CRStatement * a_this,
2178 g_return_val_if_fail (a_this
2179 && a_this->type == AT_IMPORT_RULE_STMT
2180 && a_this->kind.import_rule,
2182 *a_sheet = a_this->kind.import_rule->sheet;
2190 *@a_this: the current @import rule statement.
2198 cr_statement_at_import_rule_set_url (CRStatement * a_this,
2201 g_return_val_if_fail (a_this
2202 && a_this->type == AT_IMPORT_RULE_STMT
2203 && a_this->kind.import_rule,
2206 if (a_this->kind.import_rule->url) {
2207 cr_string_destroy (a_this->kind.import_rule->url);
2210 a_this->kind.import_rule->url = a_url;
2218 *@a_this: the current @import rule statement.
2226 cr_statement_at_import_rule_get_url (CRStatement * a_this,
2229 g_return_val_if_fail (a_this
2230 && a_this->type == AT_IMPORT_RULE_STMT
2231 && a_this->kind.import_rule,
2234 *a_url = a_this->kind.import_rule->url;
2242 *@a_this: the current instance of #CRStatement.
2246 cr_statement_at_media_nr_rules (CRStatement * a_this)
2248 g_return_val_if_fail (a_this
2249 && a_this->type == AT_MEDIA_RULE_STMT
2250 && a_this->kind.media_rule, CR_BAD_PARAM_ERROR);
2252 return cr_statement_nr_rules (a_this->kind.media_rule->rulesets);
2258 *@a_this: the current instance of #CRStatement.
2267 cr_statement_at_media_get_from_list (CRStatement * a_this, int itemnr)
2269 g_return_val_if_fail (a_this
2270 && a_this->type == AT_MEDIA_RULE_STMT
2271 && a_this->kind.media_rule, NULL);
2273 return cr_statement_get_from_list (a_this->kind.media_rule->rulesets,
2280 *@a_this: the current @page rule statement.
2289 cr_statement_at_page_rule_set_declarations (CRStatement * a_this,
2292 g_return_val_if_fail (a_this
2293 && a_this->type == AT_PAGE_RULE_STMT
2294 && a_this->kind.page_rule, CR_BAD_PARAM_ERROR);
2296 if (a_this->kind.page_rule->decl_list) {
2297 cr_declaration_unref (a_this->kind.page_rule->decl_list);
2300 a_this->kind.page_rule->decl_list = a_decl_list;
2312 *@a_this: the current @page rule statement.
2321 cr_statement_at_page_rule_get_declarations (CRStatement * a_this,
2324 g_return_val_if_fail (a_this
2325 && a_this->type == AT_PAGE_RULE_STMT
2326 && a_this->kind.page_rule, CR_BAD_PARAM_ERROR);
2328 *a_decl_list = a_this->kind.page_rule->decl_list;
2337 *@a_this: the current @charset rule statement.
2345 cr_statement_at_charset_rule_set_charset (CRStatement * a_this,
2348 g_return_val_if_fail (a_this
2349 && a_this->type == AT_CHARSET_RULE_STMT
2350 && a_this->kind.charset_rule,
2353 if (a_this->kind.charset_rule->charset) {
2354 cr_string_destroy (a_this->kind.charset_rule->charset);
2356 a_this->kind.charset_rule->charset = a_charset;
2362 *@a_this: the current @charset rule statement.
2372 cr_statement_at_charset_rule_get_charset (CRStatement * a_this,
2375 g_return_val_if_fail (a_this
2376 && a_this->type == AT_CHARSET_RULE_STMT
2377 && a_this->kind.charset_rule,
2380 *a_charset = a_this->kind.charset_rule->charset;
2388 *@a_this: the current @font-face rule statement.
2396 cr_statement_at_font_face_rule_set_decls (CRStatement * a_this,
2399 g_return_val_if_fail (a_this
2400 && a_this->type == AT_FONT_FACE_RULE_STMT
2401 && a_this->kind.font_face_rule,
2404 if (a_this->kind.font_face_rule->decl_list) {
2405 cr_declaration_unref (a_this->kind.font_face_rule->decl_list);
2408 a_this->kind.font_face_rule->decl_list = a_decls;
2417 *@a_this: the current @font-face rule statement.
2427 cr_statement_at_font_face_rule_get_decls (CRStatement * a_this,
2430 g_return_val_if_fail (a_this
2431 && a_this->type == AT_FONT_FACE_RULE_STMT
2432 && a_this->kind.font_face_rule,
2435 *a_decls = a_this->kind.font_face_rule->decl_list;
2443 *@a_this: the current @font-face rule statement.
2453 cr_statement_at_font_face_rule_add_decl (CRStatement * a_this,
2458 g_return_val_if_fail (a_this
2459 && a_this->type == AT_FONT_FACE_RULE_STMT
2460 && a_this->kind.font_face_rule,
2464 (a_this->kind.font_face_rule->decl_list,
2469 if (a_this->kind.font_face_rule->decl_list == NULL)
2472 a_this->kind.font_face_rule->decl_list = decls;
2481 *@a_this: the current statement to serialize
2490 cr_statement_to_string (CRStatement * a_this, gulong a_indent)
2494 if (!a_this)
2497 switch (a_this->type) {
2500 (a_this, a_indent);
2505 (a_this, a_indent) ;
2510 (a_this, a_indent);
2515 (a_this, a_indent);
2520 (a_this, a_indent);
2525 (a_this, a_indent);
2536 cr_statement_list_to_string (CRStatement *a_this, gulong a_indent)
2542 g_return_val_if_fail (a_this, NULL) ;
2549 for (cur_stmt = a_this ; cur_stmt;
2571 *@a_this: the current css2 statement.
2578 cr_statement_dump (CRStatement * a_this, FILE * a_fp, gulong a_indent)
2582 if (!a_this)
2585 str = cr_statement_to_string (a_this, a_indent) ;
2596 *@a_this: the current instance of #CRStatement.
2603 cr_statement_dump_ruleset (CRStatement * a_this, FILE * a_fp, glong a_indent)
2607 g_return_if_fail (a_fp && a_this);
2608 str = cr_statement_ruleset_to_string (a_this, a_indent);
2619 *@a_this: the current instance of font face rule statement.
2626 cr_statement_dump_font_face_rule (CRStatement * a_this, FILE * a_fp,
2630 g_return_if_fail (a_this
2631 && a_this->type == AT_FONT_FACE_RULE_STMT);
2633 str = cr_statement_font_face_rule_to_string (a_this,
2645 *@a_this: the current instance of the @charset rule statement.
2652 cr_statement_dump_charset (CRStatement * a_this, FILE * a_fp, gulong a_indent)
2656 g_return_if_fail (a_this && a_this->type == AT_CHARSET_RULE_STMT);
2658 str = cr_statement_charset_to_string (a_this,
2671 *@a_this: the statement to dump on stdout.
2678 cr_statement_dump_page (CRStatement * a_this, FILE * a_fp, gulong a_indent)
2682 g_return_if_fail (a_this
2683 && a_this->type == AT_PAGE_RULE_STMT
2684 && a_this->kind.page_rule);
2686 str = cr_statement_at_page_rule_to_string (a_this, a_indent) ;
2698 *@a_this: the statement to dump.
2705 cr_statement_dump_media_rule (CRStatement * a_this,
2710 g_return_if_fail (a_this->type == AT_MEDIA_RULE_STMT);
2712 str = cr_statement_media_rule_to_string (a_this, a_indent) ;
2729 cr_statement_dump_import_rule (CRStatement * a_this, FILE * a_fp,
2733 g_return_if_fail (a_this
2734 && a_this->type == AT_IMPORT_RULE_STMT
2736 && a_this->kind.import_rule);
2738 str = cr_statement_import_rule_to_string (a_this, a_indent) ;
2749 * @a_this: the current instance of #CRStatement.
2753 cr_statement_destroy (CRStatement * a_this)
2757 g_return_if_fail (a_this);
2760 for (cur = a_this; cur && cur->next; cur = cur->next) {
2768 g_free (a_this);