33 const std::vector<PLatexObj> & vecChildren = obj.
getVecContent();
34 for(std::vector<PLatexObj>::const_iterator it(vecChildren.begin()); it != vecChildren.end(); ++it){
53 if(textMainPage !=
""){
73 body += indentation +
"<li class=\"chapter-item affix \"><li class=\"part-title\">"+text+
"</li>\n";
76 displayList =
"expanded";
78 displayList +=
" active";
81 body += indentation +
"<li class=\"chapter-item "+displayList+
"\"><a href=\""+link+
"\">"+text+
"</a>";
83 const std::vector<PFullMenu> & vecSubMenu = menu.
getVecSubMenu();
84 if(vecSubMenu.size() != 0lu){
85 body +=
"<a class=\"toggle\"><div>❱</div></a></li>\n";
86 body += indentation +
"<li>\n";
87 body += indentation +
"\t<ol class=\"section\">\n";
88 for(std::vector<PFullMenu>::const_iterator it(vecSubMenu.begin()); it != vecSubMenu.end(); ++it){
91 body += indentation +
"\t</ol>\n";
92 body += indentation +
"</li>\n";
105 return menu.
getLink() == currentLink;
115 bool isExtended(isFirstExtended);
117 std::vector<PFullMenu>::iterator it(vecSubMenu.begin());
118 while(!isExtended && it != vecSubMenu.end()){
120 isExtended = it->getIsExpanded();
136 PString body(
""), indentation(
"\t\t");
137 body += indentation+
"<nav id=\"sidebar\" class=\"sidebar\" aria-label=\"Table of contents\">\n";
138 body += indentation+
"\t<div class=\"sidebar-scrollbox\">\n";
139 body += indentation+
"\t\t<ol class=\"chapter\">\n";
140 body += indentation +
"\t\t\t<li class=\"chapter-item \"><a href=\"index.html\">"+menu.
getMainPageLink()+
"</a></li>\n";
141 const std::vector<PFullMenu> & vecSubMenu = expandedMenu.
getVecSubMenu();
142 for(std::vector<PFullMenu>::const_iterator it(vecSubMenu.begin()); it != vecSubMenu.end(); ++it){
146 body += indentation +
"\t\t\t<li class=\"chapter-item \"><a href=\"bibliography.html\">Bibliography</a></li>\n";
149 body += indentation+
"\t\t</ol>\n";
150 body += indentation+
"\t</div>\n";
151 body += indentation+
"\t<div id=\"sidebar-resize-handle\" class=\"sidebar-resize-handle\"></div>\n";
152 body += indentation+
"</nav>\n";
const std::vector< PLatexObj > & getVecContent() const
Gets the vecContent of the PLatexObj.
const std::vector< PLatexObj > & getComplexTitle() const
Gets the complexTitle of the PLatexObj.
const PLatexType::PLatexType & getType() const
Gets the type of the PLatexObj.
const PString & getName() const
Gets the name 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.
PLatexType
Type of the PLatexObj.
PString vecNumberToString(const std::vector< long unsigned int > &vecNb)
Convert a vector of numbers into a string.
PString platexobj_text(const std::vector< PLatexObj > &vecObj)
Convert a PLatexObj in text.
bool isSectionOrSeparator(const PLatexObj &obj)
Say if the PLatexObj is a part, charpter, section, subsection, subsubsection or a book separator.