diff options
| author | Alexander Brock <zaibu@lunar-orbit.de> | 2016-11-04 14:18:24 +0000 |
|---|---|---|
| committer | Alexander Brock <zaibu@lunar-orbit.de> | 2016-11-04 14:18:24 +0000 |
| commit | e3aa2bb36fc7567d320cdc46e14a425aa84d3c74 (patch) | |
| tree | d39efa77f8c11008b7d9ccf8999d078057144237 /src/object-set.h | |
| parent | Revert two changes from r15177 (diff) | |
| parent | Add recursive clone unlink feature (diff) | |
| download | inkscape-e3aa2bb36fc7567d320cdc46e14a425aa84d3c74.tar.gz inkscape-e3aa2bb36fc7567d320cdc46e14a425aa84d3c74.zip | |
Add "Edit->Clone->Unlink Clones recursively" function (ObjectSet::unlinkRecursive)
(bzr r15204.1.1)
Diffstat (limited to 'src/object-set.h')
| -rw-r--r-- | src/object-set.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/object-set.h b/src/object-set.h index 8fa20e454..b027125af 100644 --- a/src/object-set.h +++ b/src/object-set.h @@ -329,7 +329,19 @@ public: void deleteItems(); void duplicate(bool suppressDone = false, bool duplicateLayer = false); void clone(); - void unlink(); + + /** + * @brief Unlink all directly selected clones. + * @param skip_undo If this is set to true the call to DocumentUndo::done is omitted. + * @return True if anything was unlinked, otherwise false. + */ + bool unlink(const bool skip_undo = false); + /** + * @brief Recursively unlink any clones present in the current selection, + * including clones which are used to clip other objects, groups of clones etc. + * @return true if anything was unlinked, otherwise false. + */ + bool unlinkRecursive(const bool skip_undo = false); void relink(); void cloneOriginal(); void cloneOriginalPathLPE(); @@ -375,7 +387,7 @@ public: void createBitmapCopy(); void setMask(bool apply_clip_path, bool apply_to_layer = false, bool skip_undo = false); void editMask(bool clip); - void unsetMask(bool apply_clip_path); + void unsetMask(const bool apply_clip_path, const bool skip_undo = false); void setClipGroup(); // moves |
