Changeset 3666


Ignore:
Timestamp:
2003-01-13T20:09:15+13:00 (21 years ago)
Author:
jrm21
Message:

tidied up to make sure all textout << "string" commands go through the
outconverter so we have the right charset for the output.

Location:
trunk/gsdl/src/recpt
Files:
5 edited

Legend:

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

    r2805 r3666  
    7474    int count = 0;
    7575    while (here != end) {
    76       if ((count != 0) && ((count % 2) == 0)) textout << "<br>\n";
     76      if ((count != 0) && ((count % 2) == 0)) textout<< outconvert << "<br>\n";
    7777      textout << outconvert << disp << *here;
    7878      count ++;
     
    607607        formatinfo, collectproto, disp, outconvert, textout, logout);
    608608
    609     textout << "</table></td></tr></table>\n";
     609    textout << outconvert << "</table></td></tr></table>\n";
    610610}
    611611
     
    764764  // if we're inside a book
    765765  if ((!fulltoc) && (!args["d"].empty())) {
    766     textout << "<center>\n";
     766    textout << outconvert << "<center>\n";
    767767    textout << outconvert << disp << "<p><table width=_pagewidth_ cellpadding=0 cellspacing=0><tr>\n";
    768     textout << "<td valign=top align=left";
    769     if (formatinfo.DocumentContents) textout << " width=200>\n";
    770     else textout << " width=100%>\n";
     768    textout << outconvert << "<td valign=top align=left";
     769    if (formatinfo.DocumentContents) textout << outconvert << " width=200>\n";
     770    else textout << outconvert << " width=\"100%\">\n";
    771771    if (formatinfo.DocumentImages)
    772772      output_cover_image (args, collectproto, disp, outconvert, textout, logout);
     
    777777               outconvert, textout, logout);
    778778    }
    779     textout << "</td><td valign=top>\n"; 
     779    textout << outconvert << "</td><td valign=\"top\">\n"; 
    780780    havecontrols = true;
    781781  }
     
    800800  }
    801801
    802   if (havecontrols) textout << "</td></tr></table></center>\n";
     802  if (havecontrols) textout << outconvert << "</td></tr></table></center>\n";
    803803
    804804  //if there is a format specified in the config file then
  • trunk/gsdl/src/recpt/datelistbrowserclass.cpp

    r1610 r3666  
    6868
    6969  if (use_table || colnumber > 0) {
    70     textout << "<table><tr><td>";
     70    textout << outconvert << "<table><tr><td>";
    7171    // get tab size
    7272    text_t tab; int itab;
     
    7474    itab = tab.getint();
    7575    if (colnumber > 0)
    76       textout << "<img src=\"_httpimg_/space.gif\" width=" << (itab*colnumber) << ">";
    77     textout<< "</td><td>";
     76      textout << outconvert << "<img src=\"_httpimg_/space.gif\" width=" << (itab*colnumber) << ">";
     77    textout << outconvert << "</td><td>";
    7878  }
    7979
    80   textout << "<table>\n";
     80  textout << outconvert << "<table>\n";
    8181
    8282  ResultDocInfo_tarray::iterator thissection = sections.docInfo.begin();
     
    108108    } else link += args["cl"] + "&d=" + (*thissection).OID + "\">";
    109109
    110     textout << "<tr valign=top>";
     110    textout << outconvert << "<tr valign=top>";
    111111
    112112    if (thisyear != lastyear) {
     
    114114      lastyear = thisyear;
    115115    } else
    116       textout << "<td></td>";
     116      textout << outconvert << "<td></td>";
    117117   
    118118    if (thismonth != lastmonth) {
     
    120120      lastmonth = thismonth;
    121121    } else
    122       textout << "<td></td>";
     122      textout << outconvert << "<td></td>";
    123123   
    124     if (!use_table) textout << "<td>\n";
     124    if (!use_table) textout << outconvert << "<td>\n";
    125125   
    126126    textout << outconvert << disp
     
    130130                     logout) << "\n";
    131131   
    132     if (!use_table) textout << "</td>";
     132    if (!use_table) textout << outconvert << "</td>";
    133133   
    134     textout << "</tr>\n";
     134    textout << outconvert << "</tr>\n";
    135135   
    136136    thissection ++;
    137137  }
    138138
    139   textout << "</table>\n";
     139  textout << outconvert << "</table>\n";
    140140
    141   if (use_table  || colnumber > 0) textout << "</td></tr></table>\n";
     141  if (use_table  || colnumber > 0) textout << outconvert << "</td></tr></table>\n";
    142142  return 1;
    143143}
  • trunk/gsdl/src/recpt/documentaction.cpp

    r3546 r3666  
    772772    // output the document text
    773773    if (!args["d"].empty()) {
    774       textout << "<p>\n";
     774      textout << outconvert << "<p>\n";
    775775      output_document (OID, args, collectproto, disp, outconvert, textout, logout);
    776776    }
  • trunk/gsdl/src/recpt/hlistbrowserclass.cpp

    r2684 r3666  
    101101                   
    102102  if (use_table || colnumber > 0) {
    103     textout << "<table><tr><td>";
     103    textout << outconvert << "<table><tr><td>";
    104104    // get tab size
    105105    text_t tab; int itab;
     
    109109                   << "<img src=\"_httpimg_/space.gif\" width="
    110110                   << (itab*colnumber) << ">";
    111     textout << "</td>\n";
     111    textout << outconvert << "</td>\n";
    112112  }
    113113
    114   textout << "<table><tr>\n";
     114  textout << outconvert << "<table><tr>\n";
    115115
    116116  ResultDocInfo_tarray::iterator tsibling = response.docInfo.begin();
     
    158158
    159159    if (num_chars>100) { // this is fairly arbitrary...
    160       textout << "</tr>\n<tr>";
     160      textout << outconvert << "</tr>\n<tr>";
    161161      num_chars=0;
    162162    }
    163163
    164     textout << "<td>" << outconvert << disp << fmt_str << "</td>\n";
     164    textout << outconvert << "<td>" << disp << fmt_str << "</td>\n";
    165165    tsibling ++;
    166166  }
    167167
    168   textout << "</tr></table>\n";
    169   if (use_table  || colnumber > 0) textout << "</tr></table>\n";
     168  textout << outconvert << "</tr></table>\n";
     169  if (use_table  || colnumber > 0) textout << outconvert << "</tr></table>\n";
    170170  return 0;
    171171}
  • trunk/gsdl/src/recpt/vlistbrowserclass.cpp

    r3543 r3666  
    7373
    7474  if (use_table || colnumber > 0) {
    75     textout << "<table><tr valign=top>";
     75    textout << outconvert << "<table><tr valign=top>";
    7676    // get tab size
    7777    text_t tab; int itab;
     
    8888                   link, icon, highlight, logout);
    8989 
    90   if (use_table  || colnumber > 0) textout << "</tr></table>\n";
     90  if (use_table  || colnumber > 0) textout << outconvert << "</tr></table>\n";
    9191
    9292  return 1;
     
    109109
    110110  if (colnumber > 0) {
    111     textout << "<table><tr valign=top>";
     111    textout << outconvert << "<table><tr valign=top>";
    112112    // get tab size
    113113    text_t tab; int itab;
     
    117117                   << "<td><img src=\"_httpimg_/space.gif\" width="
    118118                   << (itab*colnumber) << "></td>";
    119     textout << "<td>";
    120   }
    121   if (use_table) textout << "<table>\n";
     119    textout << outconvert << "<td>";
     120  }
     121  if (use_table) textout << outconvert << "<table>\n";
    122122
    123123  ResultDocInfo_tarray::iterator thissection = sections.docInfo.begin();
     
    150150
    151151    if ((item == 1 && use_table) || colnumber > 0 )
    152       textout << "<tr valign=top>\n";
     152      textout << outconvert << "<tr valign=top>\n";
    153153
    154154    textout << outconvert << disp
     
    157157
    158158    if ((item >= perline && use_table) || colnumber > 0) {
    159       textout << "\n</tr>";
     159      textout << outconvert << "\n</tr>";
    160160      item = 0;
    161161    }
    162     textout << "\n";
     162    textout << outconvert << "\n";
    163163    thissection ++;
    164164  }
    165165
    166   if (use_table) textout << "</table>\n";
    167   if (colnumber > 0) textout << "</table></td></tr></table>\n";
     166  if (use_table) textout << outconvert << "</table>\n";
     167  if (colnumber > 0) textout << outconvert << "</table></td></tr></table>\n";
    168168
    169169  return 1;
Note: See TracChangeset for help on using the changeset viewer.