Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

RTK::Object Class Reference

The RTK::Object class is the base class of all the objects that form a report definition. More...

#include <rtkobject.h>

Inheritance diagram for RTK::Object:

RTK::Report List of all members.

Public Member Functions

 Object (const String &name=String::null, Variant value=0, AggregateType aggregate=AggNone, String posx=0, String posy=0, String sizex=0, String sizey=0, const String &style=String::null, const String &url=String::null, const String &tag=String::null, const Variant &marginleft=0, const Variant &marginright=0, const Variant &margintop=0, const Variant &marginbottom=0, const Variant &visible=true, const Variant &supressed=false, const Variant &fontfamily=String::null, const Variant &fontsize=12, const Variant &fontweight=0, const Variant &fontitalic=false, const Variant &mask=String::null, const Variant &format=String::null, const Variant &halignment=AlignAuto, const Variant &valignment=AlignTop, const Variant &maxlines=0, const Variant &minfontsize=8, const Variant &adjustment=AdjustTrim, const Variant &textcolor=Qt::black, const Variant &backcolor=Qt::white, const Variant &bordercolor=Qt::black, const Variant &borderwidth=0, const Variant &borderstyle=BorderNone, const Variant &backgroundimage=String::null)
Variant::Type getType () const
bool valueChanged () const
void setRealValue (Variant value)
ObjectgetParent () const
void setReport (class Report *report)
String getText () const
String getText (const String &mask, const String &format, const Formatter &f) const
void fixMeasures (UnitsType outunit, Measure outsizex, Measure outsizey, UnitsType repunit, Measure repsizex, Measure repsizey)
void calcAggregateValue (uint level)
void resetAggregateValues (uint levels, uint level)
Measure getFixedPosX () const
Measure getFixedPosY () const
Measure getFixedSizeX () const
Measure getFixedSizeY () const
Measure getFixedMarginLeft () const
Measure getFixedMarginRight () const
Measure getFixedMarginTop () const
Measure getFixedMarginBottom () const
bool isConst () const
void setConst (bool isconst)
Variant getRealValue () const
const String & getName () const
void setName (const String &name)
Variant getValue () const
void setValue (Variant value)
AggregateType getAggregate () const
void setAggregate (AggregateType aggregate)
String getPosX () const
void setPosX (String posx)
String getPosY () const
void setPosY (String posy)
String getSizeX () const
void setSizeX (String sizex)
String getSizeY () const
void setSizeY (String sizey)
String getStyle () const
void setStyle (const String &style)
String getUrl () const
void setUrl (const String &url)
String getTag () const
void setTag (const String &tag)
String getMarginLeft () const
bool isNullMarginLeft () const
void setMarginLeft (const Variant &marginleft)
String getMarginRight () const
bool isNullMarginRight () const
void setMarginRight (const Variant &marginright)
String getMarginTop () const
bool isNullMarginTop () const
void setMarginTop (const Variant &margintop)
String getMarginBottom () const
bool isNullMarginBottom () const
void setMarginBottom (const Variant &marginbottom)
bool isVisible () const
bool isNullVisible () const
void setVisible (const Variant &visible)
bool isSupressed () const
bool isNullSupressed () const
void setSupressed (const Variant &supressed)
String getFontFamily () const
bool isNullFontFamily () const
void setFontFamily (const Variant &fontfamily)
int getFontSize () const
bool isNullFontSize () const
void setFontSize (const Variant &fontsize)
int getFontWeight () const
bool isNullFontWeight () const
void setFontWeight (const Variant &fontweight)
bool isFontItalic () const
bool isNullFontItalic () const
void setFontItalic (const Variant &fontitalic)
String getMask () const
bool isNullMask () const
void setMask (const Variant &mask)
String getFormat () const
bool isNullFormat () const
void setFormat (const Variant &format)
AlignmentType getHAlignment () const
bool isNullHAlignment () const
void setHAlignment (const Variant &halignment)
AlignmentType getVAlignment () const
bool isNullVAlignment () const
void setVAlignment (const Variant &valignment)
int getMaxLines () const
bool isNullMaxLines () const
void setMaxLines (const Variant &maxlines)
int getMinFontSize () const
bool isNullMinFontSize () const
void setMinFontSize (const Variant &minfontsize)
AdjustmentType getAdjustment () const
bool isNullAdjustment () const
void setAdjustment (const Variant &adjustment)
Color getTextColor () const
bool isNullTextColor () const
void setTextColor (const Variant &textcolor)
Color getBackColor () const
bool isNullBackColor () const
void setBackColor (const Variant &backcolor)
Color getBorderColor () const
bool isNullBorderColor () const
void setBorderColor (const Variant &bordercolor)
int getBorderWidth () const
bool isNullBorderWidth () const
void setBorderWidth (const Variant &borderwidth)
BorderStyle getBorderStyle () const
bool isNullBorderStyle () const
void setBorderStyle (const Variant &borderstyle)
String getBackgroundImage () const
bool isNullBackgroundImage () const
void setBackgroundImage (const Variant &backgroundimage)
virtual int debug_print () const

