ODFPY: odf/attrconverters.py File Reference

ODFPY 1.2.0 |

All Classes Namespaces Files Functions Variables
Classes | Namespaces | Functions | Variables
attrconverters.py File Reference

Go to the source code of this file.

## Classes
class | odf.attrconverters.AttrConverters

## Namespaces
| odf.attrconverters

## Functions
def | odf.attrconverters.make_NCName
def | odf.attrconverters.cnv_angle
def | odf.attrconverters.cnv_anyURI
def | odf.attrconverters.cnv_boolean
| XML Schema Part 2: Datatypes Second Edition An instance of a datatype that is defined as boolean can have the following legal literals {true, false, 1, 0}. More...
def | odf.attrconverters.cnv_color
| A RGB color in conformance with §5.9.11 of [XSL], that is a RGB color in notation “::rrggbb”, where rr, gg and bb are 8-bit hexadecimal digits. More...
def | odf.attrconverters.cnv_configtype
def | odf.attrconverters.cnv_data_source_has_labels
def | odf.attrconverters.cnv_date
| A dateOrDateTime value is either an [xmlschema-2] date value or an [xmlschema-2] dateTime value. More...
def | odf.attrconverters.cnv_dateTime
| A dateOrDateTime value is either an [xmlschema-2] date value or an [xmlschema-2] dateTime value. More...
def | odf.attrconverters.cnv_double
def | odf.attrconverters.cnv_draw_aspect
def | odf.attrconverters.cnv_duration
def | odf.attrconverters.cnv_family
| A style family. More...
def | odf.attrconverters.cnv_formula
| A string containing a formula. More...
def | odf.attrconverters.cnv_ID
def | odf.attrconverters.cnv_IDREF
def | odf.attrconverters.cnv_integer
def | odf.attrconverters.cnv_language
def | odf.attrconverters.cnv_legend_position
def | odf.attrconverters.cnv_length
| A (positive or negative) physical length, consisting of magnitude and unit, in conformance with the Units of Measure defined in §5.9.13 of [XSL]. More...
def | odf.attrconverters.cnv_lengthorpercent
def | odf.attrconverters.cnv_list_linkage_type
def | odf.attrconverters.cnv_metavaluetype
def | odf.attrconverters.cnv_major_minor
def | odf.attrconverters.cnv_namespacedToken
def | odf.attrconverters.cnv_NCName
| NCName is defined in http://www.w3.org/TR/REC-xml-names/#NT-NCName Essentially an XML name minus ':'. More...
def | odf.attrconverters.cnv_StyleNameRef
def | odf.attrconverters.cnv_DrawNameRef
def | odf.attrconverters.cnv_NCNames
def | odf.attrconverters.cnv_nonNegativeInteger
def | odf.attrconverters.cnv_percent
def | odf.attrconverters.cnv_points
def | odf.attrconverters.cnv_positiveInteger
def | odf.attrconverters.cnv_rowOrCol
def | odf.attrconverters.cnv_string
def | odf.attrconverters.cnv_stroke_linecap
def | odf.attrconverters.cnv_textnoteclass
def | odf.attrconverters.cnv_time
def | odf.attrconverters.cnv_token
def | odf.attrconverters.cnv_viewbox
def | odf.attrconverters.cnv_xlinkshow
def | odf.attrconverters.cnv_xlinktype

## Variables
tuple | odf.attrconverters.pattern_color = re.compile(r'#[0-9a-fA-F]{6}')
tuple | odf.attrconverters.pattern_vector3D = re.compile(r'\([ ]*-?([0-9]+(\.[0-9]*)?|\.[0-9]+)([ ]+-?([0-9]+(\.[0-9]*)?|\.[0-9]+)){2}[ ]*\)')
tuple | odf.attrconverters.pattern_language = re.compile(r'[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*')
tuple | odf.attrconverters.pattern_length = re.compile(r'-?([0-9]+(\.[0-9]*)?|\.[0-9]+)((cm)|(mm)|(in)|(pt)|(pc)|(px))')
tuple | odf.attrconverters.pattern_namespacedToken = re.compile(r'[0-9a-zA-Z_]+:[0-9a-zA-Z._\-]+')
tuple | odf.attrconverters.pattern_percent = re.compile(r'-?([0-9]+(\.[0-9]*)?|\.[0-9]+)%')
tuple | odf.attrconverters.pattern_points = re.compile(r'-?[0-9]+,-?[0-9]+([ ]+-?[0-9]+,-?[0-9]+)*')
tuple | odf.attrconverters.pattern_viewbox = re.compile(r'-?[0-9]+([ ]+-?[0-9]+){3}$')
dictionary | odf.attrconverters.attrconverters