Logo Search packages:      
Sourcecode: inkscape version File versions

enum CRStatus cr_statement_at_import_rule_get_imported_sheet ( CRStatement *  a_this,
CRStyleSheet **  a_sheet 
)

Gets the stylesheet contained by the rule statement.

Parameters:
a_this the current rule statement.
a_sheet out parameter. The returned stylesheet if and only if the function returns CR_OK.
Returns:
CR_OK upon sucessfull completion, an error code otherwise.

Definition at line 2055 of file cr-statement.c.

References AT_IMPORT_RULE_STMT.

{
        g_return_val_if_fail (a_this
                              && a_this->type == AT_IMPORT_RULE_STMT
                              && a_this->kind.import_rule,
                              CR_BAD_PARAM_ERROR);
        *a_sheet = a_this->kind.import_rule->sheet;
        return CR_OK;

}


Generated by  Doxygen 1.6.0   Back to index