Protected Member Functions

void setParent (Object *parent)
UnitsType getUnits (String value, UnitsType defaultunits)
Measure getMeasure (String value)

Protected Attributes

String mName
Variant mValue
AggregateType mAggregate
String mPosX
String mPosY
String mSizeX
String mSizeY
String mStyle
String mUrl
String mTag
Variant mMarginLeft
Variant mMarginRight
Variant mMarginTop
Variant mMarginBottom
Variant mVisible
Variant mSupressed
Variant mFontFamily
Variant mFontSize
Variant mFontWeight
Variant mFontItalic
Variant mMask
Variant mFormat
Variant mHAlignment
Variant mVAlignment
Variant mMaxLines
Variant mMinFontSize
Variant mAdjustment
Variant mTextColor
Variant mBackColor
Variant mBorderColor
Variant mBorderWidth
Variant mBorderStyle
Variant mBackgroundImage

Friends

class Section

Detailed Description

The RTK::Object class is the base class of all the objects that form a report definition.

A report definition is a RTK::Report object which contains serveral RTK::Section objects which in turn contains several RTK::Object objects.


Member Function Documentation

AdjustmentType RTK::Object::getAdjustment  )  const
 

Gets Object's type of adjudstment

AggregateType RTK::Object::getAggregate  )  const [inline]
 

Gets Aggreate operation on the object

Color RTK::Object::getBackColor  )  const
 

Gets Object's back color

String RTK::Object::getBackgroundImage  )  const
 

Gets Name of the background image

Color RTK::Object::getBorderColor  )  const
 

Gets Object's border color

BorderStyle RTK::Object::getBorderStyle  )  const
 

Gets Object's border style

int RTK::Object::getBorderWidth  )  const
 

Gets Object's border width

String RTK::Object::getFontFamily  )  const
 

Gets Object's Font family

int RTK::Object::getFontSize  )  const
 

Gets Object's Font size

int RTK::Object::getFontWeight  )  const
 

Gets Object's Font weight

String RTK::Object::getFormat  )  const
 

Gets Object's format to display the value

AlignmentType RTK::Object::getHAlignment  )  const
 

Gets Object's horizontal alignment

String RTK::Object::getMarginBottom  )  const
 

Gets Object's bottom margin

String RTK::Object::getMarginLeft  )  const
 

Gets Object's left margin

String RTK::Object::getMarginRight  )  const
 

Gets Object's right margin

String RTK::Object::getMarginTop  )  const
 

Gets Object's top margin

String RTK::Object::getMask  )  const
 

Gets Object's mask to display the value

int RTK::Object::getMaxLines  )  const
 

Gets Object's maximum number of lines

int RTK::Object::getMinFontSize  )  const
 

Gets Object's minimun font size

const String& RTK::Object::getName  )  const [inline]
 

Gets Object's name

String RTK::Object::getPosX  )  const [inline]
 

Gets Object's X position

String RTK::Object::getPosY  )  const [inline]
 

Gets Object's Y position

Variant getRealValue  )  const
 

Returns a pointer to the object named name that inherits type and with a given parent.

Returns 0 if there is no such child.

        QListBox *c = (QListBox *) qt_find_obj_child( myWidget, "QListBox",
                                                      "my list box" );
        if ( c )
            c->insertItem( "another string" );

String RTK::Object::getSizeX  )  const [inline]
 

Gets Object's X size

String RTK::Object::getSizeY  )  const [inline]
 

Gets Object's Y size

String RTK::Object::getStyle  )  const [inline]
 

Gets Object's display style

String RTK::Object::getTag  )  const [inline]
 

