
Public Member Functions | |
| virtual | ~Document () |
| View * | GetView () |
| virtual bool | Load (xmlNodePtr) |
| const gchar * | GetTitle () |
| const gchar * | GetFileName () |
| void | NotifyDirty (Bond *pBond) |
| const GDate * | GetCreationDate () |
| const GDate * | GetRevisionDate () |
| const gchar * | GetAuthor () |
| const gchar * | GetMail () |
| const gchar * | GetComment () |
| Operation * | GetCurrentOperation () |
| bool | CanUndo () |
| void | SetEditable (bool editable) |
| bool | GetEditable () |
| gcp::Application * | GetApplication () |
| bool | GetReadOnly () |
| virtual double | GetYAlign () |
| Window * | GetWindow () |
| bool | OnSignal (SignalId Signal, Object *Child) |
Definition at line 62 of file gcp/document.h.
| virtual gcp::Document::~Document | ( | ) | [virtual] |
The destructor of Document.
Reimplemented from gcu::Document.
| virtual bool gcp::Document::Load | ( | xmlNodePtr | node | ) | [virtual] |
| node,: | a pointer to the xmlNode containing the serialized object. |
Example:
std::string str = (const char*)node->name; Object* pObject = Object::CreateObject(str, this); if (pObject) { if (!pObject->Load(node)) delete Object; } else cerr << "Warning: unknown object: " << str << endl;
Reimplemented from gcu::Object.
| const gchar* gcp::Document::GetTitle | ( | ) |
| virtual double gcp::Document::GetYAlign | ( | ) | [virtual] |
Used to retreive the y coordinate for alignment. The default implementation returns 0.0 and every derived class for which alignment has a meaning should implement this method.
Reimplemented from gcu::Object.
| bool gcp::Document::OnSignal | ( | SignalId | Signal, | |
| Object * | Child | |||
| ) | [virtual] |
| Signal,: | the appropriate SignalId | |
| Child,: | the child which emitted the signal or NULL |
Reimplemented from gcu::Object.
1.5.3