1<?php
2
3/**
4 * @package HTML2PS
5 * @subpackage Document
6 * Contains an Anchor class definition
7 *
8 * @see Anchor
9 */
10
11/**
12 * @package HTML2PS
13 * @subpackage Document
14 * Defines a position on the PDF page which could be referred by a hyperlink
15 *
16 * @see GenericFormattedBox::reflow_anchors
17 */
18class Anchor {
19  /**
20   * @var string Symbolic name of the location
21   * @access public
22   */
23  var $name;
24
25  /**
26   * @var int Page number
27   * @access public
28   */
29  var $page;
30
31  /**
32   * @var float X-coordinate on the selected page
33   * @access public
34   */
35  var $x;
36
37  /**
38   * @var float Y-coordinate on the selected page
39   * @access public
40   */
41  var $y;
42
43  /**
44   * Constructs a new Anchor object
45   *
46   * @param string $name symbolic name of the anchor
47   * @param int $page page containing this anhor
48   * @param int $x X-coordinate of the anchor on the selected page
49   * @param int $y Y-coordinate of the anchor on the selected page
50   */
51  function Anchor($name, $page, $x, $y) {
52    $this->name = $name;
53    $this->page = $page;
54    $this->x    = $x;
55    $this->y    = $y;
56  }
57}
58
59?>