Logo Search packages:      
Sourcecode: calibre version File versions

cssutils::css::cssvalue::CSSPrimitiveValue Class Reference

Inheritance diagram for cssutils::css::cssvalue::CSSPrimitiveValue:

cssutils::css::cssvalue::CSSValue cssutils::util::_NewBase cssutils::util::_BaseClass cssutils::css::cssvalue::CSSFunction cssutils::css::cssvalue::RGBColor cssutils::css::cssvalue::ExpressionValue

List of all members.


Detailed Description

Represents a single CSS Value.  May be used to determine the value of a
specific style property currently set in a block or to set a specific
style property explicitly within the block. Might be obtained from the
getPropertyCSSValue method of CSSStyleDeclaration.

Conversions are allowed between absolute values (from millimeters to
centimeters, from degrees to radians, and so on) but not between
relative values. (For example, a pixel value cannot be converted to a
centimeter value.) Percentage values can't be converted since they are
relative to the parent value (or another property value). There is one
exception for color percentage values: since a color percentage value
is relative to the range 0-255, a color percentage value can be
converted to a number; (see also the RGBColor interface).

Definition at line 317 of file cssvalue.py.


Public Member Functions

def __init__
def __init__
def __repr__
def __str__
def getCounterValue
def getFloatValue
def getRectValue
def getRGBColorValue
def getStringValue
def setFloatValue
def setStringValue

Public Attributes

 CSS_COUNTER
 cssText
 wellformed

Static Public Attributes

int CSS_ATTR = 22
int CSS_CM = 6
int CSS_COUNTER = 23
int CSS_CUSTOM = 3
int CSS_DEG = 11
int CSS_DIMENSION = 18
int CSS_EMS = 3
int CSS_EXS = 4
int CSS_GRAD = 13
int CSS_HZ = 16
int CSS_IDENT = 21
int CSS_IN = 8
int CSS_INHERIT = 0
int CSS_KHZ = 17
int CSS_MM = 7
int CSS_MS = 14
int CSS_NUMBER = 1
int CSS_PC = 10
int CSS_PERCENTAGE = 2
int CSS_PRIMITIVE_VALUE = 1
int CSS_PT = 9
int CSS_PX = 5
int CSS_RAD = 12
int CSS_RECT = 24
int CSS_RGBACOLOR = 26
int CSS_RGBCOLOR = 25
int CSS_S = 15
int CSS_STRING = 19
int CSS_UNICODE_RANGE = 27
int CSS_UNKNOWN = 0
int CSS_URI = 20
int CSS_VALUE_LIST = 2
tuple cssText
 cssValueType = CSSValue.CSS_PRIMITIVE_VALUE
tuple cssValueTypeString
tuple primitiveType
tuple primitiveTypeString
tuple seq

Private Member Functions

def __set_primitiveType
def _getCSSPrimitiveTypeString
def _getCssText
def _getNumDim
def _getPrimitiveType
def _getPrimitiveTypeString
def _setCssText
def _unitDIMENSION
def _unitFUNCTION

Private Attributes

 _primitiveType

Static Private Attributes

 __types = cssutils.cssproductions.CSSProductions
dictionary __unitbytype
dictionary _converter
tuple _countertypes = (CSS_COUNTER,)
tuple _floattypes
tuple _lengthtypes
tuple _rbgtypes = (CSS_RGBCOLOR, CSS_RGBACOLOR)
tuple _recttypes = (CSS_RECT,)
tuple _reNumDim = re.compile(ur'([+-]?\d*\.\d+|[+-]?\d+)(.*)$', re.I| re.U|re.X)
tuple _stringtypes = (CSS_ATTR, CSS_IDENT, CSS_STRING, CSS_URI)
list _unitnames

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index