# -*- coding: utf-8 -*-
#
#	Copyright (C) 2012 by Igor E. Novikov
#
#	This program is free software: you can redistribute it and/or modify
#	it under the terms of the GNU General Public License as published by
#	the Free Software Foundation, either version 3 of the License, or
#	(at your option) any later version.
#
#	This program is distributed in the hope that it will be useful,
#	but WITHOUT ANY WARRANTY; without even the implied warranty of
#	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#	GNU General Public License for more details.
#
#	You should have received a copy of the GNU General Public License
#	along with this program.  If not, see <http://www.gnu.org/licenses/>.

SOURCE_LO = 'LibreOffice, The Document Foundation (http://www.libreoffice.org/)'
SOURCE_OO = 'Apache OpenOffice (http://www.openoffice.org/)'

SOC_PAL_TAG = 'office:color-table'
SOC_PAL_OO_TAG = 'ooo:color-table'

SOC_COLOR_TAG = 'draw:color'
SOC_COLOR_NAME_ATTR = 'draw:name'
SOC_COLOR_VAL_ATTR = 'draw:color'

SOC_PAL_ATTRS = {
"xmlns:office":"http://openoffice.org/2000/office",
"xmlns:style":"http://openoffice.org/2000/style",
"xmlns:text":"http://openoffice.org/2000/text",
"xmlns:table":"http://openoffice.org/2000/table",
"xmlns:draw":"http://openoffice.org/2000/drawing",
"xmlns:fo":"http://www.w3.org/1999/XSL/Format",
"xmlns:xlink":"http://www.w3.org/1999/xlink",
"xmlns:dc":"http://purl.org/dc/elements/1.1/",
"xmlns:meta":"http://openoffice.org/2000/meta",
"xmlns:number":"http://openoffice.org/2000/datastyle",
"xmlns:svg":"http://www.w3.org/2000/svg",
"xmlns:chart":"http://openoffice.org/2000/chart",
"xmlns:dr3d":"http://openoffice.org/2000/dr3d",
"xmlns:math":"http://www.w3.org/1998/Math/MathML",
"xmlns:form":"http://openoffice.org/2000/form",
"xmlns:script":"http://openoffice.org/2000/script",
"xmlns:config":"http://openoffice.org/2001/config",
}

SOC_PAL_OO_ATTRS = {
"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0",
"xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0",
"xmlns:xlink":"http://www.w3.org/1999/xlink",
"xmlns:svg":"http://www.w3.org/2000/svg",
"xmlns:ooo":"http://openoffice.org/2004/office",
}