PDF: code clean up lib/redmine/export/pdf.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5719 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
5742f78bd1
commit
3b50809423
|
@ -326,7 +326,8 @@ module Redmine
|
||||||
end
|
end
|
||||||
|
|
||||||
# Renders MultiCells and returns the maximum height used
|
# Renders MultiCells and returns the maximum height used
|
||||||
def issues_to_pdf_write_cells(pdf, col_values, col_widths, row_height, head=false)
|
def issues_to_pdf_write_cells(pdf, col_values, col_widths,
|
||||||
|
row_height, head=false)
|
||||||
base_y = pdf.GetY
|
base_y = pdf.GetY
|
||||||
max_height = row_height
|
max_height = row_height
|
||||||
col_values.each_with_index do |column, i|
|
col_values.each_with_index do |column, i|
|
||||||
|
@ -343,7 +344,8 @@ module Redmine
|
||||||
end
|
end
|
||||||
|
|
||||||
# Draw lines to close the row (MultiCell border drawing in not uniform)
|
# Draw lines to close the row (MultiCell border drawing in not uniform)
|
||||||
def issues_to_pdf_draw_borders(pdf, top_x, top_y, lower_y, id_width, col_widths)
|
def issues_to_pdf_draw_borders(pdf, top_x, top_y, lower_y,
|
||||||
|
id_width, col_widths)
|
||||||
col_x = top_x + id_width
|
col_x = top_x + id_width
|
||||||
pdf.Line(col_x, top_y, col_x, lower_y) # id right border
|
pdf.Line(col_x, top_y, col_x, lower_y) # id right border
|
||||||
col_widths.each do |width|
|
col_widths.each do |width|
|
||||||
|
@ -366,7 +368,8 @@ module Redmine
|
||||||
pdf.footer_date = format_date(Date.today)
|
pdf.footer_date = format_date(Date.today)
|
||||||
pdf.AddPage
|
pdf.AddPage
|
||||||
pdf.SetFontStyle('B',11)
|
pdf.SetFontStyle('B',11)
|
||||||
pdf.RDMMultiCell(190,5, "#{issue.project} - #{issue.tracker} # #{issue.id}: #{issue.subject}")
|
pdf.RDMMultiCell(190,5,
|
||||||
|
"#{issue.project} - #{issue.tracker} # #{issue.id}: #{issue.subject}")
|
||||||
pdf.Ln
|
pdf.Ln
|
||||||
|
|
||||||
y0 = pdf.GetY
|
y0 = pdf.GetY
|
||||||
|
|
Loading…
Reference in New Issue