filters
- filters
- kpresenter
- powerpoint
- libppt
33 unsigned red, green, blue;
34 Color(){ red = green = blue = 0; }
35 Color( unsigned r, unsigned g, unsigned b )
36 { red = r; green = g; blue = b; }
37 Color( const Color& c )
38 { red = c.red; green = c.green; blue = c.blue; }
39 Color& operator=( const Color& c )
40 { red = c.red; green = c.green; blue = c.blue; return * this; }
52 virtual bool isText() const { return false; }
53 virtual bool isPicture() const { return false; }
54 virtual bool isGroup() const { return false; }
55 virtual bool isDrawing() const { return false; }
62 double height() const;
63 void setTop( double top );
64 void setLeft( double left );
65 void setWidth( double width );
66 void setHeight( double height );
68 bool isBackground() const;
69 void setBackground( bool bg );
72 bool hasProperty( std::string name );
74 void setProperty( std::string name, int value );
75 void setProperty( std::string name, double value );
76 void setProperty( std::string name, std::string value );
77 void setProperty( std::string name, bool value );
78 void setProperty( std::string name, Color value );
79 void setProperty( std::string name, const char* value )
80 { setProperty( name, std::string(value) ); }
82 int getIntProperty( std::string name );
83 double getDoubleProperty( std::string name );
84 bool getBoolProperty( std::string name );
85 std::string getStrProperty( std::string name );
86 Color getColorProperty(std::string name);
90 Object( const Object& );
91 Object& operator=( const Object& );
97class TextObject: public Object
114 virtual ~TextObject();
115 virtual bool isText() const { return true; }
116 unsigned type() const;
117 void setType( unsigned type );
118 const char* typeAsString() const;
119 UString text( unsigned index) const;
120 void setText( const UString& text );
121 unsigned listSize() const;
122 bool bulletFlag( unsigned index) const;
123 void setBulletFlag( bool flag ) ;
124 void convertFrom( Object* object );
128 TextObject( const TextObject& );
129 TextObject& operator=( const TextObject& );
135class GroupObject: public Object
139 virtual ~GroupObject();
140 virtual bool isGroup() const { return true; }
141 unsigned objectCount() const;
142 Object* object( unsigned index );
143 void addObject( Object* object );
144 void takeObject( Object* object );
148 GroupObject( const GroupObject& );
149 GroupObject& operator=( const GroupObject& );
156class DrawObject: public Object
184 virtual ~DrawObject();
185 virtual bool isDrawing() const { return true; }
187 unsigned shape() const;
188 void setShape( unsigned s );
190 bool isVerFlip() const;
191 void setVerFlip( bool vFlip );
192 bool isHorFlip() const;
193 void setHorFlip( bool hFlip );
197 DrawObject( const DrawObject& );
198 DrawObject& operator=( const DrawObject& );
|