Logo Search packages:      
Sourcecode: inkscape version File versions

cr-om-parser.c File Reference


Detailed Description

The definition of the CSS Object Model Parser. This parser uses (and sits) the SAC api of libcroco defined in cr-parser.h and cr-doc-handler.h

Definition in file cr-om-parser.c.

#include <string.h>
#include "cr-utils.h"
#include "cr-om-parser.h"

Go to the source code of this file.

Classes

struct  _CROMParserPriv
struct  _ParsingContext

Defines

#define PRIVATE(a_this)   ((a_this)->priv)
#define UNUSED(_param)   ((void)(_param))

Typedefs

typedef struct _ParsingContext ParsingContext

Functions

static void charset (CRDocHandler *a_this, CRString *a_charset, CRParsingLocation *a_location)
void cr_om_parser_destroy (CROMParser *a_this)
static enum CRStatus cr_om_parser_init_default_sac_handler (CROMParser *a_this)
CROMParser * cr_om_parser_new (CRInput *a_input)
enum CRStatus cr_om_parser_parse_buf (CROMParser *a_this, const guchar *a_buf, gulong a_len, enum CREncoding a_enc, CRStyleSheet **a_result)
enum CRStatus cr_om_parser_parse_file (CROMParser *a_this, const guchar *a_file_uri, enum CREncoding a_enc, CRStyleSheet **a_result)
enum CRStatus cr_om_parser_parse_paths_to_cascade (CROMParser *a_this, const guchar *a_author_path, const guchar *a_user_path, const guchar *a_ua_path, enum CREncoding a_encoding, CRCascade **a_result)
enum CRStatus cr_om_parser_simply_parse_buf (const guchar *a_buf, gulong a_len, enum CREncoding a_enc, CRStyleSheet **a_result)
enum CRStatus cr_om_parser_simply_parse_file (const guchar *a_file_path, enum CREncoding a_enc, CRStyleSheet **a_result)
enum CRStatus cr_om_parser_simply_parse_paths_to_cascade (const guchar *a_author_path, const guchar *a_user_path, const guchar *a_ua_path, enum CREncoding a_encoding, CRCascade **a_result)
static void destroy_context (ParsingContext *a_ctxt)
static void end_document (CRDocHandler *a_this)
static void end_font_face (CRDocHandler *a_this)
static void end_media (CRDocHandler *a_this, GList *a_media_list)
static void end_page (CRDocHandler *a_this, CRString *a_page, CRString *a_pseudo_page)
static void end_selector (CRDocHandler *a_this, CRSelector *a_selector_list)
static void error (CRDocHandler *a_this)
static void import_style (CRDocHandler *a_this, GList *a_media_list, CRString *a_uri, CRString *a_uri_default_ns, CRParsingLocation *a_location)
static ParsingContext * new_parsing_context (void)
static void property (CRDocHandler *a_this, CRString *a_name, CRTerm *a_expression, gboolean a_important)
static void start_document (CRDocHandler *a_this)
static void start_font_face (CRDocHandler *a_this, CRParsingLocation *a_location)
static void start_media (CRDocHandler *a_this, GList *a_media_list, CRParsingLocation *a_location)
static void start_page (CRDocHandler *a_this, CRString *a_page, CRString *a_pseudo_page, CRParsingLocation *a_location)
static void start_selector (CRDocHandler *a_this, CRSelector *a_selector_list)
static void unrecoverable_error (CRDocHandler *a_this)


Generated by  Doxygen 1.6.0   Back to index