Public Member Functions | Private Member Functions | Private Attributes

abiword_document Class Reference

#include <abiword-garble.h>

List of all members.

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
size_t mCharsGarbled
size_t mImagesGarbled
string mReplaceString

Constructor & Destructor Documentation

abiword_document::abiword_document ( abiword_garble abigarble,
const string &  filename 
abiword_document::~abiword_document (  ) 

Member Function Documentation

void abiword_document::garble (  ) 
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]
char abiword_document::get_random_char (  )  [private]

References time, UT_rand(), and UT_srandom().

Referenced by garble_node().

void abiword_document::save (  ) 

Member Data Documentation

Referenced by garble_node(), and ~abiword_document().

xmlDocPtr abiword_document::mDocument [private]
string abiword_document::mFilename [private]

Referenced by abiword_document(), and save().

Referenced by garble_node().

The documentation for this class was generated from the following files: