[160] | 1 | /**********************************************************************
|
---|
| 2 | *
|
---|
| 3 | * pageaction.h --
|
---|
| 4 | * Copyright (C) 1999 The New Zealand Digital Library Project
|
---|
| 5 | *
|
---|
[533] | 6 | * A component of the Greenstone digital library software
|
---|
| 7 | * from the New Zealand Digital Library Project at the
|
---|
| 8 | * University of Waikato, New Zealand.
|
---|
[160] | 9 | *
|
---|
[533] | 10 | * This program is free software; you can redistribute it and/or modify
|
---|
| 11 | * it under the terms of the GNU General Public License as published by
|
---|
| 12 | * the Free Software Foundation; either version 2 of the License, or
|
---|
| 13 | * (at your option) any later version.
|
---|
| 14 | *
|
---|
| 15 | * This program is distributed in the hope that it will be useful,
|
---|
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 18 | * GNU General Public License for more details.
|
---|
| 19 | *
|
---|
| 20 | * You should have received a copy of the GNU General Public License
|
---|
| 21 | * along with this program; if not, write to the Free Software
|
---|
| 22 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
---|
| 23 | *
|
---|
[160] | 24 | *********************************************************************/
|
---|
| 25 |
|
---|
| 26 |
|
---|
| 27 | #ifndef PAGEACTION_H
|
---|
| 28 | #define PAGEACTION_H
|
---|
| 29 |
|
---|
| 30 |
|
---|
| 31 | #include "gsdlconf.h"
|
---|
| 32 | #include "action.h"
|
---|
[284] | 33 | #include "receptionist.h"
|
---|
[160] | 34 |
|
---|
| 35 |
|
---|
| 36 | class pageaction : public action {
|
---|
[172] | 37 |
|
---|
[284] | 38 | protected:
|
---|
| 39 | receptionist *recpt;
|
---|
| 40 |
|
---|
[604] | 41 | text_tset classify_meta;
|
---|
| 42 |
|
---|
[160] | 43 | public:
|
---|
| 44 | pageaction ();
|
---|
| 45 | virtual ~pageaction ();
|
---|
| 46 |
|
---|
[1270] | 47 | void set_receptionist (receptionist *therecpt) {recpt=therecpt;}
|
---|
| 48 |
|
---|
[160] | 49 | text_t get_action_name () {return "p";}
|
---|
[9931] | 50 |
|
---|
[261] | 51 | bool check_cgiargs (cgiargsinfoclass &argsinfo, cgiargsclass &args,
|
---|
[3546] | 52 | recptprotolistclass *protos, ostream &logout);
|
---|
[173] | 53 |
|
---|
[761] | 54 | void get_cgihead_info (cgiargsclass &args, recptprotolistclass *protos,
|
---|
| 55 | response_t &response,text_t &response_data,
|
---|
| 56 | ostream &logout);
|
---|
[173] | 57 |
|
---|
[761] | 58 | void define_internal_macros (displayclass &disp, cgiargsclass &args,
|
---|
| 59 | recptprotolistclass *protos, ostream &logout);
|
---|
[421] | 60 |
|
---|
[761] | 61 | bool do_action (cgiargsclass &args, recptprotolistclass *protos,
|
---|
| 62 | browsermapclass *browsers, displayclass &disp,
|
---|
[421] | 63 | outconvertclass &outconvert, ostream &textout,
|
---|
| 64 | ostream &logout);
|
---|
[761] | 65 |
|
---|
[1759] | 66 | void configure (const text_t &key, const text_tarray &cfgline);
|
---|
| 67 |
|
---|
[4905] | 68 | protected:
|
---|
| 69 |
|
---|
| 70 | void home_images (displayclass &disp, recptprotolistclass *protos,
|
---|
| 71 | cgiargsclass &args, const recptconf &configinfo, ostream &logout);
|
---|
| 72 |
|
---|
| 73 | void home_pulldown (displayclass &disp, recptprotolistclass *protos,
|
---|
| 74 | cgiargsclass &args, const recptconf &configinfo, ostream &logout);
|
---|
| 75 |
|
---|
| 76 | void homepagestyle (displayclass &disp, recptprotolistclass *protos,
|
---|
| 77 | cgiargsclass &args, ostream &logout);
|
---|
| 78 |
|
---|
[761] | 79 |
|
---|
[4905] | 80 |
|
---|
[2329] | 81 | void set_collectionlist_macro (displayclass &disp, recptprotolistclass *protos,
|
---|
[9931] | 82 | cgiargsclass &args, ostream &logout);
|
---|
[2329] | 83 |
|
---|
[2767] | 84 | void set_documentation_macro (displayclass &disp);
|
---|
[2329] | 85 |
|
---|
[2785] | 86 | void set_macro_to_file_contents (displayclass &disp, const text_t ¯oname,
|
---|
[28899] | 87 | const text_t &packagename, const text_t &filename, bool encode=false);
|
---|
[2785] | 88 |
|
---|
[3625] | 89 | void set_language_encoding_macros(displayclass &disp, cgiargsclass &args,
|
---|
| 90 | recptprotolistclass *protos, ColInfoResponse_t *cinfo,
|
---|
| 91 | ostream &logout);
|
---|
| 92 |
|
---|
| 93 |
|
---|
[4905] | 94 |
|
---|
[1759] | 95 | bool status_disabled;
|
---|
| 96 | bool collector_disabled;
|
---|
[11998] | 97 | bool depositor_disabled;
|
---|
[3774] | 98 | bool translator_disabled;
|
---|
[7762] | 99 | bool gliapplet_disabled;
|
---|
[1759] | 100 |
|
---|
[160] | 101 | };
|
---|
| 102 |
|
---|
| 103 |
|
---|
| 104 | #endif
|
---|