/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
/*
* This file is part of The Croco Library
*
* Copyright (C) 2002-2004 Dodji Seketeli
*
* 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
*/
#include "string.h"
#include "cr-stylesheet.h"
/**
*@file
*The definition of the #CRStyleSheet class
*/
/**
*Constructor of the #CRStyleSheet class.
*@param the initial list of css statements.
*@return the newly built css2 stylesheet, or NULL in case of error.
*/
{
if (!result) {
cr_utils_trace_info ("Out of memory");
return NULL;
}
if (a_stmts)
return result;
}
/**
*@param a_this the current instance of #CRStyleSheet
*@return the serialized stylesheet.
*/
gchar *
{
if (a_this->statements) {
}
}
if (str) {
}
}
if (stringue) {
}
return str ;
}
/**
*Dumps the current css2 stylesheet to a file.
*@param a_this the current instance of #CRStyleSheet.
*@param a_fp the destination file
*/
void
{
if (str) {
}
}
/**
*Return the number of rules in the stylesheet.
*@param a_this the current instance of #CRStyleSheet.
*@return number of rules in the stylesheet.
*/
{
}
/**
*Use an index to get a CRStatement from the rules in a given stylesheet.
*@param a_this the current instance of #CRStatement.
*@param itemnr the index into the rules.
*@return CRStatement at position itemnr, if itemnr > number of rules - 1,
*it will return NULL.
*/
{
}
void
{
}
{
return TRUE;
}
return FALSE;
}
/**
*Destructor of the #CRStyleSheet class.
*@param a_this the current instance of the #CRStyleSheet class.
*/
void
{
if (a_this->statements) {
}
}