Ignore:
Timestamp:
2006-07-07T00:52:39+12:00 (18 years ago)
Author:
sjboddie
Message:

Wrapped browsetools up into a class and renamed it browsetoolsclass. The
intention of this change is only to make it easier to customise, and it
shouldn't make any functional difference. One exception to this is the
removal of some old code (notably some code for RelatedDocs) which is
now obsolete (I hope).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/documentaction.cpp

    r11998 r12044  
    2727
    2828#include "documentaction.h"
    29 #include "browsetools.h"
    3029#include "OIDtools.h"
    3130#include "querytools.h"
     
    3332#include "gsdltools.h"
    3433#include "highlighttext.h"
     34#include "browsetoolsclass.h"
    3535
    3636documentaction::documentaction () {
    3737  recpt = NULL;
    38 
    3938
    4039  // this action uses cgi variables "a", "d", "cl",
     
    181180}
    182181
    183 documentaction::~documentaction () {
     182documentaction::~documentaction()
     183{
    184184}
    185185
     
    984984
    985985
    986 bool documentaction::do_action (cgiargsclass &args, recptprotolistclass *protos,
    987                 browsermapclass *browsers, displayclass &disp,
    988                 outconvertclass &outconvert, ostream &textout,
    989                 ostream &logout) {
    990  
     986bool documentaction::do_action(cgiargsclass &args, recptprotolistclass *protos,
     987                               browsermapclass *browsers, displayclass &disp,
     988                               outconvertclass &outconvert, ostream &textout,
     989                               ostream &logout)
     990{
    991991  // must have a valid collection server
    992992  recptproto *collectproto = protos->getrecptproto (args["c"], logout);
     
    10361036     
    10371037    // output the table of contents
    1038     output_toc (args, browsers, formatinfo, collectproto,
    1039         disp, outconvert, textout, logout);
     1038    browsetoolsclass b;
     1039    b.output_toc(args, browsers, formatinfo, collectproto,
     1040                 disp, outconvert, textout, logout);
    10401041   
    10411042    if (formatinfo.DocumentArrowsTop && !args["d"].empty()) {
     
    10911092
    10921093      if (formatinfo.AllowExtendedOptions) {
    1093     load_extended_options(options, args, browsers, formatinfo,
    1094                   collectproto, disp, outconvert, logout);
     1094        browsetoolsclass b;
     1095    b.load_extended_options(options, args, browsers, formatinfo,
     1096                                collectproto, disp, outconvert, logout);
    10951097      }
    10961098     
Note: See TracChangeset for help on using the changeset viewer.