summaryrefslogtreecommitdiff
path: root/src/PSEditModel.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <johannes.hofmann@gmx.de>2004-11-10 17:32:59 +0000
committerJohannes Hofmann <johannes.hofmann@gmx.de>2004-11-10 17:32:59 +0000
commite20e866ffce0d68c9118bdb47df5fe1c8b9cfd48 (patch)
treedc0b423d502cfceca2e3c1a66338aec077534d97 /src/PSEditModel.cxx
parent117b0e0eef260bc4dd9c6d3c9a3ea51d3c4fa342 (diff)
use PostScript coordinates internally
use PostScript coordinates internally
Diffstat (limited to 'src/PSEditModel.cxx')
-rw-r--r--src/PSEditModel.cxx24
1 files changed, 2 insertions, 22 deletions
diff --git a/src/PSEditModel.cxx b/src/PSEditModel.cxx
index f898c50..5eeee9c 100644
--- a/src/PSEditModel.cxx
+++ b/src/PSEditModel.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: PSEditModel.cxx,v 1.11 2004/11/08 18:56:00 hofmann Exp $"
+// "$Id: PSEditModel.cxx,v 1.12 2004/11/10 18:32:59 hofmann Exp $"
//
// PSEditWidget routines.
//
@@ -32,11 +32,7 @@
#include "PSEditModel.H"
-PSEditModel::PSEditModel(int x1, int y1, float dx, float dy) {
- paper_x = x1;
- paper_y = y1;
- xdpi = dx;
- ydpi = dy;
+PSEditModel::PSEditModel() {
max_pages = 32;
page = 0;
text = (PSEditText**) malloc(sizeof(PSEditText*) * max_pages);
@@ -240,22 +236,6 @@ PSEditText *PSEditModel::get_text(int p) {
}
}
-int PSEditModel::ps_to_display_x(int x1) {
- return (int) ((float) x1 * xdpi / 72.0);
-}
-
-int PSEditModel::ps_to_display_y(int y1) {
- return (int) ((float) (paper_y - y1) * xdpi / 72.0);
-}
-
-int PSEditModel::ps_x(int x1) {
- return (int) ((float) x1 * 72.0 / xdpi);
-}
-
-int PSEditModel::ps_y(int y1) {
- return paper_y - (int)((float) y1 * 72.0 / ydpi);
-}
-
int PSEditModel::load(FILE *fp) {
char tmpname[256];
char linebuf[1024];