// 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 :