Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
cr-declaration.h
Go to the documentation of this file.
1/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
2
3/*
4 * This file is part of The Croco Library
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of version 2.1 of the GNU Lesser General Public
8 * License as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
18 * USA
19 *
20 * See the COPYRIGHTS file for copyright information.
21 */
22
23#ifndef __CR_DECLARATION_H__
24#define __CR_DECLARATION_H__
25
26#include <stdio.h>
27#include "cr-utils.h"
28#include "cr-term.h"
29#include "cr-parsing-location.h"
30
31G_BEGIN_DECLS
32
38/*forward declaration of what is defined in cr-statement.h*/
39typedef struct _CRStatement CRStatement ;
40
48{
50 CRString *property ;
51
54
55 /*the ruleset that contains this declaration*/
57
58 /*the next declaration*/
60
61 /*the previous one declaration*/
63
64 /*does the declaration have the important keyword ?*/
65 gboolean important ;
66
67 glong ref_count ;
68
70 /*reserved for future usage*/
71 gpointer rfu0 ;
72 gpointer rfu1 ;
73 gpointer rfu2 ;
74 gpointer rfu3 ;
75} ;
76
77
79 CRString *a_property,
80 CRTerm *a_value) ;
81
82
84 const guchar *a_str,
85 enum CREncoding a_enc) ;
86
88 enum CREncoding a_enc) ;
89
91 CRDeclaration *a_new) ;
92
94 CRString *a_prop,
95 CRTerm *a_value) ;
96
98 CRDeclaration *a_new) ;
99
101
102void
104 FILE *a_fp, glong a_indent,
105 gboolean a_one_per_line) ;
106
108 FILE *a_fp, glong a_indent) ;
109
111
113 int itemnr) ;
114
116 const guchar *a_str) ;
117
119 gulong a_indent) ;
120
122 gulong a_indent) ;
123
125 gulong a_indent,
126 gboolean a_one_decl_per_line) ;
127
129
131
133
134G_END_DECLS
135
136#endif /*__CR_DECLARATION_H__*/
CRDeclaration * cr_declaration_get_from_list(CRDeclaration *a_this, int itemnr)
CRDeclaration * cr_declaration_append(CRDeclaration *a_this, CRDeclaration *a_new)
gchar * cr_declaration_to_string(CRDeclaration const *a_this, gulong a_indent)
void cr_declaration_dump(CRDeclaration const *a_this, FILE *a_fp, glong a_indent, gboolean a_one_per_line)
void cr_declaration_ref(CRDeclaration *a_this)
void cr_declaration_dump_one(CRDeclaration const *a_this, FILE *a_fp, glong a_indent)
CRDeclaration * cr_declaration_unlink(CRDeclaration *a_decl)
CRDeclaration * cr_declaration_prepend(CRDeclaration *a_this, CRDeclaration *a_new)
CRDeclaration * cr_declaration_parse_list_from_buf(const guchar *a_str, enum CREncoding a_enc)
void cr_declaration_destroy(CRDeclaration *a_this)
CRDeclaration * cr_declaration_new(CRStatement *a_statement, CRString *a_property, CRTerm *a_value)
CRDeclaration * cr_declaration_get_by_prop_name(CRDeclaration *a_this, const guchar *a_str)
CRDeclaration * cr_declaration_parse_from_buf(CRStatement *a_statement, const guchar *a_str, enum CREncoding a_enc)
gboolean cr_declaration_unref(CRDeclaration *a_this)
guchar * cr_declaration_list_to_string(CRDeclaration const *a_this, gulong a_indent)
guchar * cr_declaration_list_to_string2(CRDeclaration const *a_this, gulong a_indent, gboolean a_one_decl_per_line)
gint cr_declaration_nr_props(CRDeclaration const *a_this)
CRDeclaration * cr_declaration_append2(CRDeclaration *a_this, CRString *a_prop, CRTerm *a_value)
The declaration of the CRParsingLocation object.
typedefG_BEGIN_DECLS struct _CRString CRString
Definition cr-string.h:37
Declaration of the CRTerm class.
The Croco library basic types definitions And global definitions.
CREncoding
Encoding values.
Definition cr-utils.h:84
CRParsingLocation location
CRString *CRTerm * value
The property.
CRDeclaration * next
CRStatement * parent_statement
CRDeclaration * prev
The abstraction of css statement as defined in the chapter 4 and appendix D.1 of the css2 spec.
An abstraction of a css2 term as defined in the CSS2 spec in appendix D.1: term ::= [ NUMBER S* | PER...
Definition cr-term.h:83