org-odt.el: Improve how labels are applied and generated.
commitbf3e9aa9a28832992f96c04902937c91cfc67a6a
authorJambunathan K <kjambunathan@gmail.com>
Fri, 16 Sep 2011 18:42:02 +0000 (17 00:12 +0530)
committerJambunathan K <kjambunathan@gmail.com>
Fri, 16 Sep 2011 18:47:22 +0000 (17 00:17 +0530)
tree971416ad2d1593c05e0c6e3a947f6de5b7d0c70e
parent647849dff9f3314bf0899aad68b275b7b88a59fa
org-odt.el: Improve how labels are applied and generated.

* contrib/lisp/org-odt.el
(org-odt-entity-labels-alist, org-odt-entity-counts-plist)
(org-odt-label-def-ref-spec): New variables.
(org-odt-init-outfile): Reset above variables.
(org-odt-add-label-definition, org-odt-get-label-definition)
(org-odt-format-label-definition)
(org-odt-format-label-reference)
(org-odt-fixup-label-references): New functions.
(org-export-odt-preprocess-label-references): Modified.
(org-odt-end-export): Call `org-odt-fixup-label-references'.
(org-odt-parse-label): Removed
(org-odt-default-entity): Removed.
(org-odt-format-entity-caption): Fixed signature so that
category param is no longer optional.  Use
`org-odt-format-label-definition'.
(org-export-odt-do-format-formula)
(org-export-odt-do-format-image): Pass the mandatory category
param to `org-odt-format-entity-caption'.

* contrib/odt/styles/OrgOdtContentTemplate.xml: Add Figure and
Equation as sequence declarations.

Most of these changes can be pushed to org-exp.el.  For now park the
changes locally to org-odt.el.
contrib/lisp/org-odt.el
contrib/odt/styles/OrgOdtContentTemplate.xml