Gets Free text/comment for the object, not visible nor computed

Color RTK::Object::getTextColor  )  const
 

Gets Object's text color

String RTK::Object::getUrl  )  const [inline]
 

Gets Object's url

AlignmentType RTK::Object::getVAlignment  )  const
 

Gets Object's vertical alignment

Variant RTK::Object::getValue  )  const [inline]
 

Gets Object's value

bool RTK::Object::isFontItalic  )  const
 

Gets whether the oject's font is italic

bool RTK::Object::isSupressed  )  const
 

Gets supression of the object (not computed)

bool RTK::Object::isVisible  )  const
 

Gets visibility of the object (but still computed)

void RTK::Object::setAdjustment const Variant adjustment  )  [inline]
 

Sets the Object's type of adjudstment

void RTK::Object::setAggregate AggregateType  aggregate  )  [inline]
 

Sets the Aggreate operation on the object

void RTK::Object::setBackColor const Variant backcolor  )  [inline]
 

Sets the Object's back color

void RTK::Object::setBackgroundImage const Variant backgroundimage  )  [inline]
 

Sets the Name of the background image

void RTK::Object::setBorderColor const Variant bordercolor  )  [inline]
 

Sets the Object's border color

void RTK::Object::setBorderStyle const Variant borderstyle  )  [inline]
 

Sets the Object's border style

void RTK::Object::setBorderWidth const Variant borderwidth  )  [inline]
 

Sets the Object's border width

void RTK::Object::setFontFamily const Variant fontfamily  )  [inline]
 

Sets the Object's Font family

void RTK::Object::setFontItalic const Variant fontitalic  )  [inline]
 

Sets the whether the oject's font is italic

void RTK::Object::setFontSize const Variant fontsize  )  [inline]
 

Sets the Object's Font size

void RTK::Object::setFontWeight const Variant fontweight  )  [inline]
 

Sets the Object's Font weight

void RTK::Object::setFormat const Variant format  )  [inline]
 

Sets the Object's format to display the value

void RTK::Object::setHAlignment const Variant halignment  )  [inline]
 

Sets the Object's horizontal alignment

void RTK::Object::setMarginBottom const Variant marginbottom  )  [inline]
 

Sets the Object's bottom margin

void RTK::Object::setMarginLeft const Variant marginleft  )  [inline]
 

Sets the Object's left margin

void RTK::Object::setMarginRight const Variant marginright  )  [inline]
 

Sets the Object's right margin

void RTK::Object::setMarginTop const Variant margintop  )  [inline]
 

Sets the Object's top margin

void RTK::Object::setMask const Variant mask  )  [inline]
 

Sets the Object's mask to display the value

void RTK::Object::setMaxLines const Variant maxlines  )  [inline]
 

Sets the Object's maximum number of lines

void RTK::Object::setMinFontSize const Variant minfontsize  )  [inline]
 

Sets the Object's minimun font size

void RTK::Object::setName const String &  name  )  [inline]
 

Sets the Object's name

void RTK::Object::setPosX String  posx  )  [inline]
 

Sets the Object's X position

void RTK::Object::setPosY String  posy  )  [inline]
 

Sets the Object's Y position

void RTK::Object::setSizeX String  sizex  )  [inline]
 

Sets the Object's X size

void RTK::Object::setSizeY String  sizey  )  [inline]
 

Sets the Object's Y size

void RTK::Object::setStyle const String &  style  )  [inline]
 

Sets the Object's display style

void RTK::Object::setSupressed const Variant supressed  )  [inline]
 

Sets the supression of the object (not computed)

void RTK::Object::setTag const String &  tag  )  [inline]
 

Sets the Free text/comment for the object, not visible nor computed

void RTK::Object::setTextColor const Variant textcolor  )  [inline]
 

Sets the Object's text color

void RTK::Object::setUrl const String &  url  )  [inline]
 

Sets the Object's url

void RTK::Object::setVAlignment const Variant valignment  )  [inline]
 

Sets the Object's vertical alignment

void RTK::Object::setValue Variant  value  )  [inline]
 

Sets the Object's value

void RTK::Object::setVisible const Variant visible  )  [inline]
 

Sets the visibility of the object (but still computed)


The documentation for this class was generated from the following files:
Generated on Tue Feb 22 14:44:37 2005 for RTK. Report ToolKit by  doxygen 1.3.9.1