Function: org-odt--frame
org-odt--frame is a byte-compiled function defined in ox-odt.el.gz.
Signature
(org-odt--frame TEXT WIDTH HEIGHT STYLE &optional EXTRA ANCHOR-TYPE &rest TITLE-AND-DESC)
Source Code
;; Defined in /usr/src/emacs/lisp/org/ox-odt.el.gz
;;;; Frame
(defun org-odt--frame (text width height style &optional extra
anchor-type &rest title-and-desc)
(let ((frame-attrs
(concat
(if width (format " svg:width=\"%0.2fcm\"" width) "")
(if height (format " svg:height=\"%0.2fcm\"" height) "")
extra
(format " text:anchor-type=\"%s\"" (or anchor-type "paragraph"))
(format " draw:name=\"%s\""
(car (org-odt-add-automatic-style "Frame"))))))
(format
"\n<draw:frame draw:style-name=\"%s\"%s>\n%s\n</draw:frame>"
style frame-attrs
(concat text
(let ((title (car title-and-desc))
(desc (cadr title-and-desc)))
(concat (when title
(format "<svg:title>%s</svg:title>"
(org-odt--encode-plain-text title t)))
(when desc
(format "<svg:desc>%s</svg:desc>"
(org-odt--encode-plain-text desc t)))))))))