1 | /**********************************************************************
|
---|
2 | *
|
---|
3 | * browse.h --
|
---|
4 | * Copyright (C) 1999 The New Zealand Digital Library Project
|
---|
5 | *
|
---|
6 | * PUT COPYRIGHT NOTICE HERE
|
---|
7 | *
|
---|
8 | * $Id: browse.h 114 1999-01-19 01:38:20Z rjmcnab $
|
---|
9 | *
|
---|
10 | *********************************************************************/
|
---|
11 |
|
---|
12 |
|
---|
13 | #ifndef BROWSE_H
|
---|
14 | #define BROWSE_H
|
---|
15 |
|
---|
16 |
|
---|
17 | #include "text_t.h"
|
---|
18 | #include "gdbmclass.h"
|
---|
19 | #include "cgiargs.h"
|
---|
20 |
|
---|
21 | class browseclass
|
---|
22 | {
|
---|
23 |
|
---|
24 | public:
|
---|
25 |
|
---|
26 | browseclass () {}
|
---|
27 | virtual ~browseclass () {}
|
---|
28 |
|
---|
29 | virtual void get_browse_bar(const text_t &targetdoc, text_t &return_text);
|
---|
30 | virtual void get_top_locator(cgiargsclass &args, gdbmclass &gdbm, int /*oversize*/,
|
---|
31 | text_t &return_text) {}
|
---|
32 | virtual void get_links(cgiargsclass &args, gdbmclass &gdbm, text_t &return_text);
|
---|
33 | virtual void get_contents_arr(cgiargsclass &args, gdbmclass &gdbm, vector<text_t> &contents_arr);
|
---|
34 |
|
---|
35 | protected:
|
---|
36 |
|
---|
37 | virtual void get_list_toc (vector<text_t> &secarray, text_t &collection,
|
---|
38 | gdbmclass &gdbm, text_t &return_text);
|
---|
39 | virtual void get_page_toc (cgiargsclass &args, const text_t &booksection,
|
---|
40 | const text_t &classification, const text_t &class_string,
|
---|
41 | gdbmclass &gdbm, text_t &return_text);
|
---|
42 | virtual void get_standard_toc(cgiargsclass &args, text_t &booksection,
|
---|
43 | const text_t &classification, gdbmclass &gdbm,
|
---|
44 | text_t &return_text);
|
---|
45 | virtual void get_expanded_toc(cgiargsclass &args, text_t &booksection,
|
---|
46 | const text_t &classification, gdbmclass &gdbm,
|
---|
47 | text_t &return_text);
|
---|
48 | virtual void get_parents_toc (cgiargsclass &args, const vector<text_t> &parents,
|
---|
49 | gdbmclass &gdbm, int &tabcount, int &colnum,
|
---|
50 | text_t &return_text);
|
---|
51 | virtual void get_siblings_toc (cgiargsclass &args, const vector<text_t> &siblings,
|
---|
52 | gdbmclass &gdbm, const text_t &booksection,
|
---|
53 | const text_t &classification, int &tabcount,
|
---|
54 | int &colnum, text_t &return_text);
|
---|
55 | virtual void get_alphabet_links (const text_t &classification,
|
---|
56 | const text_t &booksection, gdbmclass &gdbm,
|
---|
57 | const text_t &collection, text_t &return_text);
|
---|
58 | virtual void get_arrows(text_t &docref, gdbmclass &gdbm,
|
---|
59 | const text_t &collection, text_t &arrows);
|
---|
60 | virtual void get_prev_next_links (text_t docref, const text_t &collection,
|
---|
61 | text_t &previous, text_t &next);
|
---|
62 | virtual void get_contents (text_t expandlevel1, gdbmclass &gdbm,
|
---|
63 | const text_t &collection, vector<text_t> &contents,
|
---|
64 | int &totalcols);
|
---|
65 | virtual void sort_array (vector<text_t> &array, gdbmclass &gdbm,
|
---|
66 | const text_t &collection, const text_t classification);
|
---|
67 | };
|
---|
68 |
|
---|
69 |
|
---|
70 | #endif
|
---|