Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

CRDocHandler* cr_doc_handler_new ( void   ) 

Constructor of CRDocHandler.

Returns:
the newly built instance of CRDocHandler

Definition at line 66 of file cr-doc-handler.c.

References cr_doc_handler_set_default_sac_handler(), and cr_utils_trace_info.

Referenced by cr_parser_set_default_sac_handler(), cr_statement_at_media_rule_parse_from_buf(), cr_statement_at_page_rule_parse_from_buf(), cr_statement_font_face_rule_parse_from_buf(), and cr_statement_ruleset_parse_from_buf().

{
        CRDocHandler *result = ( CRDocHandler *)g_try_malloc (sizeof (CRDocHandler));

        g_return_val_if_fail (result, NULL);

        memset (result, 0, sizeof (CRDocHandler));

        result->priv =  (CRDocHandlerPriv *)g_try_malloc (sizeof (CRDocHandlerPriv));
        if (!result->priv) {
                cr_utils_trace_info ("Out of memory exception");
                g_free (result);
                return NULL;
        }

        cr_doc_handler_set_default_sac_handler (result);

        return result;
}


Generated by  Doxygen 1.6.0   Back to index