![]() |
PhoenixLecture
2.0.0
Set of tools to make lectures
|
#include <sys/stat.h>
#include <sys/types.h>
#include "phoenix_env.h"
#include "phoenix_system.h"
#include "convertToString.h"
#include "parser_utils.h"
#include "platexobj_text.h"
#include "platexobj_rawtext.h"
#include "platexobj_html_book.h"
#include "platexobj_html.h"
Go to the source code of this file.
Functions | |
PString | getHtmlHeader (const PString &title, bool useMathJax, bool useRemoteMathjax, const PString ¤tStyle) |
Get the html header. More... | |
PString | platexobj_createLabelSearchLink (const PString &labelName) |
Create the link to the label of the current PLatexObj if it exist. More... | |
PString | platexobj_createTitle (const PLatexObj &obj, const PString &baliseName, const PString &cssClassName, const PString objTitle, const PString &prefixTitle, bool addLinkLabel) |
Create a title. More... | |
PString | platexobj_htmlStrAllPart (POutoutMode &outputMode, const PLatexObj &obj, const PString &hLevel, const PString &cssClassName) |
Convert a PLatexObj into a string. More... | |
PString | platexobj_htmlStrBasicEnv (POutoutMode &outputMode, const PLatexObj &obj, const PString &baliseName, const PString &cssClassName, bool allowText) |
Convert a basic environement into a string. More... | |
PString | platexobj_htmlStrCallDot (POutoutMode &outputMode, const PLatexObj &obj) |
Convert a PLatexObj into a string. More... | |
PString | platexobj_htmlStrCaption (POutoutMode &outputMode, const PLatexObj &obj) |
Convert a PLatexObj into a string. More... | |
PString | platexobj_htmlStrCitation (const PLatexObj &obj) |
Convert a PLatexObj into a string. More... | |
PString | platexobj_htmlStrColumns (POutoutMode &outputMode, const PLatexObj &obj) |
Convert a PLatexObj into a string. More... | |
PString | platexobj_htmlStrDetail (POutoutMode &outputMode, const PLatexObj &obj) |
Convert a PLatexObj into a string. More... | |
PString | platexobj_htmlStrExtraEnvironement (POutoutMode &outputMode, const PLatexObj &obj) |
Convert a PLatexObj into a string. More... | |
PString | platexobj_htmlStrExtraFunction (POutoutMode &outputMode, const PLatexObj &obj) |
Convert a PLatexObj into a string. More... | |
PString | platexobj_htmlStrExtraParser (const PLatexObj &obj) |
Convert a PLatexObj into a string. More... | |
PString | platexobj_htmlStrGetEnv (const PLatexObj &obj) |
Convert a PLatexObj into a string. More... | |
PString | platexobj_htmlStrHref (POutoutMode &outputMode, const PLatexObj &obj) |
Convert a PLatexObj into a string. More... | |
PString | platexobj_htmlStrHtml (const PLatexObj &obj) |
Convert a PLatexObj into a string. More... | |
PString | platexobj_htmlStrNewLine (const PLatexObj &obj) |
Convert a PLatexObj into a string. More... | |
PString | platexobj_htmlStrQuote (POutoutMode &outputMode, const PLatexObj &obj) |
Convert a PLatexObj into a string. More... | |
PString | platexobj_htmlStrRef (const PLatexObj &obj) |
Convert a PLatexObj into a string. More... | |
PString | platexobj_htmlStrRendezVous (const PLatexObj &obj) |
Convert a rendez-vous into a html string. More... | |
PString | platexobj_htmlStrSpaceParagraph (const PLatexObj &obj) |
Convert a PLatexObj into a string. More... | |
PString | platexobj_htmlStrSummary (POutoutMode &outputMode, const PLatexObj &obj) |
Convert a PLatexObj into a string. More... | |
PString | platexobj_htmlStrSvgToPng (POutoutMode &outputMode, const PLatexObj &obj) |
Convert a PLatexObj into a string. More... | |
PString | platexobj_htmlStrTabCell (POutoutMode &outputMode, const PLatexObj &obj) |
Convert a tabular into a html string. More... | |
PString | platexobj_htmlStrTabRow (POutoutMode &outputMode, const PLatexObj &obj) |
Convert a tabular into a html string. More... | |
PString | platexobj_htmlStrTabular (POutoutMode &outputMode, const PLatexObj &obj) |
Convert a tabular into a html string. More... | |
PString | platexobj_htmlStrText (const PLatexObj &obj) |
Convert a PLatexObj into a string. More... | |
PString | platexobj_htmlStrTextBf (const PLatexObj &obj) |
Convert a PLatexObj into a string. More... | |
PString | platexobj_htmlStrTextDebug (const PLatexObj &obj) |
Convert a PLatexObj into a string. More... | |
PString | platexobj_htmlStrTextFootnote (POutoutMode &outputMode, const PLatexObj &obj) |
Convert a PLatexObj into a string. More... | |
PString | platexobj_htmlStrTextIt (const PLatexObj &obj) |
Convert a PLatexObj into a string. More... | |
PString | platexobj_htmlStrTimetable (POutoutMode &outputMode, const PLatexObj &obj) |
Convert a timetable into a html string. More... | |
PString | platexobj_htmlStrTimetableBlock (POutoutMode &outputMode, const PLatexObj &obj) |
Convert a timetable block into a html string. More... | |
PString | platexobj_htmlStrTimetableDay (POutoutMode &outputMode, const PLatexObj &obj) |
Convert a timetable day into a html string. More... | |
PString | platexobj_htmlStrTimetableEmptyBlock (POutoutMode &outputMode, const PLatexObj &obj) |
Convert a timetable block into a html string. More... | |
PString | platexobj_htmlStrTimetableTime (POutoutMode &outputMode, const PLatexObj &obj) |
Convert a timetable time into a html string. More... | |
PString | platexobj_htmlStrTimetableTimeRow (POutoutMode &outputMode, const PLatexObj &obj) |
Convert a timetable time row into a html string. More... | |
PString | platexobj_htmlStrTimetableWeek (POutoutMode &outputMode, const PLatexObj &obj) |
Convert a timetable week into a html string. More... | |
PString | platexobj_htmlStrUpdateStyle (POutoutMode &outputMode, const PLatexObj &obj) |
Convert a PLatexObj into a string. More... | |
PString | platexobj_htmlStrUrl (const PLatexObj &obj) |
Convert a PLatexObj into a string. More... | |
PString | platexobj_htmlStrWip (POutoutMode &outputMode, const PLatexObj &obj) |
Convert a PLatexObj into a string. More... | |
PString | vecMenuToHtml (const PVecMenu &vecMenu) |
Convert the vector of menu into a html string. More... | |
PString | vecNumberToString (const std::vector< long unsigned int > &vecNb) |
Convert a vector of numbers into a string. More... | |
PString getHtmlHeader | ( | const PString & | title, |
bool | useMathJax, | ||
bool | useRemoteMathjax, | ||
const PString & | currentStyle | ||
) |
Get the html header.
title | : page title |
useMathJax | : true to use MathJax, false otherwise |
useRemoteMathjax | : true if we use remote mathjax |
currentStyle | : current style to be used |
Definition at line 671 of file platexobj_html.cpp.
Referenced by createOutlineHtml(), pbiblio_entryPage(), and pbiblio_html().
Create the link to the label of the current PLatexObj if it exist.
labelName | : name of the label to be used |
Definition at line 25 of file platexobj_html.cpp.
Referenced by platexobj_createTitle(), platexobj_htmlStrAllPart(), platexobj_htmlStrBasicEnv(), platexobj_htmlStrCallDot(), platexobj_htmlStrCaption(), platexobj_htmlStrExtraEnvironement(), platexobj_htmlStrExtraFunction(), platexobj_htmlStrExtraParser(), platexobj_htmlStrImage(), platexobj_htmlStrSvgToPng(), platexobj_htmlStrTabular(), platexobj_htmlStrTimetable(), platexobj_htmlStrTimetableWeek(), and platexobj_textExtraFunction().
PString platexobj_createTitle | ( | const PLatexObj & | obj, |
const PString & | baliseName, | ||
const PString & | cssClassName, | ||
const PString | objTitle, | ||
const PString & | prefixTitle, | ||
bool | addLinkLabel | ||
) |
Create a title.
obj | : PLatexObj to be saved |
baliseName | : name of the title balise |
cssClassName | : css class to be used |
objTitle | : title to be printed |
prefixTitle | : prefix of the title (Part or Chapter) |
addLinkLabel | : true to add the label link in the title |
Definition at line 40 of file platexobj_html.cpp.
References PLatexObj::getId(), PLatexObj::getLabelName(), PLatexObj::getVecSecNumber(), platexobj_createLabelSearchLink(), valueToString(), and vecNumberToString().
Referenced by platexobj_book_createPage().
PString platexobj_htmlStrAllPart | ( | POutoutMode & | outputMode, |
const PLatexObj & | obj, | ||
const PString & | hLevel, | ||
const PString & | cssClassName | ||
) |
Convert a PLatexObj into a string.
[out] | outputMode | : output mode of the html backend |
obj | : PLatexObj to be converted into a string | |
hLevel | : h balise | |
cssClassName | : name of the css class to be used |
Definition at line 352 of file platexobj_html.cpp.
References PLatexObj::getId(), PLatexObj::getLabelName(), getSectionTitle(), platexobj_createLabelSearchLink(), and valueToString().
PString platexobj_htmlStrBasicEnv | ( | POutoutMode & | outputMode, |
const PLatexObj & | obj, | ||
const PString & | baliseName, | ||
const PString & | cssClassName, | ||
bool | allowText | ||
) |
Convert a basic environement into a string.
[out] | outputMode | : output mode of the html backend |
obj | : PLatexObj to be converted in html | |
baliseName | : name of the balise environement | |
cssClassName | : name of the css class to be used | |
allowText | : true if the TEXT PLatexObj are allowed, false if not |
Definition at line 557 of file platexobj_html.cpp.
References PLatexObj::getId(), PLatexObj::getLabelName(), PLatexObj::getVecContent(), platexobj_createLabelSearchLink(), platexobj_htmlStr(), and valueToString().
PString platexobj_htmlStrCallDot | ( | POutoutMode & | outputMode, |
const PLatexObj & | obj | ||
) |
Convert a PLatexObj into a string.
[out] | outputMode | : output mode of the html backend |
obj | : PLatexObj to be converted into a string |
Definition at line 303 of file platexobj_html.cpp.
References PString::eraseFirstLastChar(), PLatexObj::getId(), PLatexObj::getLabelName(), PLatexObj::getName(), PPath::getParentDirectory(), PLatexObj::getText(), PPath::isFileExist(), LATEX_IMAGE_OUTPUT_DIR, phoenix_popen(), platexobj_createLabelSearchLink(), PPath::saveFileContent(), and valueToString().
PString platexobj_htmlStrCaption | ( | POutoutMode & | outputMode, |
const PLatexObj & | obj | ||
) |
Convert a PLatexObj into a string.
[out] | outputMode | : output mode of the html backend |
obj | : PLatexObj to be converted into a string |
Definition at line 237 of file platexobj_html.cpp.
References PLatexObj::getId(), PLatexObj::getLabelName(), PLatexObj::getVecContent(), platexobj_createLabelSearchLink(), platexobj_htmlStr(), and valueToString().
Convert a PLatexObj into a string.
obj | : PLatexObj to be converted into a string |
Definition at line 147 of file platexobj_html.cpp.
References PLatexObj::getAuthor(), PLatexObj::getDate(), PLatexObj::getLink(), PLatexObj::getName(), and PLatexObj::getText().
PString platexobj_htmlStrColumns | ( | POutoutMode & | outputMode, |
const PLatexObj & | obj | ||
) |
Convert a PLatexObj into a string.
[out] | outputMode | : output mode of the html backend |
obj | : PLatexObj to be converted into a string |
Definition at line 613 of file platexobj_html.cpp.
References PLatexObj::getId(), PLatexObj::getVecContent(), platexobj_htmlStr(), and valueToString().
PString platexobj_htmlStrDetail | ( | POutoutMode & | outputMode, |
const PLatexObj & | obj | ||
) |
Convert a PLatexObj into a string.
[out] | outputMode | : output mode of the html backend |
obj | : PLatexObj to be converted into a string |
Definition at line 276 of file platexobj_html.cpp.
References PLatexObj::getId(), PLatexObj::getVecContent(), platexobj_htmlStr(), and valueToString().
PString platexobj_htmlStrExtraEnvironement | ( | POutoutMode & | outputMode, |
const PLatexObj & | obj | ||
) |
Convert a PLatexObj into a string.
[out] | outputMode | : output mode of the html backend |
obj | : PLatexObj to be converted into a string |
Definition at line 367 of file platexobj_html.cpp.
References PLatexObj::getBalise(), PLatexObj::getId(), PLatexObj::getLabelName(), PLatexObj::getName(), PLatexObj::getVecContent(), platexobj_createLabelSearchLink(), platexobj_htmlStr(), and valueToString().
PString platexobj_htmlStrExtraFunction | ( | POutoutMode & | outputMode, |
const PLatexObj & | obj | ||
) |
Convert a PLatexObj into a string.
[out] | outputMode | : output mode of the html backend |
obj | : PLatexObj to be converted into a string |
Definition at line 382 of file platexobj_html.cpp.
References PLatexObj::getBalise(), PLatexObj::getId(), PLatexObj::getLabelName(), PLatexObj::getName(), PLatexObj::getVecContent(), platexobj_createLabelSearchLink(), platexobj_htmlStr(), and valueToString().
Convert a PLatexObj into a string.
obj | : PLatexObj to be converted into a string |
Definition at line 396 of file platexobj_html.cpp.
References PString::eraseLastChar(), PLatexObj::getId(), PLatexObj::getLabelName(), PLatexObj::getNbline(), PLatexObj::getText(), platexobj_createLabelSearchLink(), and valueToString().
Convert a PLatexObj into a string.
obj | : PLatexObj to be converted into a string |
Definition at line 88 of file platexobj_html.cpp.
References PLatexObj::getName(), and phoenix_getenv().
Referenced by platexobj_text().
PString platexobj_htmlStrHref | ( | POutoutMode & | outputMode, |
const PLatexObj & | obj | ||
) |
Convert a PLatexObj into a string.
[out] | outputMode | : output mode of the html backend |
obj | : PLatexObj to be converted into a string |
Definition at line 172 of file platexobj_html.cpp.
References PLatexObj::getId(), PLatexObj::getName(), PLatexObj::getVecContent(), platexobj_htmlStr(), and valueToString().
Convert a PLatexObj into a string.
obj | : PLatexObj to be converted into a string |
Definition at line 70 of file platexobj_html.cpp.
References PLatexObj::getText().
PString platexobj_htmlStrQuote | ( | POutoutMode & | outputMode, |
const PLatexObj & | obj | ||
) |
Convert a PLatexObj into a string.
[out] | outputMode | : output mode of the html backend |
obj | : PLatexObj to be converted into a string |
Definition at line 290 of file platexobj_html.cpp.
References PLatexObj::getId(), PLatexObj::getVecContent(), platexobj_htmlStr(), and valueToString().
Convert a PLatexObj into a string.
obj | : PLatexObj to be converted into a string |
Definition at line 108 of file platexobj_html.cpp.
References PLatexObj::getLink(), PLatexObj::getName(), PLatexObj::getVecContent(), and platexobj_text().
Referenced by platexobj_rawtext(), and platexobj_text().
Convert a rendez-vous into a html string.
obj | : PLatexObj to be converted in html |
Definition at line 542 of file platexobj_html.cpp.
References PLatexObj::getId(), PLatexObj::getText(), and valueToString().
Referenced by platexobj_rawtext().
PString platexobj_htmlStrSummary | ( | POutoutMode & | outputMode, |
const PLatexObj & | obj | ||
) |
Convert a PLatexObj into a string.
[out] | outputMode | : output mode of the html backend |
obj | : PLatexObj to be converted into a string |
Definition at line 263 of file platexobj_html.cpp.
References PLatexObj::getId(), PLatexObj::getVecContent(), platexobj_htmlStr(), and valueToString().
PString platexobj_htmlStrSvgToPng | ( | POutoutMode & | outputMode, |
const PLatexObj & | obj | ||
) |
Convert a PLatexObj into a string.
[out] | outputMode | : output mode of the html backend |
obj | : PLatexObj to be converted into a string |
Definition at line 329 of file platexobj_html.cpp.
References PPath::getFileName(), PLatexObj::getId(), PLatexObj::getLabelName(), PLatexObj::getName(), PPath::getParentDirectory(), PLatexObj::getText(), LATEX_IMAGE_OUTPUT_DIR, phoenix_popen(), platexobj_createLabelSearchLink(), and valueToString().
PString platexobj_htmlStrTabCell | ( | POutoutMode & | outputMode, |
const PLatexObj & | obj | ||
) |
Convert a tabular into a html string.
[out] | outputMode | : output mode of the html backend |
obj | : PLatexObj to be converted in html |
Definition at line 600 of file platexobj_html.cpp.
References PLatexObj::getVecContent(), and platexobj_htmlStr().
PString platexobj_htmlStrTabRow | ( | POutoutMode & | outputMode, |
const PLatexObj & | obj | ||
) |
Convert a tabular into a html string.
[out] | outputMode | : output mode of the html backend |
obj | : PLatexObj to be converted in html |
Definition at line 587 of file platexobj_html.cpp.
References PLatexObj::getVecContent(), and platexobj_htmlStr().
PString platexobj_htmlStrTabular | ( | POutoutMode & | outputMode, |
const PLatexObj & | obj | ||
) |
Convert a tabular into a html string.
[out] | outputMode | : output mode of the html backend |
obj | : PLatexObj to be converted in html |
Definition at line 574 of file platexobj_html.cpp.
References PLatexObj::getId(), PLatexObj::getLabelName(), PLatexObj::getVecContent(), platexobj_createLabelSearchLink(), platexobj_htmlStr(), and valueToString().
Convert a PLatexObj into a string.
obj | : PLatexObj to be converted into a string |
Definition at line 62 of file platexobj_html.cpp.
References convertStrToHtml(), and PLatexObj::getText().
Referenced by platexobj_rawtext(), and platexobj_text().
Convert a PLatexObj into a string.
obj | : PLatexObj to be converted into a string |
Definition at line 184 of file platexobj_html.cpp.
References PLatexObj::getName().
Referenced by platexobj_text().
Convert a PLatexObj into a string.
obj | : PLatexObj to be converted into a string |
Definition at line 204 of file platexobj_html.cpp.
References PLatexObj::getId(), PLatexObj::getName(), and valueToString().
Referenced by platexobj_rawtext(), and platexobj_text().
PString platexobj_htmlStrTextFootnote | ( | POutoutMode & | outputMode, |
const PLatexObj & | obj | ||
) |
Convert a PLatexObj into a string.
[out] | outputMode | : output mode of the html backend |
obj | : PLatexObj to be converted into a string |
Definition at line 215 of file platexobj_html.cpp.
References PLatexObj::getId(), PLatexObj::getVecContent(), platexobj_htmlStr(), and valueToString().
Convert a PLatexObj into a string.
obj | : PLatexObj to be converted into a string |
Definition at line 194 of file platexobj_html.cpp.
References PLatexObj::getId(), PLatexObj::getName(), and valueToString().
Referenced by platexobj_text().
PString platexobj_htmlStrTimetable | ( | POutoutMode & | outputMode, |
const PLatexObj & | obj | ||
) |
Convert a timetable into a html string.
[out] | outputMode | : output mode of the html backend |
obj | : PLatexObj to be converted in html |
Definition at line 419 of file platexobj_html.cpp.
References PLatexObj::getId(), PLatexObj::getLabelName(), PLatexObj::getVecContent(), platexobj_createLabelSearchLink(), platexobj_htmlStr(), and valueToString().
PString platexobj_htmlStrTimetableBlock | ( | POutoutMode & | outputMode, |
const PLatexObj & | obj | ||
) |
Convert a timetable block into a html string.
[out] | outputMode | : output mode of the html backend |
obj | : PLatexObj to be converted in html |
Definition at line 486 of file platexobj_html.cpp.
References PLatexObj::getColSpan(), PLatexObj::getId(), PLatexObj::getRowSpan(), PLatexObj::getText(), PLatexObj::getVecContent(), platexobj_htmlStr(), and valueToString().
PString platexobj_htmlStrTimetableDay | ( | POutoutMode & | outputMode, |
const PLatexObj & | obj | ||
) |
Convert a timetable day into a html string.
[out] | outputMode | : output mode of the html backend |
obj | : PLatexObj to be converted in html |
Definition at line 465 of file platexobj_html.cpp.
References PLatexObj::getColSpan(), PLatexObj::getId(), PLatexObj::getRowSpan(), PLatexObj::getVecContent(), platexobj_rawtext(), and valueToString().
PString platexobj_htmlStrTimetableEmptyBlock | ( | POutoutMode & | outputMode, |
const PLatexObj & | obj | ||
) |
Convert a timetable block into a html string.
[out] | outputMode | : output mode of the html backend |
obj | : PLatexObj to be converted in html |
Definition at line 511 of file platexobj_html.cpp.
References PLatexObj::getColSpan(), PLatexObj::getId(), PLatexObj::getRowSpan(), and valueToString().
PString platexobj_htmlStrTimetableTime | ( | POutoutMode & | outputMode, |
const PLatexObj & | obj | ||
) |
Convert a timetable time into a html string.
[out] | outputMode | : output mode of the html backend |
obj | : PLatexObj to be converted in html |
Definition at line 529 of file platexobj_html.cpp.
References PLatexObj::getId(), PLatexObj::getText(), and valueToString().
PString platexobj_htmlStrTimetableTimeRow | ( | POutoutMode & | outputMode, |
const PLatexObj & | obj | ||
) |
Convert a timetable time row into a html string.
[out] | outputMode | : output mode of the html backend |
obj | : PLatexObj to be converted in html |
Definition at line 452 of file platexobj_html.cpp.
References PLatexObj::getId(), PLatexObj::getVecContent(), platexobj_htmlStr(), and valueToString().
PString platexobj_htmlStrTimetableWeek | ( | POutoutMode & | outputMode, |
const PLatexObj & | obj | ||
) |
Convert a timetable week into a html string.
[out] | outputMode | : output mode of the html backend |
obj | : PLatexObj to be converted in html |
Definition at line 432 of file platexobj_html.cpp.
References PLatexObj::getComplexTitle(), PLatexObj::getId(), PLatexObj::getLabelName(), PLatexObj::getVecContent(), platexobj_createLabelSearchLink(), platexobj_htmlStr(), platexobj_rawtext(), and valueToString().
PString platexobj_htmlStrUpdateStyle | ( | POutoutMode & | outputMode, |
const PLatexObj & | obj | ||
) |
Convert a PLatexObj into a string.
[out] | outputMode | : output mode of the html backend |
obj | : PLatexObj to be converted into a string |
Definition at line 99 of file platexobj_html.cpp.
References POutoutMode::currentStyle, and PLatexObj::getName().
Convert a PLatexObj into a string.
obj | : PLatexObj to be converted into a string |
Definition at line 78 of file platexobj_html.cpp.
References PLatexObj::getId(), PLatexObj::getName(), and valueToString().
Referenced by platexobj_rawtext(), and platexobj_text().
PString platexobj_htmlStrWip | ( | POutoutMode & | outputMode, |
const PLatexObj & | obj | ||
) |
Convert a PLatexObj into a string.
[out] | outputMode | : output mode of the html backend |
obj | : PLatexObj to be converted into a string |
Definition at line 248 of file platexobj_html.cpp.
References PLatexObj::getId(), PLatexObj::getVecContent(), platexobj_htmlStr(), and valueToString().
Convert the vector of menu into a html string.
vecMenu | : vector to be converted |
Definition at line 648 of file platexobj_html.cpp.
References getSecNumberFromFileName(), and PString::replace().
PString vecNumberToString | ( | const std::vector< long unsigned int > & | vecNb | ) |
Convert a vector of numbers into a string.
vecNb | : vector of numbers to be converted |
Definition at line 631 of file platexobj_html.cpp.
References valueToString().
Referenced by createOutlineHtmlStr(), platexobj_createTitle(), platexobj_toMenuAll(), and updateMapLabel().