00001 /* -*- Mode: C; indent-tabs-mode:nil; c-basic-offset: 8-*- */ 00002 00003 /* 00004 * This file is part of The Croco Library 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of version 2.1 of the 00008 * GNU Lesser General Public 00009 * License as published by the Free Software Foundation. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the 00017 * GNU Lesser General Public License 00018 * along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00020 * USA 00021 * 00022 */ 00023 00024 /* 00025 *$Id: cr-cascade.h,v 1.6 2004/01/29 22:05:14 dodji Exp $ 00026 */ 00027 00028 #ifndef __CR_CASCADE_H__ 00029 #define __CR_CASCADE_H__ 00030 00031 #include "cr-stylesheet.h" 00032 00033 /** 00034 *@file 00035 *the declaration of the #CRCascade class. 00036 */ 00037 00038 G_BEGIN_DECLS 00039 00040 00041 typedef struct _CRCascadePriv CRCascadePriv ; 00042 00043 /** 00044 *An abstraction of the "Cascade" defined 00045 *in the css2 spec, chapter 6.4. 00046 */ 00047 typedef struct _CRCascade CRCascade ; 00048 00049 struct _CRCascade 00050 { 00051 CRCascadePriv *priv ; 00052 }; 00053 00054 00055 CRCascade * cr_cascade_new (CRStyleSheet *a_author_sheet, 00056 CRStyleSheet *a_user_sheet, 00057 CRStyleSheet *a_ua_sheet) ; 00058 00059 CRStyleSheet * cr_cascade_get_sheet (CRCascade *a_this, 00060 enum CRStyleOrigin a_origin) ; 00061 00062 enum CRStatus cr_cascade_set_sheet (CRCascade *a_this, 00063 CRStyleSheet *a_sheet, 00064 enum CRStyleOrigin a_origin) ; 00065 00066 void cr_cascade_ref (CRCascade *a_this) ; 00067 00068 void cr_cascade_unref (CRCascade *a_this) ; 00069 00070 void cr_cascade_destroy (CRCascade *a_this) ; 00071 00072 G_END_DECLS 00073 00074 #endif /*__CR_CASCADE_H__*/