gcp::Document Class Reference

Inheritance diagram for gcp::Document:

gcu::Document gcu::Object gcu::DialogOwner List of all members.

Public Member Functions

virtual ~Document ()
ViewGetView ()
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 ()
OperationGetCurrentOperation ()
bool CanUndo ()
void SetEditable (bool editable)
bool GetEditable ()
gcp::ApplicationGetApplication ()
bool GetReadOnly ()
virtual double GetYAlign ()
WindowGetWindow ()
bool OnSignal (SignalId Signal, Object *Child)

Detailed Description

Definition at line 62 of file gcp/document.h.


Constructor & Destructor Documentation

virtual gcp::Document::~Document (  )  [virtual]

The destructor of Document.

Reimplemented from gcu::Document.


Member Function Documentation

virtual bool gcp::Document::Load ( xmlNodePtr  node  )  [virtual]

Parameters:
node,: a pointer to the xmlNode containing the serialized object.
Used to load an Object in memory. The Object must already exist.

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;

Returns:
true on succes, false otherwise.

Reimplemented from gcu::Object.

const gchar* gcp::Document::GetTitle (  ) 

Returns:
the current document title.

Reimplemented from gcu::Document.

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.

Returns:
y coordinate used for objects alignment.

Reimplemented from gcu::Object.

bool gcp::Document::OnSignal ( SignalId  Signal,
Object Child 
) [virtual]

Parameters:
Signal,: the appropriate SignalId
Child,: the child which emitted the signal or NULL
This function is called by the framework when a signal has been emitted for the object. It should not be called by a program; call Object::EmitSignal instead.

Returns:
true if the signal should be propagated to the parent, false otherwise.

Reimplemented from gcu::Object.


The documentation for this class was generated from the following file:
Generated on Thu Jun 28 09:02:02 2007 for The Gnome Chemistry Utils by  doxygen 1.5.2