#ifndef SEEN_SP_ITEM_FLOWTEXT_H
#define SEEN_SP_ITEM_FLOWTEXT_H
/*
*/
#include "libnrtype/Layout-TNG.h"
#include "sp-item.h"
} // namespace Inkscape
SPFlowtext();
virtual ~SPFlowtext();
/** Completely recalculates the layout. */
void rebuildLayout();
/** Converts the flowroot in into a \<text\> tree, keeping all the formatting and positioning,
but losing the automatic wrapping ability. */
// TODO check if these should return SPRect instead of SPItem
bool has_internal_frame() const;
//semiprivate: (need to be accessed by the C-style functions still)
/** discards the drawing objects representing this text. */
double par_indent;
bool _optimizeScaledText;
/** Optimize scaled flow text on next set_transform. */
void optimizeScaledText()
{_optimizeScaledText = true;}
/** Recursively walks the xml tree adding tags and their contents. */
void _buildLayoutInput(SPObject *root, Shape const *exclusion_shape, std::list<Shape> *shapes, SPObject **pending_line_break_object);
/** calculates the union of all the \<flowregionexclude\> children
of this flowroot. */
Shape* _buildExclusionShape() const;
virtual Inkscape::XML::Node* write(Inkscape::XML::Document* doc, Inkscape::XML::Node* repr, unsigned int flags);
virtual const char* displayName() const;
virtual char* description() const;
virtual Inkscape::DrawingItem* show(Inkscape::Drawing &drawing, unsigned int key, unsigned int flags);
virtual void snappoints(std::vector<Inkscape::SnapCandidatePoint> &p, Inkscape::SnapPreferences const *snapprefs) const;
};
#endif // SEEN_SP_ITEM_FLOWTEXT_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 :