color_tools.exporters.soc_exporter

LibreOffice/OpenOffice SOC palette exporter.

Exports named RGB colors to the StarOffice Color (.soc) XML format used by LibreOffice and OpenOffice.

SOC files contain a color-table root element and one draw:color element per palette entry.

class color_tools.exporters.soc_exporter.SOCExporter[source]

Bases: PaletteExporter

Export color palettes in LibreOffice/OpenOffice SOC format.

OFFICE_NS = 'urn:oasis:names:tc:opendocument:xmlns:office:1.0'
DRAW_NS = 'urn:oasis:names:tc:opendocument:xmlns:drawing:1.0'
SVG_NS = 'http://www.w3.org/2000/svg'
OOO_NS = 'http://openoffice.org/2004/office'
property metadata: ExporterMetadata

Return metadata describing the SOC exporter.