/* -*- Mode: C; indent-tabs-mode:nil; c-basic-offset: 8-*- */
/*
* This file is part of The Croco Library
*
* 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
*
* Author: Dodji Seketeli
* See COPYRIGHTS file for copyright information.
*
*/
#include "cr-additional-sel.h"
#include "string.h"
/**
* CRAdditionalSel:
*
* #CRAdditionalSel abstracts an additionnal selector.
* An additional selector is the selector part
* that comes after the combination of type selectors.
* It can be either "a class selector (the .class part),
* a pseudo class selector, an attribute selector
* or an id selector.
*/
/**
* cr_additional_sel_new:
*
* Default constructor of #CRAdditionalSel.
* Returns the newly build instance of #CRAdditionalSel.
*/
cr_additional_sel_new (void)
{
cr_utils_trace_debug ("Out of memory");
return NULL;
}
return result;
}
/**
* cr_additional_sel_new_with_type:
* @a_sel_type: the type of the newly built instance
* of #CRAdditionalSel.
*
* Constructor of #CRAdditionalSel.
* Returns the newly built instance of #CRAdditionalSel.
*/
{
result = cr_additional_sel_new ();
return result;
}
/**
* cr_additional_sel_set_class_name:
* @a_this: the "this pointer" of the current instance
* of #CRAdditionalSel .
* @a_class_name: the new class name to set.
*
* Sets a new class name to a
* CLASS additional selector.
*/
void
{
}
}
/**
* cr_additional_sel_set_id_name:
* @a_this: the "this pointer" of the current instance
* of #CRAdditionalSel .
* @a_id: the new id to set.
*
* Sets a new id name to an
* ID additional selector.
*/
void
{
}
}
/**
* cr_additional_sel_set_pseudo:
* @a_this: the "this pointer" of the current instance
* of #CRAdditionalSel .
* @a_pseudo: the new pseudo to set.
*
* Sets a new pseudo to a
* PSEUDO additional selector.
*/
void
{
}
}
/**
* cr_additional_sel_set_attr_sel:
* @a_this: the "this pointer" of the current instance
* of #CRAdditionalSel .
* @a_sel: the new instance of #CRAttrSel to set.
*
* Sets a new instance of #CRAttrSel to
* a ATTRIBUTE additional selector.
*/
void
{
}
}
/**
* cr_additional_sel_append:
* @a_this: the "this pointer" of the current instance
* of #CRAdditionalSel .
* @a_sel: the new instance to #CRAdditional to append.
*
* Appends a new instance of #CRAdditional to the
* current list of #CRAdditional.
*
* Returns the new list of CRAdditionalSel or NULL if an error arises.
*/
{
return a_sel;
}
return NULL;
return a_this;
}
/**
* cr_additional_sel_prepend:
* @a_this: the "this pointer" of the current instance
* of #CRAdditionalSel .
* @a_sel: the new instance to #CRAdditional to preappend.
*
* Preppends a new instance of #CRAdditional to the
* current list of #CRAdditional.
*
* Returns the new list of CRAdditionalSel or NULL if an error arises.
*/
{
return a_sel;
}
return a_sel;
}
guchar *
{
case CLASS_ADD_SELECTOR:
{
if (name) {
(str_buf, ".%s",
name);
}
}
}
break;
case ID_ADD_SELECTOR:
{
if (name) {
(str_buf, "#%s",
name);
}
}
}
break;
{
if (tmp_str) {
(str_buf, ":%s",
tmp_str);
}
}
}
break;
case ATTRIBUTE_ADD_SELECTOR:
if (tmp_str) {
}
}
break;
default:
break;
}
}
if (str_buf) {
}
return result;
}
guchar *
{
case CLASS_ADD_SELECTOR:
{
if (name) {
(str_buf, ".%s",
name);
}
}
}
break;
case ID_ADD_SELECTOR:
{
if (name) {
(str_buf, "#%s",
name);
}
}
}
break;
{
if (tmp_str) {
(str_buf, ":%s",
tmp_str);
}
}
}
break;
case ATTRIBUTE_ADD_SELECTOR:
if (tmp_str) {
}
}
break;
default:
break;
}
if (str_buf) {
}
return result;
}
/**
* cr_additional_sel_dump:
* @a_this: the "this pointer" of the current instance of
* #CRAdditionalSel.
* @a_fp: the destination file.
*
* Dumps the current instance of #CRAdditionalSel to a file
*/
void
{
if (a_this) {
if (tmp_str) {
}
}
}
/**
* cr_additional_sel_destroy:
* @a_this: the "this pointer" of the current instance
* of #CRAdditionalSel .
*
* Destroys an instance of #CRAdditional.
*/
void
{
case CLASS_ADD_SELECTOR:
break;
break;
case ID_ADD_SELECTOR:
break;
case ATTRIBUTE_ADD_SELECTOR:
break;
default:
break;
}
}
}