1# -*- coding: utf-8 -*-
2# Copyright (C) 2006-2007 Søren Roug, European Environment Agency
3#
4# This library is free software; you can redistribute it and/or
5# modify it under the terms of the GNU Lesser General Public
6# License as published by the Free Software Foundation; either
7# version 2.1 of the License, or (at your option) any later version.
8#
9# This library is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12# Lesser General Public License for more details.
13#
14# You should have received a copy of the GNU Lesser General Public
15# License along with this library; if not, write to the Free Software
16# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
17#
18# Contributor(s):
19#
20
21
22from .namespaces import STYLENS
23from .element import Element
24
25
26def StyleElement(**args):
27    e = Element(**args)
28    if args.get('check_grammar', True) is True:
29        if 'displayname' not in args:
30            e.setAttrNS(STYLENS,'display-name', args.get('name'))
31    return e
32
33# Autogenerated
34
35
36def BackgroundImage(**args):
37    return Element(qname=(STYLENS,'background-image'), **args)
38
39
40def ChartProperties(**args):
41    return Element(qname=(STYLENS,'chart-properties'), **args)
42
43
44def Column(**args):
45    return Element(qname=(STYLENS,'column'), **args)
46
47
48def ColumnSep(**args):
49    return Element(qname=(STYLENS,'column-sep'), **args)
50
51
52def Columns(**args):
53    return Element(qname=(STYLENS,'columns'), **args)
54
55
56def DefaultStyle(**args):
57    return Element(qname=(STYLENS,'default-style'), **args)
58
59
60def DrawingPageProperties(**args):
61    return Element(qname=(STYLENS,'drawing-page-properties'), **args)
62
63
64def DropCap(**args):
65    return Element(qname=(STYLENS,'drop-cap'), **args)
66
67
68def FontFace(**args):
69    return Element(qname=(STYLENS,'font-face'), **args)
70
71
72def Footer(**args):
73    return Element(qname=(STYLENS,'footer'), **args)
74
75
76def FooterLeft(**args):
77    return Element(qname=(STYLENS,'footer-left'), **args)
78
79
80def FooterStyle(**args):
81    return Element(qname=(STYLENS,'footer-style'), **args)
82
83
84def FootnoteSep(**args):
85    return Element(qname=(STYLENS,'footnote-sep'), **args)
86
87
88def GraphicProperties(**args):
89    return Element(qname=(STYLENS,'graphic-properties'), **args)
90
91
92def HandoutMaster(**args):
93    return Element(qname=(STYLENS,'handout-master'), **args)
94
95
96def Header(**args):
97    return Element(qname=(STYLENS,'header'), **args)
98
99
100def HeaderFooterProperties(**args):
101    return Element(qname=(STYLENS,'header-footer-properties'), **args)
102
103
104def HeaderLeft(**args):
105    return Element(qname=(STYLENS,'header-left'), **args)
106
107
108def HeaderStyle(**args):
109    return Element(qname=(STYLENS,'header-style'), **args)
110
111
112def ListLevelProperties(**args):
113    return Element(qname=(STYLENS,'list-level-properties'), **args)
114
115
116def Map(**args):
117    return Element(qname=(STYLENS,'map'), **args)
118
119
120def MasterPage(**args):
121    return StyleElement(qname=(STYLENS,'master-page'), **args)
122
123
124def PageLayout(**args):
125    return Element(qname=(STYLENS,'page-layout'), **args)
126
127
128def PageLayoutProperties(**args):
129    return Element(qname=(STYLENS,'page-layout-properties'), **args)
130
131
132def ParagraphProperties(**args):
133    return Element(qname=(STYLENS,'paragraph-properties'), **args)
134
135
136def PresentationPageLayout(**args):
137    return StyleElement(qname=(STYLENS,'presentation-page-layout'), **args)
138
139
140def RegionCenter(**args):
141    return Element(qname=(STYLENS,'region-center'), **args)
142
143
144def RegionLeft(**args):
145    return Element(qname=(STYLENS,'region-left'), **args)
146
147
148def RegionRight(**args):
149    return Element(qname=(STYLENS,'region-right'), **args)
150
151
152def RubyProperties(**args):
153    return Element(qname=(STYLENS,'ruby-properties'), **args)
154
155
156def SectionProperties(**args):
157    return Element(qname=(STYLENS,'section-properties'), **args)
158
159
160def Style(**args):
161    return StyleElement(qname=(STYLENS,'style'), **args)
162
163
164def TabStop(**args):
165    return Element(qname=(STYLENS,'tab-stop'), **args)
166
167
168def TabStops(**args):
169    return Element(qname=(STYLENS,'tab-stops'), **args)
170
171
172def TableCellProperties(**args):
173    return Element(qname=(STYLENS,'table-cell-properties'), **args)
174
175
176def TableColumnProperties(**args):
177    return Element(qname=(STYLENS,'table-column-properties'), **args)
178
179
180def TableProperties(**args):
181    return Element(qname=(STYLENS,'table-properties'), **args)
182
183
184def TableRowProperties(**args):
185    return Element(qname=(STYLENS,'table-row-properties'), **args)
186
187
188def TextProperties(**args):
189    return Element(qname=(STYLENS,'text-properties'), **args)
190