Name
itcluno::OfficeUtilities - A Helper Class for itcluno::OpenOffice
Synopsis
Inheritance
Procedures
itcluno::OfficeUtilities::cellRangeToRowColumnList cellrangeconvert a cell range (e.g. A1:B1, Z5:Z5, EF37:AZ123) to a list of column start, row start, column end and row end number
Return-Value: a list containing the startcolumn, startrow, endcolumn and endrow (all starting at 0)
itcluno::OfficeUtilities::cellToRowColumn cellconvert a cell name (e.g. A1, Z5, EF37) to a list of column and row number
Return-Value: a list containing the column and row (both starting at 0)
itcluno::OfficeUtilities::charToCol cconvert the column name (e.g. A, Z, EF) to column number
Return-Value: the column (starting at 0)
itcluno::OfficeUtilities::constant class valueget the constant value (as symbolic name) in the class
Return-Value: the numeric value
itcluno::OfficeUtilities::enum class valueget the constant value (as symbolic name) in the class
Return-Value: the numeric value
itcluno::OfficeUtilities::filenameToURL filename factorynormalize a filename to the form file://...
Return-Value: the normalized filename
itcluno::OfficeUtilities::getChangedConfig configListconvenience routine which compares the actual options with the initial option
Return-Value: a list of list/value pairs containing the option and the value of the changed configuration options
itcluno::OfficeUtilities::getUnitFactor unitthe unit may be one of cm, mm, i, in or inch
Return-Value: the numeric value as 1/100th of a mm
itcluno::OfficeUtilities::makeSequence valueList {structure ""}creates a sequence (optionally of the given structure) (used everywhere an "array" is needed)
Return-Value: returns a handler for a tcluno::sequence
itcluno::OfficeUtilities::setAnchor tabletype anchor {unit 100}converts tk anchor values to OOo anchor properties dependant on the tabletype (unfortunately the properties are different for SpreadSheet and TextTable). The unit is the conversion factor of 1/100th mm to 1 pixel
Return-Value: returns a list of property names and their values
itcluno::OfficeUtilities::setPadX tabletype paddingconverts tk padding values to OOo padding properties dependant on the tabletype (unfortunately the properties are different for SpreadSheet and TextTable)
Return-Value: returns a list of property names and their values
itcluno::OfficeUtilities::setPadY tabletype anchor {unit 100}converts tk padding values to OOo padding properties dependanton the tabletype (unfortunately the properties are different for SpreadSheet and TextTable)
Return-Value: returns a list of property names and their values
itcluno::OfficeUtilities::tkFont2ooFont fontconverts a tk font name to an OOo font name, which is in fact a list of property/value pairs
Return-Value: returns a list of property names and their values
itcluno::OfficeUtilities::tkColor2ooColor class valueconverts a tk color (either in name or hex notation) into a OOo color. Typoe must bee one of: BackColor, CharColorm or CellBackColor (depending of the color type you need in your OOo document)
Return-Value: returns a color value in the form 0xRRGGBB
Bugs
no bugs known, but of course no software is bug free. If found one, file them to the bug section on our sourceforge page.
ToDo
a lot of new features which I find useful. If you find that anything useful is missing, please let me know via the bug report
Top