1 | /**********************************************************************
|
---|
2 | *
|
---|
3 | * documentaction.h --
|
---|
4 | * Copyright (C) 1999 The New Zealand Digital Library Project
|
---|
5 | *
|
---|
6 | * PUT COPYRIGHT NOTICE HERE
|
---|
7 | *
|
---|
8 | * $Id: documentaction.h 284 1999-06-24 05:12:25Z sjboddie $
|
---|
9 | *
|
---|
10 | *********************************************************************/
|
---|
11 |
|
---|
12 |
|
---|
13 | #ifndef DOCUMENTACTION_H
|
---|
14 | #define DOCUMENTACTION_H
|
---|
15 |
|
---|
16 | #include "action.h"
|
---|
17 | #include "gsdlconf.h"
|
---|
18 |
|
---|
19 | class documentaction : public action {
|
---|
20 |
|
---|
21 | protected:
|
---|
22 | void output_document (const text_t &OID, cgiargsclass &args,
|
---|
23 | recptproto *collectproto, displayclass &disp,
|
---|
24 | outconvertclass &outconvert, ostream &textout,
|
---|
25 | ostream &logout);
|
---|
26 |
|
---|
27 | void highlighttext(text_t &text, TermInfo_tarray &terms, displayclass &disp,
|
---|
28 | outconvertclass &outconvert, ostream &textout, ostream &logout);
|
---|
29 |
|
---|
30 |
|
---|
31 | public:
|
---|
32 | documentaction ();
|
---|
33 | virtual ~documentaction ();
|
---|
34 |
|
---|
35 | bool init (ostream &logout);
|
---|
36 |
|
---|
37 | text_t get_action_name () {return "d";}
|
---|
38 |
|
---|
39 | bool check_cgiargs (cgiargsinfoclass &argsinfo, cgiargsclass &args,
|
---|
40 | ostream &logout);
|
---|
41 |
|
---|
42 | void get_cgihead_info (cgiargsclass &args, response_t &response,
|
---|
43 | text_t &response_data, ostream &logout);
|
---|
44 |
|
---|
45 | void define_external_macros (displayclass &disp, cgiargsclass &args,
|
---|
46 | recptproto *collectproto, ostream &logout);
|
---|
47 |
|
---|
48 | void define_internal_macros (displayclass &disp, cgiargsclass &args,
|
---|
49 | recptproto *collectproto, ostream &logout);
|
---|
50 |
|
---|
51 | bool do_action (cgiargsclass &args, recptproto *collectproto,
|
---|
52 | displayclass &disp, outconvertclass &outconvert,
|
---|
53 | ostream &textout, ostream &logout);
|
---|
54 |
|
---|
55 | };
|
---|
56 |
|
---|
57 |
|
---|
58 |
|
---|
59 | #endif
|
---|
60 |
|
---|
61 |
|
---|