[248] | 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 420 1999-07-30 02:18:49Z 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 |
|
---|
[267] | 21 | protected:
|
---|
[399] | 22 | virtual void output_document (const text_t &OID, cgiargsclass &args,
|
---|
| 23 | recptproto *collectproto, displayclass &disp,
|
---|
| 24 | outconvertclass &outconvert, ostream &textout,
|
---|
| 25 | ostream &logout);
|
---|
[284] | 26 |
|
---|
[267] | 27 | void highlighttext(text_t &text, TermInfo_tarray &terms, displayclass &disp,
|
---|
| 28 | outconvertclass &outconvert, ostream &textout, ostream &logout);
|
---|
[248] | 29 |
|
---|
| 30 | public:
|
---|
| 31 | documentaction ();
|
---|
| 32 | virtual ~documentaction ();
|
---|
| 33 |
|
---|
| 34 | bool init (ostream &logout);
|
---|
| 35 |
|
---|
| 36 | text_t get_action_name () {return "d";}
|
---|
| 37 |
|
---|
[261] | 38 | bool check_cgiargs (cgiargsinfoclass &argsinfo, cgiargsclass &args,
|
---|
| 39 | ostream &logout);
|
---|
[248] | 40 |
|
---|
| 41 | void get_cgihead_info (cgiargsclass &args, response_t &response,
|
---|
| 42 | text_t &response_data, ostream &logout);
|
---|
| 43 |
|
---|
[420] | 44 | void define_external_macros (const ColInfoResponse_t &collectinfo, displayclass &disp,
|
---|
| 45 | cgiargsclass &args, recptproto *collectproto,
|
---|
| 46 | ostream &logout);
|
---|
[248] | 47 |
|
---|
[420] | 48 | void define_internal_macros (const ColInfoResponse_t &collectinfo, displayclass &disp,
|
---|
| 49 | cgiargsclass &args, recptproto *collectproto,
|
---|
| 50 | ostream &logout);
|
---|
[248] | 51 |
|
---|
[420] | 52 | bool do_action (cgiargsclass &args, const ColInfoResponse_t &collectinfo,
|
---|
| 53 | recptproto *collectproto, displayclass &disp,
|
---|
| 54 | outconvertclass &outconvert, ostream &textout,
|
---|
| 55 | ostream &logout);
|
---|
[248] | 56 |
|
---|
| 57 | };
|
---|
| 58 |
|
---|
| 59 |
|
---|
| 60 |
|
---|
| 61 | #endif
|
---|
| 62 |
|
---|
| 63 |
|
---|