diff -r 9eb7767c2dfa -r 608f976aa7bb ornamentedobj.h --- a/ornamentedobj.h Sun Jan 30 12:58:47 2005 +0000 +++ b/ornamentedobj.h Tue Jun 06 14:58:11 2006 +0000 @@ -4,23 +4,19 @@ #include "linkablemapobj.h" class OrnamentedObj:public LinkableMapObj { - Q_OBJECT public: OrnamentedObj (); - OrnamentedObj (QCanvas*); + OrnamentedObj (Q3Canvas*); OrnamentedObj (OrnamentedObj*); ~OrnamentedObj (); virtual void init (); virtual void copy (OrnamentedObj*); - virtual void setHeading (QString s)=0; // set the heading, pure virtual - // to take care of fontsize virtual QString getHeading(); // returns the heading virtual void setLinkColor(); // sets color according to colorhint, overloaded - virtual void setVisibility(bool,int)=0; // set visibility - virtual void setVisibility(bool)=0; // set vis. for w - virtual void setColor(QColor,bool)=0; // set the color of text and link + virtual void setColor(QColor); // set the color of text and link QColor getColor (); // get color of heading + virtual void positionContents(); virtual void move (double,double); virtual void move (QPoint); virtual void moveBy (double,double); @@ -29,19 +25,35 @@ virtual void move2RelPos (double,double); virtual void setNote(QString); // set note virtual void setNote(NoteObj); // set note - virtual QString getNote(); // returns note - virtual void toggleStandardFlag(QString); + virtual QString getNote(); // returns note (HTML) + virtual QString getNoteASCII(); // returns note (ASCII) + virtual QString getNoteOpenDoc(); // returns note (OpenDoc) + virtual void setURL (QString); + virtual QString getURL (); + virtual void setVymLink (QString); + virtual QString getVymLink (); + + virtual void toggleStandardFlag(QString, bool); virtual void activateStandardFlag(QString); + virtual bool isSetStandardFlag(QString); virtual QString getSystemFlagName (const QPoint &p); - -public slots: - void updateNoteFlag(); + virtual bool isActiveFlag(const QString&); // check if flag is set + virtual void updateNoteFlag(); + virtual void setHideInExport(bool); // set export of object (and childs) + virtual bool hideInExport(); + virtual bool isHidden (); + virtual QString getOrnAttr(); // get attributes for saveToDir protected: HeadingObj *heading; // Heading NoteObj note; // Notes FlagRowObj *systemFlags; // System Flags FlagRowObj *standardFlags; // Standard Flags + QRect ornamentsBBox; // bbox of flags and heading + QString url; // url to external doc + QString vymLink; // path to another map + bool hideExport; // hide in exports if set + bool hidden; // true if temporary hidden }; #endif