HandleBbox

class HandleBbox

Public Functions

HandleBbox()

This class is used for handling the bbox info which was getting lost after saving earlier.

Overloaded construcor which passes doc to the class.

Parameters:

doc

~HandleBbox()

Destructor.

QTextDocument *loadFileInDoc(QFile *f)

To Load the file in document.

input file is read paragraph,image and table,list tags are iterated the text is set as blocks. alignments are set if they are present in

, or

input text is insert as html inside block.

Parameters:

f

Returns:

Document in which file is loaded

void insertBboxes(QFile *f)

Inserts the boxes into the file.

if file is not available for writing mode,function terminates all the lines of file are read and stored in varaible(input) If bbox is already present, move to next entry tages for table, image are added are successfull insertion the file is flushed and closed

Parameters:

file

Private Functions

void storeBboxes(QFile *f)

Stores the bboxes in the vector.

Function terminates if file is available for writing mode text of the input file is read If bbox tag is not present,tags(variable) are set to null loop itreates through the input file several tags are check and stored inside bBox accordingly

Parameters:

file

QString latex2png(QString)

Converting Latex to PNG.

Doing equation latex to equaton png mapping we are showing png in our tool and saving Latex form in html page

Parameters:

inputText

Returns:

Returns the input text