Home
last modified time | relevance | path

Searched refs:renderer (Results 1 – 16 of 16) sorted by relevance

/webtrees/app/Report/
H A DReportPdfTextBox.php39 * @param PdfRenderer $renderer
43 public function render($renderer): void argument
71 $renderer->checkFootnote($element);
122 $renderer->largestFontHeight = 0;
126 $cX = $renderer->tcpdf->GetX();
129 $cX = $renderer->addMarginX($this->left);
134 $cY = $renderer->tcpdf->GetY();
137 $renderer->tcpdf->setY($cY);
141 if ($this->width === 0.0 || $this->width > $renderer->getRemainingWidthPDF()) {
142 $cW = $renderer->getRemainingWidthPDF();
[all …]
H A DReportHtmlText.php35 * @param HtmlRenderer $renderer
40 public function render($renderer, bool $attrib = true): void argument
43 if ($renderer->getCurrentStyle() !== $this->styleName) {
44 $renderer->setCurrentStyle($this->styleName);
46 $temptext = str_replace('#PAGENUM#', (string) $renderer->pageNo(), $this->text);
60 $renderer->write($temptext, $this->color);
63 $startX = $renderer->getX();
64 $startY = $renderer->getY();
65 $width = $renderer->getRemainingWidth();
67 if ($renderer->getStringWidth($temptext) > $width) {
[all …]
H A DReportHtmlFootnote.php35 * @param HtmlRenderer $renderer
39 public function render($renderer): void argument
41 $renderer->setCurrentStyle('footnotenum');
43 $renderer->write($renderer->entityRTL . $this->num);
51 * @param HtmlRenderer $renderer
55 public function renderFootnote($renderer): void argument
57 if ($renderer->getCurrentStyle() !== $this->styleName) {
58 $renderer->setCurrentStyle($this->styleName);
61 $temptext = str_replace('#PAGENUM#', (string) $renderer->pageNo(), $this->text);
71 $renderer->write($this->num . '. ' . $temptext);
[all …]
H A DReportPdfCell.php35 * @param PdfRenderer $renderer
39 public function render($renderer): void argument
41 $temptext = str_replace('#PAGENUM#', (string) $renderer->tcpdf->PageNo(), $this->text);
52 if ($renderer->getCurrentStyle() !== $this->styleName) {
53 $renderer->setCurrentStyle($this->styleName);
66 $renderer->tcpdf->setFillColor($r, $g, $b);
80 $renderer->tcpdf->setDrawColor($r, $g, $b);
88 $renderer->tcpdf->setTextColor($r, $g, $b);
90 $renderer->tcpdf->setTextColor(0, 0, 0);
95 $cX = $renderer->tcpdf->GetX();
[all …]
H A DReportHtmlTextbox.php37 * @param HtmlRenderer $renderer
41 public function render($renderer): void argument
72 $renderer->checkFootnote($element);
125 $renderer->largestFontHeight = 0;
129 $cX = $renderer->getX();
132 $renderer->setX($cX);
136 $this->top = $renderer->getY();
138 $renderer->setY($this->top);
142 if ($this->width === 0.0 || $this->width > $renderer->getRemainingWidth()) {
143 $this->width = $renderer->getRemainingWidth();
[all …]
H A DReportHtmlCell.php33 * @param HtmlRenderer $renderer
37 public function render($renderer): void argument
42 $temptext = str_replace('#PAGENUM#', (string) $renderer->pageNo(), $this->text);
53 if ($renderer->getCurrentStyle() !== $this->styleName) {
54 $renderer->setCurrentStyle($this->styleName);
58 $cP = $renderer->cPadding;
62 $this->left = $renderer->getX();
64 $renderer->setX($this->left);
68 $this->top = $renderer->getY();
70 $renderer->setY($this->top);
[all …]
H A DReportPdfFootnote.php36 * @param PdfRenderer $renderer
40 public function render($renderer): void argument
42 $renderer->setCurrentStyle('footnotenum');
43 …$renderer->tcpdf->Write($renderer->getCurrentStyleHeight(), $this->numText, $this->addlink); //sou…
50 * @param PdfRenderer $renderer
54 public function renderFootnote($renderer): void argument
56 if ($renderer->getCurrentStyle() !== $this->styleName) {
57 $renderer->setCurrentStyle($this->styleName);
59 $temptext = str_replace('#PAGENUM#', (string) $renderer->tcpdf->PageNo(), $this->text);
61 $renderer->tcpdf->setLink($this->addlink, -1, -1);
[all …]
H A DReportPdfText.php37 * @param PdfRenderer $renderer
41 public function render($renderer): void argument
44 if ($renderer->getCurrentStyle() !== $this->styleName) {
45 $renderer->setCurrentStyle($this->styleName);
47 $temptext = str_replace('#PAGENUM#', (string) $renderer->tcpdf->PageNo(), $this->text);
63 $renderer->tcpdf->setTextColor($r, $g, $b);
65 $renderer->tcpdf->setTextColor(0, 0, 0);
83 $renderer->tcpdf->writeHTML(
92 $renderer->tcpdf->setTextColor(0, 0, 0);
99 * @param PdfRenderer $renderer
[all …]
H A DReportPdfImage.php30 * @param PdfRenderer $renderer
34 public function render($renderer): void argument
39 if ($renderer->checkPageBreakPDF($this->height + 5)) {
40 $this->y = $renderer->tcpdf->GetY();
43 $curx = $renderer->tcpdf->GetX();
47 $this->x = $renderer->tcpdf->GetX();
50 $this->x = $renderer->addMarginX($this->x);
51 $renderer->tcpdf->setX($curx);
55 …if ($lastpicbottom !== null && $renderer->tcpdf->PageNo() === $lastpicpage && $lastpicbottom >= $r…
56 $renderer->tcpdf->setY($lastpicbottom + 5);
[all …]
H A DReportHtmlImage.php30 * @param HtmlRenderer $renderer
34 public function render($renderer): void argument
40 $this->x = $renderer->getX();
44 …if ($lastpicbottom !== null && $renderer->pageNo() === $lastpicpage && $lastpicbottom >= $renderer
45 $renderer->setY($lastpicbottom + $renderer->cPadding * 2);
47 $this->y = $renderer->getY();
53 … '<div style="position:absolute;top:', $this->y, 'pt;left:0pt;width:', $renderer->getRemainingWidt…
57 … '<div style="position:absolute;top:', $this->y, 'pt;left:0pt;width:', $renderer->getRemainingWidt…
61 … '<div style="position:absolute;top:', $this->y, 'pt;left:0pt;width:', $renderer->getRemainingWidt…
65 …echo '<img src="', $this->file, '" style="position:absolute;', $renderer->alignRTL, ':', $this->x,…
[all …]
H A DReportPdfLine.php30 * @param PdfRenderer $renderer
34 public function render($renderer): void argument
37 $this->x1 = $renderer->tcpdf->GetX();
40 $this->y1 = $renderer->tcpdf->GetY();
43 $this->x2 = $renderer->getMaxLineWidth();
46 $this->y2 = $renderer->tcpdf->GetY();
48 if ($renderer->tcpdf->getRTL()) {
49 …$renderer->tcpdf->Line($renderer->tcpdf->getPageWidth() - $this->x1, $this->y1, $renderer->tcpdf->…
51 $renderer->tcpdf->Line($this->x1, $this->y1, $this->x2, $this->y2);
H A DReportHtmlLine.php30 * @param HtmlRenderer $renderer
34 public function render($renderer): void argument
37 $this->x1 = $renderer->getX();
40 $this->y1 = $renderer->getY();
43 $this->x2 = $renderer->getRemainingWidth();
46 $this->y2 = $renderer->getY();
50 …tyle="position:absolute;overflow:hidden;border-', $renderer->alignRTL, ':solid black 1pt;', $rende…
54 …style="position:absolute;overflow:hidden;border-top:solid black 1pt;', $renderer->alignRTL, ':', $…
58 $renderer->addMaxY($this->y1);
59 $renderer->addMaxY($this->y2);
H A DReportBaseElement.php38 * @param HtmlRenderer|PdfRenderer $renderer
42 public function render($renderer): void argument
50 * @param HtmlRenderer|PdfRenderer $renderer
54 public function getHeight($renderer): float argument
62 * @param HtmlRenderer|PdfRenderer $renderer
66 public function getWidth($renderer): array argument
122 * @param HtmlRenderer|PdfRenderer $renderer
126 public function renderFootnote($renderer): void argument
H A DReportBaseLine.php60 * @param HtmlRenderer|PdfRenderer $renderer
64 public function getHeight($renderer): float argument
72 * @param HtmlRenderer|PdfRenderer $renderer
76 public function getWidth($renderer): array argument
78 return [abs($this->x2 - $this->x1), 1, $this->getHeight($renderer)];
H A DReportBaseImage.php73 * @param HtmlRenderer|PdfRenderer $renderer
77 public function getHeight($renderer): float argument
85 * @param HtmlRenderer|PdfRenderer $renderer
89 public function getWidth($renderer): array argument
H A DReportBaseCell.php156 * @param HtmlRenderer|PdfRenderer $renderer
160 public function getHeight($renderer): float argument
180 * @param HtmlRenderer|PdfRenderer $renderer
184 public function getWidth($renderer): array argument