Merge branch 'maint-eradicate-gtkhtml' of https://github.com/christopherlam/gnucash into maint

This commit is contained in:
Geert Janssens 2018-06-04 13:44:42 +02:00
commit 06808469d0
11 changed files with 282 additions and 757 deletions

View File

@ -153,9 +153,6 @@
</head> </head>
<body> <body>
<?scm (if (not css?) (begin ?>
<table border="0" cellpadding="16"><tr><td> <!-- hack for GTKHTML -->
<?scm )) ?>
<h3><?scm:d coyname ?></h3> <h3><?scm:d coyname ?></h3>
<h2><?scm:d reportname ?> <?scm:d (qof-print-date opt-date) ?></h2> <h2><?scm:d reportname ?> <?scm:d (qof-print-date opt-date) ?></h2>
@ -314,10 +311,6 @@
<br clear="both"> <br clear="both">
<p><?scm:d opt-extra-notes ?> <p><?scm:d opt-extra-notes ?>
<?scm (if (not css?) (begin ?>
</table> <!-- hack for GTKHTML -->
<?scm )) ?>
</body> </body>
</html> </html>

View File

@ -433,8 +433,6 @@
;; XXX I haven't found a way to get the book for which the report was opened here ;; XXX I haven't found a way to get the book for which the report was opened here
(coyname (or (gnc:company-info (gnc-get-current-book) gnc:*company-name*) "")) (coyname (or (gnc:company-info (gnc-get-current-book) gnc:*company-name*) ""))
(css? (gnc-html-engine-supports-css))
(html #f)) (html #f))
;; end of all the lets. time for some real code ;; end of all the lets. time for some real code
@ -458,8 +456,7 @@
(define (foreignstyle item) (define (foreignstyle item)
;; apply styling for amount in foreign currency ;; apply styling for amount in foreign currency
(if css? (string-append "<span class=\"foreign\">" item "</span>")
(string-append "<span class=\"foreign\">" item "</span>"))
(string-append "<small><i>" item "</i></small>")) (string-append "<small><i>" item "</i></small>"))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@ -671,13 +668,7 @@
(set! html (eguile-file-to-string opt-template-file (the-environment))) (set! html (eguile-file-to-string opt-template-file (the-environment)))
(gnc:debug "balsheet-eg.scm - generated html:") (gnc:debug html) (gnc:debug "balsheet-eg.scm - generated html:") (gnc:debug html)
(gnc:report-finished) (gnc:report-finished)
(if css? ; return report as document or html, depending on version html))
html
(let ((document (gnc:make-html-document)))
(gnc:html-document-add-object! document html)
document))
))
(gnc:define-report (gnc:define-report
'version 1 'version 1

View File

@ -240,22 +240,14 @@
(opt-amount-due-heading (opt-value headingpage2 optname-amount-due)) (opt-amount-due-heading (opt-value headingpage2 optname-amount-due))
(opt-payment-recd-heading (opt-value headingpage2 optname-payment-recd)) (opt-payment-recd-heading (opt-value headingpage2 optname-payment-recd))
(opt-extra-notes (opt-value notespage optname-extra-notes)) (opt-extra-notes (opt-value notespage optname-extra-notes))
(css? #t) ;(and (defined? 'gnc-html-engine-supports-css) (gnc-html-engine-supports-css))) (css? #t)
(html #f)) (html (eguile-file-to-string
(set! html (eguile-file-to-string
opt-template-file opt-template-file
(the-environment))) (the-environment))))
(gnc:debug "receipt.scm: css? is " css?)
(gnc:debug "receipt.scm: defined is " (defined? 'gnc-html-engine-supports-css))
(gnc:debug "receipt.scm - generated html:") (gnc:debug html) (gnc:debug "receipt.scm - generated html:") (gnc:debug html)
(if css? ; return report as document or html, depending on version html))
html
(let ((document (gnc:make-html-document)))
(gnc:html-document-add-object! document html)
document))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Define the report ;;; Define the report

View File

@ -306,22 +306,14 @@
(opt-jobname-text (opt-value headingpage2 optname-jobname-text)) (opt-jobname-text (opt-value headingpage2 optname-jobname-text))
(opt-extra-css (opt-value notespage optname-extra-css)) (opt-extra-css (opt-value notespage optname-extra-css))
(opt-extra-notes (opt-value notespage optname-extra-notes)) (opt-extra-notes (opt-value notespage optname-extra-notes))
(css? #t) ;(and (defined? 'gnc-html-engine-supports-css) (gnc-html-engine-supports-css))) (css? #t)
(html #f)) (html (eguile-file-to-string
(set! html (eguile-file-to-string
opt-template-file opt-template-file
(the-environment))) (the-environment))))
(gnc:debug "taxinvoice.scm: css? is " css?)
(gnc:debug "taxinvoice.scm: defined is " (defined? 'gnc-html-engine-supports-css))
(gnc:debug "taxinvoice.scm - generated html:") (gnc:debug html) (gnc:debug "taxinvoice.scm - generated html:") (gnc:debug html)
(if css? ; return report as document or html, depending on version html))
html
(let ((document (gnc:make-html-document)))
(gnc:html-document-add-object! document html)
document))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Define the report ;;; Define the report

