ODFPY  1.2.0
style.py
Go to the documentation of this file.
1 # -*- coding: utf-8 -*-
2 # Copyright (C) 2006-2013 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 from odf.namespaces import STYLENS
22 from odf.element import Element
23 
24 def StyleElement(**args):
25  e = Element(**args)
26  if args.get('check_grammar', True) == True:
27  if 'displayname' not in args:
28  e.setAttrNS(STYLENS,'display-name', args.get('name'))
29  return e
30 
31 # Autogenerated
32 def BackgroundImage(**args):
33  return Element(qname = (STYLENS,'background-image'), **args)
34 
35 def ChartProperties(**args):
36  return Element(qname = (STYLENS,'chart-properties'), **args)
37 
38 def Column(**args):
39  return Element(qname = (STYLENS,'column'), **args)
40 
41 def ColumnSep(**args):
42  return Element(qname = (STYLENS,'column-sep'), **args)
43 
44 def Columns(**args):
45  return Element(qname = (STYLENS,'columns'), **args)
46 
47 def DefaultPageLayout(**args):
48  return Element(qname = (STYLENS,'default-page-layout'), **args)
49 
50 def DefaultStyle(**args):
51  return Element(qname = (STYLENS,'default-style'), **args)
52 
54  return Element(qname = (STYLENS,'drawing-page-properties'), **args)
55 
56 def DropCap(**args):
57  return Element(qname = (STYLENS,'drop-cap'), **args)
58 
59 def FontFace(**args):
60  return Element(qname = (STYLENS,'font-face'), **args)
61 
62 def Footer(**args):
63  return Element(qname = (STYLENS,'footer'), **args)
64 
65 def FooterLeft(**args):
66  return Element(qname = (STYLENS,'footer-left'), **args)
67 
68 def FooterStyle(**args):
69  return Element(qname = (STYLENS,'footer-style'), **args)
70 
71 def FootnoteSep(**args):
72  return Element(qname = (STYLENS,'footnote-sep'), **args)
73 
74 def GraphicProperties(**args):
75  return Element(qname = (STYLENS,'graphic-properties'), **args)
76 
77 def HandoutMaster(**args):
78  return Element(qname = (STYLENS,'handout-master'), **args)
79 
80 def Header(**args):
81  return Element(qname = (STYLENS,'header'), **args)
82 
84  return Element(qname = (STYLENS,'header-footer-properties'), **args)
85 
86 def HeaderLeft(**args):
87  return Element(qname = (STYLENS,'header-left'), **args)
88 
89 def HeaderStyle(**args):
90  return Element(qname = (STYLENS,'header-style'), **args)
91 
93  return Element(qname = (STYLENS,'list-level-label-alignment'), **args)
94 
95 def ListLevelProperties(**args):
96  return Element(qname = (STYLENS,'list-level-properties'), **args)
97 
98 def Map(**args):
99  return Element(qname = (STYLENS,'map'), **args)
100 
101 def MasterPage(**args):
102  return StyleElement(qname = (STYLENS,'master-page'), **args)
103 
104 def PageLayout(**args):
105  return Element(qname = (STYLENS,'page-layout'), **args)
106 
108  return Element(qname = (STYLENS,'page-layout-properties'), **args)
109 
111  return Element(qname = (STYLENS,'paragraph-properties'), **args)
112 
114  return StyleElement(qname = (STYLENS,'presentation-page-layout'), **args)
115 
116 def RegionCenter(**args):
117  return Element(qname = (STYLENS,'region-center'), **args)
118 
119 def RegionLeft(**args):
120  return Element(qname = (STYLENS,'region-left'), **args)
121 
122 def RegionRight(**args):
123  return Element(qname = (STYLENS,'region-right'), **args)
124 
125 def RubyProperties(**args):
126  return Element(qname = (STYLENS,'ruby-properties'), **args)
127 
128 def SectionProperties(**args):
129  return Element(qname = (STYLENS,'section-properties'), **args)
130 
131 def Style(**args):
132  return StyleElement(qname = (STYLENS,'style'), **args)
133 
134 def TabStop(**args):
135  return Element(qname = (STYLENS,'tab-stop'), **args)
136 
137 def TabStops(**args):
138  return Element(qname = (STYLENS,'tab-stops'), **args)
139 
141  return Element(qname = (STYLENS,'table-cell-properties'), **args)
142 
144  return Element(qname = (STYLENS,'table-column-properties'), **args)
145 
146 def TableProperties(**args):
147  return Element(qname = (STYLENS,'table-properties'), **args)
148 
149 def TableRowProperties(**args):
150  return Element(qname = (STYLENS,'table-row-properties'), **args)
151 
152 def TextProperties(**args):
153  return Element(qname = (STYLENS,'text-properties'), **args)
154 
odf.style.TextProperties
def TextProperties(**args)
Definition: style.py:152
odf.style.ListLevelProperties
def ListLevelProperties(**args)
Definition: style.py:95
odf.style.RegionLeft
def RegionLeft(**args)
Definition: style.py:119
odf.style.TabStop
def TabStop(**args)
Definition: style.py:134
odf.style.TableCellProperties
def TableCellProperties(**args)
Definition: style.py:140
odf.style.RubyProperties
def RubyProperties(**args)
Definition: style.py:125
odf.style.HandoutMaster
def HandoutMaster(**args)
Definition: style.py:77
odf.style.Column
def Column(**args)
Definition: style.py:38
odf.style.DefaultPageLayout
def DefaultPageLayout(**args)
Definition: style.py:47
odf.style.ListLevelLabelAlignment
def ListLevelLabelAlignment(**args)
Definition: style.py:92
odf.style.HeaderStyle
def HeaderStyle(**args)
Definition: style.py:89
odf.style.PageLayoutProperties
def PageLayoutProperties(**args)
Definition: style.py:107
odf.style.PresentationPageLayout
def PresentationPageLayout(**args)
Definition: style.py:113
odf.style.DefaultStyle
def DefaultStyle(**args)
Definition: style.py:50
odf.style.TableProperties
def TableProperties(**args)
Definition: style.py:146
odf.style.BackgroundImage
def BackgroundImage(**args)
Definition: style.py:32
odf.style.FooterLeft
def FooterLeft(**args)
Definition: style.py:65
odf.element.Element
Creates a arbitrary element and is intended to be subclassed not used on its own.
Definition: element.py:357
odf.style.Map
def Map(**args)
Definition: style.py:98
odf.style.TabStops
def TabStops(**args)
Definition: style.py:137
odf.style.SectionProperties
def SectionProperties(**args)
Definition: style.py:128
odf.style.StyleElement
def StyleElement(**args)
Definition: style.py:24
odf.style.GraphicProperties
def GraphicProperties(**args)
Definition: style.py:74
odf.style.RegionRight
def RegionRight(**args)
Definition: style.py:122
odf.element
Definition: element.py:1
odf.style.ChartProperties
def ChartProperties(**args)
Definition: style.py:35
odf.style.HeaderLeft
def HeaderLeft(**args)
Definition: style.py:86
odf.style.Header
def Header(**args)
Definition: style.py:80
odf.style.FootnoteSep
def FootnoteSep(**args)
Definition: style.py:71
odf.style.TableColumnProperties
def TableColumnProperties(**args)
Definition: style.py:143
odf.style.ParagraphProperties
def ParagraphProperties(**args)
Definition: style.py:110
odf.style.PageLayout
def PageLayout(**args)
Definition: style.py:104
odf.style.HeaderFooterProperties
def HeaderFooterProperties(**args)
Definition: style.py:83
odf.style.DrawingPageProperties
def DrawingPageProperties(**args)
Definition: style.py:53
odf.style.RegionCenter
def RegionCenter(**args)
Definition: style.py:116
odf.style.Style
def Style(**args)
Definition: style.py:131
odf.style.ColumnSep
def ColumnSep(**args)
Definition: style.py:41
odf.style.Footer
def Footer(**args)
Definition: style.py:62
odf.style.FooterStyle
def FooterStyle(**args)
Definition: style.py:68
odf.style.Columns
def Columns(**args)
Definition: style.py:44
odf.style.MasterPage
def MasterPage(**args)
Definition: style.py:101
odf.namespaces
Definition: namespaces.py:1
odf.style.TableRowProperties
def TableRowProperties(**args)
Definition: style.py:149
odf.style.DropCap
def DropCap(**args)
Definition: style.py:56
odf.style.FontFace
def FontFace(**args)
Definition: style.py:59