1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21# x-no-translate
22
23#    <style:style style:name="S1" style:family="graphics">
24#      <style:section-properties fo:background-color="#ffffff"/>
25#    </style:style>
26#
27# gets translated into:
28#
29# *[draw|style-name~="S1"]
30
31namespaces.draw=urn:oasis:names:tc:opendocument:xmlns:drawing:1.0
32namespaces.fo=urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0
33namespaces.style=urn:oasis:names:tc:opendocument:xmlns:style:1.0
34namespaces.table=urn:oasis:names:tc:opendocument:xmlns:table:1.0
35namespaces.chart=urn:oasis:names:tc:opendocument:xmlns:chart:1.0
36namespaces.rpt=http://openoffice.org/2005/report
37
38#
39# maps the style family type (graphics) into a style rule of the
40# common form: *[<namespace>|<style-name>~="<classname>"]
41#
42style-family.graphic=draw
43style-family.graphics=draw
44style-family.control=control
45style-family.report-element=rpt
46style-family.table-column=table
47style-family.table-row=table
48style-family.table-cell=table
49style-family.table=table
50
51# Builds the selector pattern for a star-office stylesheet
52#
53# 0: Namespace prefix
54# 1: Style-class attribute name (from the global namespace definition)
55# 2: Style-class value
56style-selector.pattern=*[{0}|{1}~="{2}"]
57
58#
59# The following properties map the OpenOffice-generic font names
60# into their CSS counterparts. As I dont have a clue, whats the difference
61# between modern and swiss typeface, I am ignorant for now and ignore
62# them. Blame me for that :)
63font-family.roman=serif
64font-family.swiss=sans-serif
65font-family.modern=sans-serif
66font-family.decorative=fantasy
67font-family.script=cursive
68font-family.system=monospace
69
70
71#
72# Defines the style property mapping for the resolve process from the
73# OpenOffice report format into the internal LibLayout format
74#
75# attr.style.<group>.<namespace>.<attr-name>=<class>
76#
77# Group is an selector, which corresponds to one of the sub-elements of
78# the style element of the OpenDocument format. (It must match the element
79# name for which the attributes are defined.)
80#
81# Namespace is a defined namespace prefix from this file as defined in the
82# namespaces.<prefix> section above
83#
84# AttrName is the defined attribute name for this namespace as defined by the
85# opendocument standard.
86attr.style.graphic-properties.draw.textarea-vertical-align=com.sun.star.report.pentaho.parser.stylemapper.draw.TextAreaVerticalAlignMapper
87attr.style.section-properties.fo.background-color=com.sun.star.report.pentaho.parser.stylemapper.fo.BackgroundColorMapper
88attr.style.paragraph-properties.fo.text-align=com.sun.star.report.pentaho.parser.stylemapper.fo.TextAlignMapper
89attr.style.paragraph-properties.style.vertical-align=com.sun.star.report.pentaho.parser.stylemapper.style.VerticalAlignMapper
90attr.style.text-properties.fo.color=com.sun.star.report.pentaho.parser.stylemapper.fo.ColorMapper
91attr.style.text-properties.style.font-name=com.sun.star.report.pentaho.parser.stylemapper.style.FontNameMapper
92attr.style.text-properties.fo.font-family=com.sun.star.report.pentaho.parser.stylemapper.style.FontFamilyMapper
93attr.style.table-properties.fo.background-color=com.sun.star.report.pentaho.parser.stylemapper.fo.BackgroundColorMapper
94#attr.style.text-properties.style.font-style-name=
95attr.style.text-properties.style.font-family-generic=com.sun.star.report.pentaho.parser.stylemapper.style.FontFamilyGenericMapper
96attr.style.text-properties.style.font-pitch=com.sun.star.report.pentaho.parser.stylemapper.style.FontPitchMapper
97attr.style.text-properties.fo.font-size=com.sun.star.report.pentaho.parser.stylemapper.fo.FontSizeMapper
98attr.style.text-properties.fo.font-style=com.sun.star.report.pentaho.parser.stylemapper.fo.FontStyleMapper
99attr.style.text-properties.style.text-underline-style=com.sun.star.report.pentaho.parser.stylemapper.style.TextUnderlineStyleMapper
100attr.style.text-properties.style.text-underline-width=com.sun.star.report.pentaho.parser.stylemapper.style.TextUnderlineWidthMapper
101attr.style.text-properties.style.text-underline-color=com.sun.star.report.pentaho.parser.stylemapper.style.TextUnderlineColorMapper
102attr.style.text-properties.fo.font-weight=com.sun.star.report.pentaho.parser.stylemapper.fo.FontWeightMapper
103attr.style.text-properties.style.text-emphasize=com.sun.star.report.pentaho.parser.stylemapper.style.TextEmphasizeMapper
104attr.style.text-properties.style.font-relief=com.sun.star.report.pentaho.parser.stylemapper.style.FontReliefMapper
105attr.style.table-column-properties.table.column-width=com.sun.star.report.pentaho.parser.stylemapper.table.ColumnWidthMapper
106attr.style.table-row-properties.table.row-height=com.sun.star.report.pentaho.parser.stylemapper.table.RowHeightMapper
107attr.style.table-cell-properties.fo.border-right=com.sun.star.report.pentaho.parser.stylemapper.fo.BorderRightMapper
108