Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

cr-additional-sel.c File Reference

#include "cr-additional-sel.h"
#include "string.h"

Go to the source code of this file.

Functions

CRAdditionalSelcr_additional_sel_new (void)
 Default constructor of CRAdditionalSel.

CRAdditionalSelcr_additional_sel_new_with_type (enum AddSelectorType a_sel_type)
 Constructor of CRAdditionalSel.

void cr_additional_sel_set_class_name (CRAdditionalSel *a_this, GString *a_class_name)
 Sets a new class name to a CLASS additional selector.

void cr_additional_sel_set_id_name (CRAdditionalSel *a_this, GString *a_id)
 Sets a new id name to an ID additional selector.

void cr_additional_sel_set_pseudo (CRAdditionalSel *a_this, CRPseudo *a_pseudo)
 Sets a new pseudo to a PSEUDO additional selector.

void cr_additional_sel_set_attr_sel (CRAdditionalSel *a_this, CRAttrSel *a_sel)
 Sets a new instance of CRAttrSel to a ATTRIBUTE additional selector.

CRAdditionalSelcr_additional_sel_append (CRAdditionalSel *a_this, CRAdditionalSel *a_sel)
 Appends a new instance of #CRAdditional to the current list of #CRAdditional.

CRAdditionalSelcr_additional_sel_prepend (CRAdditionalSel *a_this, CRAdditionalSel *a_sel)
 Preppends a new instance of #CRAdditional to the current list of #CRAdditional.

guchar * cr_additional_sel_to_string (CRAdditionalSel *a_this)
void cr_additional_sel_dump (CRAdditionalSel *a_this, FILE *a_fp)
 Dumps the current instance of CRAdditionalSel to a file.

void cr_additional_sel_destroy (CRAdditionalSel *a_this)
 Destroys an instance of #CRAdditional.


Function Documentation

CRAdditionalSel* cr_additional_sel_append CRAdditionalSel a_this,
CRAdditionalSel a_sel
 

Appends a new instance of #CRAdditional to the current list of #CRAdditional.

Parameters:
a_this the "this pointer" of the current instance of CRAdditionalSel .
a_sel the new instance to #CRAdditional to append.
Returns:
the new list of CRAdditionalSel or NULL if an error arises.

Definition at line 171 of file cr-additional-sel.c.

References _CRAdditionalSel::next, and _CRAdditionalSel::prev.

void cr_additional_sel_destroy CRAdditionalSel a_this  ) 
 

Destroys an instance of #CRAdditional.

Parameters:
a_this the "this pointer" of the current instance of CRAdditionalSel .

Definition at line 365 of file cr-additional-sel.c.

References CRAdditionalSelectorContent::attr_sel, ATTRIBUTE_ADD_SELECTOR, CLASS_ADD_SELECTOR, CRAdditionalSelectorContent::class_name, _CRAdditionalSel::content, cr_attr_sel_destroy(), cr_pseudo_destroy(), ID_ADD_SELECTOR, CRAdditionalSelectorContent::id_name, _CRAdditionalSel::next, CRAdditionalSelectorContent::pseudo, PSEUDO_CLASS_ADD_SELECTOR, and _CRAdditionalSel::type.

Referenced by cr_simple_sel_destroy().

void cr_additional_sel_dump CRAdditionalSel a_this,
FILE *  a_fp
 

Dumps the current instance of CRAdditionalSel to a file.

Parameters:
a_this the "this pointer" of the current instance of CRAdditionalSel.
a_fp the destination file.

Definition at line 341 of file cr-additional-sel.c.

References cr_additional_sel_to_string().

CRAdditionalSel* cr_additional_sel_new void   ) 
 

Default constructor of CRAdditionalSel.

Returns:
the newly build instance of CRAdditionalSel.

Definition at line 35 of file cr-additional-sel.c.

References cr_utils_trace_debug.

Referenced by cr_additional_sel_new_with_type().

