Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
cesa.co.za /
fpdf /
Delete
Unzip
Name
Size
Permission
Date
Action
cache
[ DIR ]
drwxr-sr-x
2017-05-29 10:14
classes
[ DIR ]
drwxr-sr-x
2013-05-22 07:48
data
[ DIR ]
drwxr-sr-x
2013-05-22 07:49
demo
[ DIR ]
drwxr-sr-x
2017-10-25 14:17
destinations
[ DIR ]
drwxr-sr-x
2013-05-22 07:51
features
[ DIR ]
drwxr-sr-x
2013-05-22 07:52
fonts
[ DIR ]
drwxr-sr-x
2013-05-22 07:54
fpdf
[ DIR ]
drwxr-sr-x
2013-05-22 07:55
help
[ DIR ]
drwxr-sr-x
2013-05-22 07:55
out
[ DIR ]
drwxr-sr-x
2013-05-22 07:56
postscript
[ DIR ]
drwxr-sr-x
2013-05-22 07:57
samples
[ DIR ]
drwxr-sr-x
2013-05-22 07:57
temp
[ DIR ]
drwxr-sr-x
2017-05-29 18:53
templates
[ DIR ]
drwxr-sr-x
2013-05-22 07:58
unittest
[ DIR ]
drwxr-sr-x
2013-05-22 07:59
.cvsignore
181
B
-rw-r--r--
2013-05-22 07:29
ChangeLog
52.56
KB
-rw-r--r--
2013-05-22 07:48
LICENSE
25.82
KB
-rw-r--r--
2013-05-22 07:56
TODO
894
B
-rw-r--r--
2013-05-22 07:58
autofix.url.php
1.8
KB
-rw-r--r--
2013-05-22 07:29
background.image.php
7.33
KB
-rw-r--r--
2013-05-22 07:29
background.position.php
2.17
KB
-rw-r--r--
2013-05-22 07:29
box.block.inline.php
5.24
KB
-rw-r--r--
2013-05-22 07:29
box.block.php
16.2
KB
-rw-r--r--
2013-05-22 07:29
box.body.php
894
B
-rw-r--r--
2013-05-22 07:29
box.br.php
6.07
KB
-rw-r--r--
2013-05-22 07:29
box.button.php
4.03
KB
-rw-r--r--
2013-05-22 07:29
box.button.reset.php
965
B
-rw-r--r--
2013-05-22 07:29
box.button.submit.php
2.86
KB
-rw-r--r--
2013-05-22 07:29
box.checkbutton.php
6.5
KB
-rw-r--r--
2013-05-22 07:29
box.container.php
33.85
KB
-rw-r--r--
2013-05-22 07:29
box.field.pageno.php
2.16
KB
-rw-r--r--
2013-05-22 07:29
box.field.pages.php
2.26
KB
-rw-r--r--
2013-05-22 07:29
box.form.php
842
B
-rw-r--r--
2013-05-22 07:29
box.frame.php
10.75
KB
-rw-r--r--
2013-05-22 07:29
box.generic.formatted.php
33.63
KB
-rw-r--r--
2013-05-22 07:29
box.generic.inline.php
3.72
KB
-rw-r--r--
2013-05-22 07:29
box.generic.php
11.08
KB
-rw-r--r--
2013-05-22 07:29
box.iframe.php
2.21
KB
-rw-r--r--
2013-05-22 07:29
box.img.php
9.76
KB
-rw-r--r--
2013-05-22 07:29
box.inline.control.php
3.15
KB
-rw-r--r--
2013-05-22 07:29
box.inline.php
14.46
KB
-rw-r--r--
2013-05-22 07:29
box.inline.simple.php
893
B
-rw-r--r--
2013-05-22 07:29
box.input.img.php
3.79
KB
-rw-r--r--
2013-05-22 07:29
box.input.password.php
2.05
KB
-rw-r--r--
2013-05-22 07:29
box.input.text.php
2.35
KB
-rw-r--r--
2013-05-22 07:29
box.input.textarea.php
1.91
KB
-rw-r--r--
2013-05-22 07:29
box.legend.php
1.55
KB
-rw-r--r--
2013-05-22 07:29
box.list-item.php
6.77
KB
-rw-r--r--
2013-05-22 07:29
box.note-call.class.php
6.23
KB
-rw-r--r--
2013-05-22 07:29
box.null.php
959
B
-rw-r--r--
2013-05-22 07:29
box.page.margin.class.php
18.82
KB
-rw-r--r--
2013-05-22 07:30
box.page.php
1.05
KB
-rw-r--r--
2013-05-22 07:30
box.php
18.32
KB
-rw-r--r--
2013-05-22 07:30
box.radiobutton.php
3.5
KB
-rw-r--r--
2013-05-22 07:30
box.select.php
4.3
KB
-rw-r--r--
2013-05-22 07:30
box.table.cell.fake.php
1.23
KB
-rw-r--r--
2013-05-22 07:30
box.table.cell.php
9.92
KB
-rw-r--r--
2013-05-22 07:30
box.table.php
43.15
KB
-rw-r--r--
2013-05-22 07:30
box.table.row.php
6.08
KB
-rw-r--r--
2013-05-22 07:30
box.table.section.php
1.52
KB
-rw-r--r--
2013-05-22 07:30
box.text.php
20.09
KB
-rw-r--r--
2013-05-22 07:30
box.text.string.php
1.41
KB
-rw-r--r--
2013-05-22 07:30
box.utils.text-align.inc.php
2.87
KB
-rw-r--r--
2013-05-22 07:30
box.whitespace.php
3.21
KB
-rw-r--r--
2013-05-22 07:30
config.inc.php
5.78
KB
-rw-r--r--
2013-05-22 07:48
config.parse.php
7.61
KB
-rw-r--r--
2013-05-22 07:48
content_type.class.php
506
B
-rw-r--r--
2013-05-22 07:48
converter.class.php
1.4
KB
-rw-r--r--
2013-05-22 07:48
css.background.attachment.inc.php
788
B
-rw-r--r--
2013-05-22 07:48
css.background.color.inc.php
1.98
KB
-rw-r--r--
2013-05-22 07:48
css.background.image.inc.php
1021
B
-rw-r--r--
2013-05-22 07:48
css.background.inc.php
2.13
KB
-rw-r--r--
2013-05-22 07:48
css.background.position.inc.php
3.56
KB
-rw-r--r--
2013-05-22 07:48
css.background.repeat.inc.php
1.47
KB
-rw-r--r--
2013-05-22 07:48
css.border.bottom.color.inc.php
753
B
-rw-r--r--
2013-05-22 07:48
css.border.bottom.inc.php
469
B
-rw-r--r--
2013-05-22 07:48
css.border.bottom.style.inc.php
726
B
-rw-r--r--
2013-05-22 07:48
css.border.bottom.width.inc.php
920
B
-rw-r--r--
2013-05-22 07:48
css.border.collapse.inc.php
812
B
-rw-r--r--
2013-05-22 07:48
css.border.color.inc.php
2.74
KB
-rw-r--r--
2013-05-22 07:48
css.border.inc.php
6.41
KB
-rw-r--r--
2013-05-22 07:48
css.border.left.color.inc.php
718
B
-rw-r--r--
2013-05-22 07:48
css.border.left.inc.php
459
B
-rw-r--r--
2013-05-22 07:48
css.border.left.style.inc.php
712
B
-rw-r--r--
2013-05-22 07:48
css.border.left.width.inc.php
904
B
-rw-r--r--
2013-05-22 07:48
css.border.right.color.inc.php
725
B
-rw-r--r--
2013-05-22 07:48
css.border.right.inc.php
464
B
-rw-r--r--
2013-05-22 07:48
css.border.right.style.inc.php
719
B
-rw-r--r--
2013-05-22 07:48
css.border.right.width.inc.php
912
B
-rw-r--r--
2013-05-22 07:48
css.border.style.inc.php
3.04
KB
-rw-r--r--
2013-05-22 07:49
css.border.top.color.inc.php
711
B
-rw-r--r--
2013-05-22 07:49
css.border.top.inc.php
455
B
-rw-r--r--
2013-05-22 07:49
css.border.top.style.inc.php
705
B
-rw-r--r--
2013-05-22 07:49
css.border.top.width.inc.php
896
B
-rw-r--r--
2013-05-22 07:49
css.border.width.inc.php
2.77
KB
-rw-r--r--
2013-05-22 07:49
css.bottom.inc.php
1.62
KB
-rw-r--r--
2013-05-22 07:49
css.cache.class.php
1018
B
-rw-r--r--
2013-05-22 07:49
css.clear.inc.php
903
B
-rw-r--r--
2013-05-22 07:49
css.color.inc.php
610
B
-rw-r--r--
2013-05-22 07:49
css.colors.inc.php
9.09
KB
-rw-r--r--
2013-05-22 07:49
css.constants.inc.php
6.32
KB
-rw-r--r--
2013-05-22 07:49
css.content.inc.php
3.39
KB
-rw-r--r--
2013-05-22 07:49
css.counter.collection.php
378
B
-rw-r--r--
2013-05-22 07:49
css.counter.php
419
B
-rw-r--r--
2013-05-22 07:49
css.direction.inc.php
685
B
-rw-r--r--
2013-05-22 07:49
css.display.inc.php
1
KB
-rw-r--r--
2013-05-22 07:49
css.float.inc.php
737
B
-rw-r--r--
2013-05-22 07:49
css.font-family.inc.php
1.22
KB
-rw-r--r--
2013-05-22 07:49
css.font-size.inc.php
1.51
KB
-rw-r--r--
2013-05-22 07:49
css.font-style.inc.php
531
B
-rw-r--r--
2013-05-22 07:49
css.font-weight.inc.php
671
B
-rw-r--r--
2013-05-22 07:49
css.font.inc.php
6.67
KB
-rw-r--r--
2013-05-22 07:49
css.frame.inc.php
100
B
-rw-r--r--
2013-05-22 07:49
css.height.inc.php
1.04
KB
-rw-r--r--
2013-05-22 07:49
css.html2ps.html.content.inc.php
984
B
-rw-r--r--
2013-05-22 07:49
css.html2ps.pixels.php
496
B
-rw-r--r--
2013-05-22 07:49
css.html2ps.pseudoelements.inc.php
755
B
-rw-r--r--
2013-05-22 07:49
css.inc.php
4.3
KB
-rw-r--r--
2013-05-22 07:49
css.left.inc.php
693
B
-rw-r--r--
2013-05-22 07:49
css.letter-spacing.inc.php
829
B
-rw-r--r--
2013-05-22 07:49
css.line-height.inc.php
1.88
KB
-rw-r--r--
2013-05-22 07:49
css.list-style-image.inc.php
1.06
KB
-rw-r--r--
2013-05-22 07:49
css.list-style-position.inc.php
695
B
-rw-r--r--
2013-05-22 07:49
css.list-style-type.inc.php
3.66
KB
-rw-r--r--
2013-05-22 07:49
css.list-style.inc.php
1.3
KB
-rw-r--r--
2013-05-22 07:49
css.margin.inc.php
2.87
KB
-rw-r--r--
2013-05-22 07:49
css.max-height.inc.php
1.3
KB
-rw-r--r--
2013-05-22 07:49
css.min-height.inc.php
1.22
KB
-rw-r--r--
2013-05-22 07:49
css.min-width.inc.php
521
B
-rw-r--r--
2013-05-22 07:49
css.orphans.inc.php
407
B
-rw-r--r--
2013-05-22 07:49
css.overflow.inc.php
910
B
-rw-r--r--
2013-05-22 07:49
css.padding.inc.php
2.96
KB
-rw-r--r--
2013-05-22 07:49
css.page-break-after.inc.php
351
B
-rw-r--r--
2013-05-22 07:49
css.page-break-before.inc.php
360
B
-rw-r--r--
2013-05-22 07:49
css.page-break-inside.inc.php
360
B
-rw-r--r--
2013-05-22 07:49
css.page-break.inc.php
813
B
-rw-r--r--
2013-05-22 07:49
css.page.inc.php
484
B
-rw-r--r--
2013-05-22 07:49
css.parse.inc.php
9.29
KB
-rw-r--r--
2013-05-22 07:49
css.parse.media.inc.php
805
B
-rw-r--r--
2013-05-22 07:49
css.parse.properties.php
1.92
KB
-rw-r--r--
2013-05-22 07:49
css.position.inc.php
1.06
KB
-rw-r--r--
2013-05-22 07:49
css.property.collection.php
2.99
KB
-rw-r--r--
2013-05-22 07:49
css.property.declaration.php
1.45
KB
-rw-r--r--
2013-05-22 07:49
css.property.handler.class.php
2.39
KB
-rw-r--r--
2013-05-22 07:49
css.property.stringset.class.php
783
B
-rw-r--r--
2013-05-22 07:49
css.property.sub.class.php
1.69
KB
-rw-r--r--
2013-05-22 07:49
css.property.sub.field.class.php
455
B
-rw-r--r--
2013-05-22 07:49
css.pseudo.add.margin.inc.php
9
B
-rw-r--r--
2013-05-22 07:49
css.pseudo.align.inc.php
1.75
KB
-rw-r--r--
2013-05-22 07:49
css.pseudo.cellpadding.inc.php
587
B
-rw-r--r--
2013-05-22 07:49
css.pseudo.cellspacing.inc.php
587
B
-rw-r--r--
2013-05-22 07:49
css.pseudo.form.action.inc.php
441
B
-rw-r--r--
2013-05-22 07:49
css.pseudo.form.radiogroup.inc.php
477
B
-rw-r--r--
2013-05-22 07:49
css.pseudo.link.destination.inc.php
484
B
-rw-r--r--
2013-05-22 07:49
css.pseudo.link.target.inc.php
955
B
-rw-r--r--
2013-05-22 07:49
css.pseudo.listcounter.inc.php
567
B
-rw-r--r--
2013-05-22 07:49
css.pseudo.localalign.inc.php
588
B
-rw-r--r--
2013-05-22 07:49
css.pseudo.nowrap.inc.php
532
B
-rw-r--r--
2013-05-22 07:49
css.pseudo.table.border.inc.php
2.24
KB
-rw-r--r--
2013-05-22 07:49
css.right.inc.php
702
B
-rw-r--r--
2013-05-22 07:49
css.rules.inc.php
1.98
KB
-rw-r--r--
2013-05-22 07:49
css.rules.page.inc.php
11.19
KB
-rw-r--r--
2013-05-22 07:49
css.ruleset.class.php
9.87
KB
-rw-r--r--
2013-05-22 07:49
css.selectors.inc.php
7.4
KB
-rw-r--r--
2013-05-22 07:49
css.size.inc.php
1.54
KB
-rw-r--r--
2013-05-22 07:49
css.state.class.php
5.15
KB
-rw-r--r--
2013-05-22 07:49
css.table-layout.inc.php
734
B
-rw-r--r--
2013-05-22 07:49
css.text-align.inc.php
1.22
KB
-rw-r--r--
2013-05-22 07:49
css.text-decoration.inc.php
1.54
KB
-rw-r--r--
2013-05-22 07:49
css.text-indent.inc.php
845
B
-rw-r--r--
2013-05-22 07:49
css.text-transform.inc.php
1.1
KB
-rw-r--r--
2013-05-22 07:49
css.top.inc.php
685
B
-rw-r--r--
2013-05-22 07:49
css.utils.inc.php
4.95
KB
-rw-r--r--
2013-05-22 07:49
css.vertical-align.inc.php
4.91
KB
-rw-r--r--
2013-05-22 07:49
css.visibility.inc.php
941
B
-rw-r--r--
2013-05-22 07:49
css.white-space.inc.php
1.02
KB
-rw-r--r--
2013-05-22 07:49
css.widows.inc.php
394
B
-rw-r--r--
2013-05-22 07:49
css.width.inc.php
1.76
KB
-rw-r--r--
2013-05-22 07:49
css.word-spacing.inc.php
817
B
-rw-r--r--
2013-05-22 07:49
css.z-index.inc.php
473
B
-rw-r--r--
2013-05-22 07:49
default.css
7.31
KB
-rw-r--r--
2013-05-22 07:50
destination._http.class.php
618
B
-rw-r--r--
2013-05-22 07:51
destination._interface.class.php
518
B
-rw-r--r--
2013-05-22 07:51
destination.browser.class.php
377
B
-rw-r--r--
2013-05-22 07:50
destination.download.class.php
540
B
-rw-r--r--
2013-05-22 07:50
destination.file.class.php
622
B
-rw-r--r--
2013-05-22 07:51
dispatcher.class.php
713
B
-rw-r--r--
2013-05-22 07:51
doc.anchor.class.php
1.07
KB
-rw-r--r--
2013-05-22 07:51
dom.activelink.inc.php
2.81
KB
-rw-r--r--
2013-05-22 07:51
dom.php4.inc.php
1.5
KB
-rw-r--r--
2013-05-22 07:51
dom.php5.inc.php
1.88
KB
-rw-r--r--
2013-05-22 07:51
encoding.cp1251.inc.php
10.38
KB
-rw-r--r--
2013-05-22 07:51
encoding.cp866.inc.php
10.89
KB
-rw-r--r--
2013-05-22 07:51
encoding.dingbats.inc.php
11.71
KB
-rw-r--r--
2013-05-22 07:51
encoding.entities.inc.php
25.8
KB
-rw-r--r--
2013-05-22 07:51
encoding.glyphs.inc.php
101.68
KB
-rw-r--r--
2013-05-22 07:51
encoding.inc.php
1.61
KB
-rw-r--r--
2013-05-22 07:51
encoding.iso-8859-1.inc.php
10.49
KB
-rw-r--r--
2013-05-22 07:51
encoding.iso-8859-10.inc.php
10.92
KB
-rw-r--r--
2013-05-22 07:51
encoding.iso-8859-11.inc.php
9.63
KB
-rw-r--r--
2013-05-22 07:51
encoding.iso-8859-13.inc.php
10.6
KB
-rw-r--r--
2013-05-22 07:51
encoding.iso-8859-14.inc.php
10.98
KB
-rw-r--r--
2013-05-22 07:51
encoding.iso-8859-15.inc.php
10.55
KB
-rw-r--r--
2013-05-22 07:51
encoding.iso-8859-2.inc.php
16.24
KB
-rw-r--r--
2013-05-22 07:51
encoding.iso-8859-3.inc.php
15.74
KB
-rw-r--r--
2013-05-22 07:51
encoding.iso-8859-4.inc.php
10.71
KB
-rw-r--r--
2013-05-22 07:51
encoding.iso-8859-5.inc.php
10.36
KB
-rw-r--r--
2013-05-22 07:51
encoding.iso-8859-6.inc.php
8.88
KB
-rw-r--r--
2013-05-22 07:51
encoding.iso-8859-7.inc.php
10.22
KB
-rw-r--r--
2013-05-22 07:51
encoding.iso-8859-8.inc.php
5.96
KB
-rw-r--r--
2013-05-22 07:51
encoding.iso-8859-9.inc.php
10.49
KB
-rw-r--r--
2013-05-22 07:51
encoding.koi8-r.inc.php
11.09
KB
-rw-r--r--
2013-05-22 07:51
encoding.symbol.inc.php
10.04
KB
-rw-r--r--
2013-05-22 07:51
encoding.windows-1250.inc.php
17
KB
-rw-r--r--
2013-05-22 07:52
encoding.windows-1251.inc.php
10.39
KB
-rw-r--r--
2013-05-22 07:52
encoding.windows-1252.inc.php
16.32
KB
-rw-r--r--
2013-05-22 07:52
error.php
191
B
-rw-r--r--
2013-05-22 07:52
favicon.ico
1
B
-rw-r--r--
2013-05-22 07:52
fetched_data._html.class.php
405
B
-rw-r--r--
2013-05-22 07:52
fetched_data._interface.class.php
286
B
-rw-r--r--
2013-05-22 07:52
fetched_data.file.class.php
688
B
-rw-r--r--
2013-05-22 07:52
fetched_data.url.class.php
1.31
KB
-rw-r--r--
2013-05-22 07:52
fetcher._interface.class.php
995
B
-rw-r--r--
2013-05-22 07:52
fetcher.local.class.php
357
B
-rw-r--r--
2013-05-22 07:52
fetcher.memory.class.php
600
B
-rw-r--r--
2013-05-22 07:52
fetcher.url.class.php
14.88
KB
-rw-r--r--
2013-05-22 07:52
fetcher.url.curl.class.php
2.6
KB
-rw-r--r--
2013-05-22 07:52
filter.data._interface.class.php
138
B
-rw-r--r--
2013-05-22 07:52
filter.data.doctype.class.php
1.98
KB
-rw-r--r--
2013-05-22 07:52
filter.data.encoding.class.php
889
B
-rw-r--r--
2013-05-22 07:52
filter.data.html2xhtml.class.php
211
B
-rw-r--r--
2013-05-22 07:52
filter.data.ucs2.class.php
283
B
-rw-r--r--
2013-05-22 07:52
filter.data.utf8.class.php
284
B
-rw-r--r--
2013-05-22 07:52
filter.data.xhtml2xhtml.class.php
169
B
-rw-r--r--
2013-05-22 07:52
filter.output._interface.class.php
249
B
-rw-r--r--
2013-05-22 07:52
filter.output.gzip.class.php
391
B
-rw-r--r--
2013-05-22 07:52
filter.output.ps2pdf.class.php
1.28
KB
-rw-r--r--
2013-05-22 07:52
filter.post._interface.class.php
142
B
-rw-r--r--
2013-05-22 07:52
filter.post.positioned.class.php
806
B
-rw-r--r--
2013-05-22 07:52
filter.post.postponed.class.php
765
B
-rw-r--r--
2013-05-22 07:52
filter.pre._interface.class.php
160
B
-rw-r--r--
2013-05-22 07:52
filter.pre.fields.class.php
1.7
KB
-rw-r--r--
2013-05-22 07:52
filter.pre.footnotes.class.php
1.16
KB
-rw-r--r--
2013-05-22 07:52
filter.pre.headfoot.class.php
1.05
KB
-rw-r--r--
2013-05-22 07:52
filter.pre.height-constraint.class.php
1.2
KB
-rw-r--r--
2013-05-22 07:52
flow_context.class.inc.php
11.75
KB
-rw-r--r--
2013-05-22 07:52
flow_viewport.class.inc.php
829
B
-rw-r--r--
2013-05-22 07:52
font.class.php
6.15
KB
-rw-r--r--
2013-05-22 07:52
font.constants.inc.php
228
B
-rw-r--r--
2013-05-22 07:52
font.resolver.class.php
7.41
KB
-rw-r--r--
2013-05-22 07:52
font_factory.class.php
1.51
KB
-rw-r--r--
2013-05-22 07:55
globals.inc.php
51
B
-rw-r--r--
2013-05-22 07:55
globals.php
119
B
-rw-r--r--
2013-05-22 07:55
height.php
7.25
KB
-rw-r--r--
2013-05-22 07:55
html.attrs.inc.php
31.84
KB
-rw-r--r--
2013-05-22 07:56
html2ps.config
7.99
KB
-rw-r--r--
2013-05-22 07:56
html2ps.config.recommended
8.94
KB
-rw-r--r--
2013-05-22 07:56
image.class.php
5.3
KB
-rw-r--r--
2013-05-22 07:56
index.php
185
B
-rw-r--r--
2013-05-22 07:56
inline.content.builder.factory.php
1.03
KB
-rw-r--r--
2013-05-22 07:56
inline.content.builder.normal.php
1.65
KB
-rw-r--r--
2013-05-22 07:56
inline.content.builder.nowrap.php
632
B
-rw-r--r--
2013-05-22 07:56
inline.content.builder.php
53.41
KB
-rw-r--r--
2013-05-22 07:56
inline.content.builder.pre.line.php
1.09
KB
-rw-r--r--
2013-05-22 07:56
inline.content.builder.pre.php
938
B
-rw-r--r--
2013-05-22 07:56
inline.content.builder.pre.wrap.php
1.18
KB
-rw-r--r--
2013-05-22 07:56
layout._interface.class.php
149
B
-rw-r--r--
2013-05-22 07:56
layout.default.class.php
3.25
KB
-rw-r--r--
2013-05-22 07:56
layout.page.breaks.php
21.75
KB
-rw-r--r--
2013-05-22 07:56
layout.vertical.php
1.46
KB
-rw-r--r--
2013-05-22 07:56
list-style.image.php
335
B
-rw-r--r--
2013-05-22 07:56
logger.php
424
B
-rw-r--r--
2013-05-22 07:56
manager.encoding.php
8.57
KB
-rw-r--r--
2013-05-22 07:56
media.layout.inc.php
3.6
KB
-rw-r--r--
2013-05-22 07:56
observer.class.php
89
B
-rw-r--r--
2013-05-22 07:56
ot.class.php
27.21
KB
-rw-r--r--
2013-05-22 07:56
output._generic.class.php
8.72
KB
-rw-r--r--
2013-05-22 07:56
output._generic.pdf.class.php
582
B
-rw-r--r--
2013-05-22 07:56
output._generic.ps.class.php
851
B
-rw-r--r--
2013-05-22 07:56
output._interface.class.php
2.78
KB
-rw-r--r--
2013-05-22 07:56
output.fastps.class.php
12.54
KB
-rw-r--r--
2013-05-22 07:56
output.fastps.l2.class.php
2.95
KB
-rw-r--r--
2013-05-22 07:56
output.fpdf.class.php
11.46
KB
-rw-r--r--
2013-05-22 07:56
output.pcl.class.php
8.35
KB
-rw-r--r--
2013-05-22 07:56
output.pdflib.1.6.class.php
7.66
KB
-rw-r--r--
2013-05-22 07:56
output.pdflib.class.php
12.68
KB
-rw-r--r--
2013-05-22 07:56
output.pdflib.old.class.php
959
B
-rw-r--r--
2013-05-22 07:56
output.png.class.php
15.33
KB
-rw-r--r--
2013-05-22 07:56
parser._interface.class.php
134
B
-rw-r--r--
2013-05-22 07:56
parser.xhtml.class.php
3.24
KB
-rw-r--r--
2013-05-22 07:56
path.php
3.3
KB
-rw-r--r--
2013-05-22 07:56
path.point.php
187
B
-rw-r--r--
2013-05-22 07:56
path.rectangle.php
566
B
-rw-r--r--
2013-05-22 07:56
pdf.fpdf.makefont.php
13.08
KB
-rw-r--r--
2013-05-22 07:56
pdf.fpdf.php
86.35
KB
-rw-r--r--
2013-05-22 07:56
pipeline.class.php
43.81
KB
-rw-r--r--
2013-05-22 07:56
pipeline.factory.class.php
1.17
KB
-rw-r--r--
2013-05-22 07:56
ps.image.encoder.inc.php
8
B
-rw-r--r--
2013-05-22 07:57
ps.image.encoder.simple.inc.php
7.07
KB
-rw-r--r--
2013-05-22 07:57
ps.image.encoder.stream.inc.php
657
B
-rw-r--r--
2013-05-22 07:57
ps.l2.image.encoder.stream.inc.php
1.13
KB
-rw-r--r--
2013-05-22 07:57
ps.l3.image.encoder.stream.inc.php
7.92
KB
-rw-r--r--
2013-05-22 07:57
ps.unicode.inc.php
3.07
KB
-rw-r--r--
2013-05-22 07:57
ps.utils.inc.php
344
B
-rw-r--r--
2013-05-22 07:57
ps.whitespace.inc.php
103
B
-rw-r--r--
2013-05-22 07:57
render.queue.class.php
275
B
-rw-r--r--
2013-05-22 07:57
render.stacking.context.class.php
589
B
-rw-r--r--
2013-05-22 07:57
render.stacking.level.class.php
246
B
-rw-r--r--
2013-05-22 07:57
strategy.link.rendering.normal.php
929
B
-rw-r--r--
2013-05-22 07:57
strategy.page.break.simple.php
370
B
-rw-r--r--
2013-05-22 07:57
strategy.page.break.smart.php
395
B
-rw-r--r--
2013-05-22 07:57
strategy.position.absolute.php
3.07
KB
-rw-r--r--
2013-05-22 07:57
strategy.table.layout.auto.php
10.07
KB
-rw-r--r--
2013-05-22 07:57
strategy.table.layout.fixed.php
381
B
-rw-r--r--
2013-05-22 07:57
strategy.width.absolute.positioned.php
7.54
KB
-rw-r--r--
2013-05-22 07:58
strategy.width.max.natural.php
2.55
KB
-rw-r--r--
2013-05-22 07:58
strategy.width.max.php
2.14
KB
-rw-r--r--
2013-05-22 07:58
strategy.width.min.nowrap.php
1.36
KB
-rw-r--r--
2013-05-22 07:58
strategy.width.min.php
2.01
KB
-rw-r--r--
2013-05-22 07:58
stubs._.inc.php
48
B
-rw-r--r--
2013-05-22 07:58
stubs.common.inc.php
615
B
-rw-r--r--
2013-05-22 07:58
stubs.file_get_contents.inc.php
253
B
-rw-r--r--
2013-05-22 07:58
stubs.file_put_contents.inc.php
133
B
-rw-r--r--
2013-05-22 07:58
stubs.is_executable.inc.php
54
B
-rw-r--r--
2013-05-22 07:58
stubs.memory_get_usage.inc.php
854
B
-rw-r--r--
2013-05-22 07:58
tag.body.inc.php
97
B
-rw-r--r--
2013-05-22 07:58
tag.font.inc.php
97
B
-rw-r--r--
2013-05-22 07:58
tag.frame.inc.php
3.59
KB
-rw-r--r--
2013-05-22 07:58
tag.img.inc.php
98
B
-rw-r--r--
2013-05-22 07:58
tag.input.inc.php
156
B
-rw-r--r--
2013-05-22 07:58
tag.select.inc.php
100
B
-rw-r--r--
2013-05-22 07:58
tag.span.inc.php
97
B
-rw-r--r--
2013-05-22 07:58
tag.table.inc.php
99
B
-rw-r--r--
2013-05-22 07:58
tag.td.inc.php
97
B
-rw-r--r--
2013-05-22 07:58
tag.utils.inc.php
98
B
-rw-r--r--
2013-05-22 07:58
tree.navigation.inc.php
1.68
KB
-rw-r--r--
2013-05-22 07:58
treebuilder.class.php
2.25
KB
-rw-r--r--
2013-05-22 07:58
utils_array.php
1.95
KB
-rw-r--r--
2013-05-22 07:59
utils_graphic.php
1.46
KB
-rw-r--r--
2013-05-22 07:59
utils_number.php
451
B
-rw-r--r--
2013-05-22 07:59
utils_text.php
182
B
-rw-r--r--
2013-05-22 07:59
utils_units.php
1.84
KB
-rw-r--r--
2013-05-22 07:59
utils_url.php
2.22
KB
-rw-r--r--
2013-05-22 07:59
value.background.php
4.81
KB
-rw-r--r--
2013-05-22 07:59
value.border.class.php
5.64
KB
-rw-r--r--
2013-05-22 07:59
value.border.color.class.php
483
B
-rw-r--r--
2013-05-22 07:59
value.border.edge.class.php
7.44
KB
-rw-r--r--
2013-05-22 07:59
value.border.style.class.php
451
B
-rw-r--r--
2013-05-22 07:59
value.border.width.class.php
483
B
-rw-r--r--
2013-05-22 07:59
value.bottom.php
314
B
-rw-r--r--
2013-05-22 07:59
value.color.php
1.14
KB
-rw-r--r--
2013-05-22 07:59
value.content.item.php
5
KB
-rw-r--r--
2013-05-22 07:59
value.content.php
1.01
KB
-rw-r--r--
2013-05-22 07:59
value.font.class.php
1.57
KB
-rw-r--r--
2013-05-22 07:59
value.generic.length.php
2.44
KB
-rw-r--r--
2013-05-22 07:59
value.generic.percentage.php
1.77
KB
-rw-r--r--
2013-05-22 07:59
value.generic.php
294
B
-rw-r--r--
2013-05-22 07:59
value.height.php
314
B
-rw-r--r--
2013-05-22 07:59
value.left.php
308
B
-rw-r--r--
2013-05-22 07:59
value.line-height.class.php
909
B
-rw-r--r--
2013-05-22 07:59
value.list-style.class.php
1.25
KB
-rw-r--r--
2013-05-22 07:59
value.margin.class.php
3.43
KB
-rw-r--r--
2013-05-22 07:59
value.max-height.php
323
B
-rw-r--r--
2013-05-22 07:59
value.min-height.php
323
B
-rw-r--r--
2013-05-22 07:59
value.padding.class.php
3.29
KB
-rw-r--r--
2013-05-22 07:59
value.right.php
311
B
-rw-r--r--
2013-05-22 07:59
value.text-indent.class.php
845
B
-rw-r--r--
2013-05-22 07:59
value.top.php
305
B
-rw-r--r--
2013-05-22 07:59
width.constraint.php
909
B
-rw-r--r--
2013-05-22 07:59
width.php
2.16
KB
-rw-r--r--
2013-05-22 07:59
xhtml.autoclose.inc.php
2.31
KB
-rw-r--r--
2013-05-22 07:59
xhtml.comments.inc.php
240
B
-rw-r--r--
2013-05-22 07:59
xhtml.deflist.inc.php
854
B
-rw-r--r--
2013-05-22 07:59
xhtml.entities.inc.php
2.88
KB
-rw-r--r--
2013-05-22 07:59
xhtml.lists.inc.php
982
B
-rw-r--r--
2013-05-22 07:59
xhtml.p.inc.php
1.16
KB
-rw-r--r--
2013-05-22 07:59
xhtml.script.inc.php
211
B
-rw-r--r--
2013-05-22 07:59
xhtml.selects.inc.php
727
B
-rw-r--r--
2013-05-22 07:59
xhtml.style.inc.php
1.18
KB
-rw-r--r--
2013-05-22 07:59
xhtml.tables.inc.php
4.49
KB
-rw-r--r--
2013-05-22 07:59
xhtml.utils.inc.php
15.36
KB
-rw-r--r--
2013-05-22 07:59
xml.validation.inc.php
326
B
-rw-r--r--
2013-05-22 07:59
Save
Rename
<?php // $Header: /cvsroot/html2ps/box.generic.formatted.php,v 1.21 2007/02/18 09:55:10 Konstantin Exp $ require_once(HTML2PS_DIR.'doc.anchor.class.php'); require_once(HTML2PS_DIR.'layout.vertical.php'); class GenericFormattedBox extends GenericBox { var $uid; function _get_collapsable_top_margin_internal() { $positive_margin = 0; $negative_margin = 0; $current_box = $this; $border = $current_box->get_css_property(CSS_BORDER); $padding = $current_box->get_css_property(CSS_PADDING); if ($border->top->get_width() > 0 || $padding->top->value > 0) { return 0; }; while (!is_null($current_box) && $current_box->isBlockLevel()) { $margin = $current_box->get_css_property(CSS_MARGIN); $border = $current_box->get_css_property(CSS_BORDER); $padding = $current_box->get_css_property(CSS_PADDING); $top_margin = $margin->top->value; if ($top_margin >= 0) { $positive_margin = max($positive_margin, $top_margin); } else { $negative_margin = min($negative_margin, $top_margin); }; if ($border->top->get_width() > 0 || $padding->top->value > 0) { $current_box = null; } else { $current_box = $current_box->get_first(); }; }; return $positive_margin /*- $negative_margin*/; } function _get_collapsable_top_margin_external() { $positive_margin = 0; $negative_margin = 0; $current_box = $this; while (!is_null($current_box) && $current_box->isBlockLevel()) { $margin = $current_box->get_css_property(CSS_MARGIN); $border = $current_box->get_css_property(CSS_BORDER); $padding = $current_box->get_css_property(CSS_PADDING); $top_margin = $margin->top->value; if ($top_margin >= 0) { $positive_margin = max($positive_margin, $top_margin); } else { $negative_margin = min($negative_margin, $top_margin); }; if ($border->top->get_width() > 0 || $padding->top->value > 0) { $current_box = null; } else { $current_box = $current_box->get_first(); }; }; return $positive_margin + $negative_margin; } function _get_collapsable_bottom_margin_external() { $positive_margin = 0; $negative_margin = 0; $current_box = $this; while (!is_null($current_box) && $current_box->isBlockLevel()) { $margin = $current_box->get_css_property(CSS_MARGIN); $border = $current_box->get_css_property(CSS_BORDER); $padding = $current_box->get_css_property(CSS_PADDING); $bottom_margin = $margin->bottom->value; if ($bottom_margin >= 0) { $positive_margin = max($positive_margin, $bottom_margin); } else { $negative_margin = min($negative_margin, $bottom_margin); }; if ($border->bottom->get_width() > 0 || $padding->bottom->value > 0) { $current_box = null; } else { $current_box = $current_box->get_last(); }; }; return $positive_margin + $negative_margin; } function collapse_margin_bottom(&$parent, &$context) { /** * Now, if there's a parent for this box, we extend its height to fit current box. * If parent generated new flow context (like table cell or floating box), its content * area should include the current box bottom margin (bottom margin does not colllapse). * See CSS 2.1 for more detailed explanations. * * @see FlowContext::container_uid() * * @link http://www.w3.org/TR/CSS21/visudet.html#Computing_widths_and_margins CSS 2.1 8.3.1 Calculating widths and margins */ $parent_border = $parent->get_css_property(CSS_BORDER); $parent_padding = $parent->get_css_property(CSS_PADDING); /** * The bottom margin of an in-flow block-level element with a * 'height' of 'auto' and 'min-height' less than the element's * used height and 'max-height' greater than the element's used * height is adjoining to its last in-flow block-level child's * bottom margin if the element has NO BOTTOM PADDING OR BORDER. */ $last =& $parent->get_last(); $is_last = !is_null($last) && $this->uid == $last->uid; if (!is_null($last) && $is_last && // This element is a last in-flow block level element AND $parent->uid != $context->container_uid() && // Parent element did not generate new flow context (like table-cell) AND $parent_border->bottom->get_width() == 0 && // Parent have NO bottom border AND $parent_padding->bottom->value == 0) { // Parent have NO bottom padding AND $parent->extend_height($this->get_bottom_border()); } else { // Otherwise (in particular, if this box is not last), bottom // margin of the current box will be contained inside the current box $parent->extend_height($this->get_bottom_margin()); } $cm = $context->get_collapsed_margin(); $context->pop_collapsed_margin(); $context->pop_collapsed_margin(); /** * shift current parent 'watermark' to the current box margin edge; * all content now will be drawn below this mark (with a small exception * of elements having negative vertical margins, of course). */ if ($is_last && ($parent_border->bottom->get_width() > 0 || $parent_padding->bottom->value > 0)) { $context->push_collapsed_margin( 0 ); return $this->get_bottom_border() - $cm; } else { $collapsable = $this->_get_collapsable_bottom_margin_external(); $context->push_collapsed_margin( $collapsable ); return $this->get_bottom_border(); }; } function collapse_margin(&$parent, &$context) { // Do margin collapsing // Margin collapsing is done as follows: // 1. If previous sibling was an inline element (so, parent line box was not empty), // then no collapsing will take part // 2. If NO previous element exists at all, then collapse current box top margin // with parent's collapsed top margin. // 2.1. If parent element was float, no collapsing should be // 3. If there's previous block element, collapse current box top margin // with previous elemenent's collapsed bottom margin // Check if current parent line box contains inline elements only. In this case the only // margin will be current box margin if (!$parent->line_box_empty()) { // Case (1). Previous element was inline element; no collapsing $parent->close_line($context); $vmargin = $this->_get_collapsable_top_margin_external(); } else { $parent_first = $this->parent->get_first(); if (is_null($parent_first) || // Unfortunately, we sometimes get null as a value of $parent_first; this should be checked $parent_first->uid == $this->uid) { // Case (2). No previous block element at all; Collapse with parent margins $collapsable = $this->_get_collapsable_top_margin_external(); $collapsed = $context->get_collapsed_margin(); $vmargin = max(0, $collapsable - $collapsed); } else { // Case (3). There's a previous block element $collapsable = $this->_get_collapsable_top_margin_external(); $collapsed = $context->get_collapsed_margin(); // In this case, base position is a bottom border of the previous element // $vmargin - offset from a base position - should be at least $collapsed // (value of collapsed bottom margins from the previous element and its // children). If current element have $collapsable - collapsed top margin // (from itself and children too) greater that this value, we should // offset it further to the bottom $vmargin = max($collapsable, $collapsed); }; }; // Determine the base Y coordinate of box margin edge $y = $parent->_current_y - $vmargin; $internal_margin = $this->_get_collapsable_top_margin_internal(); $context->push_collapsed_margin($internal_margin); return $y; } function GenericFormattedBox() { $this->GenericBox(); // Layout data $this->baseline = 0; $this->parent = null; } function readCSS(&$state) { parent::readCSS($state); $this->_readCSS($state, array(CSS_OVERFLOW, CSS_PAGE_BREAK_AFTER, CSS_PAGE_BREAK_BEFORE, CSS_PAGE_BREAK_INSIDE, CSS_ORPHANS, CSS_WIDOWS, CSS_POSITION, CSS_TEXT_ALIGN, CSS_WHITE_SPACE, CSS_CLEAR, CSS_CONTENT, CSS_HTML2PS_PSEUDOELEMENTS, CSS_FLOAT, CSS_Z_INDEX, CSS_HTML2PS_ALIGN, CSS_HTML2PS_NOWRAP, CSS_DIRECTION, CSS_PAGE)); $this->_readCSSLengths($state, array(CSS_BACKGROUND, CSS_BORDER, CSS_BOTTOM, CSS_TOP, CSS_LEFT, CSS_RIGHT, CSS_MARGIN, CSS_PADDING, CSS_TEXT_INDENT, CSS_HTML2PS_COMPOSITE_WIDTH, CSS_HEIGHT, CSS_MIN_HEIGHT, CSS_MAX_HEIGHT, CSS_LETTER_SPACING )); /** * CSS 2.1, p 8.5.2: * * If an element's border color is not specified with a border * property, user agents must use the value of the element's * 'color' property as the computed value for the border color. */ $border =& $this->get_css_property(CSS_BORDER); $color =& $this->get_css_property(CSS_COLOR); if ($border->top->isDefaultColor()) { $border->top->setColor($color); }; if ($border->right->isDefaultColor()) { $border->right->setColor($color); }; if ($border->bottom->isDefaultColor()) { $border->bottom->setColor($color); }; if ($border->left->isDefaultColor()) { $border->left->setColor($color); }; $this->setCSSProperty(CSS_BORDER, $border); $this->_height_constraint =& HCConstraint::create($this); $this->height = 0; // 'width' $wc =& $this->get_css_property(CSS_WIDTH); $this->width = $wc->apply(0,0); // 'PSEUDO-CSS' properties // '-localalign' switch ($state->get_property(CSS_HTML2PS_LOCALALIGN)) { case LA_LEFT: break; case LA_RIGHT: $margin =& $this->get_css_property(CSS_MARGIN); $margin->left->auto = true; $this->setCSSProperty(CSS_MARGIN, $margin); break; case LA_CENTER: $margin =& $this->get_css_property(CSS_MARGIN); $margin->left->auto = true; $margin->right->auto = true; $this->setCSSProperty(CSS_MARGIN, $margin); break; }; } function _calc_percentage_margins(&$parent) { $margin = $this->get_css_property(CSS_MARGIN); $containing_block =& $this->_get_containing_block(); $margin->calcPercentages($containing_block['right'] - $containing_block['left']); $this->setCSSProperty(CSS_MARGIN, $margin); } function _calc_percentage_padding(&$parent) { $padding = $this->get_css_property(CSS_PADDING); $containing_block =& $this->_get_containing_block(); $padding->calcPercentages($containing_block['right'] - $containing_block['left']); $this->setCSSProperty(CSS_PADDING, $padding); } function apply_clear($y, &$context) { return LayoutVertical::apply_clear($this, $y, $context); } /** * CSS 2.1: * 10.2 Content width: the 'width' property * Values have the following meanings: * <percentage> Specifies a percentage width. The percentage is calculated with respect to the width of the generated box's containing block. * * If the containing block's width depends on this element's width, * then the resulting layout is undefined in CSS 2.1. */ function _calc_percentage_width(&$parent, &$context) { $wc = $this->get_css_property(CSS_WIDTH); if ($wc->isFraction()) { $containing_block =& $this->_get_containing_block(); // Calculate actual width $width = $wc->apply($this->width, $containing_block['right'] - $containing_block['left']); // Assign calculated width $this->put_width($width); // Remove any width constraint $this->setCSSProperty(CSS_WIDTH, new WCConstant($width)); } } function _calc_auto_width_margins(&$parent) { $float = $this->get_css_property(CSS_FLOAT); if ($float !== FLOAT_NONE) { $this->_calc_auto_width_margins_float($parent); } else { $this->_calc_auto_width_margins_normal($parent); } } // 'auto' margin value became 0, 'auto' width is 'shrink-to-fit' function _calc_auto_width_margins_float(&$parent) { // If 'width' is set to 'auto' the used value is the "shrink-to-fit" width // TODO if (false) { // Calculation of the shrink-to-fit width is similar to calculating the // width of a table cell using the automatic table layout // algorithm. Roughly: calculate the preferred width by formatting the // content without breaking lines other than where explicit line breaks // occur, and also calculate the preferred minimum width, e.g., by trying // all possible line breaks. CSS 2.1 does not define the exact // algorithm. Thirdly, find the available width: in this case, this is // the width of the containing block minus minus the used values of // 'margin-left', 'border-left-width', 'padding-left', 'padding-right', // 'border-right-width', 'margin-right', and the widths of any relevant // scroll bars. // Then the shrink-to-fit width is: min(max(preferred minimum width, available width), preferred width). // Store used value }; // If 'margin-left', or 'margin-right' are computed as 'auto', their used value is '0'. $margin = $this->get_css_property(CSS_MARGIN); if ($margin->left->auto) { $margin->left->value = 0; } if ($margin->right->auto) { $margin->right->value = 0; } $this->setCSSProperty(CSS_MARGIN, $margin); $this->width = $this->get_width(); } // 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' = width of containing block function _calc_auto_width_margins_normal(&$parent) { // get the containing block width $containing_block =& $this->_get_containing_block(); $parent_width = $containing_block['right'] - $containing_block['left']; // If 'width' is set to 'auto', any other 'auto' values become '0' and 'width' follows from the resulting equality. // If both 'margin-left' and 'margin-right' are 'auto', their used values are equal. // This horizontally centers the element with respect to the edges of the containing block. $margin = $this->get_css_property(CSS_MARGIN); if ($margin->left->auto && $margin->right->auto) { $margin_value = ($parent_width - $this->get_full_width()) / 2; $margin->left->value = $margin_value; $margin->right->value = $margin_value; } else { // If there is exactly one value specified as 'auto', its used value follows from the equality. if ($margin->left->auto) { $margin->left->value = $parent_width - $this->get_full_width(); } elseif ($margin->right->auto) { $margin->right->value = $parent_width - $this->get_full_width(); }; }; $this->setCSSProperty(CSS_MARGIN, $margin); $this->width = $this->get_width(); } function get_descender() { return 0; } function get_ascender() { return 0; } function _get_vert_extra() { return $this->get_extra_top() + $this->get_extra_bottom(); } function _get_hor_extra() { return $this->get_extra_left() + $this->get_extra_right(); } // Width: // 'get-min-width' stub function get_min_width(&$context) { die("OOPS! Unoverridden get_min_width called in class ".get_class($this)." inside ".get_class($this->parent)); } function get_preferred_width(&$context) { return $this->get_max_width($context) - $this->_get_hor_extra(); } function get_preferred_minimum_width(&$context) { return $this->get_min_width($context); } // 'get-max-width' stub function get_max_width(&$context) { die("OOPS! Unoverridden get_max_width called in class ".get_class($this)." inside ".get_class($this->parent)); } function get_max_width_natural(&$context) { return $this->get_max_width($context); } function get_full_width() { return $this->get_width() + $this->_get_hor_extra(); } function put_full_width($value) { // Calculate value of additional horizontal space consumed by margins and padding $this->width = $value - $this->_get_hor_extra(); } function &_get_containing_block() { $position = $this->get_css_property(CSS_POSITION); switch ($position) { case POSITION_ABSOLUTE: $containing_block =& $this->_get_containing_block_absolute(); return $containing_block; case POSITION_FIXED: $containing_block =& $this->_get_containing_block_fixed(); return $containing_block; case POSITION_STATIC: case POSITION_RELATIVE: $containing_block =& $this->_get_containing_block_static(); return $containing_block; default: die(sprintf('Unexpected position enum value: %d', $position)); }; } function &_get_containing_block_fixed() { $media = $GLOBALS['g_media']; $containing_block = array(); $containing_block['left'] = mm2pt($media->margins['left']); $containing_block['right'] = mm2pt($media->margins['left'] + $media->real_width()); $containing_block['top'] = mm2pt($media->margins['bottom'] + $media->real_height()); $containing_block['bottom'] = mm2pt($media->margins['bottom']); return $containing_block; } // Get the position and size of containing block for current // ABSOLUTE POSITIONED element. It is assumed that this function // is called for ABSOLUTE positioned boxes ONLY // // @return associative array with 'top', 'bottom', 'right' and 'left' // indices in data space describing the position of containing block // function &_get_containing_block_absolute() { $parent =& $this->parent; // No containing block at all... // How could we get here? if (is_null($parent)) { trigger_error("No containing block found for absolute-positioned element", E_USER_ERROR); }; // CSS 2.1: // If the element has 'position: absolute', the containing block is established by the // nearest ancestor with a 'position' of 'absolute', 'relative' or 'fixed', in the following way: // - In the case that the ancestor is inline-level, the containing block depends on // the 'direction' property of the ancestor: // 1. If the 'direction' is 'ltr', the top and left of the containing block are the top and left // content edges of the first box generated by the ancestor, and the bottom and right are the // bottom and right content edges of the last box of the ancestor. // 2. If the 'direction' is 'rtl', the top and right are the top and right edges of the first // box generated by the ancestor, and the bottom and left are the bottom and left content // edges of the last box of the ancestor. // - Otherwise, the containing block is formed by the padding edge of the ancestor. // TODO: inline-level ancestors while ((!is_null($parent->parent)) && ($parent->get_css_property(CSS_POSITION) === POSITION_STATIC)) { $parent =& $parent->parent; } // Note that initial containg block (containig BODY element) will be formed by BODY margin edge, // unlike other blocks which are formed by padding edges if ($parent->parent) { // Normal containing block $containing_block = array(); $containing_block['left'] = $parent->get_left_padding(); $containing_block['right'] = $parent->get_right_padding(); $containing_block['top'] = $parent->get_top_padding(); $containing_block['bottom'] = $parent->get_bottom_padding(); } else { // Initial containing block $containing_block = array(); $containing_block['left'] = $parent->get_left_margin(); $containing_block['right'] = $parent->get_right_margin(); $containing_block['top'] = $parent->get_top_margin(); $containing_block['bottom'] = $parent->get_bottom_margin(); }; return $containing_block; } function &_get_containing_block_static() { $parent =& $this->parent; // No containing block at all... // How could we get here? if (is_null($parent)) { die("No containing block found for static-positioned element"); }; while (!is_null($parent->parent) && !$parent->isBlockLevel() && !$parent->isCell()) { $parent =& $parent->parent; }; // Note that initial containg block (containing BODY element) // will be formed by BODY margin edge, // unlike other blocks which are formed by content edges $containing_block = array(); $containing_block['left'] = $parent->get_left(); $containing_block['right'] = $parent->get_right(); $containing_block['top'] = $parent->get_top(); $containing_block['bottom'] = $parent->get_bottom(); return $containing_block; } // Height constraint function get_height_constraint() { return $this->_height_constraint; } function put_height_constraint(&$wc) { $this->_height_constraint = $wc; } // Extends the box height to cover the given Y coordinate // If box height is already big enough, no changes will be made // // @param $y_coord Y coordinate should be covered by the box // function extend_height($y_coord) { $this->put_height(max($this->get_height(), $this->get_top() - $y_coord)); } function extend_width($x_coord) { $this->put_width(max($this->get_width(), $x_coord - $this->get_left())); } function get_extra_bottom() { $border = $this->get_css_property(CSS_BORDER); return $this->get_margin_bottom() + $border->bottom->get_width() + $this->get_padding_bottom(); } function get_extra_left() { $border = $this->get_css_property(CSS_BORDER); $left_border = $border->left; return $this->get_margin_left() + $left_border->get_width() + $this->get_padding_left(); } function get_extra_right() { $border = $this->get_css_property(CSS_BORDER); $right_border = $border->right; return $this->get_margin_right() + $right_border->get_width() + $this->get_padding_right(); } function get_extra_top() { $border = $this->get_css_property(CSS_BORDER); return $this->get_margin_top() + $border->top->get_width() + $this->get_padding_top(); } function get_extra_line_left() { return 0; } function get_extra_line_right() { return 0; } function get_margin_bottom() { $margin = $this->get_css_property(CSS_MARGIN); return $margin->bottom->value; } function get_margin_left() { $margin = $this->get_css_property(CSS_MARGIN); return $margin->left->value; } function get_margin_right() { $margin = $this->get_css_property(CSS_MARGIN); return $margin->right->value; } function get_margin_top() { $margin = $this->get_css_property(CSS_MARGIN); return $margin->top->value; } function get_padding_right() { $padding = $this->get_css_property(CSS_PADDING); return $padding->right->value; } function get_padding_left() { $padding = $this->get_css_property(CSS_PADDING); return $padding->left->value; } function get_padding_top() { $padding = $this->get_css_property(CSS_PADDING); return $padding->top->value; } function get_border_top_width() { return $this->border->top->width; } function get_padding_bottom() { $padding = $this->get_css_property(CSS_PADDING); return $padding->bottom->value; } function get_left_border() { $padding = $this->get_css_property(CSS_PADDING); $border = $this->get_css_property(CSS_BORDER); return $this->get_left() - $padding->left->value - $border->left->get_width(); } function get_right_border() { $padding = $this->get_css_property(CSS_PADDING); $border = $this->get_css_property(CSS_BORDER); return $this->get_left() + $this->get_width() + $padding->right->value + $border->right->get_width(); } function get_top_border() { $border = $this->get_css_property(CSS_BORDER); return $this->get_top_padding() + $border->top->get_width(); } function get_bottom_border() { $border = $this->get_css_property(CSS_BORDER); return $this->get_bottom_padding() - $border->bottom->get_width(); } function get_left_padding() { $padding = $this->get_css_property(CSS_PADDING); return $this->get_left() - $padding->left->value; } function get_right_padding() { $padding = $this->get_css_property(CSS_PADDING); return $this->get_left() + $this->get_width() + $padding->right->value; } function get_top_padding() { $padding = $this->get_css_property(CSS_PADDING); return $this->get_top() + $padding->top->value; } function get_bottom_padding() { $padding = $this->get_css_property(CSS_PADDING); return $this->get_bottom() - $padding->bottom->value; } function get_left_margin() { return $this->get_left() - $this->get_extra_left(); } function get_right_margin() { return $this->get_right() + $this->get_extra_right(); } function get_bottom_margin() { return $this->get_bottom() - $this->get_extra_bottom(); } function get_top_margin() { $margin = $this->get_css_property(CSS_MARGIN); return $this->get_top_border() + $margin->top->value; } // Geometry function contains_point_margin($x, $y) { // Actually, we treat a small area around the float as "inside" float; // it will help us to prevent incorrectly positioning float due the rounding errors $eps = 0.1; return $this->get_left_margin()-$eps <= $x && $this->get_right_margin()+$eps >= $x && $this->get_top_margin()+$eps >= $y && $this->get_bottom_margin() < $y; } function get_width() { $wc = $this->get_css_property(CSS_WIDTH); if ($this->parent) { return $wc->apply($this->width, $this->parent->width); } else { return $wc->apply($this->width, $this->width); } } // Unlike real/constrained width, or min/max width, // expandable width shows the size current box CAN be expanded; // it is pretty obvious that width-constrained boxes will never be expanded; // any other box can be expanded up to its parent _expandable_ width - // as parent can be expanded too. // function get_expandable_width() { $wc = $this->get_css_property(CSS_WIDTH); if ($wc->isNull() && $this->parent) { return $this->parent->get_expandable_width(); } else { return $this->get_width(); }; } function put_width($value) { // TODO: constraints $this->width = $value; } function get_height() { if ($this->_height_constraint->applicable($this)) { return $this->_height_constraint->apply($this->height, $this); } else { return $this->height; }; } function get_height_padded() { return $this->get_height() + $this->get_padding_top() + $this->get_padding_bottom(); } function put_height($value) { if ($this->_height_constraint->applicable($this)) { $this->height = $this->_height_constraint->apply($value, $this); } else { $this->height = $value; }; } function put_full_height($value) { $this->put_height($value - $this->_get_vert_extra()); } // Returns total height of current element: // top padding + top margin + content + bottom padding + bottom margin + top border + bottom border function get_full_height() { return $this->get_height() + $this->get_extra_top() + $this->get_extra_bottom(); } function get_real_full_height() { return $this->get_full_height(); } function out_of_flow() { $position = $this->get_css_property(CSS_POSITION); $display = $this->get_css_property(CSS_DISPLAY); return $position == POSITION_ABSOLUTE || $position == POSITION_FIXED || $display == 'none'; } function moveto($x, $y) { $this->offset($x - $this->get_left(), $y - $this->get_top()); } function show(&$viewport) { $border = $this->get_css_property(CSS_BORDER); $background = $this->get_css_property(CSS_BACKGROUND); // Draw border of the box $border->show($viewport, $this); // Render background of the box $background->show($viewport, $this); parent::show($viewport); return true; } function show_fixed(&$viewport) { return $this->show($viewport); } function is_null() { return false; } function line_break_allowed() { $white_space = $this->get_css_property(CSS_WHITE_SPACE); $nowrap = $this->get_css_property(CSS_HTML2PS_NOWRAP); return ($white_space === WHITESPACE_NORMAL || $white_space === WHITESPACE_PRE_WRAP || $white_space === WHITESPACE_PRE_LINE) && $nowrap === NOWRAP_NORMAL; } function get_left_background() { return $this->get_left_padding(); } function get_right_background() { return $this->get_right_padding(); } function get_top_background() { return $this->get_top_padding(); } function get_bottom_background() { return $this->get_bottom_padding(); } function isVisibleInFlow() { $visibility = $this->get_css_property(CSS_VISIBILITY); $position = $this->get_css_property(CSS_POSITION); return $visibility === VISIBILITY_VISIBLE && $position !== POSITION_FIXED; } function reflow_footnote(&$parent, &$context) { $this->reflow_static($parent, $context); } /** * The 'top' and 'bottom' properties move relatively positioned * element(s) up or down without changing their size. 'top' moves * the boxes down, and 'bottom' moves them up. Since boxes are not * split or stretched as a result of 'top' or 'bottom', the computed * values are always: top = -bottom. If both are 'auto', their * computed values are both '0'. If one of them is 'auto', it * becomes the negative of the other. If neither is 'auto', 'bottom' * is ignored (i.e., the computed value of 'bottom' will be minus * the value of 'top'). */ function offsetRelative() { /** * Note that percentage positioning values are ignored for * relative positioning */ /** * Check if 'top' value is percentage */ $top = $this->get_css_property(CSS_TOP); if ($top->isNormal()) { $top_value = $top->getPoints(); } elseif ($top->isPercentage()) { $containing_block = $this->_get_containing_block(); $containing_block_height = $containing_block['top'] - $containing_block['bottom']; $top_value = $containing_block_height * $top->getPercentage() / 100; } elseif ($top->isAuto()) { $top_value = null; } /** * Check if 'bottom' value is percentage */ $bottom = $this->get_css_property(CSS_BOTTOM); if ($bottom->isNormal()) { $bottom_value = $bottom->getPoints(); } elseif ($bottom->isPercentage()) { $containing_block = $this->_get_containing_block(); $containing_block_height = $containing_block['top'] - $containing_block['bottom']; $bottom_value = $containing_block_height * $bottom->getPercentage() / 100; } elseif ($bottom->isAuto()) { $bottom_value = null; } /** * Calculate vertical offset for relative positioned box */ if (!is_null($top_value)) { $vertical_offset = -$top_value; } elseif (!is_null($bottom_value)) { $vertical_offset = $bottom_value; } else { $vertical_offset = 0; }; /** * Check if 'left' value is percentage */ $left = $this->get_css_property(CSS_LEFT); if ($left->isNormal()) { $left_value = $left->getPoints(); } elseif ($left->isPercentage()) { $containing_block = $this->_get_containing_block(); $containing_block_width = $containing_block['right'] - $containing_block['left']; $left_value = $containing_block_width * $left->getPercentage() / 100; } elseif ($left->isAuto()) { $left_value = null; } /** * Check if 'right' value is percentage */ $right = $this->get_css_property(CSS_RIGHT); if ($right->isNormal()) { $right_value = $right->getPoints(); } elseif ($right->isPercentage()) { $containing_block = $this->_get_containing_block(); $containing_block_width = $containing_block['right'] - $containing_block['left']; $right_value = $containing_block_width * $right->getPercentage() / 100; } elseif ($right->isAuto()) { $right_value = null; } /** * Calculate vertical offset for relative positioned box */ if (!is_null($left_value)) { $horizontal_offset = $left_value; } elseif (!is_null($right_value)) { $horizontal_offset = -$right_value; } else { $horizontal_offset = 0; }; $this->offset($horizontal_offset, $vertical_offset); } } ?>