PhoenixLecture  2.0.0
Set of tools to make lectures
platexobj_rawtext.h File Reference
+ Include dependency graph for platexobj_rawtext.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

PString platexobj_rawtext (const PLatexObj &obj)
 Convert a PLatexObj in text. More...
 
PString platexobj_rawtext (const std::vector< PLatexObj > &vecObj)
 Convert a PLatexObj in text. More...
 

Function Documentation

◆ platexobj_rawtext() [1/2]

PString platexobj_rawtext ( const PLatexObj obj)

Convert a PLatexObj in text.

Parameters
obj: PLatexObj
Returns
corresponding text

Definition at line 38 of file platexobj_rawtext.cpp.

38  {
39  PString body("");
40  PLatexType::PLatexType type(obj.getType());
41  if(type == PLatexType::TEXT){body = platexobj_htmlStrText(obj);}
42  else if(type == PLatexType::URL){body = platexobj_htmlStrUrl(obj);}
43  else if(type == PLatexType::PERCENT){body += "%";}
44 
45  else if(type == PLatexType::REF){body = platexobj_htmlStrRef(obj);}
46  else if(type == PLatexType::HREF){body = platexobj_rawtextContent(obj);}
47  else if(type == PLatexType::TEXTBF){body = platexobj_rawtextContent(obj);}
48  else if(type == PLatexType::TEXTIT){body = platexobj_rawtextContent(obj);}
49  else if(type == PLatexType::DEBUG){body = platexobj_htmlStrTextDebug(obj);}
50  else if(type == PLatexType::FUNCTION){body = platexobj_rawtextContent(obj);}
51  else if(type == PLatexType::RENDEZVOUS){body = platexobj_htmlStrRendezVous(obj);}
52  else{
53  body = platexobj_rawtext(obj.getVecContent());
54  }
55  return body;
56 }
const std::vector< PLatexObj > & getVecContent() const
Gets the vecContent of the PLatexObj.
Definition: PLatexObj.cpp:410
const PLatexType::PLatexType & getType() const
Gets the type of the PLatexObj.
Definition: PLatexObj.cpp:298
Extends the std::string.
Definition: PString.h:16
PLatexType
Type of the PLatexObj.
Definition: PLatexType.h:12
PString platexobj_htmlStrUrl(const PLatexObj &obj)
Convert a PLatexObj into a string.
PString platexobj_htmlStrTextDebug(const PLatexObj &obj)
Convert a PLatexObj into a string.
PString platexobj_htmlStrRendezVous(const PLatexObj &obj)
Convert a rendez-vous into a html string.
PString platexobj_htmlStrText(const PLatexObj &obj)
Convert a PLatexObj into a string.
PString platexobj_htmlStrRef(const PLatexObj &obj)
Convert a PLatexObj into a string.
PString platexobj_rawtext(const std::vector< PLatexObj > &vecObj)
Convert a PLatexObj in text.
PString platexobj_rawtextContent(const PLatexObj &obj)
Convert a PLatexObj into a raw text string.

References PLatexType::DEBUG, PLatexType::FUNCTION, PLatexObj::getType(), PLatexObj::getVecContent(), PLatexType::HREF, PLatexType::PERCENT, platexobj_htmlStrRef(), platexobj_htmlStrRendezVous(), platexobj_htmlStrText(), platexobj_htmlStrTextDebug(), platexobj_htmlStrUrl(), platexobj_rawtext(), platexobj_rawtextContent(), PLatexType::REF, PLatexType::RENDEZVOUS, PLatexType::TEXT, PLatexType::TEXTBF, PLatexType::TEXTIT, and PLatexType::URL.

+ Here is the call graph for this function:

◆ platexobj_rawtext() [2/2]

PString platexobj_rawtext ( const std::vector< PLatexObj > &  vecObj)

Convert a PLatexObj in text.

Parameters
vecObj: vector of PLatexObj
Returns
corresponding text

Definition at line 26 of file platexobj_rawtext.cpp.

26  {
27  PString body("");
28  for(std::vector<PLatexObj>::const_iterator it(vecObj.begin()); it != vecObj.end(); ++it){
29  body += platexobj_rawtext(*it);
30  }
31  return body;
32 }

Referenced by platexobj_book_createPage(), platexobj_htmlStrTimetableDay(), platexobj_htmlStrTimetableWeek(), platexobj_rawtext(), platexobj_rawtextContent(), and ptimetable_blockToEvent().

+ Here is the caller graph for this function: