1 #ifndef STYLED_EDIT_VIEW_H 2 #define STYLED_EDIT_VIEW_H 3 4 #ifndef _TEXTVIEW_H 5 #include <TextView.h> 6 #endif 7 8 class StyledEditView : public BTextView { 9 public: 10 StyledEditView(BRect viewframe, BRect textframe, BHandler *handler); 11 ~StyledEditView(); 12 13 virtual void Select(int32 start, int32 finish); 14 virtual void FrameResized(float width, float height); 15 protected: 16 virtual void InsertText(const char *text, int32 length, int32 offset, const text_run_array *runs); 17 virtual void DeleteText(int32 start, int32 finish); 18 19 private: 20 BHandler *fHandler; 21 BMessage *fChangeMessage; 22 BMessenger *fMessenger; 23 }; 24 #endif 25 26 27 28 29 30 31 32 33 34 35