The Variables is dict-like container for subclasses of Variable. This is superclass for SimpleVariables and UserFields
Warning
Don’t create instances of this class and its subclasses yourself, use document.body.variables or document.body.userfields
Get Variable instance by varible name
Parameters: | key (str) – Variable name |
---|---|
Return type: | Variable instance |
Returns: | Variable class instance |
Set Variable instance by varible name
Parameters: |
|
---|---|
Return type: | Variable instance |
Returns: | Variable class instance |
The SimpleVariables is dict-like container for SimpleVariable, it’s a subclass of Variables
The UserFields is dict-like container for UserField, it’s a subclass of Variables
This class represents a variable. The instances of it can be found in Variables and accessed through document.body.variables[‘somevar’] or document.body.userfields[‘somevar’]
Type of the variable can be ‘string’, ‘float’, ‘boolean’ or other described in 19.385 of “OpenDocument-v1.2-os-part1”
Type: | str |
---|
Value of the variable converted to Python type according to Variable.type
Type: | str, float, boolean |
---|
See SimpleVariableInstance and UserFieldInstance
Warning
Use with caution can work a bit unexpected
This class represents a simple variable. The instances of it can be found in SimpleVariables and accessed through document.body.variables[‘somevar’]
List of SimpleVariableInstance subclasses that represents occurrences of variable in document see 7.4.4 - 6 of “OpenDocument-v1.2-os-part1”
Warning
Use with caution can work a bit unexpected
This class represents a simple variable. The instances of it can be found in SimpleVariables and accessed through document.body.variables[‘somevar’]
Base class for SimpleVariableGet, SimpleVariableSet and SimpleVariableInput
Type of the variable can be ‘string’, ‘float’, ‘boolean’ or other described in 19.385 of “OpenDocument-v1.2-os-part1”
Type: | str |
---|
Value of the variable converted to Python type according to SimpleVariableInstance.type
Type: | str, float, boolean |
---|
Subclass of SimpleVariableInstance handling “text:variable-get” tag.
Subclass of SimpleVariableInstance handling “text:variable-set” tag.
Subclass of SimpleVariableInstance handling “text:variable-input” tag.