ornamentedobj.h
author insilmaril
Tue, 24 Jan 2006 15:09:48 +0000
changeset 188 90969608255c
parent 187 2658871fdda4
child 227 38ad83f1d4ce
permissions -rw-r--r--
Introduced basic export to Open Document format
     1 #ifndef ORNAMENTEDOBJ_H
     2 #define ORNAMENTEDOBJ_H
     3 
     4 #include "linkablemapobj.h"
     5 
     6 class OrnamentedObj:public LinkableMapObj {
     7 public:	
     8     OrnamentedObj ();
     9     OrnamentedObj (QCanvas*);
    10     OrnamentedObj (OrnamentedObj*);
    11     ~OrnamentedObj ();
    12     virtual void init ();
    13     virtual void copy (OrnamentedObj*);
    14 
    15     virtual void setHeading (QString s)=0;  // set the heading, pure virtual 
    16 											// to take care of fontsize
    17     virtual QString getHeading();			// returns the heading	
    18 	virtual void setLinkColor();			// sets color according to colorhint, overloaded
    19     virtual void setVisibility(bool,int)=0;	// set visibility
    20     virtual void setVisibility(bool)=0;	    // set vis. for w
    21 	virtual void setColor(QColor,bool)=0;		// set the color of text and link
    22 	QColor getColor ();						// get color of heading
    23     virtual void positionContents();
    24     virtual void move   (double,double);
    25     virtual void move   (QPoint);
    26     virtual void moveBy (double,double);
    27     virtual void moveBy (QPoint);
    28     virtual void move2RelPos (QPoint);		// move relativly to parent^
    29     virtual void move2RelPos (double,double);
    30     virtual void setNote(QString);			// set note
    31     virtual void setNote(NoteObj);			// set note
    32     virtual QString getNote();				// returns note	(HTML)
    33     virtual QString getNoteASCII();			// returns note	(ASCII)
    34     virtual QString getNoteOpenDoc();		// returns note	(OpenDoc)
    35 	virtual void toggleStandardFlag(QString, bool);
    36 	virtual void activateStandardFlag(QString);
    37 	virtual QString getSystemFlagName (const QPoint &p);
    38 	virtual void updateNoteFlag();
    39 
    40 protected:
    41     HeadingObj *heading;			// Heading
    42 	NoteObj note;					// Notes
    43 	FlagRowObj *systemFlags;		// System Flags
    44 	FlagRowObj *standardFlags;		// Standard Flags
    45 	
    46 };
    47 
    48 #endif