#include <gcu/document.h>
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 | |
string | m_Title |
Dirty |
Definition at line 45 of file gcu/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.
Reimplemented in gcp::Document.
string& gcu::Document::GetTranslatedId | ( | const char * | id | ) | [inline] |
id,: | the original id to tranlate |
Definition at line 70 of file gcu/document.h.
void gcu::Document::EraseTranslationId | ( | const char * | Id | ) | [inline] |
Id,: | the entry to remove |
Definition at line 78 of file gcu/document.h.
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 85 of file gcu/document.h.
void gcu::Document::SetTitle | ( | string & | title | ) | [inline] |
title | the new document title. |
Definition at line 90 of file gcu/document.h.
References m_Title.
void gcu::Document::SetTitle | ( | char const * | title | ) | [inline] |
title | the new document title. |
Definition at line 94 of file gcu/document.h.
References m_Title.
string& gcu::Document::GetTitle | ( | ) | [inline] |
Reimplemented in gcu::Chem3dDoc, and gcp::Document.
Definition at line 98 of file gcu/document.h.
References m_Title.
string gcu::Document::m_Title [protected] |
The document title.
Definition at line 120 of file gcu/document.h.
Referenced by GetTitle(), and SetTitle().