CRAdditionalSel* cr_additional_sel_new_with_type enum AddSelectorType  a_sel_type  ) 
 

Constructor of CRAdditionalSel.

Parameters:
a_sel_type the type of the newly built instance of CRAdditionalSel.
Returns:
the newly built instance of CRAdditionalSel.

Definition at line 60 of file cr-additional-sel.c.

References cr_additional_sel_new(), and _CRAdditionalSel::type.

CRAdditionalSel* cr_additional_sel_prepend CRAdditionalSel a_this,
CRAdditionalSel a_sel
 

Preppends a new instance of #CRAdditional to the current list of #CRAdditional.

Parameters:
a_this the "this pointer" of the current instance of CRAdditionalSel .
a_sel the new instance to #CRAdditional to preappend.
Returns:
the new list of CRAdditionalSel or NULL if an error arises.

Definition at line 207 of file cr-additional-sel.c.

References _CRAdditionalSel::next, and _CRAdditionalSel::prev.

void cr_additional_sel_set_attr_sel CRAdditionalSel a_this,
CRAttrSel a_sel
 

Sets a new instance of CRAttrSel to a ATTRIBUTE additional selector.

Parameters:
a_this the "this pointer" of the current instance of CRAdditionalSel .
a_sel the new instance of CRAttrSel to set.

Definition at line 148 of file cr-additional-sel.c.

References CRAdditionalSelectorContent::attr_sel, ATTRIBUTE_ADD_SELECTOR, _CRAdditionalSel::content, cr_attr_sel_destroy(), and _CRAdditionalSel::type.

void cr_additional_sel_set_class_name CRAdditionalSel a_this,
GString *  a_class_name
 

Sets a new class name to a CLASS additional selector.

Parameters:
a_this the "this pointer" of the current instance of CRAdditionalSel .
a_class_name the new class name to set.

Definition at line 82 of file cr-additional-sel.c.

References CLASS_ADD_SELECTOR, CRAdditionalSelectorContent::class_name, _CRAdditionalSel::content, and _CRAdditionalSel::type.

void cr_additional_sel_set_id_name CRAdditionalSel a_this,
GString *  a_id
 

Sets a new id name to an ID additional selector.

Parameters:
a_this the "this pointer" of the current instance of CRAdditionalSel .
a_id the new id to set.

Definition at line 104 of file cr-additional-sel.c.

References _CRAdditionalSel::content, ID_ADD_SELECTOR, CRAdditionalSelectorContent::id_name, and _CRAdditionalSel::type.

void cr_additional_sel_set_pseudo CRAdditionalSel a_this,
CRPseudo a_pseudo
 

Sets a new pseudo to a PSEUDO additional selector.

Parameters:
a_this the "this pointer" of the current instance of CRAdditionalSel .
a_pseudo the new pseudo to set.

Definition at line 126 of file cr-additional-sel.c.

References _CRAdditionalSel::content, cr_pseudo_destroy(), CRAdditionalSelectorContent::pseudo, PSEUDO_CLASS_ADD_SELECTOR, and _CRAdditionalSel::type.

guchar* cr_additional_sel_to_string CRAdditionalSel a_this  ) 
 

Definition at line 225 of file cr-additional-sel.c.

References CRAdditionalSelectorContent::attr_sel, ATTRIBUTE_ADD_SELECTOR, CLASS_ADD_SELECTOR, CRAdditionalSelectorContent::class_name, _CRAdditionalSel::content, cr_attr_sel_to_string(), cr_pseudo_to_string(), ID_ADD_SELECTOR, CRAdditionalSelectorContent::id_name, name, _CRAdditionalSel::next, CRAdditionalSelectorContent::pseudo, PSEUDO_CLASS_ADD_SELECTOR, and _CRAdditionalSel::type.

Referenced by cr_additional_sel_dump(), and cr_simple_sel_to_string().


Generated on Wed Oct 1 01:36:49 2003 for Libcroco by doxygen 1.3.3