gcp::TextObject Class Reference

Inheritance diagram for gcp::TextObject:

gcu::Object gcp::Fragment gcp::Text

List of all members.

Public Member Functions

void GetSize (double &x, double &y)
bool Load (xmlNodePtr)
void Move (double x, double y, double z=0)
bool IsLocked ()
void GetSelectionBounds (unsigned &start, unsigned &end)
string GetBuffer ()

Protected Attributes

double m_x
double m_y
double m_length
double m_height
int m_ascent
int m_InsertOffset
string m_buf
bool m_bLoading
unsigned m_StartSel
unsigned m_EndSel
bool m_RealSave


Detailed Description

Definition at line 39 of file text-object.h.


Member Function Documentation

bool gcp::TextObject::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.

Reimplemented in gcp::Fragment, and gcp::Text.

void gcp::TextObject::Move ( double  x,
double  y,
double  z = 0 
) [virtual]

Parameters:
x,: the x component of the transation vector.
y,: the y component of the transation vector.
z,: the z component of the transation vector.
Used to move an object. This virtual method should most often be overrided by Object derived classes for which it makes sense. The base Object class has no coordinates and the default method only loads its id and children.

Reimplemented from gcu::Object.

Reimplemented in gcp::Fragment.

bool gcp::TextObject::IsLocked (  )  [inline]

Returns:
true if signals are locked, false otherwise
Since 0.4.2

Reimplemented from gcu::Object.

Definition at line 54 of file text-object.h.

References m_bLoading.


The documentation for this class was generated from the following file:
Generated on Sun Sep 16 14:21:56 2007 for The Gnome Chemistry Utils by  doxygen 1.5.3