X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fsp-flowtext.h;h=144157dc97cefe2dca5060a6f3a8b7ff4d3d2bb4;hb=76db360f5f052775326e6d406b9e1e9e2966e11a;hp=9e6d711fa271a535f14b6c3e2546cbda7cfe986e;hpb=6b15695578f07a3f72c4c9475c1a261a3021472a;p=inkscape.git diff --git a/src/sp-flowtext.h b/src/sp-flowtext.h index 9e6d711fa..144157dc9 100644 --- a/src/sp-flowtext.h +++ b/src/sp-flowtext.h @@ -20,10 +20,9 @@ struct SPFlowtext : public SPItem { /** Completely recalculates the layout. */ void rebuildLayout(); - /** Converts the current selection (which must be a flowroot) into - a \ tree, keeping all the formatting and positioning, but losing - the automatic wrapping ability. */ - static void convert_to_text(); + /** Converts the flowroot in into a \ tree, keeping all the formatting and positioning, + but losing the automatic wrapping ability. */ + Inkscape::XML::Node *getAsText(); SPItem *get_frame(SPItem *after); @@ -35,6 +34,8 @@ struct SPFlowtext : public SPItem { /** discards the NRArena objects representing this text. */ void _clearFlow(NRArenaGroup* in_arena); + double par_indent; + private: /** Recursively walks the xml tree adding tags and their contents. */ void _buildLayoutInput(SPObject *root, Shape const *exclusion_shape, std::list *shapes, SPObject **pending_line_break_object); @@ -54,3 +55,14 @@ GType sp_flowtext_get_type (void); SPItem *create_flowtext_with_internal_frame (SPDesktop *desktop, NR::Point p1, NR::Point p2); #endif + +/* + 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:encoding=utf-8:textwidth=99 :