office.py 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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. from odf.namespaces import OFFICENS
  21. from odf.element import Element
  22. from odf.draw import StyleRefElement
  23. # Autogenerated
  24. def Annotation(**args):
  25. return StyleRefElement(qname = (OFFICENS,'annotation'), **args)
  26. def AnnotationEnd(**args):
  27. return StyleRefElement(qname = (OFFICENS,'annotation-end'), **args)
  28. def AutomaticStyles(**args):
  29. return Element(qname = (OFFICENS, 'automatic-styles'), **args)
  30. def BinaryData(**args):
  31. return Element(qname = (OFFICENS,'binary-data'), **args)
  32. def Body(**args):
  33. return Element(qname = (OFFICENS, 'body'), **args)
  34. def ChangeInfo(**args):
  35. return Element(qname = (OFFICENS,'change-info'), **args)
  36. def Chart(**args):
  37. return Element(qname = (OFFICENS,'chart'), **args)
  38. def DdeSource(**args):
  39. return Element(qname = (OFFICENS,'dde-source'), **args)
  40. def Document(version="1.2", **args):
  41. return Element(qname = (OFFICENS,'document'), version=version, **args)
  42. def DocumentContent(version="1.2", **args):
  43. return Element(qname = (OFFICENS, 'document-content'), version=version, **args)
  44. def DocumentMeta(version="1.2", **args):
  45. return Element(qname = (OFFICENS, 'document-meta'), version=version, **args)
  46. def DocumentSettings(version="1.2", **args):
  47. return Element(qname = (OFFICENS, 'document-settings'), version=version, **args)
  48. def DocumentStyles(version="1.2", **args):
  49. return Element(qname = (OFFICENS, 'document-styles'), version=version, **args)
  50. def Drawing(**args):
  51. return Element(qname = (OFFICENS,'drawing'), **args)
  52. def EventListeners(**args):
  53. return Element(qname = (OFFICENS,'event-listeners'), **args)
  54. def FontFaceDecls(**args):
  55. return Element(qname = (OFFICENS, 'font-face-decls'), **args)
  56. def Forms(**args):
  57. return Element(qname = (OFFICENS,'forms'), **args)
  58. def Image(**args):
  59. return Element(qname = (OFFICENS,'image'), **args)
  60. def MasterStyles(**args):
  61. return Element(qname = (OFFICENS, 'master-styles'), **args)
  62. def Meta(**args):
  63. return Element(qname = (OFFICENS, 'meta'), **args)
  64. def Presentation(**args):
  65. return Element(qname = (OFFICENS,'presentation'), **args)
  66. def Script(**args):
  67. return Element(qname = (OFFICENS, 'script'), **args)
  68. def Scripts(**args):
  69. return Element(qname = (OFFICENS, 'scripts'), **args)
  70. def Settings(**args):
  71. return Element(qname = (OFFICENS, 'settings'), **args)
  72. def Spreadsheet(**args):
  73. return Element(qname = (OFFICENS, 'spreadsheet'), **args)
  74. def Styles(**args):
  75. return Element(qname = (OFFICENS, 'styles'), **args)
  76. def Text(**args):
  77. return Element(qname = (OFFICENS, 'text'), **args)
  78. # Autogenerated end