319{
320
321
322
323
324
325
326
327
328
329
330 QCString f = file;
331 if (!f.
isEmpty() && f.
at(0)==
'^')
return;
332
334 {
335 f = "doxygen_blank";
338 {
341 if (!blankFile.is_open())
342 {
343 term(
"Could not open file %s for writing\n",
qPrint(fileName));
344 }
345 TextStream blank;
347 blank << "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
349 blank << "<head>\n";
350 blank << "<title>Validator / crawler helper</title>\n";
351 blank << "<meta http-equiv=\"Content-Type\" content=\"text/xhtml;charset=UTF-8\"/>\n";
352 blank << "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=11\"/>\n";
353
354 blank << "<meta name=\"generator\" content=\"Doxygen " + getDoxygenVersion() + "\"/>\n";
355 blank << "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/>\n";
356 blank << "</head>\n";
357 blank << "<body>\n";
358 blank << "</body>\n";
359 blank << "</html>\n";
361 blankFile.close();
363 });
364 }
365 QCString finalRef =
makeRef(f, anchor);
366 p->sectionTree.addSection(name,finalRef);
367}
char & at(size_t i)
Returns a reference to the character at index i.
bool isEmpty() const
Returns TRUE iff the string is empty.
void addFile(const QCString &)
void setStream(std::ostream *s)
Sets or changes the std::ostream to write to.
void flush()
Flushes the buffer.
virtual QCString trISOLang()=0
#define Config_getString(name)
Translator * theTranslator
std::ofstream openOutputStream(const QCString &name, bool append=false)
const char * qPrint(const char *s)
static QCString makeRef(const QCString &withoutExtension, const QCString &anchor)
static std::once_flag g_blankWritten
void addHtmlExtensionIfMissing(QCString &fName)