Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
 
3
class BoxPage extends GenericContainerBox {
4
  function BoxPageMargin() {
5
    $this->GenericContainerBox();
6
  }
7
 
8
  function &create(&$pipeline, $rules) {
9
    $box =& new BoxPage();
10
 
11
    $state =& $pipeline->get_current_css_state();
12
    $state->pushDefaultState();
13
    $rules->apply($state);
14
    $box->readCSS($state);
15
    $state->popState();
16
 
17
    return $box;
18
  }
19
 
20
  function get_bottom_background() {
21
    return $this->get_bottom_margin();
22
  }
23
 
24
  function get_left_background()   {
25
    return $this->get_left_margin();
26
  }
27
 
28
  function get_right_background()  {
29
    return $this->get_right_margin();
30
  }
31
 
32
  function get_top_background()    {
33
    return $this->get_top_margin();
34
  }
35
 
36
  function reflow(&$media) {
37
    $this->put_left(mm2pt($media->margins['left']));
38
    $this->put_top(mm2pt($media->height() - $media->margins['top']));
39
    $this->put_width(mm2pt($media->real_width()));
40
    $this->put_height(mm2pt($media->real_height()));
41
  }
42
 
43
  function show(&$driver) {
44
    $this->offset(0, $driver->offset);
45
    parent::show($driver);
46
  }
47
}
48
 
49
?>