#ifndef STYLED_EDIT_VIEW_H #define STYLED_EDIT_VIEW_H #include #include #include class StyledEditView : public BTextView { public: StyledEditView(BRect viewframe, BRect textframe, BHandler *handler); ~StyledEditView(); virtual void Select(int32 start, int32 finish); virtual void FrameResized(float width, float height); virtual void Reset(); virtual status_t GetStyledText(BPositionIO * stream); virtual status_t WriteStyledEditFile(BFile * file, uint32 charSet = 0); protected: virtual void InsertText(const char *text, int32 length, int32 offset, const text_run_array *runs); virtual void DeleteText(int32 start, int32 finish); private: BHandler *fHandler; BMessage *fChangeMessage; BMessenger *fMessenger; bool fSuppressChanges; }; #endif // STYLED_EDIT_VIEW_H