style.py
Go to the documentation of this file.
# -*- coding: utf-8 -*-
# Copyright (C) 2006-2013 Søren Roug, European Environment Agency
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#
# Contributor(s):
#
from namespaces import STYLENS
from element import Element
def StyleElement(**args):
e = Element(**args)
if args.get('check_grammar', True) == True:
if 'displayname' not in args:
e.setAttrNS(STYLENS,'display-name', args.get('name'))
return e
# Autogenerated
def BackgroundImage(**args):
return Element(qname = (STYLENS,'background-image'), **args)
def ChartProperties(**args):
return Element(qname = (STYLENS,'chart-properties'), **args)
def Column(**args):
return Element(qname = (STYLENS,'column'), **args)
def ColumnSep(**args):
return Element(qname = (STYLENS,'column-sep'), **args)
def Columns(**args):
return Element(qname = (STYLENS,'columns'), **args)
def DefaultPageLayout(**args):
return Element(qname = (STYLENS,'default-page-layout'), **args)
def DefaultStyle(**args):
return Element(qname = (STYLENS,'default-style'), **args)
def DrawingPageProperties(**args):
return Element(qname = (STYLENS,'drawing-page-properties'), **args)
def DropCap(**args):
return Element(qname = (STYLENS,'drop-cap'), **args)
def FontFace(**args):
return Element(qname = (STYLENS,'font-face'), **args)
def Footer(**args):
return Element(qname = (STYLENS,'footer'), **args)
def FooterLeft(**args):
return Element(qname = (STYLENS,'footer-left'), **args)
def FooterStyle(**args):
return Element(qname = (STYLENS,'footer-style'), **args)
def FootnoteSep(**args):
return Element(qname = (STYLENS,'footnote-sep'), **args)
def GraphicProperties(**args):
return Element(qname = (STYLENS,'graphic-properties'), **args)
def HandoutMaster(**args):
return Element(qname = (STYLENS,'handout-master'), **args)
def Header(**args):
return Element(qname = (STYLENS,'header'), **args)
def HeaderFooterProperties(**args):
return Element(qname = (STYLENS,'header-footer-properties'), **args)
def HeaderLeft(**args):
return Element(qname = (STYLENS,'header-left'), **args)
def HeaderStyle(**args):
return Element(qname = (STYLENS,'header-style'), **args)
def ListLevelLabelAlignment(**args):
return Element(qname = (STYLENS,'list-level-label-alignment'), **args)
def ListLevelProperties(**args):
return Element(qname = (STYLENS,'list-level-properties'), **args)
def Map(**args):
return Element(qname = (STYLENS,'map'), **args)
def MasterPage(**args):
return StyleElement(qname = (STYLENS,'master-page'), **args)
def PageLayout(**args):
return Element(qname = (STYLENS,'page-layout'), **args)
def PageLayoutProperties(**args):
return Element(qname = (STYLENS,'page-layout-properties'), **args)
def ParagraphProperties(**args):
return Element(qname = (STYLENS,'paragraph-properties'), **args)
def PresentationPageLayout(**args):
return StyleElement(qname = (STYLENS,'presentation-page-layout'), **args)
def RegionCenter(**args):
return Element(qname = (STYLENS,'region-center'), **args)
def RegionLeft(**args):
return Element(qname = (STYLENS,'region-left'), **args)
def RegionRight(**args):
return Element(qname = (STYLENS,'region-right'), **args)
def RubyProperties(**args):
return Element(qname = (STYLENS,'ruby-properties'), **args)
def SectionProperties(**args):
return Element(qname = (STYLENS,'section-properties'), **args)
def Style(**args):
return StyleElement(qname = (STYLENS,'style'), **args)
def TabStop(**args):
return Element(qname = (STYLENS,'tab-stop'), **args)
def TabStops(**args):
return Element(qname = (STYLENS,'tab-stops'), **args)
def TableCellProperties(**args):
return Element(qname = (STYLENS,'table-cell-properties'), **args)
def TableColumnProperties(**args):
return Element(qname = (STYLENS,'table-column-properties'), **args)
def TableProperties(**args):
return Element(qname = (STYLENS,'table-properties'), **args)
def TableRowProperties(**args):
return Element(qname = (STYLENS,'table-row-properties'), **args)
def TextProperties(**args):
return Element(qname = (STYLENS,'text-properties'), **args)
odf.style.SectionProperties
def SectionProperties(args)
Definition: style.py:128
odf.style.TableProperties
def TableProperties(args)
Definition: style.py:146
odf.style.MasterPage
def MasterPage(args)
Definition: style.py:101
odf.style.DefaultStyle
def DefaultStyle(args)
Definition: style.py:50
odf.style.ChartProperties
def ChartProperties(args)
Definition: style.py:35
odf.style.HeaderFooterProperties
def HeaderFooterProperties(args)
Definition: style.py:83
odf.style.Footer
def Footer(args)
Definition: style.py:62
odf.style.TableColumnProperties
def TableColumnProperties(args)
Definition: style.py:143
odf.style.GraphicProperties
def GraphicProperties(args)
Definition: style.py:74
odf.style.PresentationPageLayout
def PresentationPageLayout(args)
Definition: style.py:113
odf.style.TableCellProperties
def TableCellProperties(args)
Definition: style.py:140
odf.style.TabStops
def TabStops(args)
Definition: style.py:137
odf.style.DrawingPageProperties
def DrawingPageProperties(args)
Definition: style.py:53
odf.style.Header
def Header(args)
Definition: style.py:80
odf.style.RegionRight
def RegionRight(args)
Definition: style.py:122
odf.style.PageLayoutProperties
def PageLayoutProperties(args)
Definition: style.py:107
odf.style.ListLevelLabelAlignment
def ListLevelLabelAlignment(args)
Definition: style.py:92
odf.style.HeaderStyle
def HeaderStyle(args)
Definition: style.py:89
odf.style.Columns
def Columns(args)
Definition: style.py:44
odf.style.TabStop
def TabStop(args)
Definition: style.py:134
odf.style.DefaultPageLayout
def DefaultPageLayout(args)
Definition: style.py:47
odf.style.ColumnSep
def ColumnSep(args)
Definition: style.py:41
odf.style.RubyProperties
def RubyProperties(args)
Definition: style.py:125
odf.style.TextProperties
def TextProperties(args)
Definition: style.py:152
odf.style.PageLayout
def PageLayout(args)
Definition: style.py:104
odf.style.BackgroundImage
def BackgroundImage(args)
Definition: style.py:32
odf.style.FooterStyle
def FooterStyle(args)
Definition: style.py:68
odf.style.Map
def Map(args)
Definition: style.py:98
odf.style.FooterLeft
def FooterLeft(args)
Definition: style.py:65
odf.style.HeaderLeft
def HeaderLeft(args)
Definition: style.py:86
odf.style.Style
def Style(args)
Definition: style.py:131
odf.style.RegionCenter
def RegionCenter(args)
Definition: style.py:116
odf.style.StyleElement
def StyleElement(args)
Definition: style.py:24
odf.style.ListLevelProperties
def ListLevelProperties(args)
Definition: style.py:95
odf.style.Column
def Column(args)
Definition: style.py:38
odf.style.DropCap
def DropCap(args)
Definition: style.py:56
odf.style.ParagraphProperties
def ParagraphProperties(args)
Definition: style.py:110
odf.style.TableRowProperties
def TableRowProperties(args)
Definition: style.py:149
odf.style.HandoutMaster
def HandoutMaster(args)
Definition: style.py:77
odf.style.FootnoteSep
def FootnoteSep(args)
Definition: style.py:71
odf.style.RegionLeft
def RegionLeft(args)
Definition: style.py:119
odf.style.FontFace
def FontFace(args)
Definition: style.py:59