Browse Source

updated PocoDoc

Guenter Obiltschnig 10 years ago
parent
commit
73fe23bf30

File diff suppressed because it is too large
+ 0 - 0
PocoDoc/resources/css/styles.css


+ 2 - 2
PocoDoc/resources/index.thtml

@@ -3,14 +3,14 @@
 <head>
 <title>${PocoDoc.software} - Reference Library</title>
 <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
-<meta name="author" content="${PocoDoc.company}"/>
+<meta name="author" content="Applied Informatics Software Engineering GmbH and Contributors"/>
 <meta name="generator" content="PocoDoc"/>
 <link rel="stylesheet" href="css/styles.css" type="text/css"/>
 <script type="text/javascript" src="js/iframeResizer.min.js"></script>
 </head>
 <body>
 <div class="header">
-<h1 class="category">${PocoDoc.software}</h1>
+<h1 class="category">POCO C++ Libraries</h1>
 <h1 class="title">Reference Library</h1>
 </div>
 <div class="body">

+ 4 - 3
PocoDoc/src/DocWriter.cpp

@@ -1,7 +1,7 @@
 //
 // DocWriter.cpp
 //
-// $Id: //poco/1.4/PocoDoc/src/DocWriter.cpp#4 $
+// $Id: //poco/1.7/PocoDoc/src/DocWriter.cpp#3 $
 //
 // Copyright (c) 2005-2014, Applied Informatics Software Engineering GmbH.
 // and Contributors.
@@ -2192,6 +2192,7 @@ void DocWriter::writePage(Page& page)
 	writeCopyright(ostr);
 	endContent(ostr);
 	endBody(ostr);
+	ostr << "<script>CollapsibleLists.apply(true)</script>" << std::endl;
 	writeFooter(ostr);
 }
 
@@ -2229,8 +2230,8 @@ void DocWriter::scanTOC(const std::string& text, TOC& toc)
 
 void DocWriter::writeTOC(std::ostream& ostr, const TOC& toc)
 {
-	ostr << "<h2>" << tr("TOC") << "</h2>" << std::endl;
 	ostr << "<div class=\"toc\">" << std::endl;
+	ostr << "<ul class=\"collapsibleList\"><li>" << tr("TOC") << std::endl;
 	int lastLevel = 0;
 	for (TOC::const_iterator it = toc.begin(); it != toc.end(); ++it)
 	{
@@ -2257,7 +2258,7 @@ void DocWriter::writeTOC(std::ostream& ostr, const TOC& toc)
 	{
 		ostr << "</li></ul>" << std::endl;
 	}
-	ostr << "</li></ul></div>" << std::endl;
+	ostr << "</li></ul></li></ul></div>" << std::endl;
 }
 
 

+ 1 - 1
PocoDoc/src/DocWriter.h

@@ -1,7 +1,7 @@
 //
 // DocWriter.h
 //
-// $Id: //poco/1.4/PocoDoc/src/DocWriter.h#2 $
+// $Id: //poco/1.7/PocoDoc/src/DocWriter.h#2 $
 //
 // Definition of the DocWriter class.
 //

+ 1 - 1
PocoDoc/src/PocoDoc.cpp

@@ -1,7 +1,7 @@
 //
 // PocoDoc.cpp
 //
-// $Id: //poco/1.4/PocoDoc/src/PocoDoc.cpp#2 $
+// $Id: //poco/1.7/PocoDoc/src/PocoDoc.cpp#2 $
 //
 // Copyright (c) 2005-2014, Applied Informatics Software Engineering GmbH.
 // and Contributors.

Some files were not shown because too many files changed in this diff