summaryrefslogtreecommitdiffstats
path: root/src/text-chemistry.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/text-chemistry.h')
-rw-r--r--src/text-chemistry.h52
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 :