~ubuntu-branches/ubuntu/dapper/poppler/dapper-security

« back to all changes in this revision

Viewing changes to utils/HtmlLinks.h

  • Committer: Bazaar Package Importer
  • Author(s): Ondřej Surý
  • Date: 2005-12-30 11:34:07 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051230113407-8grizsk0ar874uoi
Tags: 0.4.3-1
* New upstream release.
* New maintainer (Closes: #344738)
* CVE-2005-3191 and CAN-2005-2097 fixes merged upstream.
* Fixed some rendering bugs and disabled Cairo output
  (Closes: #314556, #322964, #328211)
* Acknowledge NMU (Closes: #342288)
* Add 001-selection-crash-bug.patch (Closes: #330544)
* Add poppler-utils (merge patch from Ubuntu)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef _HTML_LINKS
2
 
#define _HTML_LINKS
3
 
 
4
 
#include "GVector.h"
5
 
#include "goo/GooString.h"
6
 
 
7
 
class HtmlLink{
8
 
 
9
 
private:  
10
 
  double Xmin;
11
 
  double Ymin;
12
 
  double Xmax;
13
 
  double Ymax;
14
 
  GooString* dest;
15
 
 
16
 
public:
17
 
  HtmlLink(){dest=NULL;}
18
 
  HtmlLink(const HtmlLink& x);
19
 
  HtmlLink& operator=(const HtmlLink& x);
20
 
  HtmlLink(double xmin,double ymin,double xmax,double ymax,GooString *_dest);
21
 
  ~HtmlLink();
22
 
  GBool HtmlLink::isEqualDest(const HtmlLink& x) const;
23
 
  GooString *getDest(){return new GooString(dest);}
24
 
  double getX1() const {return Xmin;}
25
 
  double getX2() const {return Xmax;}
26
 
  double getY1() const {return Ymin;}
27
 
  double getY2() const {return Ymax;}
28
 
  GBool inLink(double xmin,double ymin,double xmax,double ymax) const ;
29
 
  //GooString *Link(GooString *content);
30
 
  GooString* getLinkStart();
31
 
  
32
 
};
33
 
 
34
 
class HtmlLinks{
35
 
private:
36
 
 GVector<HtmlLink> *accu;
37
 
public:
38
 
 HtmlLinks();
39
 
 ~HtmlLinks();
40
 
 void AddLink(const HtmlLink& x) {accu->push_back(x);}
41
 
 GBool inLink(double xmin,double ymin,double xmax,double ymax,int& p) const;
42
 
 HtmlLink* getLink(int i) const;
43
 
 
44
 
};
45
 
 
46
 
#endif
47