summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2011-07-07 21:18:47 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2011-07-07 21:18:47 +0200
commit98a3cce92755332666878b87e4a4660dc5e22b20 (patch)
treea9c8fc9327445964d680ba85033ac4077d4a2698 /src
parentbf5da0d76518c2524263ffe8242e388b95936b11 (diff)
whitespace and copyright
Diffstat (limited to 'src')
-rw-r--r--src/PSEditModel.H92
-rw-r--r--src/flpsed.cxx2
2 files changed, 34 insertions, 60 deletions
diff --git a/src/PSEditModel.H b/src/PSEditModel.H
index 3a0a872..aa2ee53 100644
--- a/src/PSEditModel.H
+++ b/src/PSEditModel.H
@@ -1,5 +1,5 @@
//
-// Copyright 2007-2009 Johannes Hofmann <Johannes.Hofmann@gmx.de>
+// Copyright 2007-2011 Johannes Hofmann <Johannes.Hofmann@gmx.de>
//
// This software may be used and distributed according to the terms
// of the GNU General Public License, incorporated herein by reference.
@@ -10,66 +10,40 @@
#include "PSEditText.H"
class PSEditModel {
-
- PSEditText **text;
-
- int max_pages;
-
- int page;
-
- PSEditText *cur_text;
+ private:
+ PSEditText **text;
+ int max_pages;
+ int page;
+ PSEditText *cur_text;
public:
- PSEditModel();
-
- ~PSEditModel();
-
- void clear();
-
- void new_text(int x1, int y1,
- const char *s, int size, int p, PSEditColor *c);
-
- void append_text(const char *s);
-
- void move(int x1, int y1);
-
- void rm_char();
-
- void set_size(int s);
-
- int get_size();
-
- void set_color(PSEditColor *c);
-
- int get_color(PSEditColor *c);
-
- void set_page(int p);
-
- int get_page();
-
- char *get_tag();
-
- int set_tag(const char *t);
-
- int get_max_pages();
-
- int set_cur_text(int x1, int y1, int p);
-
- int next_text(int p);
-
- int is_cur_text(PSEditText *t);
-
- PSEditText *get_text(int p);
-
- PSEditText *get_cur_text();
-
- int replace_tag(char* tag, char* text);
-
- int dump_tags();
-
- int load(FILE *fp);
-
- int save(FILE *sfp, int tmp_fd);
+ PSEditModel();
+ ~PSEditModel();
+
+ void clear();
+ void new_text(int x1, int y1,
+ const char *s, int size, int p, PSEditColor *c);
+ void append_text(const char *s);
+ void move(int x1, int y1);
+ void rm_char();
+ void set_size(int s);
+ int get_size();
+ void set_color(PSEditColor *c);
+ int get_color(PSEditColor *c);
+ void set_page(int p);
+ int get_page();
+ char *get_tag();
+ int set_tag(const char *t);
+ int get_max_pages();
+ int set_cur_text(int x1, int y1, int p);
+ int next_text(int p);
+ int is_cur_text(PSEditText *t);
+ PSEditText *get_text(int p);
+ PSEditText *get_cur_text();
+ int replace_tag(char* tag, char* text);
+ int dump_tags();
+ int load(FILE *fp);
+ int save(FILE *sfp, int tmp_fd);
};
#endif
diff --git a/src/flpsed.cxx b/src/flpsed.cxx
index c89b82d..f225036 100644
--- a/src/flpsed.cxx
+++ b/src/flpsed.cxx
@@ -1,5 +1,5 @@
//
-// Copyright 2006-2009 Johannes Hofmann <Johannes.Hofmann@gmx.de>
+// Copyright 2006-2011 Johannes Hofmann <Johannes.Hofmann@gmx.de>
//
// This software may be used and distributed according to the terms
// of the GNU General Public License, incorporated herein by reference.