summaryrefslogtreecommitdiffstats
path: root/src/object/sp-flowregion.h
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2018-01-30 08:33:01 +0000
committerTavmjong Bah <tavmjong@free.fr>2018-01-30 08:33:01 +0000
commit267299811df952d08324a39008f52c19641de9e0 (patch)
tree28fef736a52cb7a72119d119be8eb663ad20a77f /src/object/sp-flowregion.h
parentTranslations: update inkscape.pot (diff)
downloadinkscape-267299811df952d08324a39008f52c19641de9e0.tar.gz
inkscape-267299811df952d08324a39008f52c19641de9e0.zip
Move classes derived from SPObject to own directory.
A lot of header clean-up.
Diffstat (limited to 'src/object/sp-flowregion.h')
-rw-r--r--src/object/sp-flowregion.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/object/sp-flowregion.h b/src/object/sp-flowregion.h
new file mode 100644
index 000000000..024a298b8
--- /dev/null
+++ b/src/object/sp-flowregion.h
@@ -0,0 +1,54 @@
+#ifndef SEEN_SP_ITEM_FLOWREGION_H
+#define SEEN_SP_ITEM_FLOWREGION_H
+
+/*
+ */
+
+#include "sp-item.h"
+
+#define SP_FLOWREGION(obj) (dynamic_cast<SPFlowregion*>((SPObject*)obj))
+#define SP_IS_FLOWREGION(obj) (dynamic_cast<const SPFlowregion*>((SPObject*)obj) != NULL)
+
+#define SP_FLOWREGIONEXCLUDE(obj) (dynamic_cast<SPFlowregionExclude*>((SPObject*)obj))
+#define SP_IS_FLOWREGIONEXCLUDE(obj) (dynamic_cast<const SPFlowregionExclude*>((SPObject*)obj) != NULL)
+
+class Path;
+class Shape;
+class flow_dest;
+class FloatLigne;
+
+class SPFlowregion : public SPItem {
+public:
+ SPFlowregion();
+ virtual ~SPFlowregion();
+
+ std::vector<Shape*> computed;
+
+ void UpdateComputed(void);
+
+ virtual void child_added(Inkscape::XML::Node* child, Inkscape::XML::Node* ref);
+ virtual void remove_child(Inkscape::XML::Node *child);
+ virtual void update(SPCtx *ctx, unsigned int flags);
+ virtual void modified(guint flags);
+ virtual Inkscape::XML::Node* write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, unsigned int flags);
+ virtual const char* displayName() const;
+};
+
+class SPFlowregionExclude : public SPItem {
+public:
+ SPFlowregionExclude();
+ virtual ~SPFlowregionExclude();
+
+ Shape *computed;
+
+ void UpdateComputed(void);
+
+ virtual void child_added(Inkscape::XML::Node* child, Inkscape::XML::Node* ref);
+ virtual void remove_child(Inkscape::XML::Node *child);
+ virtual void update(SPCtx *ctx, unsigned int flags);
+ virtual void modified(guint flags);
+ virtual Inkscape::XML::Node* write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, unsigned int flags);
+ virtual const char* displayName() const;
+};
+
+#endif