summaryrefslogtreecommitdiffstats
path: root/src/manipulation/copy-resource.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/manipulation/copy-resource.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/manipulation/copy-resource.h')
-rw-r--r--src/manipulation/copy-resource.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/manipulation/copy-resource.h b/src/manipulation/copy-resource.h
new file mode 100644
index 0000000..08348be
--- /dev/null
+++ b/src/manipulation/copy-resource.h
@@ -0,0 +1,22 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#ifndef _SEEN_COPY_RESOURCE_H_
+#define _SEEN_COPY_RESOURCE_H_
+
+class SPDocument;
+class SPObject;
+
+/**
+ * @brief
+ * Copy source resource form one document into another destination document.
+ * Resources are elements inside "def" element (gradients, markers, etc).
+ * Also copy any href-ed objects or styles referencing other objects (like gradients).
+ * In this sense it is a deep copy.
+ *
+ * @param source
+ * @param dest_document
+ * @return SPObject*
+ */
+SPObject* sp_copy_resource(const SPObject* source, SPDocument* dest_document);
+
+#endif // _SEEN_COPY_RESOURCE_H_ \ No newline at end of file