Go to the source code of this file.
◆ createOutlineHtml()
Create the outline.
- Parameters
-
[out] | outputMode | : deal with the formulae |
| obj | : PLatexObj to deal with |
| isBibliography | : true if there is a bibliography, false otherwise |
- Returns
- true on success, false otherwise
Definition at line 37 of file createOutlineHtml.cpp.
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");
59 if(!fileName.saveFileContent(body)){
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.
Path of a directory or a file.
PString createOutlineHtmlStr(POutoutMode &outputMode, const PLatexObj &obj)
Create the outline.
PString getHtmlHeader(const PString &title, bool useMathJax, bool useRemoteMathjax, const PString ¤tStyle)
Get the html header.
std::vector< PLatexObj > PVecLatexObj
Vector of obj.
bool isBookTheme
True to activate the book theme.
PString currentStyle
Current style to be used for the generated pages of the site.
References createOutlineHtmlStr(), POutoutMode::currentStyle, getHtmlFooter(), getHtmlHeader(), PLatexObj::getVecContent(), POutoutMode::isBookTheme, and PPath::saveFileContent().
Referenced by processAllFile().
◆ createOutlineHtmlStr()
Create the outline.
- Parameters
-
[out] | outputMode | : deal with the formulae |
| obj | : PLatexObj to deal with |
- Returns
- output string
Definition at line 16 of file createOutlineHtml.cpp.
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";
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.
PString vecNumberToString(const std::vector< long unsigned int > &vecNb)
Convert a vector of numbers into a string.
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.
References PLatexType::FILE, PLatexObj::getLink(), getSectionTitle(), PLatexObj::getType(), PLatexObj::getVecContent(), PLatexObj::getVecSecNumber(), isSection(), and vecNumberToString().
Referenced by createOutlineHtml().