914 for (it.toFirst();(sl=it.current());++it,++
p)
920 QCString dataFileName = searchDirName +
"/"+baseName+
".js";
923 QFile dataOutFile(dataFileName);
929 t <<
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"" 930 " \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">" <<
endl;
931 t <<
"<html><head><title></title>" <<
endl;
932 t <<
"<meta http-equiv=\"Content-Type\" content=\"text/xhtml;charset=UTF-8\"/>" <<
endl;
933 t <<
"<meta name=\"generator\" content=\"Doxygen " <<
versionString <<
"\"/>" <<
endl;
934 t <<
"<link rel=\"stylesheet\" type=\"text/css\" href=\"search.css\"/>" <<
endl;
935 t <<
"<script type=\"text/javascript\" src=\"" << baseName <<
".js\"></script>" <<
endl;
936 t <<
"<script type=\"text/javascript\" src=\"search.js\"></script>" <<
endl;
937 t <<
"</head>" <<
endl;
938 t <<
"<body class=\"SRPage\">" <<
endl;
939 t <<
"<div id=\"SRIndex\">" <<
endl;
941 t <<
"<div id=\"SRResults\"></div>" <<
endl;
942 t <<
"<script type=\"text/javascript\"><!--" <<
endl;
943 t <<
"createResults();" <<
endl;
944 t <<
"--></script>" <<
endl;
945 t <<
"<div class=\"SRStatus\" id=\"Searching\">" 947 t <<
"<div class=\"SRStatus\" id=\"NoMatches\">" 950 t <<
"<script type=\"text/javascript\"><!--" <<
endl;
951 t <<
"document.getElementById(\"Loading\").style.display=\"none\";" <<
endl;
952 t <<
"document.getElementById(\"NoMatches\").style.display=\"none\";" <<
endl;
953 t <<
"var searchResults = new SearchResults(\"searchResults\");" <<
endl;
954 t <<
"searchResults.Search();" <<
endl;
955 t <<
"--></script>" <<
endl;
956 t <<
"</div>" <<
endl;
957 t <<
"</body>" <<
endl;
958 t <<
"</html>" <<
endl;
962 ti <<
"var searchData=" <<
endl;
974 bool firstEntry=
TRUE;
979 for (li.toFirst();(dl=li.current());++li)
1002 ti <<
"#" << anchor;
1006 static bool extLinksInWindow =
Config_getBool(
"EXT_LINKS_IN_WINDOW");
1038 bool overloadedFunction =
FALSE;
1041 for (di.toFirst();(d=di.current());)
1061 ti <<
"#" << anchor;
1065 static bool extLinksInWindow =
Config_getBool(
"EXT_LINKS_IN_WINDOW");
1075 overloadedFunction = ((prevScope!=0 && scope==prevScope) ||
1076 (scope && scope==nextScope)
1081 if (overloadedFunction)
1109 if (!prefix.
isEmpty()) prefix+=
": ";
1133 ti <<
"'" << name <<
"'";
1154 err(
"Failed to open file '%s' for writing...\n",fileName.
data());
1160 QFile f(searchDirName+
"/searchdata.js");
1164 t <<
"var indexSectionsWithContent =" <<
endl;
1172 if (!first)
t <<
"," <<
endl;
1173 t <<
" " << j <<
": \"";
1177 for (it.toFirst();(sl=it.current());++it)
1186 if (!first)
t <<
"\n";
1187 t <<
"};" << endl <<
endl;
1188 t <<
"var indexSectionNames =" <<
endl;
1196 if (!first)
t <<
"," <<
endl;
1202 if (!first)
t <<
"\n";
1203 t <<
"};" << endl <<
endl;
1204 t <<
"var indexSectionLabels =" <<
endl;
1212 if (!first)
t <<
"," <<
endl;
1218 if (!first)
t <<
"\n";
1219 t <<
"};" << endl <<
endl;
1224 QFile f(searchDirName+
"/nomatches.html");
1228 t <<
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" " 1229 "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">" <<
endl;
1230 t <<
"<html><head><title></title>" <<
endl;
1231 t <<
"<meta http-equiv=\"Content-Type\" content=\"text/xhtml;charset=UTF-8\"/>" <<
endl;
1232 t <<
"<link rel=\"stylesheet\" type=\"text/css\" href=\"search.css\"/>" <<
endl;
1233 t <<
"<script type=\"text/javascript\" src=\"search.js\"></script>" <<
endl;
1234 t <<
"</head>" <<
endl;
1235 t <<
"<body class=\"SRPage\">" <<
endl;
1236 t <<
"<div id=\"SRIndex\">" <<
endl;
1237 t <<
"<div class=\"SRStatus\" id=\"NoMatches\">" 1239 t <<
"</div>" <<
endl;
1240 t <<
"</body>" <<
endl;
1241 t <<
"</html>" <<
endl;
QCString convertToXML(const char *s)
virtual QCString getReference() const
static QCString htmlFileExtension
virtual QCString trNoMatches()=0
FileDef * getBodyDef() const
bool copyResource(const char *name, const char *targetDir) const
static ResourceMgr & instance()
The QString class provides an abstraction of Unicode text and the classic C null-terminated char arra...
Simplified and optimized version of QTextStream.
virtual QCString getOutputFileBase() const =0
The QChar class provides a light-weight Unicode character.
virtual QCString trLoading()=0
FileDef * getFileDef() const
static NamespaceDef * globalScope
virtual QCString trGlobalNamespace()=0
virtual DefType definitionType() const =0
QCString getLanguageSpecificSeparator(SrcLangExt lang, bool classScope)
const QCString & name() const
SrcLangExt getLanguage() const
void addStyleSheetFile(const char *name)
const char * data() const
static SearchIndexInfo g_searchIndexInfo[NUM_SEARCH_INDICES]
#define Config_getString(val)
#define Config_getBool(val)
ClassDef * getClassDef() const
virtual QCString qualifiedName() const
void err(const char *fmt,...)
The QFile class is an I/O device that operates on files.
QCString & sprintf(const char *format,...)
virtual Definition * getOuterScope() const
#define NUM_SEARCH_INDICES
NamespaceDef * getNamespaceDef() const
Translator * theTranslator
virtual QCString trSearching()=0
const char * argsString() const
QCString localName() const
static IndexList * indexList
virtual QCString anchor() const =0
QTextStream & endl(QTextStream &s)
QCString externalRef(const QCString &relPath, const QCString &ref, bool href)