21 if(vecObj.size() != 0lu){
22 body +=
"\t\t\t\t<ul>\n";
23 for(PVecLatexObj::const_iterator it(vecObj.begin()); it != vecObj.end(); ++it){
26 body +=
"\t\t\t\t</ul>\n";
41 body +=
"\t\t<h1 class=\"mainTitle\">Outline</h1>\n";
42 body +=
"\t\t<ul class=\"sommairePage\">\n";
43 body +=
"\t\t\t<ul>\n";
44 body +=
"\t\t\t\t<li><a href=\"index.html\">Main Page</a></li>\n";
46 body +=
"\t\t\t\t<li><a href=\"bibliography.html\">Bibliographie</a></li>\n";
50 if(vecObj.size() != 0lu){
51 for(PVecLatexObj::const_iterator it(vecObj.begin()); it != vecObj.end(); ++it){
55 body +=
"\t\t\t</ul>\n";
56 body +=
"\t\t</ul>\n";
58 PPath fileName(
"outline.html");
60 std::cerr <<
"createOutlineHtml : can't save file name '"<<fileName<<
"'" << std::endl;
63 std::cerr <<
"createOutlineHtml : save file name '"<<fileName<<
"'" << std::endl;
const std::vector< PLatexObj > & getVecContent() const
Gets the vecContent of the PLatexObj.
const PLatexType::PLatexType & getType() const
Gets the type of the PLatexObj.
const PString & getLink() const
Gets the link of the PLatexObj.
const std::vector< long unsigned int > & getVecSecNumber() const
Gets the vecSecNumber of the PLatexObj.
Path of a directory or a file.
bool saveFileContent(const PString &content) const
Save a PString in a file.
bool createOutlineHtml(POutoutMode &outputMode, const PLatexObj &obj, bool isBibliography)
Create the outline.
PString createOutlineHtmlStr(POutoutMode &outputMode, const PLatexObj &obj)
Create the outline.
PString vecNumberToString(const std::vector< long unsigned int > &vecNb)
Convert a vector of numbers into a string.
PString getHtmlHeader(const PString &title, bool useMathJax, bool useRemoteMathjax, const PString ¤tStyle)
Get the html header.
bool isSection(const PLatexObj &obj)
Say if the PLatexObj is a part, charpter, section, subsection or subsubsection.
PString getSectionTitle(POutoutMode &outputMode, const PLatexObj &obj)
Get the title of a part/chapter/section etc.
std::vector< PLatexObj > PVecLatexObj
Vector of obj.
Output mode of the html backend.
bool isBookTheme
True to activate the book theme.
PString currentStyle
Current style to be used for the generated pages of the site.