File: rt-page.h

package info (click to toggle)
trn4 4.0-test77-18
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid, trixie
  • size: 4,016 kB
  • sloc: ansic: 48,332; sh: 6,795; tcl: 1,696; yacc: 662; perl: 108; makefile: 26
file content (64 lines) | stat: -rw-r--r-- 1,404 bytes parent folder | download | duplicates (11)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/* rt-page.h
*/
/* This software is copyrighted as detailed in the LICENSE file. */


#define PRESERVE_PAGE     0
#define FILL_LAST_PAGE    1

EXT int sel_total_obj_cnt;
EXT int sel_prior_obj_cnt;
EXT int sel_page_obj_cnt;
EXT int sel_page_item_cnt;
EXT int sel_max_per_page;
EXT int sel_max_line_cnt;

EXT ARTICLE** sel_page_app;
EXT ARTICLE** sel_next_app;
EXT ARTICLE* sel_last_ap;
EXT SUBJECT* sel_page_sp;
EXT SUBJECT* sel_next_sp;
EXT SUBJECT* sel_last_sp;

EXT char* sel_grp_dmode INIT("*slm");
EXT char* sel_art_dmode INIT("*lmds");

EXT bool group_init_done INIT(TRUE);

union sel_union {
    ARTICLE* ap;
    SUBJECT* sp;
    ADDGROUP* gp;
    MULTIRC* mp;
    NGDATA* np;
    UNIV_ITEM* un;
    int op;
};

struct sel_item {
    SEL_UNION u;
    int line;
    int sel;
};

#define MAX_SEL 99
EXT SEL_ITEM sel_items[MAX_SEL];

/* DON'T EDIT BELOW THIS LINE OR YOUR CHANGES WILL BE LOST! */

bool set_sel_mode _((char_int));
char* get_sel_order _((int));
bool set_sel_order _((int,char*));
bool set_sel_sort _((int,char_int));
void set_selector _((int,int));
void init_pages _((bool_int));
bool first_page _((void));
bool last_page _((void));
bool next_page _((void));
bool prev_page _((void));
bool calc_page _((SEL_UNION));
void display_page_title _((bool_int));
void display_page _((void));
void update_page _((void));
void output_sel _((int,int,bool_int));
void display_option _((int,int));