diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:24:48 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:24:48 +0000 |
commit | cca66b9ec4e494c1d919bff0f71a820d8afab1fa (patch) | |
tree | 146f39ded1c938019e1ed42d30923c2ac9e86789 /src/text-chemistry.h | |
parent | Initial commit. (diff) | |
download | inkscape-upstream.tar.xz inkscape-upstream.zip |
Adding upstream version 1.2.2.upstream/1.2.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/text-chemistry.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/text-chemistry.h b/src/text-chemistry.h new file mode 100644 index 0000000..1c38a9a --- /dev/null +++ b/src/text-chemistry.h @@ -0,0 +1,52 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +#ifndef SEEN_TEXT_CHEMISTRY_H +#define SEEN_TEXT_CHEMISTRY_H + +// TODO move to selection-chemistry? + +/* + * Text commands + * + * Authors: + * bulia byak + * + * Copyright (C) 2004 authors + * + * Released under GNU GPL v2+, read the file 'COPYING' for more information. + */ + +#include <utility> +#include <vector> +#include <glibmm/ustring.h> + +class SPDocument; + +void text_put_on_path(); +void text_remove_from_path(); +void text_remove_all_kerns(); +void text_flow_into_shape(); +void text_flow_shape_subtract(); +void text_unflow(); +void flowtext_to_text(); +enum text_ref_t { TEXT_REF_DEF = 0x1, TEXT_REF_EXTERNAL = 0x2, TEXT_REF_INTERNAL = 0x4, }; +using text_refs_t = std::vector<std::pair<Glib::ustring, text_ref_t>>; +template<typename InIter> +text_refs_t text_categorize_refs(SPDocument *doc, InIter begin, InIter end, text_ref_t which); +template<typename InIterOrig, typename InIterCopy> +void text_relink_refs(text_refs_t const &refs, + InIterOrig origBegin, InIterOrig origEnd, InIterCopy copyBegin); + +#include "text-chemistry-impl.h" + +#endif // SEEN_TEXT_CHEMISTRY_H + +/* + Local Variables: + mode:c++ + c-file-style:"stroustrup" + c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +)) + indent-tabs-mode:nil + fill-column:99 + End: +*/ +// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 : |