#include <abiword-garble.h>
Public Member Functions | |
| abiword_document (abiword_garble *abigarble, const string &filename) | |
| ~abiword_document () | |
| void | garble () |
| void | save () |
Private Member Functions | |
| void | garble_node (xmlNodePtr node) |
| void | garble_image_node (xmlNodePtr node) |
| bool | garble_png (void *&data, size_t &size) |
| bool | garble_jpeg (void *&data, size_t &size) |
| void | garble_image_line (char *line, size_t bytes) |
| char | get_random_char () |
Private Attributes | |
| string | mFilename |
| xmlDocPtr | mDocument |
| abiword_garble * | mAbiGarble |
| size_t | mCharsGarbled |
| size_t | mImagesGarbled |
| string | mReplaceString |
| abiword_document::abiword_document | ( | abiword_garble * | abigarble, | |
| const string & | filename | |||
| ) |
References in, mAbiGarble, mDocument, mFilename, UT_go_file_open(), UT_go_filename_to_uri(), and abiword_garble::verbose().
| abiword_document::~abiword_document | ( | ) |
References abiword_garble::image_garbling(), mAbiGarble, mCharsGarbled, mDocument, mImagesGarbled, and abiword_garble::verbose().
| void abiword_document::garble | ( | ) |
References garble_image_node(), garble_node(), abiword_garble::image_garbling(), mAbiGarble, and mDocument.
Referenced by abiword_garble::run().
| void abiword_document::garble_image_line | ( | char * | line, | |
| size_t | bytes | |||
| ) | [private] |
References UT_rand().
Referenced by garble_jpeg(), and garble_png().
| void abiword_document::garble_image_node | ( | xmlNodePtr | node | ) | [private] |
References garble_jpeg(), garble_png(), mImagesGarbled, and size.
Referenced by garble().
| bool abiword_document::garble_jpeg | ( | void *& | data, | |
| size_t & | size | |||
| ) | [private] |
| void abiword_document::garble_node | ( | xmlNodePtr | node | ) | [private] |
References get_random_char(), mCharsGarbled, and mReplaceString.
Referenced by garble().
| bool abiword_document::garble_png | ( | void *& | data, | |
| size_t & | size | |||
| ) | [private] |
References _png_read(), _png_write(), and garble_image_line().
Referenced by garble_image_node().
| char abiword_document::get_random_char | ( | ) | [private] |
References time, UT_rand(), and UT_srandom().
Referenced by garble_node().
| void abiword_document::save | ( | ) |
References mDocument, mFilename, UT_go_file_create(), and UT_go_filename_to_uri().
Referenced by abiword_garble::run().
abiword_garble* abiword_document::mAbiGarble [private] |
Referenced by abiword_document(), garble(), and ~abiword_document().
size_t abiword_document::mCharsGarbled [private] |
Referenced by garble_node(), and ~abiword_document().
xmlDocPtr abiword_document::mDocument [private] |
Referenced by abiword_document(), garble(), save(), and ~abiword_document().
string abiword_document::mFilename [private] |
Referenced by abiword_document(), and save().
size_t abiword_document::mImagesGarbled [private] |
Referenced by garble_image_node(), and ~abiword_document().
string abiword_document::mReplaceString [private] |
Referenced by garble_node().
1.7.1