![]() |
PhoenixPresentation
2.0.0
Set of cmake function to automate presentation generation
|
Go to the source code of this file.
Functions | |
OptionParser | createOptionParser () |
Create the OptionParser of this program. More... | |
int | main (int argc, char **argv) |
void | makeTexSlides (const PPath &outputFileName, const std::vector< PPath > &listInputFile, bool want169, const PString &numberColor, const PString &footPage, const PString &footPageColor) |
Make the tex slides. More... | |
void | saveBeamerBackground (std::ofstream &fs, const PPath &filePng, long unsigned int slideNumber, bool want169) |
Save the beamer background. More... | |
void | saveBeamerHeaderTex (std::ofstream &fs, bool want169) |
Make the beamer tex header. More... | |
void | saveBeamerSlide (std::ofstream &fs, const PPath &filePng, long unsigned int slideNumber, bool want169, const PString &numberColor, const PString &footPage, const PString &footPageColor) |
Make the beamer tex slide. More... | |
void | saveBeamerSlideNumber (std::ofstream &fs, long unsigned int slideNumber, const PString &numberColor, const PString &footPage, const PString &footPageColor) |
Save the beamer slide number. More... | |
void | saveBeamerSlidePng (std::ofstream &fs, const PPath &filePng, long unsigned int slideNumber, bool want169, const PString &numberColor, const PString &footPage, const PString &footPageColor) |
Make the beamer tex slide. More... | |
void | saveBeamerSlideTex (std::ofstream &fs, const PPath &fileTex, long unsigned int slideNumber, bool want169, const PString &numberColor, const PString &footPage, const PString &footPageColor) |
Save the beamer slide with a tex file. More... | |
OptionParser createOptionParser | ( | ) |
Create the OptionParser of this program.
Definition at line 17 of file main.cpp.
References OptionParser::addOption(), OptionType::FILENAME, OptionType::NONE, OptionParser::setExampleLongOption(), and OptionParser::setExampleShortOption().
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 228 of file main.cpp.
References createOptionParser(), OptionParser::getDefaultMode(), OptionMode::getValue(), OptionMode::isOptionExist(), makeTexSlides(), and OptionParser::parseArgument().
void makeTexSlides | ( | const PPath & | outputFileName, |
const std::vector< PPath > & | listInputFile, | ||
bool | want169, | ||
const PString & | numberColor, | ||
const PString & | footPage, | ||
const PString & | footPageColor | ||
) |
Make the tex slides.
outputFileName | : output file name |
listInputFile | : list of the png slides input |
want169 | : to have a 16:9 aspect ratio |
numberColor | : color of the slide number (black, white, red, blue, green, yellow, gray(by default)) |
footPage | : string to be written in the footpage of the slides |
footPageColor | : color of the foot page |
Definition at line 193 of file main.cpp.
References saveBeamerHeaderTex(), and saveBeamerSlide().
Referenced by main().
void saveBeamerBackground | ( | std::ofstream & | fs, |
const PPath & | filePng, | ||
long unsigned int | slideNumber, | ||
bool | want169 | ||
) |
Save the beamer background.
[out] | fs | : file to be written |
filePng | : name of the png file to be used as background | |
slideNumber | : slide number | |
want169 | : to have a 16:9 aspect ratio |
Definition at line 84 of file main.cpp.
Referenced by saveBeamerSlidePng(), and saveBeamerSlideTex().
void saveBeamerHeaderTex | ( | std::ofstream & | fs, |
bool | want169 | ||
) |
Make the beamer tex header.
[out] | fs | : file to be completed |
want169 | : to have a 16:9 aspect ratio |
Definition at line 45 of file main.cpp.
Referenced by makeTexSlides().
void saveBeamerSlide | ( | std::ofstream & | fs, |
const PPath & | filePng, | ||
long unsigned int | slideNumber, | ||
bool | want169, | ||
const PString & | numberColor, | ||
const PString & | footPage, | ||
const PString & | footPageColor | ||
) |
Make the beamer tex slide.
[out] | fs | : file to be completed |
filePng | : file png to be in the slide | |
slideNumber | : slide number | |
want169 | : to have a 16:9 aspect ratio | |
numberColor | : color of the slide number (black, white, red, blue, green, yellow, gray(by default)) | |
footPage | : string to be written in the footpage of the slides | |
footPageColor | : color of the foot page |
Definition at line 168 of file main.cpp.
References PPath::getExtension(), saveBeamerSlidePng(), and saveBeamerSlideTex().
Referenced by makeTexSlides().
void saveBeamerSlideNumber | ( | std::ofstream & | fs, |
long unsigned int | slideNumber, | ||
const PString & | numberColor, | ||
const PString & | footPage, | ||
const PString & | footPageColor | ||
) |
Save the beamer slide number.
[out] | fs | : file to be written |
slideNumber | : slide number | |
numberColor | : color of the slide number (black, white, red, blue, green, yellow, gray(by default)) | |
footPage | : string to be written in the footpage of the slides | |
footPageColor | : color of the foot page |
Definition at line 100 of file main.cpp.
Referenced by saveBeamerSlidePng(), and saveBeamerSlideTex().
void saveBeamerSlidePng | ( | std::ofstream & | fs, |
const PPath & | filePng, | ||
long unsigned int | slideNumber, | ||
bool | want169, | ||
const PString & | numberColor, | ||
const PString & | footPage, | ||
const PString & | footPageColor | ||
) |
Make the beamer tex slide.
[out] | fs | : file to be completed |
filePng | : file png to be in the slide | |
slideNumber | : slide number | |
want169 | : to have a 16:9 aspect ratio | |
numberColor | : color of the slide number (black, white, red, blue, green, yellow, gray(by default)) | |
footPage | : string to be written in the footpage of the slides | |
footPageColor | : color of the foot page |
Definition at line 150 of file main.cpp.
References saveBeamerBackground(), and saveBeamerSlideNumber().
Referenced by saveBeamerSlide().
void saveBeamerSlideTex | ( | std::ofstream & | fs, |
const PPath & | fileTex, | ||
long unsigned int | slideNumber, | ||
bool | want169, | ||
const PString & | numberColor, | ||
const PString & | footPage, | ||
const PString & | footPageColor | ||
) |
Save the beamer slide with a tex file.
[out] | fs | : file to be written |
fileTex | : name of the tex file to be red | |
slideNumber | : slide number | |
want169 | : to have a 16:9 aspect ratio | |
numberColor | : color of the slide number (black, white, red, blue, green, yellow, gray(by default)) | |
footPage | : string to be written in the footpage of the slides | |
footPageColor | : color of the foot page |
Definition at line 124 of file main.cpp.
References PPath::loadFileContent(), saveBeamerBackground(), and saveBeamerSlideNumber().
Referenced by saveBeamerSlide().