sp-style-elem.h revision a2e796b608034e2c62290378d713058b8b58ef8f
#ifndef INKSCAPE_SP_STYLE_ELEM_H
#define INKSCAPE_SP_STYLE_ELEM_H
#include "sp-object.h"
#include "media.h"
#define SP_TYPE_STYLE_ELEM (sp_style_elem_get_type())
#define SP_STYLE_ELEM(obj) ((SPStyleElem*)obj)
#define SP_IS_STYLE_ELEM(obj) (obj != NULL && static_cast<const SPObject*>(obj)->typeHierarchy.count(typeid(SPStyleElem)))
class CStyleElem;
class SPStyleElem : public SPObject {
public:
SPStyleElem();
CStyleElem* cstyleelem;
Media media;
bool is_css;
};
class SPStyleElemClass : public SPObjectClass {
};
class CStyleElem : public CObject {
public:
CStyleElem(SPStyleElem* se);
virtual ~CStyleElem();
virtual void build(SPDocument* doc, Inkscape::XML::Node* repr);
virtual void set(unsigned int key, gchar const* value);
virtual void read_content();
virtual Inkscape::XML::Node* write(Inkscape::XML::Document* doc, Inkscape::XML::Node* repr, guint flags);
protected:
SPStyleElem* spstyleelem;
};
GType sp_style_elem_get_type();
#endif /* !INKSCAPE_SP_STYLE_ELEM_H */
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :