mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-08-15 15:59:00 +03:00
Стиль описывал 7 свойств из 47, которые платформа хранит в <format>. Не было
самого частого тега корпуса — backColor (1.7 млн вхождений), а также textColor,
textPlacement, protection, hidden, indent, borderColor, textOrientation и хвоста.
Теперь ключ стиля — имя тега платформы, без исключений: помнить, какие ключи
названы по-своему, больше не нужно. Прежние align/valign/wrap продолжают
работать молча, как синонимы; там же CSS-имена (background, color,
border-bottom) и русские имена свойств. Таблицы типов значений и допустимых
значений перечислений сняты с корпуса, а не выписаны на глаз.
Рамка: пять плоских ключей (border и четыре стороны) со значением
{ style, width } либо строкой стиля; линия регистрируется в палитре <line>,
которая раньше знала только «тонкую» и «толстую» Solid. Четыре одинаковые
стороны сворачиваются в один <border> — правило проверено на корпусе:
70 265 свёрнутых форматов против 36 783 записанных по сторонам, и среди
вторых нет ни одного с четырьмя совпадающими значениями.
Цвет — нотация самой платформы: #RRGGBB, style:Имя, web:Имя, win:Имя. Первые
две пишутся дословно (префикс style объявлен в корне документа), для web и win
платформа дописывает объявление xmlns прямо на узел — делаем так же.
containsValue / valueType / controlType намеренно не заведены: это свойства
конкретной ячейки, а стиль — сущность общая, один на многие ячейки.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
153 lines
3.8 KiB
XML
153 lines
3.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<document xmlns="http://v8.1c.ru/8.2/data/spreadsheet" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||
<languageSettings>
|
||
<currentLanguage>ru</currentLanguage>
|
||
<defaultLanguage>ru</defaultLanguage>
|
||
<languageInfo>
|
||
<id>ru</id>
|
||
<code>Русский</code>
|
||
<description>Русский</description>
|
||
</languageInfo>
|
||
</languageSettings>
|
||
<columns>
|
||
<size>4</size>
|
||
</columns>
|
||
<rowsItem>
|
||
<index>0</index>
|
||
<row>
|
||
<c>
|
||
<c>
|
||
<f>2</f>
|
||
<tl>
|
||
<v8:item>
|
||
<v8:lang>ru</v8:lang>
|
||
<v8:content>Отчёт о движении</v8:content>
|
||
</v8:item>
|
||
</tl>
|
||
</c>
|
||
</c>
|
||
</row>
|
||
</rowsItem>
|
||
<rowsItem>
|
||
<index>1</index>
|
||
<row>
|
||
<c>
|
||
<c>
|
||
<f>3</f>
|
||
<tl>
|
||
<v8:item>
|
||
<v8:lang>ru</v8:lang>
|
||
<v8:content>Слева пунктир</v8:content>
|
||
</v8:item>
|
||
</tl>
|
||
</c>
|
||
</c>
|
||
<c>
|
||
<c>
|
||
<f>4</f>
|
||
<tl>
|
||
<v8:item>
|
||
<v8:lang>ru</v8:lang>
|
||
<v8:content>Цвет из палитры</v8:content>
|
||
</v8:item>
|
||
</tl>
|
||
</c>
|
||
</c>
|
||
<c>
|
||
<c>
|
||
<f>5</f>
|
||
<parameter>Скрытое</parameter>
|
||
</c>
|
||
</c>
|
||
<c>
|
||
<c>
|
||
<f>6</f>
|
||
<tl>
|
||
<v8:item>
|
||
<v8:lang>ru</v8:lang>
|
||
<v8:content>Рамка свёрнута</v8:content>
|
||
</v8:item>
|
||
</tl>
|
||
</c>
|
||
</c>
|
||
</row>
|
||
</rowsItem>
|
||
<templateMode>true</templateMode>
|
||
<defaultFormatIndex>1</defaultFormatIndex>
|
||
<height>2</height>
|
||
<vgRows>2</vgRows>
|
||
<merge>
|
||
<r>0</r>
|
||
<c>0</c>
|
||
<w>3</w>
|
||
</merge>
|
||
<namedItem xsi:type="NamedItemCells">
|
||
<name>Тело</name>
|
||
<area>
|
||
<type>Rows</type>
|
||
<beginRow>1</beginRow>
|
||
<endRow>1</endRow>
|
||
<beginColumn>-1</beginColumn>
|
||
<endColumn>-1</endColumn>
|
||
</area>
|
||
</namedItem>
|
||
<namedItem xsi:type="NamedItemCells">
|
||
<name>Шапка</name>
|
||
<area>
|
||
<type>Rows</type>
|
||
<beginRow>0</beginRow>
|
||
<endRow>0</endRow>
|
||
<beginColumn>-1</beginColumn>
|
||
<endColumn>-1</endColumn>
|
||
</area>
|
||
</namedItem>
|
||
<line width="1" gap="false">
|
||
<v8ui:style xsi:type="v8ui:SpreadsheetDocumentCellLineType">Dotted</v8ui:style>
|
||
</line>
|
||
<line width="2" gap="false">
|
||
<v8ui:style xsi:type="v8ui:SpreadsheetDocumentCellLineType">Solid</v8ui:style>
|
||
</line>
|
||
<line width="1" gap="false">
|
||
<v8ui:style xsi:type="v8ui:SpreadsheetDocumentCellLineType">ThinDashed</v8ui:style>
|
||
</line>
|
||
<line width="1" gap="false">
|
||
<v8ui:style xsi:type="v8ui:SpreadsheetDocumentCellLineType">Solid</v8ui:style>
|
||
</line>
|
||
<font faceName="Arial" height="10" bold="false" italic="false" underline="false" strikeout="false" kind="Absolute" scale="100"/>
|
||
<font faceName="Arial" height="10" bold="true" italic="false" underline="false" strikeout="false" kind="Absolute" scale="100"/>
|
||
<format>
|
||
<width>20</width>
|
||
</format>
|
||
<format>
|
||
<font>1</font>
|
||
<horizontalAlignment>Center</horizontalAlignment>
|
||
<verticalAlignment>Center</verticalAlignment>
|
||
<textColor>style:FormTextColor</textColor>
|
||
<backColor>#EBEBEB</backColor>
|
||
<textPlacement>Wrap</textPlacement>
|
||
<protection>true</protection>
|
||
</format>
|
||
<format>
|
||
<font>0</font>
|
||
<leftBorder>0</leftBorder>
|
||
<topBorder>1</topBorder>
|
||
<bottomBorder>2</bottomBorder>
|
||
<borderColor>#C8C8C8</borderColor>
|
||
</format>
|
||
<format>
|
||
<font>0</font>
|
||
<textColor xmlns:d3p1="http://v8.1c.ru/8.1/data/ui/colors/windows">d3p1:ButtonText</textColor>
|
||
<backColor xmlns:d3p1="http://v8.1c.ru/8.1/data/ui/colors/web">d3p1:Gainsboro</backColor>
|
||
</format>
|
||
<format>
|
||
<font>0</font>
|
||
<fillType>Parameter</fillType>
|
||
<hidden>true</hidden>
|
||
<textOrientation>900</textOrientation>
|
||
<indent>2</indent>
|
||
</format>
|
||
<format>
|
||
<font>0</font>
|
||
<border>3</border>
|
||
</format>
|
||
</document> |