View File

@ -104,7 +104,7 @@
(use-modules (gnucash core-utils)) ; for gnc:version (use-modules (gnucash core-utils)) ; for gnc:version
(gnc:module-load "gnucash/html" 0) ; added for 'gnc-html-engine-supports-css' (gnc:module-load "gnucash/html" 0)
(gnc:module-load "gnucash/tax/us" 0) (gnc:module-load "gnucash/tax/us" 0)
(gnc:module-load "gnucash/report/report-system" 0) (gnc:module-load "gnucash/report/report-system" 0)
@ -262,13 +262,7 @@
(list 'conv-to-report-date (N_ "Nearest report date") (N_ "Use nearest to report date."))) (list 'conv-to-report-date (N_ "Nearest report date") (N_ "Use nearest to report date.")))
))) )))
(if (gnc-html-engine-supports-css)
#t #t
(gnc:register-tax-option
(gnc:make-simple-boolean-option
gnc:pagename-display (N_ "Shade alternate transactions")
"n" (N_ "Shade background of alternate transactions, if more than one displayed.") #f))
)
(gnc:options-set-default-section options gnc:pagename-general) (gnc:options-set-default-section options gnc:pagename-general)
@ -2063,10 +2057,7 @@
"Do not print Action:Memo data") "Do not print Action:Memo data")
(get-option gnc:pagename-display (get-option gnc:pagename-display
"Do not print T-Num:Memo data"))) "Do not print T-Num:Memo data")))
(shade-alternate-transactions? (if (gnc-html-engine-supports-css) (shade-alternate-transactions? #t)
#t
(get-option gnc:pagename-display
"Shade alternate transactions")))
(currency-conversion-date (get-option gnc:pagename-display (currency-conversion-date (get-option gnc:pagename-display
"Currency conversion date")) "Currency conversion date"))
(user-sel-accnts (get-option gnc:pagename-accounts (user-sel-accnts (get-option gnc:pagename-accounts
@ -3058,7 +3049,7 @@
#f) ;;end of if #f) ;;end of if
#f) ;;end of if #f) ;;end of if
(begin ; else do tax report (begin ; else do tax report
(if (gnc-html-engine-supports-css) (if #t ;does gcn-html-engine-support-css? #t!
(begin ;; this is for webkit (begin ;; this is for webkit
(gnc:html-document-set-style! (gnc:html-document-set-style!
doc "header-just-top" doc "header-just-top"
@ -3101,65 +3092,6 @@
'tag "td" 'tag "td"
'attribute (list "class" "number-cell neg") 'attribute (list "class" "number-cell neg")
'attribute (list "valign" "bottom")) 'attribute (list "valign" "bottom"))
)
(begin ;; this is for gtkhtml
(gnc:html-document-set-style!
doc "header-just-top"
'tag "th"
'attribute (list "align" "left")
'attribute (list "valign" "top"))
(gnc:html-document-set-style!
doc "header-just-bot"
'tag "th"
'attribute (list "align" "left")
'attribute (list "valign" "bottom"))
(gnc:html-document-set-style!
doc "column-heading-center"
'tag "th"
'attribute (list "align" "center")
'attribute (list "valign" "bottom"))
(gnc:html-document-set-style!
doc "tran-detail"
'tag "tr"
'attribute (list "valign" "top"))
(gnc:html-document-set-style!
doc "tran-detail-shade"
'tag "tr"
'attribute (list "valign" "top")
'attribute (list "bgcolor" "grey"))
(gnc:html-document-set-style!
doc "column-heading-right"
'tag "th"
'attribute (list "align" "right"))
(gnc:html-document-set-style!
doc "text-cell-center"
'tag "td"
'attribute (list "align" "center"))
(gnc:html-document-set-style!
doc "number-cell-bot"
'tag "td"
'attribute (list "align" "right")
'attribute (list "nowrap" "nowrap")
'attribute (list "valign" "bottom"))
(gnc:html-document-set-style!
doc "number-cell-bot-neg"
'tag "td"
'attribute (list "align" "right")
'attribute (list "nowrap" "nowrap")
'attribute (list "valign" "bottom"))
(gnc:html-document-set-style!
doc "date-cell"
'tag "td"
'attribute (list "nowrap" "nowrap"))
)) ))
(gnc:html-document-set-style! (gnc:html-document-set-style!
@ -3469,10 +3401,7 @@
;; currency conversion date ;; currency conversion date
"&nbsp; &nbsp; &nbsp; ~a <br/>" "&nbsp; &nbsp; &nbsp; ~a <br/>"
;; alternate transaction shading ;; alternate transaction shading
(if (gnc-html-engine-supports-css) "")
""
"&nbsp; &nbsp; &nbsp; ~a <br/>"
))
(if (not (null? user-sel-accnts)) (if (not (null? user-sel-accnts))
"Subset of accounts" "Subset of accounts"
"No accounts (none = all accounts)") "No accounts (none = all accounts)")
@ -3501,11 +3430,6 @@
'conv-to-tran-date) 'conv-to-tran-date)
"PriceDB lookups nearest to transaction date" "PriceDB lookups nearest to transaction date"
"PriceDB lookups nearest to report end date") "PriceDB lookups nearest to report end date")
(if (not (gnc-html-engine-supports-css))
(if shade-alternate-transactions?
"Shade alternate transactions"
"Do not shade alternate transactions")
)
) )
)))) ))))

View File

@ -140,7 +140,6 @@
(push (lambda (l) (set! retval (cons l retval)))) (push (lambda (l) (set! retval (cons l retval))))
(objs (gnc:html-document-objects doc)) (objs (gnc:html-document-objects doc))
(work-to-do (length objs)) (work-to-do (length objs))
(css? (gnc-html-engine-supports-css))
(work-done 0) (work-done 0)
(title (gnc:html-document-title doc))) (title (gnc:html-document-title doc)))
;; compile the doc style ;; compile the doc style
@ -160,9 +159,8 @@
(push "<html>\n") (push "<html>\n")
(push "<head>\n") (push "<head>\n")
(push "<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />\n") (push "<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />\n")
(if css?
(if style-text (if style-text
(push (list "</style>" style-text "<style type=\"text/css\">\n")))) (push (list "</style>" style-text "<style type=\"text/css\">\n")))
(let ((title (gnc:html-document-title doc))) (let ((title (gnc:html-document-title doc)))
(if title (if title
(push (list "</title>" title "<title>\n")))) (push (list "</title>" title "<title>\n"))))

View File

@ -33,7 +33,7 @@
(use-modules (gnucash gnc-module)) (use-modules (gnucash gnc-module))
(use-modules (gnucash gettext)) (use-modules (gnucash gettext))
(gnc:module-load "gnucash/html" 0) ; added for 'gnc-html-engine-supports-css' (gnc:module-load "gnucash/html" 0)
(gnc:module-load "gnucash/report/report-system" 0) (gnc:module-load "gnucash/report/report-system" 0)
(define (easy-options) (define (easy-options)
@ -227,8 +227,6 @@
;;;; ;;;;
;;;; ;;;;
;;;; ;;;;
(if (gnc-html-engine-supports-css)
(begin ;; this is for webkit
(gnc:html-document-set-style! (gnc:html-document-set-style!
ssdoc "column-heading-left" ssdoc "column-heading-left"
'tag "th" 'tag "th"
@ -293,77 +291,6 @@
ssdoc "centered-label-cell" ssdoc "centered-label-cell"
'tag '("td") 'tag '("td")
'attribute (list "class" "centered-label-cell")) 'attribute (list "class" "centered-label-cell"))
)
(begin ;; this is for gtkhtml
(gnc:html-document-set-style!
ssdoc "column-heading-left"
'tag "th"
'attribute (list "align" "left"))
(gnc:html-document-set-style!
ssdoc "column-heading-center"
'tag "th"
'attribute (list "align" "center"))
(gnc:html-document-set-style!
ssdoc "column-heading-right"
'tag "th"
'attribute (list "align" "right"))
(gnc:html-document-set-style!
ssdoc "date-cell"
'tag "td"
'attribute (list "nowrap" "nowrap"))
(gnc:html-document-set-style!
ssdoc "anchor-cell"
'tag "td"
'attribute (list "align" "left")
'attribute (list "nowrap"))
(gnc:html-document-set-style!
ssdoc "number-cell"
'tag "td"
'attribute (list "align" "right")
'attribute (list "nowrap"))
(gnc:html-document-set-style!
ssdoc "number-cell-neg"
'tag "td"
'attribute (list "align" "right")
'attribute (list "nowrap"))
(gnc:html-document-set-style!
ssdoc "number-header"
'tag "th"
'attribute (list "align" "right"))
(gnc:html-document-set-style!
ssdoc "text-cell"
'tag "td"
'attribute (list "align" "left"))
(gnc:html-document-set-style!
ssdoc "total-number-cell"
'tag '("td")
'attribute (list "align" "right"))
(gnc:html-document-set-style!
ssdoc "total-number-cell-neg"
'tag '("td")
'attribute (list "align" "right"))
(gnc:html-document-set-style!
ssdoc "total-label-cell"
'tag '("td")
'attribute (list "align" "left"))
(gnc:html-document-set-style!
ssdoc "centered-label-cell"
'tag '("td")
'attribute (list "align" "center"))
)
)
(if (and bgpixmap (if (and bgpixmap
(not (string=? bgpixmap ""))) (not (string=? bgpixmap "")))

View File

@ -27,7 +27,7 @@
(use-modules (gnucash gnc-module)) (use-modules (gnucash gnc-module))
(use-modules (gnucash gettext)) (use-modules (gnucash gettext))
(gnc:module-load "gnucash/html" 0) ; added for 'gnc-html-engine-supports-css' (gnc:module-load "gnucash/html" 0)
(gnc:module-load "gnucash/report/report-system" 0) (gnc:module-load "gnucash/report/report-system" 0)
(define (fancy-options) (define (fancy-options)
@ -222,8 +222,6 @@
;;;; ;;;;
;;;; ;;;;
;;;; ;;;;
(if (gnc-html-engine-supports-css)
(begin ;; this is for webkit
(gnc:html-document-set-style! (gnc:html-document-set-style!
ssdoc "column-heading-left" ssdoc "column-heading-left"
'tag "th" 'tag "th"
@ -288,77 +286,6 @@
ssdoc "centered-label-cell" ssdoc "centered-label-cell"
'tag '("td") 'tag '("td")
'attribute (list "class" "centered-label-cell")) 'attribute (list "class" "centered-label-cell"))
)
(begin ;; this is for gtkhtml
(gnc:html-document-set-style!
ssdoc "column-heading-left"
'tag "th"
'attribute (list "align" "left"))
(gnc:html-document-set-style!
ssdoc "column-heading-center"
'tag "th"
'attribute (list "align" "center"))
(gnc:html-document-set-style!
ssdoc "column-heading-right"
'tag "th"
'attribute (list "align" "right"))
(gnc:html-document-set-style!
ssdoc "date-cell"
'tag "td"
'attribute (list "nowrap" "nowrap"))
(gnc:html-document-set-style!
ssdoc "anchor-cell"
'tag "td"
'attribute (list "align" "left")
'attribute (list "nowrap"))
(gnc:html-document-set-style!
ssdoc "number-cell"
'tag "td"
'attribute (list "align" "right")
'attribute (list "nowrap"))
(gnc:html-document-set-style!
ssdoc "number-cell-neg"
'tag "td"
'attribute (list "align" "right")
'attribute (list "nowrap"))
(gnc:html-document-set-style!
ssdoc "number-header"
'tag "th"
'attribute (list "align" "right"))
(gnc:html-document-set-style!
ssdoc "text-cell"
'tag "td"
'attribute (list "align" "left"))
(gnc:html-document-set-style!
ssdoc "total-number-cell"
'tag '("td")
'attribute (list "align" "right"))
(gnc:html-document-set-style!
ssdoc "total-number-cell-neg"
'tag '("td")
'attribute (list "align" "right"))
(gnc:html-document-set-style!
ssdoc "total-label-cell"
'tag '("td")
'attribute (list "align" "left"))
(gnc:html-document-set-style!
ssdoc "centered-label-cell"
'tag '("td")
'attribute (list "align" "center"))
)
)
(if (and bgpixmap (if (and bgpixmap
(not (string=? bgpixmap ""))) (not (string=? bgpixmap "")))

View File

@ -38,7 +38,7 @@
(use-modules (gnucash gnc-module)) (use-modules (gnucash gnc-module))
(use-modules (gnucash gettext)) (use-modules (gnucash gettext))
(gnc:module-load "gnucash/html" 0) ; added for 'gnc-html-engine-supports-css' (gnc:module-load "gnucash/html" 0)
(gnc:module-load "gnucash/report/report-system" 0) (gnc:module-load "gnucash/report/report-system" 0)
(define (footer-options) (define (footer-options)
@ -241,8 +241,6 @@
;;;; ;;;;
;;;; ;;;;
;;;; ;;;;
(if (gnc-html-engine-supports-css)
(begin ;; this is for webkit
(gnc:html-document-set-style! (gnc:html-document-set-style!
ssdoc "column-heading-left" ssdoc "column-heading-left"
'tag "th" 'tag "th"
@ -307,77 +305,6 @@
ssdoc "centered-label-cell" ssdoc "centered-label-cell"
'tag '("td") 'tag '("td")
'attribute (list "class" "centered-label-cell")) 'attribute (list "class" "centered-label-cell"))
)
(begin ;; this is for gtkhtml
(gnc:html-document-set-style!
ssdoc "column-heading-left"
'tag "th"
'attribute (list "align" "left"))
(gnc:html-document-set-style!
ssdoc "column-heading-center"
'tag "th"
'attribute (list "align" "center"))
(gnc:html-document-set-style!
ssdoc "column-heading-right"
'tag "th"
'attribute (list "align" "right"))
(gnc:html-document-set-style!
ssdoc "date-cell"
'tag "td"
'attribute (list "nowrap" "nowrap"))
(gnc:html-document-set-style!
ssdoc "anchor-cell"
'tag "td"
'attribute (list "align" "left")
'attribute (list "nowrap"))
(gnc:html-document-set-style!
ssdoc "number-cell"
'tag "td"
'attribute (list "align" "right")
'attribute (list "nowrap"))
(gnc:html-document-set-style!
ssdoc "number-cell-neg"
'tag "td"
'attribute (list "align" "right")
'attribute (list "nowrap"))
(gnc:html-document-set-style!
ssdoc "number-header"
'tag "th"
'attribute (list "align" "right"))
(gnc:html-document-set-style!
ssdoc "text-cell"
'tag "td"
'attribute (list "align" "left"))
(gnc:html-document-set-style!
ssdoc "total-number-cell"
'tag '("td")
'attribute (list "align" "right"))
(gnc:html-document-set-style!
ssdoc "total-number-cell-neg"
'tag '("td")
'attribute (list "align" "right"))
(gnc:html-document-set-style!
ssdoc "total-label-cell"
'tag '("td")
'attribute (list "align" "left"))
(gnc:html-document-set-style!
ssdoc "centered-label-cell"
'tag '("td")
'attribute (list "align" "center"))
)
)
(if (and bgpixmap (if (and bgpixmap
(not (string=? bgpixmap ""))) (not (string=? bgpixmap "")))

View File

@ -40,7 +40,7 @@
(use-modules (gnucash core-utils)) ; for gnc:version (use-modules (gnucash core-utils)) ; for gnc:version
(use-modules (gnucash gettext)) (use-modules (gnucash gettext))
(gnc:module-load "gnucash/html" 0) ; added for 'gnc-html-engine-supports-css' (gnc:module-load "gnucash/html" 0)
(gnc:module-load "gnucash/report/report-system" 0) (gnc:module-load "gnucash/report/report-system" 0)
(define (head-or-tail-options) (define (head-or-tail-options)
@ -306,8 +306,6 @@
;;;; ;;;;
;;;; ;;;;
;;;; ;;;;
(if (gnc-html-engine-supports-css)
(begin ;; this is for webkit
(gnc:html-document-set-style! (gnc:html-document-set-style!
ssdoc "column-heading-left" ssdoc "column-heading-left"
'tag "th" 'tag "th"
@ -372,77 +370,6 @@
ssdoc "centered-label-cell" ssdoc "centered-label-cell"
'tag '("td") 'tag '("td")
'attribute (list "class" "centered-label-cell")) 'attribute (list "class" "centered-label-cell"))
)
(begin ;; this is for gtkhtml
(gnc:html-document-set-style!
ssdoc "column-heading-left"
'tag "th"
'attribute (list "align" "left"))
(gnc:html-document-set-style!
ssdoc "column-heading-center"
'tag "th"
'attribute (list "align" "center"))
(gnc:html-document-set-style!
ssdoc "column-heading-right"
'tag "th"
'attribute (list "align" "right"))
(gnc:html-document-set-style!
ssdoc "date-cell"
'tag "td"
'attribute (list "nowrap" "nowrap"))
(gnc:html-document-set-style!
ssdoc "anchor-cell"
'tag "td"
'attribute (list "align" "left")
'attribute (list "nowrap"))
(gnc:html-document-set-style!
ssdoc "number-cell"
'tag "td"
'attribute (list "align" "right")
'attribute (list "nowrap"))
(gnc:html-document-set-style!
ssdoc "number-cell-neg"
'tag "td"
'attribute (list "align" "right")
'attribute (list "nowrap"))
(gnc:html-document-set-style!
ssdoc "number-header"
'tag "th"
'attribute (list "align" "right"))
(gnc:html-document-set-style!
ssdoc "text-cell"
'tag "td"
'attribute (list "align" "left"))
(gnc:html-document-set-style!
ssdoc "total-number-cell"
'tag '("td")
'attribute (list "align" "right"))
(gnc:html-document-set-style!
ssdoc "total-number-cell-neg"
'tag '("td")
'attribute (list "align" "right"))
(gnc:html-document-set-style!
ssdoc "total-label-cell"
'tag '("td")
'attribute (list "align" "left"))
(gnc:html-document-set-style!
ssdoc "centered-label-cell"
'tag '("td")
'attribute (list "align" "center"))
)
)
(if (and bgpixmap (if (and bgpixmap
(not (string=? bgpixmap ""))) (not (string=? bgpixmap "")))

View File

@ -31,7 +31,7 @@
(use-modules (srfi srfi-13)) (use-modules (srfi srfi-13))
(use-modules (srfi srfi-14)) (use-modules (srfi srfi-14))
(gnc:module-load "gnucash/html" 0) ; added for 'gnc-html-engine-supports-css' (gnc:module-load "gnucash/html" 0)
(gnc:module-load "gnucash/report/report-system" 0) (gnc:module-load "gnucash/report/report-system" 0)
;; plain style sheet ;; plain style sheet
@ -123,8 +123,6 @@
'attribute (list "cellspacing" spacing) 'attribute (list "cellspacing" spacing)
'attribute (list "cellpadding" padding)) 'attribute (list "cellpadding" padding))
(if (gnc-html-engine-supports-css)
(begin ;; this is for webkit
(gnc:html-document-set-style! (gnc:html-document-set-style!
ssdoc "column-heading-left" ssdoc "column-heading-left"
'tag "th" 'tag "th"
@ -189,77 +187,6 @@
ssdoc "centered-label-cell" ssdoc "centered-label-cell"
'tag "td" 'tag "td"
'attribute (list "class" "centered-label-cell")) 'attribute (list "class" "centered-label-cell"))
)
(begin ;; this is for gtkhtml
(gnc:html-document-set-style!
ssdoc "column-heading-left"
'tag "th"
'attribute (list "align" "left"))
(gnc:html-document-set-style!
ssdoc "column-heading-center"
'tag "th"
'attribute (list "align" "center"))
(gnc:html-document-set-style!
ssdoc "column-heading-right"
'tag "th"
'attribute (list "align" "right"))
(gnc:html-document-set-style!
ssdoc "date-cell"
'tag "td"
'attribute (list "nowrap" "nowrap"))
(gnc:html-document-set-style!
ssdoc "anchor-cell"
'tag "td"
'attribute (list "align" "left")
'attribute (list "nowrap"))
(gnc:html-document-set-style!
ssdoc "number-cell"
'tag "td"
'attribute (list "align" "right")
'attribute (list "nowrap"))
(gnc:html-document-set-style!
ssdoc "number-cell-neg"
'tag "td"
'attribute (list "align" "right")
'attribute (list "nowrap"))
(gnc:html-document-set-style!
ssdoc "number-header"
'tag "th"
'attribute (list "align" "right"))
(gnc:html-document-set-style!
ssdoc "text-cell"
'tag "td"
'attribute (list "align" "left"))
(gnc:html-document-set-style!
ssdoc "total-number-cell"
'tag "td"
'attribute (list "align" "right"))
(gnc:html-document-set-style!
ssdoc "total-number-cell-neg"
'tag "td"
'attribute (list "align" "right"))
(gnc:html-document-set-style!
ssdoc "total-label-cell"
'tag "td"
'attribute (list "align" "left"))
(gnc:html-document-set-style!
ssdoc "centered-label-cell"
'tag "td"
'attribute (list "align" "center"))
)
)
(gnc:html-document-set-style! (gnc:html-document-set-style!
ssdoc "normal-row" ssdoc "normal-row"