21 if(!
data_load(fileName, mapFormula)){
return;}
29 if(!
data_save(fileName, mapFormula)){
return;}
39 PMapSlide::iterator it(mapSlide.find(outputSlide));
40 if(it != mapSlide.end()){
41 if(it->second == slideContent){
45 std::cout <<
"pinkscape_isSlideKnown : file '"<<outputSlide<<
"' does not exist" << std::endl;
48 std::cout <<
"pinkscape_isSlideKnown : '"<<outputSlide<<
" 'slide content changed" << std::endl;
54 mapSlide[outputSlide] = slideContent;
Path of a directory or a file.
bool isFileExist() const
Say if the current file path does exist.
bool data_load(FILE *iter, T &data)
Load data from a message.
bool data_save(FILE *iter, const T &data)
Save data in a message.
void pinkscape_loadSlideMap(PMapSlide &mapFormula, const PPath &baseOutputName)
Load the map file of all the formulae if it exists.
void pinkscape_saveSlideMap(const PMapSlide &mapFormula, const PPath &baseOutputName)
Save the map file of the formulae to avoid extra latex call.
bool pinkscape_isSlideKnown(POutoutMode &outputMode, const PPath &outputSlide, const PString &slideContent)
Check if the slide we are going to save was already saved (with the same content) or not.
#define SLIDE_RECOVER_FILE
Define the name of the file which contains the formulae and the path to the created file.
std::map< PPath, PPath > PMapSlide
Map of the formulae generated by the ptex2html which can be reused by other PLatexObj which have the ...
Output mode of the html backend.
PMapSlide mapSlide
Map of the formula which are already saved as png files.