15 if(vecPtrSection.size() == 0lu){
return;}
16 while(vecPtrSection.size() != 0lu && level <=
getSectionLevel(*vecPtrSection.back())){
17 vecPtrSection.pop_back();
27 if(vecPtrSection.size() != 0lu){
28 PLatexObj & parentSec = *vecPtrSection.back();
33 if(currentLevel < secLevel){
39 if(vecPtrSection.size() == 0lu){
43 PLatexObj* lastSec = vecPtrSection.back();
61 if(vecPtrSection.size() != 0lu){
62 PLatexObj & parentSec = *vecPtrSection.back();
67 if(currentLevel < secLevel){
77 if(vecPtrSection.size() == 0lu){
85 PLatexObj* lastSec = vecPtrSection.back();
124 for(PVecLatexObj::iterator it(vecObj.begin()); it != vecObj.end(); ++it){
130 if(vecPtrSection.size() == 0lu){
133 vecPtrSection.back()->getVecContent().push_back(*it);
void setLink(const PString &link)
Sets the link of the PLatexObj.
void setSourceFile(const PString &sourceFile)
Sets the sourceFile of the PLatexObj.
const std::vector< PLatexObj > & getVecContent() const
Gets the vecContent of the PLatexObj.
const PString & getSubTitle() const
Gets the subTitle of the PLatexObj.
const PLatexType::PLatexType & getType() const
Gets the type of the PLatexObj.
const PString & getName() const
Gets the name of the PLatexObj.
void setName(const PString &name)
Sets the name of the PLatexObj.
const PString & getLink() const
Gets the link of the PLatexObj.
const PLatexMenu & getParentSec() const
Gets the parentSec of the PLatexObj.
void setType(const PLatexType::PLatexType &type)
Sets the type of the PLatexObj.
void setDate(const PString &date)
Sets the date of the PLatexObj.
const PString & getAuthor() const
Gets the author of the PLatexObj.
const PString & getSourceFile() const
Gets the sourceFile of the PLatexObj.
size_t getSourceLine() const
Gets the sourceLine of the PLatexObj.
void setAuthor(const PString &author)
Sets the author of the PLatexObj.
void setSourceLine(size_t sourceLine)
Sets the sourceLine of the PLatexObj.
const PString & getDate() const
Gets the date of the PLatexObj.
void setSubTitle(const PString &subTitle)
Sets the subTitle of the PLatexObj.
void platexobj_orderGetSmallerLevel(PVecPtrSection &vecPtrSection, long unsigned int level)
Erase all the higher level from vecPtrSection.
void addSectionInVecPtrSection(PLatexObj &out, PVecPtrSection &vecPtrSection, PLatexObj &sec)
Add a section into the vecPtrSection.
PLatexObj platexobj_order(PLatexObj &obj)
Order the PLatexObj in part,chapter,section,subsection,subsubsection.
void addSeparatorInVecPtrSection(PLatexObj &out, PVecPtrSection &vecPtrSection, PLatexObj &separator)
Add a section into the vecPtrSection.
bool isSection(const PLatexObj &obj)
Say if the PLatexObj is a part, charpter, section, subsection or subsubsection.
bool isSeparator(const PLatexObj &obj)
Say if the PLatexObj is a book separator.
long unsigned int getSectionLevel(const PLatexObj &obj)
Return the section level.
std::vector< PLatexObj > PVecLatexObj
Vector of obj.
std::vector< PLatexObj * > PVecPtrSection
Vector of section pointer.