/* Set a property that requires code to evaluate.  */
int ecParseSpecialProperty(RTF_Context *ctx, IPROP iprop, int val)
/* Set a property that requires code to evaluate.  */
int ecParseSpecialProperty(RTF_Context *ctx, IPROP iprop, int val)
{
    switch (iprop)
    {
        case ipropFontFamily:
            ctx->values[0] = val;
            return ecOK;
        case ipropColorRed:
            ctx->values[0] = val;
            return ecOK;
        case ipropColorGreen:
            ctx->values[1] = val;
            return ecOK;
        case ipropColorBlue:
            ctx->values[2] = val;
            return ecOK;
        case ipropPard:
            memset(&ctx->pap, 0, sizeof(ctx->pap));
            return ecOK;
        case ipropPlain:
            memset(&ctx->chp, 0, sizeof(ctx->chp));
            return ecOK;
        case ipropSectd:
            memset(&ctx->sep, 0, sizeof(ctx->sep));
            return ecOK;
        default:
            return ecBadTable;
    }
    return ecBadTable;
}