/* -*- Mode: C; indent-tabs-mode:nil; c-basic-offset: 8-*- */
/*
* This file is part of The Croco Library
*
* Copyright (C) 2002-2003 Dodji Seketeli <dodji@seketeli.org>
*
* modify it under the terms of version 2.1 of the
* GNU Lesser General Public
* License as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the
* GNU Lesser General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*/
/*
*$Id$
*/
#include <string.h>
#include "cr-cascade.h"
struct _CRCascadePriv {
/**
*the 3 style sheets of the cascade:
*author, user, and useragent sheet.
*Intended to be addressed by
*sheets[ORIGIN_AUTHOR] or sheets[ORIGIN_USER]
*of sheets[ORIGIN_UA] ;
*/
};
/**
* cr_cascade_new:
*@a_author_sheet: the author origin style sheet. May be NULL.
*@a_user_sheet: the user origin style sheet. May be NULL.
*@a_ua_sheet: the user agent origin style sheet. May be NULL.
*
*Constructor of the #CRCascade class.
*Note that all three parameters of this
*method are ref counted and their refcount is increased.
*Their refcount will be decreased at the destruction of
*the instance of #CRCascade.
*So the caller should not call their destructor. The caller
*
*Returns the newly built instance of CRCascade or NULL if
*an error arose during constrution.
*/
{
if (!result) {
cr_utils_trace_info ("Out of memory");
return NULL;
}
cr_utils_trace_info ("Out of memory");
return NULL;
}
if (a_author_sheet) {
}
if (a_user_sheet) {
}
if (a_ua_sheet) {
}
return result;
}
/**
* cr_cascade_get_sheet:
*@a_this: the current instance of #CRCascade.
*@a_origin: the origin of the style sheet as
*defined in the css2 spec in chapter 6.4.
*Gets a given origin sheet.
*
*Gets a sheet, part of the cascade.
*Note that the returned stylesheet
*is refcounted so if the caller wants
*to manage its lifecycle, it must use
*cr_stylesheet_ref()/cr_stylesheet_unref() instead
*of the cr_stylesheet_destroy() method.
*Returns the style sheet, or NULL if it does not
*exist.
*/
{
}
/**
* cr_cascade_set_sheet:
*@a_this: the current instance of #CRCascade.
*@a_sheet: the stylesheet to set.
*@a_origin: the origin of the stylesheet.
*
*Sets a stylesheet in the cascade
*
*Returns CR_OK upon successfull completion, an error
*code otherwise.
*/
enum CRStatus
{
&& a_sheet
return CR_OK;
}
/**
*cr_cascade_ref:
*@a_this: the current instance of #CRCascade
*
*Increases the reference counter of the current instance
*of #CRCascade.
*/
void
{
}
/**
* cr_cascade_unref:
*@a_this: the current instance of
*#CRCascade.
*
*Decrements the reference counter associated
*to this instance of #CRCascade. If the reference
*counter reaches zero, the instance is destroyed
*using cr_cascade_destroy()
*/
void
{
}
}
/**
* cr_cascade_destroy:
* @a_this: the current instance of #CRCascade
*
* Destructor of #CRCascade.
*/
void
{
gulong i = 0;
== TRUE) {
}
}
}
}
}