blob: aa2ee5387fd9a9ea168552132d6e9f174cb543e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
//
// 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.
#ifndef PSEditModel_H
#define PSEditModel_H
#include "PSEditText.H"
class PSEditModel {
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);
};
#endif
|