diff options
author | Martin Kretzschmar <mkretzschmar@src.gnome.org> | 2002-09-19 13:14:27 (GMT) |
---|---|---|
committer | Martin Kretzschmar <mkretzschmar@src.gnome.org> | 2002-09-19 13:14:27 (GMT) |
commit | ebca50d1ca64b8ca6778ea011220d606b6006021 (patch) | |
tree | c7c5487d108ad8d5ed01ac26a762c6c3a7dbbdf2 /pdf/xpdf/Link.h | |
parent | 1929ee78d5d01fd08c50e53e4eb81df6539b99f5 (diff) |
move struct bed_t to gpdf-embeddable.{cc,h} (setup_pixmap) remove doc
* bonobo-application-x-pdf.cc: move struct bed_t to
gpdf-embeddable.{cc,h}
(setup_pixmap) remove doc parameter. (Get it from view_data param)
* gpdf-embeddable.cc: New files to contain the embeddable class
* gpdf-embeddable.h:
* gpdf.cc (main): remove call to setlocale (done in
gnome_init...), ignore return value of oaf_init, let bonobo_init
figure out which orb to use.
* Link.h: declare some methods as const.
* Link.cc:
Diffstat (limited to 'pdf/xpdf/Link.h')
-rw-r--r-- | pdf/xpdf/Link.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pdf/xpdf/Link.h b/pdf/xpdf/Link.h index 4c644b8..e5b15e3 100644 --- a/pdf/xpdf/Link.h +++ b/pdf/xpdf/Link.h @@ -278,18 +278,18 @@ public: ~Link(); // Was the link created successfully? - GBool isOk() { return ok; } + GBool isOk() const { return ok; } // Check if point is inside the link rectangle. - GBool inRect(double x, double y) + GBool inRect(double x, double y) const { return x1 <= x && x <= x2 && y1 <= y && y <= y2; } // Get action. - LinkAction *getAction() { return action; } + LinkAction *getAction() const { return action; } // Get border corners and width. void getBorder(double *xa1, double *ya1, double *xa2, double *ya2, - double *wa) + double *wa) const { *xa1 = x1; *ya1 = y1; *xa2 = x2; *ya2 = y2; *wa = borderW; } private: @@ -315,15 +315,15 @@ public: ~Links(); // Iterate through list of links. - int getNumLinks() { return numLinks; } - Link *getLink(int i) { return links[i]; } + int getNumLinks() const { return numLinks; } + Link *getLink(int i) const { return links[i]; } // If point <x>,<y> is in a link, return the associated action; // else return NULL. - LinkAction *find(double x, double y); + LinkAction *find(double x, double y) const; // Return true if <x>,<y> is in a link. - GBool onLink(double x, double y); + GBool onLink(double x, double y) const; private: |