updated PocoDoc

This commit is contained in:
Guenter Obiltschnig
2016-05-01 21:25:21 +02:00
parent 913b0d2752
commit 73fe23bf30
5 changed files with 633 additions and 8 deletions

File diff suppressed because one or more lines are too long

View File

@@ -3,14 +3,14 @@
<head> <head>
<title>${PocoDoc.software} - Reference Library</title> <title>${PocoDoc.software} - Reference Library</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/> <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"/> <meta name="generator" content="PocoDoc"/>
<link rel="stylesheet" href="css/styles.css" type="text/css"/> <link rel="stylesheet" href="css/styles.css" type="text/css"/>
<script type="text/javascript" src="js/iframeResizer.min.js"></script> <script type="text/javascript" src="js/iframeResizer.min.js"></script>
</head> </head>
<body> <body>
<div class="header"> <div class="header">
<h1 class="category">${PocoDoc.software}</h1> <h1 class="category">POCO C++ Libraries</h1>
<h1 class="title">Reference Library</h1> <h1 class="title">Reference Library</h1>
</div> </div>
<div class="body"> <div class="body">

View File

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

View File

@@ -1,7 +1,7 @@
// //
// DocWriter.h // 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. // Definition of the DocWriter class.
// //

View File

@@ -1,7 +1,7 @@
// //
// PocoDoc.cpp // 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. // Copyright (c) 2005-2014, Applied Informatics Software Engineering GmbH.
// and Contributors. // and Contributors.