summaryrefslogtreecommitdiffstats
path: root/src/object/sp-flowdiv.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 11:50:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 11:50:49 +0000
commitc853ffb5b2f75f5a889ed2e3ef89b818a736e87a (patch)
tree7d13a0883bb7936b84d6ecdd7bc332b41ed04bee /src/object/sp-flowdiv.h
parentInitial commit. (diff)
downloadinkscape-c853ffb5b2f75f5a889ed2e3ef89b818a736e87a.tar.xz
inkscape-c853ffb5b2f75f5a889ed2e3ef89b818a736e87a.zip
Adding upstream version 1.3+ds.upstream/1.3+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/object/sp-flowdiv.h')
-rw-r--r--src/object/sp-flowdiv.h95
1 files changed, 95 insertions, 0 deletions
diff --git a/src/object/sp-flowdiv.h b/src/object/sp-flowdiv.h
new file mode 100644
index 0000000..0792652
--- /dev/null
+++ b/src/object/sp-flowdiv.h
@@ -0,0 +1,95 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/** @file
+ * TODO: insert short description here
+ *//*
+ * Authors: see git history
+ *
+ * Copyright (C) 2018 Authors
+ * Released under GNU GPL v2+, read the file 'COPYING' for more information.
+ */
+#ifndef SEEN_SP_ITEM_FLOWDIV_H
+#define SEEN_SP_ITEM_FLOWDIV_H
+
+/*
+ */
+
+#include "sp-object.h"
+#include "sp-item.h"
+
+// these 3 are derivatives of SPItem to get the automatic style handling
+class SPFlowdiv final : public SPItem {
+public:
+ SPFlowdiv();
+ ~SPFlowdiv() override;
+ int tag() const override { return tag_of<decltype(*this)>; }
+
+protected:
+ void build(SPDocument *document, Inkscape::XML::Node *repr) override;
+ void release() override;
+ void update(SPCtx* ctx, unsigned int flags) override;
+ void modified(unsigned int flags) override;
+
+ void set(SPAttr key, char const* value) override;
+ Inkscape::XML::Node* write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, unsigned int flags) override;
+};
+
+class SPFlowtspan final : public SPItem {
+public:
+ SPFlowtspan();
+ ~SPFlowtspan() override;
+ int tag() const override { return tag_of<decltype(*this)>; }
+
+protected:
+ void build(SPDocument *document, Inkscape::XML::Node *repr) override;
+ void release() override;
+ void update(SPCtx* ctx, unsigned int flags) override;
+ void modified(unsigned int flags) override;
+
+ void set(SPAttr key, char const* value) override;
+ Inkscape::XML::Node* write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, unsigned int flags) override;
+};
+
+class SPFlowpara final : public SPItem {
+public:
+ SPFlowpara();
+ ~SPFlowpara() override;
+ int tag() const override { return tag_of<decltype(*this)>; }
+
+protected:
+ void build(SPDocument *document, Inkscape::XML::Node *repr) override;
+ void release() override;
+ void update(SPCtx* ctx, unsigned int flags) override;
+ void modified(unsigned int flags) override;
+
+ void set(SPAttr key, char const* value) override;
+ Inkscape::XML::Node* write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, unsigned int flags) override;
+};
+
+// these do not need any style
+class SPFlowline final : public SPObject {
+public:
+ SPFlowline();
+ ~SPFlowline() override;
+ int tag() const override { return tag_of<decltype(*this)>; }
+
+protected:
+ void release() override;
+ void modified(unsigned int flags) override;
+
+ Inkscape::XML::Node* write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, unsigned int flags) override;
+};
+
+class SPFlowregionbreak final : public SPObject {
+public:
+ SPFlowregionbreak();
+ ~SPFlowregionbreak() override;
+ int tag() const override { return tag_of<decltype(*this)>; }
+
+protected:
+ void release() override;
+ void modified(unsigned int flags) override;
+
+ Inkscape::XML::Node* write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, unsigned int flags) override;
+};
+
+#endif