From cca66b9ec4e494c1d919bff0f71a820d8afab1fa Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 20:24:48 +0200 Subject: Adding upstream version 1.2.2. Signed-off-by: Daniel Baumann --- src/text-chemistry.h | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 src/text-chemistry.h (limited to 'src/text-chemistry.h') 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 +#include +#include + +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>; +template +text_refs_t text_categorize_refs(SPDocument *doc, InIter begin, InIter end, text_ref_t which); +template +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 : -- cgit v1.2.3