script.mod 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <!--
  2. * This file is part of the LibreOffice project.
  3. *
  4. * This Source Code Form is subject to the terms of the Mozilla Public
  5. * License, v. 2.0. If a copy of the MPL was not distributed with this
  6. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  7. *
  8. * This file incorporates work covered by the following license notice:
  9. *
  10. * Licensed to the Apache Software Foundation (ASF) under one or more
  11. * contributor license agreements. See the NOTICE file distributed
  12. * with this work for additional information regarding copyright
  13. * ownership. The ASF licenses this file to you under the Apache
  14. * License, Version 2.0 (the "License"); you may not use this file
  15. * except in compliance with the License. You may obtain a copy of
  16. * the License at http://www.apache.org/licenses/LICENSE-2.0 .
  17. -->
  18. <!ELEMENT script:libraries (script:library-embedded | script:library-linked)*>
  19. <!ATTLIST script:libraries xmlns:script CDATA #FIXED "http://openoffice.org/2000/script">
  20. <!ATTLIST script:libraries xmlns:xlink CDATA #FIXED "http://www.w3.org/1999/xlink">
  21. <!ENTITY % boolean "(true|false)">
  22. <!ELEMENT script:library-embedded (script:module*)>
  23. <!ATTLIST script:library-embedded script:name %string; #REQUIRED>
  24. <!ATTLIST script:library-embedded script:readonly %boolean; #IMPLIED>
  25. <!ELEMENT script:library-linked EMPTY>
  26. <!ATTLIST script:library-linked script:name %string; #REQUIRED>
  27. <!ATTLIST script:library-linked xlink:href %string; #REQUIRED>
  28. <!ATTLIST script:library-linked xlink:type (simple) #FIXED "simple">
  29. <!ATTLIST script:library-linked script:readonly %boolean; #IMPLIED>
  30. <!ELEMENT script:module (script:source-code)>
  31. <!ATTLIST script:module script:name %string; #REQUIRED>
  32. <!ELEMENT script:source-code (#PCDATA)>
  33. <!ENTITY % script-language "script:language %string; #REQUIRED">
  34. <!ENTITY % event-name "script:event-name %string; #REQUIRED">
  35. <!ENTITY % location "script:location (document|application) #REQUIRED">
  36. <!ENTITY % macro-name "script:macro-name %string; #REQUIRED">
  37. <!ELEMENT script:event (#PCDATA)>
  38. <!ATTLIST script:event %script-language;
  39. %event-name;
  40. %location;
  41. %macro-name;>