summaryrefslogtreecommitdiffstats
path: root/src/manipulation/copy-resource.h
blob: 08348be368349f51b8241cdb80efe3baa52cee7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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_