summaryrefslogtreecommitdiffstats
path: root/src/text-chemistry.h
blob: 1c38a9a3ddcde1da5e1c19569b8b2bcd62831b78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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 :