summaryrefslogtreecommitdiffstats
path: root/src/object/sp-text.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/object/sp-text.h')
-rw-r--r--src/object/sp-text.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/object/sp-text.h b/src/object/sp-text.h
index 8111fce56..a4c8b9d84 100644
--- a/src/object/sp-text.h
+++ b/src/object/sp-text.h
@@ -22,6 +22,8 @@
#include "sp-string.h" // Provides many other headers with SP_IS_STRING
#include "text-tag-attributes.h"
+#include "desktop.h"
+
#define SP_TEXT(obj) (dynamic_cast<SPText*>((SPObject*)obj))
#define SP_IS_TEXT(obj) (dynamic_cast<const SPText*>((SPObject*)obj) != NULL)
@@ -97,8 +99,18 @@ public:
void hide(unsigned int key) override;
void snappoints(std::vector<Inkscape::SnapCandidatePoint> &p, Inkscape::SnapPreferences const *snapprefs) const override;
Geom::Affine set_transform(Geom::Affine const &transform) override;
+
+ bool is_horizontal() const;
+ bool has_inline_size() const;
+ bool has_shape_inside() const;
+ Geom::OptRect get_frame(); // Gets inline-size or shape-inside frame.
+ Inkscape::XML::Node* get_first_rectangle(); // Gets first shape-inside rectangle (if it exists).
+ std::vector<Glib::ustring> get_shapes() const; // Gets list of shapes in shape-inside.
};
+SPItem *create_text_with_inline_size (SPDesktop *desktop, Geom::Point p0, Geom::Point p1);
+SPItem *create_text_with_rectangle (SPDesktop *desktop, Geom::Point p0, Geom::Point p1);
+
#endif
/*