number.py 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. from odf.namespaces import NUMBERNS
  21. from odf.element import Element
  22. from odf.style import StyleElement
  23. # Autogenerated
  24. def AmPm(**args):
  25. return Element(qname = (NUMBERNS,'am-pm'), **args)
  26. def Boolean(**args):
  27. return Element(qname = (NUMBERNS,'boolean'), **args)
  28. def BooleanStyle(**args):
  29. return StyleElement(qname = (NUMBERNS,'boolean-style'), **args)
  30. def CurrencyStyle(**args):
  31. return StyleElement(qname = (NUMBERNS,'currency-style'), **args)
  32. def CurrencySymbol(**args):
  33. return Element(qname = (NUMBERNS,'currency-symbol'), **args)
  34. def DateStyle(**args):
  35. return StyleElement(qname = (NUMBERNS,'date-style'), **args)
  36. def Day(**args):
  37. return Element(qname = (NUMBERNS,'day'), **args)
  38. def DayOfWeek(**args):
  39. return Element(qname = (NUMBERNS,'day-of-week'), **args)
  40. def EmbeddedText(**args):
  41. return Element(qname = (NUMBERNS,'embedded-text'), **args)
  42. def Era(**args):
  43. return Element(qname = (NUMBERNS,'era'), **args)
  44. def Fraction(**args):
  45. return Element(qname = (NUMBERNS,'fraction'), **args)
  46. def Hours(**args):
  47. return Element(qname = (NUMBERNS,'hours'), **args)
  48. def Minutes(**args):
  49. return Element(qname = (NUMBERNS,'minutes'), **args)
  50. def Month(**args):
  51. return Element(qname = (NUMBERNS,'month'), **args)
  52. def Number(**args):
  53. return Element(qname = (NUMBERNS,'number'), **args)
  54. def NumberStyle(**args):
  55. return StyleElement(qname = (NUMBERNS,'number-style'), **args)
  56. def PercentageStyle(**args):
  57. return StyleElement(qname = (NUMBERNS,'percentage-style'), **args)
  58. def Quarter(**args):
  59. return Element(qname = (NUMBERNS,'quarter'), **args)
  60. def ScientificNumber(**args):
  61. return Element(qname = (NUMBERNS,'scientific-number'), **args)
  62. def Seconds(**args):
  63. return Element(qname = (NUMBERNS,'seconds'), **args)
  64. def Text(**args):
  65. return Element(qname = (NUMBERNS,'text'), **args)
  66. def TextContent(**args):
  67. return Element(qname = (NUMBERNS,'text-content'), **args)
  68. def TextStyle(**args):
  69. return StyleElement(qname = (NUMBERNS,'text-style'), **args)
  70. def TimeStyle(**args):
  71. return StyleElement(qname = (NUMBERNS,'time-style'), **args)
  72. def WeekOfYear(**args):
  73. return Element(qname = (NUMBERNS,'week-of-year'), **args)
  74. def Year(**args):
  75. return Element(qname = (NUMBERNS,'year'), **args)