#include <gcu/document.h>
Inheritance diagram for gcu::Document:
Public Member Functions | |
Document (Application *App=NULL) | |
virtual | ~Document () |
string & | GetTranslatedId (const char *id) |
void | EraseTranslationId (const char *Id) |
void | EmptyTranslationTable () |
void | SetTitle (string &title) |
void | SetTitle (char const *title) |
string & | GetTitle () |
Protected Attributes | |
Application * | m_App |
string | m_Title |
Definition at line 42 of file document.h.
gcu::Document::Document | ( | Application * | App = NULL |
) |
App,: | the Appllcation which owns the new document. |
virtual gcu::Document::~Document | ( | ) | [virtual] |
The destructor of Document.
void gcu::Document::EmptyTranslationTable | ( | ) | [inline] |
When pasting, objects added to the document might have the same Id as objects already existing. In such cases, the document maintains a table to update links using Ids as identifiers. The EmptyTranslationTable method should be called after pasting to reinitialize the table to avoid errors on the next paste event.
Definition at line 81 of file document.h.
void gcu::Document::EraseTranslationId | ( | const char * | Id | ) | [inline] |
Id,: | the entry to remove |
Definition at line 74 of file document.h.
string& gcu::Document::GetTranslatedId | ( | const char * | id | ) | [inline] |
id,: | the original id to tranlate |
Definition at line 66 of file document.h.