summaryrefslogtreecommitdiffstats
path: root/src/text-editing.h
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2010-05-14 20:13:53 +0000
committertavmjong-free <tavmjong@free.fr>2010-05-14 20:13:53 +0000
commitf1b28615cb0ce50d3e0d9ba841d700a2905fdbec (patch)
tree9f79944a2155574686f05d1dd59042cf1b42e35b /src/text-editing.h
parentTranslations. Belarusian translation by Hleb Valoshka. (diff)
downloadinkscape-f1b28615cb0ce50d3e0d9ba841d700a2905fdbec.tar.gz
inkscape-f1b28615cb0ce50d3e0d9ba841d700a2905fdbec.zip
Add dx (kerning), dy (vertical shifting), and rotate widgets to
text toolbar along with routines needed by them. (bzr r9417)
Diffstat (limited to 'src/text-editing.h')
-rw-r--r--src/text-editing.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/text-editing.h b/src/text-editing.h
index 7e845dbc9..038458ff7 100644
--- a/src/text-editing.h
+++ b/src/text-editing.h
@@ -17,6 +17,7 @@
#include <utility> // std::pair
#include "libnrtype/Layout-TNG.h"
#include <libnr/nr-forward.h>
+#include "text-tag-attributes.h"
class SPCSSAttr;
struct SPItem;
@@ -50,10 +51,16 @@ gchar *sp_te_get_string_multiline(SPItem const *text);
Glib::ustring sp_te_get_string_multiline(SPItem const *text, Inkscape::Text::Layout::iterator const &start, Inkscape::Text::Layout::iterator const &end);
void sp_te_set_repr_text_multiline(SPItem *text, gchar const *str);
+TextTagAttributes*
+text_tag_attributes_at_position(SPItem *item, Inkscape::Text::Layout::iterator const &position, unsigned *char_index);
+
void sp_te_adjust_kerning_screen(SPItem *text, Inkscape::Text::Layout::iterator const &start, Inkscape::Text::Layout::iterator const &end, SPDesktop *desktop, Geom::Point by);
+void sp_te_adjust_dx (SPItem *item, Inkscape::Text::Layout::iterator const &start, Inkscape::Text::Layout::iterator const &end, SPDesktop *desktop, double delta);
+void sp_te_adjust_dy (SPItem *item, Inkscape::Text::Layout::iterator const &start, Inkscape::Text::Layout::iterator const &end, SPDesktop *desktop, double delta);
void sp_te_adjust_rotation_screen(SPItem *text, Inkscape::Text::Layout::iterator const &start, Inkscape::Text::Layout::iterator const &end, SPDesktop *desktop, gdouble pixels);
void sp_te_adjust_rotation(SPItem *text, Inkscape::Text::Layout::iterator const &start, Inkscape::Text::Layout::iterator const &end, SPDesktop *desktop, gdouble degrees);
+void sp_te_set_rotation(SPItem *text, Inkscape::Text::Layout::iterator const &start, Inkscape::Text::Layout::iterator const &end, SPDesktop *desktop, gdouble degrees);
void sp_te_adjust_tspan_letterspacing_screen(SPItem *text, Inkscape::Text::Layout::iterator const &start, Inkscape::Text::Layout::iterator const &end, SPDesktop *desktop, gdouble by);
void sp_te_adjust_linespacing_screen(SPItem *text, Inkscape::Text::Layout::iterator const &start, Inkscape::Text::Layout::iterator const &end, SPDesktop *desktop, gdouble by);