Dillo v3.1.1-119-g140d9ebd
|
A list of CssProperty objects. More...
#include <css.hh>
Public Member Functions | |
CssPropertyList (bool ownerOfStrings=false) | |
CssPropertyList (const CssPropertyList &p, bool deep=false) | |
~CssPropertyList () | |
void | set (CssPropertyName name, CssValueType type, CssPropertyValue value) |
Set property to a given name and type. | |
void | apply (CssPropertyList *props) |
Merge properties into argument property list. | |
bool | isSafe () |
void | print () |
void | ref () |
void | unref () |
Public Member Functions inherited from lout::misc::SimpleVector< CssProperty > | |
SimpleVector (int initAlloc=1) | |
SimpleVector (const SimpleVector &o) | |
~SimpleVector () | |
int | size () const |
Return the number of elements put into this vector. | |
bool | empty () const |
CssProperty * | getArray () const |
CssProperty * | detachArray () |
void | increase () |
Increase the vector size by one. | |
void | setSize (int newSize) |
Set the size explicitly. | |
void | setSize (int newSize, CssProperty t) |
Set the size explicitly and initialize new values. | |
CssProperty * | getRef (int i) const |
Return the reference of one element. | |
CssProperty | get (int i) const |
Return the one element, explicitly. | |
CssProperty * | getFirstRef () const |
Return the reference of the first element (convenience method). | |
CssProperty | getFirst () const |
Return the first element, explicitly. | |
CssProperty * | getLastRef () const |
Return the reference of the last element (convenience method). | |
CssProperty | getLast () const |
Return the last element, explicitly. | |
void | set (int i, CssProperty t) |
Store an object in the vector. | |
void | setLast (CssProperty t) |
Store an object at the end of the vector. | |
void | copyTo (SimpleVector< CssProperty > *dest, int thisStart=0, int thisLast=-1, int destStart=0) |
Copies some elements into another vector of the same type. | |
Private Attributes | |
int | refCount |
bool | ownerOfStrings |
bool | safe |
A list of CssProperty objects.
|
inline |
Definition at line 337 of file css.hh.
References ownerOfStrings, refCount, and safe.
CssPropertyList::CssPropertyList | ( | const CssPropertyList & | p, |
bool | deep = false |
||
) |
Definition at line 26 of file css.cc.
References CSS_TYPE_STRING, CSS_TYPE_SYMBOL, dStrdup(), lout::misc::SimpleVector< CssProperty >::getRef(), ownerOfStrings, refCount, safe, lout::misc::SimpleVector< CssProperty >::size(), CssPropertyValue::strVal, CssProperty::type, and CssProperty::value.
CssPropertyList::~CssPropertyList | ( | ) |
Definition at line 49 of file css.cc.
References CssProperty::free(), lout::misc::SimpleVector< CssProperty >::getRef(), ownerOfStrings, and lout::misc::SimpleVector< CssProperty >::size().
void CssPropertyList::apply | ( | CssPropertyList * | props | ) |
Merge properties into argument property list.
Definition at line 87 of file css.cc.
References CSS_TYPE_STRING, CSS_TYPE_SYMBOL, dStrdup(), lout::misc::SimpleVector< CssProperty >::getRef(), ownerOfStrings, set(), lout::misc::SimpleVector< CssProperty >::size(), CssPropertyValue::strVal, and CssProperty::value.
Referenced by CssRule::apply(), CssContext::apply(), and StyleEngine::inheritNonCssHints().
|
inline |
void CssPropertyList::print | ( | ) |
Definition at line 102 of file css.cc.
References lout::misc::SimpleVector< CssProperty >::getRef(), CssProperty::print(), and lout::misc::SimpleVector< CssProperty >::size().
Referenced by CssRule::print().
|
inline |
Definition at line 351 of file css.hh.
References refCount.
Referenced by CssRule::CssRule(), and CssParser::parseRuleset().
void CssPropertyList::set | ( | CssPropertyName | name, |
CssValueType | type, | ||
CssPropertyValue | value | ||
) |
Set property to a given name and type.
Definition at line 58 of file css.cc.
References CSS_PROPERTY_BACKGROUND_IMAGE, CSS_PROPERTY_DISPLAY, CssProperty::free(), lout::misc::SimpleVector< CssProperty >::getRef(), lout::misc::SimpleVector< CssProperty >::increase(), CssProperty::name, ownerOfStrings, safe, lout::misc::SimpleVector< CssProperty >::size(), CssProperty::type, and CssProperty::value.
Referenced by apply(), CssParser::parseDeclaration(), and StyleEngine::setNonCssHint().
|
inline |
Definition at line 352 of file css.hh.
References refCount.
Referenced by CssParser::parseRuleset(), and CssRule::~CssRule().
|
private |
Definition at line 333 of file css.hh.
Referenced by apply(), CssPropertyList(), CssPropertyList(), set(), and ~CssPropertyList().
|
private |
Definition at line 332 of file css.hh.
Referenced by CssPropertyList(), CssPropertyList(), ref(), and unref().
|
private |
Definition at line 334 of file css.hh.
Referenced by CssPropertyList(), CssPropertyList(), isSafe(), and set().