Debian Codegraph @

src/odf/style.py

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