![]() |
PhoenixPresentation
2.0.0
Set of cmake function to automate presentation generation
|
#include "convertToString.h"
#include "PPath.h"
#include "OptionParser.h"
#include "pxml_utils.h"
#include "pinkscape_slide.h"
Go to the source code of this file.
Classes | |
struct | PLayer |
Get the begin and end slide for current layer. More... | |
Typedefs | |
typedef std::vector< long unsigned int > | PSlide |
Slide composed of layer. More... | |
typedef std::vector< PLayer > | PVecLayer |
Vector of layer. More... | |
typedef std::vector< PSlide > | PVecSlide |
Define the layer in slide. More... | |
Functions | |
OptionParser | createOptionParser () |
Create the OptionParser of this program. More... | |
void | createSlideWithLayer (PSlide &slide, const PVecLayer &vecLayerSlide, long unsigned int index) |
Create the slide to be generated. More... | |
void | createVecSlide (PVecSlide &vecSlide, PVecLayer &vecLayerSlide) |
Create the vector of slides. More... | |
void | createVectorSlide (PVecLayer &vecLayerSlide, const PVecXml &vecLayer) |
Create the vector of slide layer. More... | |
PString | getInkscapeLabel (const PXml &layerXml) |
Get the inkscape label of current PXml. More... | |
PString | getSlideNumber (long unsigned int i) |
Convert the slide index into string. More... | |
int | main (int argc, char **argv) |
int | processFiles (const std::vector< PPath > &listInputFile) |
Process all the input files. More... | |
bool | processFileSvg (const PPath &inputFile) |
Process all the input files. More... | |
bool | saveSlides (POutoutMode &outputMode, const PPath &baseOutputName, const PVecSlide &vecSlides, const PVecXml &vecLayerXml, const PXml &lighRoot) |
Save the slides. More... | |
typedef std::vector<long unsigned int> PSlide |
OptionParser createOptionParser | ( | ) |
Create the OptionParser of this program.
Definition at line 17 of file main.cpp.
References OptionParser::addOption(), OptionType::FILENAME, OptionParser::setExampleLongOption(), and OptionParser::setExampleShortOption().
void createSlideWithLayer | ( | PSlide & | slide, |
const PVecLayer & | vecLayerSlide, | ||
long unsigned int | index | ||
) |
Create the slide to be generated.
[out] | slide | : slide to be generated |
vecLayerSlide | : vector of the desired slides for the layers | |
index | : index of the current slide to be generated |
Definition at line 111 of file main.cpp.
Referenced by createVecSlide().
Create the vector of slides.
[out] | vecSlide | : vector of slides to be created |
vecLayerSlide | : vector of the desired slides for the layers |
Definition at line 125 of file main.cpp.
References createSlideWithLayer().
Referenced by processFileSvg().
Create the vector of slide layer.
[out] | vecLayerSlide | : output vector of layer slide |
vecLayer | : vector of layer from svg file |
Definition at line 66 of file main.cpp.
References PLayer::begin, PLayer::command, PLayer::end, getInkscapeLabel(), and PString::split().
Referenced by processFileSvg().
Get the inkscape label of current PXml.
layerXml | : inkscape layer |
Definition at line 53 of file main.cpp.
References PXmlAttr::getValue(), and pxml_getAttrIfExist().
Referenced by createVectorSlide().
PString getSlideNumber | ( | long unsigned int | i | ) |
Convert the slide index into string.
i | : slide index |
Definition at line 151 of file main.cpp.
References valueToString().
Referenced by saveSlides().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 290 of file main.cpp.
References createOptionParser(), OptionParser::getDefaultMode(), OptionMode::getValue(), OptionParser::parseArgument(), and processFiles().
int processFiles | ( | const std::vector< PPath > & | listInputFile | ) |
Process all the input files.
listInputFile | : list of the input files |
Definition at line 278 of file main.cpp.
References processFileSvg().
Referenced by main().
bool processFileSvg | ( | const PPath & | inputFile | ) |
Process all the input files.
inputFile | : list of the input files |
Definition at line 219 of file main.cpp.
References createVecSlide(), createVectorSlide(), PPath::eraseExtension(), PPath::getFileName(), POutoutMode::mapSlide, pinkscape_loadSlideMap(), pinkscape_saveSlideMap(), pxml_eraseVecChild(), pxml_getChildIfExist(), pxml_getChildPtr(), pxml_getVecChildIfExist(), pxml_parserFile(), and saveSlides().
Referenced by processFiles().
bool saveSlides | ( | POutoutMode & | outputMode, |
const PPath & | baseOutputName, | ||
const PVecSlide & | vecSlides, | ||
const PVecXml & | vecLayerXml, | ||
const PXml & | lighRoot | ||
) |
Save the slides.
baseOutputName | : base of the slides output names |
vecSlides | : vector of slides to be created |
vecLayerXml | : vector of xml layer to be used |
lighRoot | : root xml without the layers in svg |
Definition at line 166 of file main.cpp.
References getSlideNumber(), PXml::getVecChild(), pinkscape_isSlideKnown(), pxml_baliseStr(), pxml_getChildPtr(), pxml_setAttr(), PPath::saveFileContent(), and PXml::setName().
Referenced by processFileSvg().