";
+ double yscale = 1.3 * scale;
+ double xscale = 1.2 * scale;
+ int offsetY = 0, offsetX = 0;
+ HTMLWriter::formatTL ";
char bf1[256];
char bf2[256];
GetTimeFormatA(LOCALE_USER_DEFAULT, 0, NULL, NULL, bf2, 256);
GetDateFormatA(LOCALE_USER_DEFAULT, 0, NULL, NULL, bf1, 256);
//fout << "Skapad av MeOS: " << bf1 << " "<< bf2 << "\n";
- fout << toUTF8(lang.tl("Skapad av ")) + "MeOS: " << bf1 << " "<< bf2 << "\n";
+ fout << gdioutput::toUTF8(lang.tl("Skapad av ")) + "MeOS: " << bf1 << " "<< bf2 << "\n";
fout << ", InterpTextInfo>(fout, styles, gdi.getTL(), yscale, xscale, offsetY, offsetX);
+
+ fout << "
";
+if (k == 0 && thisCol != 0)
+fout << " ";
- int nextCol;
- if (row.size()==k+1)
- nextCol=tableCoordinates.rbegin()->second;
- else
- nextCol=tableCoordinates[row[k+1]->xp];
+int nextCol;
+if (row.size() == k + 1)
+nextCol = tableCoordinates.rbegin()->second;
+else
+nextCol = tableCoordinates[row[k + 1]->xp];
- int colspan=nextCol-thisCol;
+int colspan = nextCol - thisCol;
- assert(colspan>0);
+assert(colspan > 0);
- string style;
+string style;
- if (row[k]->format&textRight)
- style=" style=\"text-align:right\"";
+if (row[k]->format&textRight)
+style = " style=\"text-align:right\"";
- if (colspan==1 && !sizeSet[thisCol]) {
- fout << " xp - row[k]->xp) : (MaxX-row[k]->xp)) << "\">";
- sizeSet[thisCol]=true;
- }
- else if (colspan>1)
- fout << " ";
- else
- fout << " ";
+if (colspan == 1 && !sizeSet[thisCol]) {
+ fout << " xp - row[k]->xp) : (MaxX - row[k]->xp)) << "\">";
+ sizeSet[thisCol] = true;
+}
+else if (colspan > 1)
+fout << " ";
+else
+fout << " ";
- gdiFonts font = row[k]->getGdiFont();
- string starttag, endtag;
- getStyle(styles, font, narrow(row[k]->font), "", starttag, endtag);
+gdiFonts font = row[k]->getGdiFont();
+string starttag, endtag;
+getStyle(styles, font, gdioutput::narrow(row[k]->font), "", starttag, endtag);
- fout << starttag << toUTF8(html_table_code(row[k]->text)) << endtag << " " << endl;
+fout << starttag << gdioutput::toUTF8(html_table_code(row[k]->text)) << endtag << "" << endl;
}
fout << "\n";
@@ -512,12 +555,423 @@ bool gdioutput::writeTableHTML(ostream &fout,
GetTimeFormatA(LOCALE_USER_DEFAULT, 0, NULL, NULL, bf2, 256);
GetDateFormatA(LOCALE_USER_DEFAULT, 0, NULL, NULL, bf1, 256);
wstring meos = getMeosCompectVersion();
- fout << toUTF8(lang.tl("Skapad av ")) + "MeOS "
- << toUTF8(meos) << ": " << bf1 << " "<< bf2 << "\n";
+ fout << gdioutput::toUTF8(lang.tl("Skapad av ")) + "MeOS "
+ << gdioutput::toUTF8(meos) << ": " << bf1 << " " << bf2 << "\n";
fout << "