#ifndef VERSETEXTCONTROL_H #define VERSETEXTCONTROL_H #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "TextControl.h" class VerseTextControl: public TextControl { public: VerseTextControl(int x, int y, int width, int height); ~VerseTextControl() {} void addAnchoredText(const WCString &text, int anchor); // we are able to scroll back to this point using the anchor void gotoAnchor(int anchor); virtual void paint(); virtual void clearText(); protected: std::map anchorPositions; // in case of plain text typedef std::map::const_iterator AnchorIterator; int currentAnchor; }; #endif