[STYLESHEETS] modify stylesheet to accept document style-text

This commit will modify stylesheet-*.scm to pass the *document*
style-text as well as the *style-sheet* style-text to the <style> tag.
This commit is contained in:
Christopher Lam 2018-06-03 19:35:24 +08:00
parent da0160add8
commit ccf3ebda16
6 changed files with 7 additions and 6 deletions

View File

@ -132,7 +132,7 @@
)
;; Adds CSS style information to an html document
(define (add-css-information-to-doc options ssdoc)
(define (add-css-information-to-doc options ssdoc doc)
(let*
((opt-val
(lambda (section name)
@ -173,6 +173,7 @@
"td.total-number-cell { " total-number-cell-font-info " }\n"
"td.total-label-cell { " total-label-cell-font-info " }\n"
"td.centered-label-cell { text-align: center; " centered-label-cell-font-info " }\n"
(or (gnc:html-document-style-text doc) "")
)
)
)

View File

@ -344,7 +344,7 @@
(if (and logopixmap (> (string-length logopixmap) 0))
(set! headcolumn 1))
(add-css-information-to-doc options ssdoc)
(add-css-information-to-doc options ssdoc doc)
(let* ((title (gnc:html-document-title doc))
(doc-headline (gnc:html-document-headline doc))

View File

@ -325,7 +325,7 @@
(gnc:html-document-set-style!
ssdoc "a" 'tag ""))
(add-css-information-to-doc options ssdoc)
(add-css-information-to-doc options ssdoc doc)
(let ((t (gnc:make-html-table)))
;; we don't want a bevel for this table, but we don't want

View File

@ -343,7 +343,7 @@
(if (not links?)
(gnc:html-document-set-style! ssdoc "a" 'tag ""))
(add-css-information-to-doc options ssdoc)
(add-css-information-to-doc options ssdoc doc)
(let ((t (gnc:make-html-table)))
;; we don't want a bevel for this table, but we don't want

View File

@ -408,7 +408,7 @@
(if (not links?)
(gnc:html-document-set-style! ssdoc "a" 'tag ""))
(add-css-information-to-doc options ssdoc)
(add-css-information-to-doc options ssdoc doc)
(let ((t (gnc:make-html-table)))
;; we don't want a bevel for this table, but we don't want

View File

@ -216,7 +216,7 @@
ssdoc "a"
'tag ""))
(add-css-information-to-doc options ssdoc)
(add-css-information-to-doc options ssdoc doc)
(let* ((title (gnc:html-document-title doc))
(doc-headline (gnc:html-document-headline doc))