[3632] | 1 | /**********************************************************************
|
---|
| 2 | *
|
---|
| 3 | * langaction.h --
|
---|
| 4 | * Copyright (C) 1999 The New Zealand Digital Library Project
|
---|
| 5 | *
|
---|
| 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.
|
---|
| 9 | *
|
---|
| 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 | *
|
---|
| 24 | *********************************************************************/
|
---|
| 25 |
|
---|
| 26 |
|
---|
| 27 | #ifndef LANGACTION_H
|
---|
| 28 | #define LANGACTION_H
|
---|
| 29 |
|
---|
| 30 |
|
---|
| 31 | #include "action.h"
|
---|
[4123] | 32 | #include "receptionist.h"
|
---|
[3632] | 33 |
|
---|
[4123] | 34 |
|
---|
[3632] | 35 | class langaction : public action {
|
---|
| 36 |
|
---|
| 37 | protected:
|
---|
[4123] | 38 | receptionist *recpt;
|
---|
| 39 |
|
---|
[3632] | 40 | // package whose contents will be displayed in the form space
|
---|
| 41 | text_t package;
|
---|
| 42 | char *gsdlosc;
|
---|
| 43 | char *gsdlhomec;
|
---|
| 44 | char *pathc;
|
---|
| 45 |
|
---|
| 46 | public:
|
---|
| 47 | langaction ();
|
---|
| 48 | virtual ~langaction ();
|
---|
| 49 |
|
---|
[4123] | 50 | void set_receptionist (receptionist *therecpt) {recpt=therecpt;}
|
---|
| 51 |
|
---|
[3632] | 52 | text_t get_action_name () {return "lang";}
|
---|
| 53 |
|
---|
[4108] | 54 | bool check_cgiargs (cgiargsinfoclass &argsinfo, cgiargsclass &args,
|
---|
| 55 | recptprotolistclass *protos, ostream &logout);
|
---|
[3632] | 56 |
|
---|
| 57 | void define_internal_macros (displayclass &disp, cgiargsclass &args,
|
---|
| 58 | recptprotolistclass *protos, ostream &logout);
|
---|
| 59 |
|
---|
[4108] | 60 | void write_args_file (cgiargsclass &args, text_t argsfile, ostream &logout);
|
---|
| 61 |
|
---|
[3632] | 62 | void get_cgihead_info (cgiargsclass &args, recptprotolistclass *protos,
|
---|
| 63 | response_t &response,text_t &response_data,
|
---|
| 64 | ostream &logout);
|
---|
| 65 |
|
---|
| 66 | bool do_action (cgiargsclass &args, recptprotolistclass *protos,
|
---|
| 67 | browsermapclass *browsers, displayclass &disp,
|
---|
| 68 | outconvertclass &outconvert, ostream &textout,
|
---|
| 69 | ostream &logout);
|
---|
| 70 |
|
---|
| 71 | bool init (ostream & /*logout*/);
|
---|
[4108] | 72 |
|
---|
[4123] | 73 | void define_webpage (displayclass &disp, text_t sourcelang, text_t targetlang,
|
---|
| 74 | text_t dir, text_t pageno, int numpages, bool error,
|
---|
| 75 | ostream &logout);
|
---|
[3632] | 76 | };
|
---|
| 77 |
|
---|
| 78 |
|
---|
| 79 | #endif
|
---|