1771 if (outputDirectory.
isEmpty())
1781 if (!
dir.mkdir(outputDirectory))
1783 err(
"tag DOCBOOK_OUTPUT: Output directory `%s' does not " 1784 "exist and cannot be created\n",outputDirectory.
data());
1789 msg(
"Notice: Output directory `%s' does not exist. " 1790 "I have created it for you.\n", outputDirectory.
data());
1792 dir.cd(outputDirectory);
1794 outputDirectory=
dir.absPath().utf8();
1801 if (!
dir.mkdir(outputDirectory))
1803 err(
"Cannot create directory %s\n",outputDirectory.
data());
1807 QDir docbookDir(outputDirectory);
1814 f.setName(fileName);
1817 err(
"Cannot open file %s for writing!\n",fileName.
data());
1824 t <<
"<?xml version='1.0' encoding='UTF-8' standalone='no'?>" <<
endl;;
1825 t <<
"<book xmlns=\"http://docbook.org/ns/docbook\" version=\"5.0\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">" <<
endl;
1826 t <<
" <info>" <<
endl;
1827 t <<
" <title>" << dbk_projectName <<
"</title>" <<
endl;
1828 t <<
" </info>" <<
endl;
1837 t <<
" <chapter>" <<
endl;
1838 t <<
" <title>Namespace Documentation</title>" <<
endl;
1841 for (nli.toFirst();(nd=nli.current());++nli)
1843 msg(
"Generating Docbook output for namespace %s\n",nd->
name().
data());
1850 t <<
" </chapter>" <<
endl;
1857 msg(
"Generating Docbook output for the main page\n");
1866 for (pdi.toFirst();(pd=pdi.current());++pdi)
1868 msg(
"Generating Docbook output for page %s\n",pd->
name().
data());
1881 t <<
" <chapter>" <<
endl;
1885 for (;(gd=gli.current());++gli)
1887 msg(
"Generating Docbook output for group %s\n",gd->
name().
data());
1894 t <<
" </chapter>" <<
endl;
1906 t <<
" <chapter>" <<
endl;
1910 for (
cli.toFirst();(cd=
cli.current());++
cli)
1918 t <<
" </chapter>" <<
endl;
1933 t <<
" <chapter>" <<
endl;
1937 for (;(fn=fnli.current());++fnli)
1941 for (;(fd=fni.current());++fni)
1943 msg(
"Generating Docbook output for file %s\n",fd->
name().
data());
1951 t <<
" </chapter>" <<
endl;
1964 t <<
" <chapter>" <<
endl;
1968 for (sdi.toFirst();(dir=sdi.current());++sdi)
1970 msg(
"Generate Docbook output for dir %s\n",dir->
name().
data());
1977 t <<
" </chapter>" <<
endl;
1990 t <<
" <chapter>" <<
endl;
1994 for (pdi.toFirst();(pd=pdi.current());++pdi)
1996 msg(
"Generating Docbook output for example %s\n",pd->
name().
data());
2003 t <<
" </chapter>" <<
endl;
2007 t <<
"</book>" <<
endl;
Traverses directory structures and contents in a platform-independent way.
static GroupSDict * groupSDict
static PageSDict * exampleSDict
void msg(const char *fmt,...)
static void generateDocbookForPage(PageDef *pd, FTextStream &ti, bool isExample)
static FileNameList * inputNameList
Simplified and optimized version of QTextStream.
virtual QCString trModuleDocumentation()=0
static NamespaceSDict * namespaceSDict
const QCString & name() const
virtual QCString trFileDocumentation()=0
virtual QCString trDirDocumentation()=0
static void generateDocbookForNamespace(NamespaceDef *nd, FTextStream &ti)
static DirSDict * directories
static QString currentDirPath()
virtual QCString trClassDocumentation()=0
static void generateDocbookForClass(ClassDef *cd, FTextStream &ti)
static PageSDict * pageSDict
const char * data() const
#define Config_getString(val)
#define Config_getBool(val)
void err(const char *fmt,...)
The QFile class is an I/O device that operates on files.
virtual QCString trExampleDocumentation()=0
static void generateDocbookForDir(DirDef *dd, FTextStream &ti)
static void generateDocbookForFile(FileDef *fd, FTextStream &ti)
A model of a page symbol.
Translator * theTranslator
void createSubDirs(QDir &d)
static ClassSDict * classSDict
static PageDef * mainPage
static void generateDocbookForGroup(GroupDef *gd, FTextStream &ti)
QTextStream & endl(QTextStream &s)