178 |
178 |
String style = "border: 0px solid black; "
|
179 |
179 |
"padding-left:6px; padding-right:0px; "
|
180 |
180 |
"padding-top:4px; padding-bottom:4px;";
|
181 |
|
"border-top: 1px solid #6E89AE;";
|
|
181 |
// "border-top: 1px solid #6E89AE;";
|
182 |
182 |
return BarItem(content, style);
|
183 |
183 |
}
|
184 |
184 |
|
... | ... | |
187 |
187 |
return HtmlPackedTable().Width(-100) /
|
188 |
188 |
HtmlLine();
|
189 |
189 |
}
|
190 |
|
|
191 |
190 |
VectorMap<String, String> escape;
|
192 |
191 |
|
193 |
192 |
String QtfAsHtml(const char *qtf, Index<String>& css,
|
... | ... | |
198 |
197 |
return EncodeHtml(ParseQTF(qtf), css, links, labels, outdir, fn, Zoom(8, 40), escape, 40);
|
199 |
198 |
}
|
200 |
199 |
|
201 |
|
#define TOPICFILE <uppweb/www.tpp/all.i>
|
202 |
|
#include <Core/topic_group.h>
|
203 |
|
|
204 |
|
#define TOPICFILE <ide/app.tpp/all.i>
|
205 |
|
#include <Core/topic_group.h>
|
206 |
|
|
207 |
200 |
String GetText(const char *s)
|
208 |
201 |
{
|
209 |
202 |
return GetTopic(s).text;
|
... | ... | |
320 |
313 |
}
|
321 |
314 |
};
|
322 |
315 |
|
|
316 |
Topic ReadTopic(const String& nest, const String& package, const String& www, const String& name, int language)
|
|
317 |
{
|
|
318 |
String fn = AppendFileName(
|
|
319 |
AppendFileName(
|
|
320 |
AppendFileName(nest, package),
|
|
321 |
www + ".tpp"
|
|
322 |
),
|
|
323 |
name + "$" + ToLower(LNGAsText(language)) + ".tpp"
|
|
324 |
);
|
|
325 |
|
|
326 |
return ReadTopic(LoadFile(fn));
|
|
327 |
}
|
|
328 |
|
323 |
329 |
String MakeExamples(const char *dir, const char *www, int language)
|
324 |
330 |
{
|
325 |
331 |
String ttxt;
|
... | ... | |
338 |
344 |
String link = String().Cat() << www << '$' << name << "$" << ToLower(LNGAsText(language)) << ".html";
|
339 |
345 |
Topic& topic = tt.Add(link);
|
340 |
346 |
topic.title = name;
|
341 |
|
String fn = AppendFileName(
|
342 |
|
AppendFileName(
|
343 |
|
AppendFileName(uppbox, "uppweb"),
|
344 |
|
String(www) + ".tpp"
|
345 |
|
),
|
346 |
|
topic.title + "$" + ToLower(LNGAsText(language)) + ".tpp"
|
347 |
|
);
|
348 |
|
String h = ReadTopic(LoadFile(fn)).text;
|
|
347 |
String h = ReadTopic(uppbox, "uppweb", www, name, language).text;
|
349 |
348 |
Package p;
|
350 |
349 |
p.Load(AppendFileName(AppendFileName(dir, name), name + ".upp"));
|
351 |
350 |
topic.text << "[R6* " << name << "]&&" << DeQtf(p.description) << "&";
|
... | ... | |
766 |
765 |
{
|
767 |
766 |
int di = tt.Find("topic://uppweb/www/examples$" + ToLower(LNGAsText(languages[i])));
|
768 |
767 |
tt[di].text << MakeExamples(examples, "examples", languages[i]);
|
769 |
|
tt[di].text << GetTopic("topic://uppweb/www/reference$" + ToLower(LNGAsText(languages[i]))).text;
|
|
768 |
tt[di].text << ReadTopic(uppbox, "uppweb", "www", "reference", languages[i]).text;
|
770 |
769 |
tt[di].text << MakeExamples(reference, "reference", languages[i]);
|
771 |
770 |
}
|
772 |
771 |
|