PhoenixLecture  2.0.0
Set of tools to make lectures
platexobj_utils.h
Go to the documentation of this file.
1 /***************************************
2  Auteur : Pierre Aubert
3  Mail : pierre.aubert@lapp.in2p3.fr
4  Licence : CeCILL-C
5 ****************************************/
6 
7 #ifndef __PLATEXOBJ_UTILS_H__
8 #define __PLATEXOBJ_UTILS_H__
9 
10 #include <map>
11 #include "PLatexObj.h"
12 #include "PLatexObj_def.h"
13 #include "platexobj_formulae.h"
14 
16 typedef std::vector<PLatexObj> PVecLatexObj;
18 typedef std::vector<PLatexEnv> PVecLatexEnv;
20 typedef std::vector<PLatexFunc> PVecLatexFunc;
21 
24 
26 typedef std::map<PString, PEnvironement> PMapExtraEnv;
27 
29 typedef std::vector<PContext> PVecContext;
30 
32 typedef std::vector<PLatexObj*> PVecPtrSection;
33 
35 typedef std::vector<long unsigned int> PVecNumber;
36 
38 typedef std::vector<PLatexMenu> PVecMenu;
39 
40 bool isSection(const PLatexObj & obj);
41 bool isSeparator(const PLatexObj & obj);
42 bool isSectionOrSeparator(const PLatexObj & obj);
43 bool isNewLine(const PLatexObj & obj);
44 long unsigned int getSectionLevel(const PLatexObj & obj);
46 
47 PString getSecNumberFromFileName(const PPath & fileName);
48 
49 PString getSectionTitle(POutoutMode & outputMode, const PLatexObj & obj);
50 
51 void appendVecContent(std::vector<PLatexObj> & vecContent, const std::vector<PLatexObj> & vecObj);
52 void appendVecContent(std::vector<PLatexObj> & vecContent, const PLatexObj & obj);
53 
54 #endif
std::vector< PPath > PVecPath
Definition: PPath.h:75
Describe a latex object.
Definition: PLatexObj.h:40
Path of a directory or a file.
Definition: PPath.h:17
Extends the std::string.
Definition: PString.h:16
bool isSectionOrSeparator(const PLatexObj &obj)
Say if the PLatexObj is a part, charpter, section, subsection, subsubsection or a book separator.
std::vector< PContext > PVecContext
Vector of context.
void appendVecContent(std::vector< PLatexObj > &vecContent, const std::vector< PLatexObj > &vecObj)
Append a vector of PLatexObj in the given vector of content.
bool isNewLine(const PLatexObj &obj)
Say if the PLatexObj is a newline or not.
PString getSecNumberFromFileName(const PPath &fileName)
Get the section number from its file name.
std::vector< long unsigned int > PVecNumber
Vector of section number.
std::vector< PLatexObj > PVecLatexObj
Vector of obj.
bool isSection(const PLatexObj &obj)
Say if the PLatexObj is a part, charpter, section, subsection or subsubsection.
std::vector< PLatexFunc > PVecLatexFunc
Vector of functions.
std::vector< PLatexEnv > PVecLatexEnv
Vector of env.
bool isSeparator(const PLatexObj &obj)
Say if the PLatexObj is a book separator.
PString getSectionTitle(POutoutMode &outputMode, const PLatexObj &obj)
Get the title of a part/chapter/section etc.
std::map< PString, PEnvironement > PMapExtraEnv
Vector of extra environement.
std::vector< PLatexObj * > PVecPtrSection
Vector of section pointer.
std::vector< PLatexMenu > PVecMenu
Vector of PLatexMenu.
long unsigned int getSectionLevel(const PLatexObj &obj)
Return the section level.
PString convertBackSlahedStr(const PString &str)
Convert all the echaped char.
PVecPath PListFile
List of file.
Output mode of the html backend.