office-gobmx/sd/xml/styles.xml
Maxim Monastirsky daab698b34 sd: replace hardcoded table styles with xml file
Including a new set of default styles, provided by Rafael Lima.
Some ui tests had to be modified, because the new borders are
thicker.

If you intend to edit the xml file, please keep in mind the
following requirements:

1) There should be a table template called "default". It's
applied to newly inserted tables.

2) There should be a cell style called "default". It's used for
new table styles.

3) Please make all cell styles inherit from "default" (directly
or indirectly), unless you intend to specify font names in them.
"default" has its font names filled programmatically based on
officecfg/registry/data/org/openoffice/VCL.xcu.

4) Whenever possible please use <style:table-cell-properties>
for cell properties, instead of the incorrect
<style:paragraph-properties> and <loext:graphic-properties>
we currently use for export. See tdf#72238 and tdf#72239.

Change-Id: I73dd4492fefb65b1870238aec7dc64f8076f6e95
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141825
Tested-by: Jenkins
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2022-11-29 09:39:22 +01:00

196 lines
12 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
-->
<office:styles xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0">
<style:style style:name="default" style:family="table-cell">
<style:table-cell-properties fo:background-color="#ffffff" fo:border="0.28pt solid #ffffff" fo:padding="0.1cm" style:vertical-align="top"/>
<style:text-properties style:use-window-font-color="true" fo:font-size="18pt" style:font-size-asian="18pt" style:font-size-complex="18pt" style:letter-kerning="true"/>
</style:style>
<style:style style:name="bg-none" style:family="table-cell" style:parent-style-name="default">
<style:table-cell-properties fo:background-color="transparent" fo:border="0.28pt solid #000000"/>
</style:style>
<style:style style:name="gray" style:family="table-cell" style:parent-style-name="default">
<style:table-cell-properties fo:background-color="#cccccc"/>
</style:style>
<style:style style:name="dark-gray" style:family="table-cell" style:parent-style-name="default">
<style:table-cell-properties fo:background-color="#999999"/>
</style:style>
<style:style style:name="black" style:family="table-cell" style:parent-style-name="default">
<style:table-cell-properties fo:background-color="#000000"/>
<style:text-properties fo:color="#ffffff"/>
</style:style>
<style:style style:name="black-with-border" style:family="table-cell" style:parent-style-name="default">
<style:table-cell-properties fo:background-color="#000000" fo:border="0.28pt solid #666666"/>
<style:text-properties fo:color="#ffffff"/>
</style:style>
<style:style style:name="gray-with-border" style:family="table-cell" style:parent-style-name="default">
<style:table-cell-properties fo:background-color="#cccccc" fo:border="0.28pt solid #666666"/>
</style:style>
<style:style style:name="white" style:family="table-cell" style:parent-style-name="default">
<style:table-cell-properties fo:background-color="#ffffff"/>
</style:style>
<style:style style:name="white-with-border" style:family="table-cell" style:parent-style-name="default">
<style:table-cell-properties fo:background-color="#ffffff" fo:border="0.28pt solid #666666"/>
</style:style>
<style:style style:name="blue-title" style:family="table-cell" style:parent-style-name="default">
<style:table-cell-properties fo:background-color="#5983B0"/>
<style:text-properties fo:color="#ffffff"/>
</style:style>
<style:style style:name="blue-title-with-border" style:family="table-cell" style:parent-style-name="default">
<style:table-cell-properties fo:background-color="#5983B0" fo:border="0.28pt solid #666666"/>
<style:text-properties fo:color="#ffffff"/>
</style:style>
<style:style style:name="blue-banded" style:family="table-cell" style:parent-style-name="default">
<style:table-cell-properties fo:background-color="#B4C7DC"/>
</style:style>
<style:style style:name="blue-normal" style:family="table-cell" style:parent-style-name="default">
<style:table-cell-properties fo:background-color="#DEE6EF"/>
</style:style>
<style:style style:name="orange-title" style:family="table-cell" style:parent-style-name="default">
<style:table-cell-properties fo:background-color="#FF860D"/>
<style:text-properties fo:color="#ffffff"/>
</style:style>
<style:style style:name="orange-title-with-border" style:family="table-cell" style:parent-style-name="default">
<style:table-cell-properties fo:background-color="#FF860D" fo:border="0.28pt solid #666666"/>
<style:text-properties fo:color="#ffffff"/>
</style:style>
<style:style style:name="orange-banded" style:family="table-cell" style:parent-style-name="default">
<style:table-cell-properties fo:background-color="#FFB66C"/>
</style:style>
<style:style style:name="orange-normal" style:family="table-cell" style:parent-style-name="default">
<style:table-cell-properties fo:background-color="#FFDBB6"/>
</style:style>
<style:style style:name="teal-title" style:family="table-cell" style:parent-style-name="default">
<style:table-cell-properties fo:background-color="#50938A"/>
<style:text-properties fo:color="#ffffff"/>
</style:style>
<style:style style:name="teal-title-with-border" style:family="table-cell" style:parent-style-name="default">
<style:table-cell-properties fo:background-color="#50938A" fo:border="0.28pt solid #666666"/>
<style:text-properties fo:color="#ffffff"/>
</style:style>
<style:style style:name="teal-banded" style:family="table-cell" style:parent-style-name="default">
<style:table-cell-properties fo:background-color="#B3CAC7"/>
</style:style>
<style:style style:name="teal-normal" style:family="table-cell" style:parent-style-name="default">
<style:table-cell-properties fo:background-color="#DEE7E5"/>
</style:style>
<style:style style:name="magenta-title" style:family="table-cell" style:parent-style-name="default">
<style:table-cell-properties fo:background-color="#D62E4E"/>
<style:text-properties fo:color="#ffffff"/>
</style:style>
<style:style style:name="magenta-title-with-border" style:family="table-cell" style:parent-style-name="default">
<style:table-cell-properties fo:background-color="#D62E4E" fo:border="0.28pt solid #666666"/>
<style:text-properties fo:color="#ffffff"/>
</style:style>
<style:style style:name="magenta-banded" style:family="table-cell" style:parent-style-name="default">
<style:table-cell-properties fo:background-color="#EC9BA4"/>
</style:style>
<style:style style:name="magenta-normal" style:family="table-cell" style:parent-style-name="default">
<style:table-cell-properties fo:background-color="#F7D1D5"/>
</style:style>
<table:table-template table:name="default">
<table:first-row table:style-name="bg-none"/>
<table:last-row table:style-name="bg-none"/>
<table:first-column table:style-name="bg-none"/>
<table:last-column table:style-name="bg-none"/>
<table:body table:style-name="bg-none"/>
<table:odd-rows table:style-name="bg-none"/>
<table:odd-columns table:style-name="bg-none"/>
</table:table-template>
<table:table-template table:name="black-dark">
<table:first-row table:style-name="black"/>
<table:last-row table:style-name="black"/>
<table:first-column table:style-name="black"/>
<table:last-column table:style-name="black"/>
<table:body table:style-name="gray"/>
<table:odd-rows table:style-name="dark-gray"/>
<table:odd-columns table:style-name="dark-gray"/>
</table:table-template>
<table:table-template table:name="black-gray">
<table:first-row table:style-name="black-with-border"/>
<table:last-row table:style-name="black-with-border"/>
<table:first-column table:style-name="black-with-border"/>
<table:last-column table:style-name="black-with-border"/>
<table:body table:style-name="white-with-border"/>
<table:odd-rows table:style-name="gray-with-border"/>
<table:odd-columns table:style-name="gray-with-border"/>
</table:table-template>
<table:table-template table:name="blue-dark">
<table:first-row table:style-name="blue-title"/>
<table:last-row table:style-name="blue-title"/>
<table:first-column table:style-name="blue-title"/>
<table:last-column table:style-name="blue-title"/>
<table:body table:style-name="blue-normal"/>
<table:odd-rows table:style-name="blue-banded"/>
<table:odd-columns table:style-name="blue-banded"/>
</table:table-template>
<table:table-template table:name="blue-gray">
<table:first-row table:style-name="blue-title-with-border"/>
<table:last-row table:style-name="blue-title-with-border"/>
<table:first-column table:style-name="blue-title-with-border"/>
<table:last-column table:style-name="blue-title-with-border"/>
<table:body table:style-name="white-with-border"/>
<table:odd-rows table:style-name="gray-with-border"/>
<table:odd-columns table:style-name="gray-with-border"/>
</table:table-template>
<table:table-template table:name="orange-dark">
<table:first-row table:style-name="orange-title"/>
<table:last-row table:style-name="orange-title"/>
<table:first-column table:style-name="orange-title"/>
<table:last-column table:style-name="orange-title"/>
<table:body table:style-name="orange-normal"/>
<table:odd-rows table:style-name="orange-banded"/>
<table:odd-columns table:style-name="orange-banded"/>
</table:table-template>
<table:table-template table:name="orange-gray">
<table:first-row table:style-name="orange-title-with-border"/>
<table:last-row table:style-name="orange-title-with-border"/>
<table:first-column table:style-name="orange-title-with-border"/>
<table:last-column table:style-name="orange-title-with-border"/>
<table:body table:style-name="white-with-border"/>
<table:odd-rows table:style-name="gray-with-border"/>
<table:odd-columns table:style-name="gray-with-border"/>
</table:table-template>
<table:table-template table:name="teal-dark">
<table:first-row table:style-name="teal-title"/>
<table:last-row table:style-name="teal-title"/>
<table:first-column table:style-name="teal-title"/>
<table:last-column table:style-name="teal-title"/>
<table:body table:style-name="teal-normal"/>
<table:odd-rows table:style-name="teal-banded"/>
<table:odd-columns table:style-name="teal-banded"/>
</table:table-template>
<table:table-template table:name="teal-gray">
<table:first-row table:style-name="teal-title-with-border"/>
<table:last-row table:style-name="teal-title-with-border"/>
<table:first-column table:style-name="teal-title-with-border"/>
<table:last-column table:style-name="teal-title-with-border"/>
<table:body table:style-name="white-with-border"/>
<table:odd-rows table:style-name="gray-with-border"/>
<table:odd-columns table:style-name="gray-with-border"/>
</table:table-template>
<table:table-template table:name="magenta-dark">
<table:first-row table:style-name="magenta-title"/>
<table:last-row table:style-name="magenta-title"/>
<table:first-column table:style-name="magenta-title"/>
<table:last-column table:style-name="magenta-title"/>
<table:body table:style-name="magenta-normal"/>
<table:odd-rows table:style-name="magenta-banded"/>
<table:odd-columns table:style-name="magenta-banded"/>
</table:table-template>
<table:table-template table:name="magenta-gray">
<table:first-row table:style-name="magenta-title-with-border"/>
<table:last-row table:style-name="magenta-title-with-border"/>
<table:first-column table:style-name="magenta-title-with-border"/>
<table:last-column table:style-name="magenta-title-with-border"/>
<table:body table:style-name="white-with-border"/>
<table:odd-rows table:style-name="gray-with-border"/>
<table:odd-columns table:style-name="gray-with-border"/>
</table:table-template>
</office:styles>