ODFPY  1.2.0
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 (arg)
 
def odf.attrconverters.cnv_angle (attribute, arg, element)
 
def odf.attrconverters.cnv_anyURI (attribute, arg, element)
 
def odf.attrconverters.cnv_boolean (attribute, arg, element)
 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 (attribute, arg, element)
 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 (attribute, arg, element)
 
def odf.attrconverters.cnv_data_source_has_labels (attribute, arg, element)
 
def odf.attrconverters.cnv_date (attribute, arg, element)
 A dateOrDateTime value is either an [xmlschema-2] date value or an [xmlschema-2] dateTime value. More...
 
def odf.attrconverters.cnv_dateTime (attribute, arg, element)
 A dateOrDateTime value is either an [xmlschema-2] date value or an [xmlschema-2] dateTime value. More...
 
def odf.attrconverters.cnv_double (attribute, arg, element)
 
def odf.attrconverters.cnv_draw_aspect (attribute, arg, element)
 
def odf.attrconverters.cnv_duration (attribute, arg, element)
 
def odf.attrconverters.cnv_family (attribute, arg, element)
 A style family. More...
 
def odf.attrconverters.cnv_formula (attribute, arg, element)
 A string containing a formula. More...
 
def odf.attrconverters.cnv_ID (attribute, arg, element)
 
def odf.attrconverters.cnv_IDREF (attribute, arg, element)
 
def odf.attrconverters.cnv_integer (attribute, arg, element)
 
def odf.attrconverters.cnv_language (attribute, arg, element)
 
def odf.attrconverters.cnv_legend_position (attribute, arg, element)
 
def odf.attrconverters.cnv_length (attribute, arg, element)
 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 (attribute, arg, element)
 
def odf.attrconverters.cnv_list_linkage_type (attribute, arg, element)
 
def odf.attrconverters.cnv_metavaluetype (attribute, arg, element)
 
def odf.attrconverters.cnv_major_minor (attribute, arg, element)
 
def odf.attrconverters.cnv_namespacedToken (attribute, arg, element)
 
def odf.attrconverters.cnv_NCName (attribute, arg, element)
 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 (attribute, arg, element)
 
def odf.attrconverters.cnv_DrawNameRef (attribute, arg, element)
 
def odf.attrconverters.cnv_NCNames (attribute, arg, element)
 
def odf.attrconverters.cnv_nonNegativeInteger (attribute, arg, element)
 
def odf.attrconverters.cnv_percent (attribute, arg, element)
 
def odf.attrconverters.cnv_points (attribute, arg, element)
 
def odf.attrconverters.cnv_positiveInteger (attribute, arg, element)
 
def odf.attrconverters.cnv_rowOrCol (attribute, arg, element)
 
def odf.attrconverters.cnv_string (attribute, arg, element)
 
def odf.attrconverters.cnv_stroke_linecap (attribute, arg, element)
 
def odf.attrconverters.cnv_textnoteclass (attribute, arg, element)
 
def odf.attrconverters.cnv_time (attribute, arg, element)
 
def odf.attrconverters.cnv_token (attribute, arg, element)
 
def odf.attrconverters.cnv_viewbox (attribute, arg, element)
 
def odf.attrconverters.cnv_xlinkshow (attribute, arg, element)
 
def odf.attrconverters.cnv_xlinktype (attribute, arg, element)
 

Variables

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