1 /* 2 * Copyright 2013-2014, Stephan Aßmus <superstippi@gmx.de>. 3 * All rights reserved. Distributed under the terms of the MIT License. 4 */ 5 #ifndef MARKUP_TEXT_VIEW_H 6 #define MARKUP_TEXT_VIEW_H 7 8 9 #include "MarkupParser.h" 10 #include "TextDocumentView.h" 11 12 13 class MarkupTextView : public TextDocumentView { 14 public: 15 MarkupTextView(const char* name); 16 17 void SetText(const BString& markupText); 18 void SetText(const BString heading, 19 const BString& markupText); 20 21 void SetDisabledText(const BString& text); 22 23 private: 24 MarkupParser fMarkupParser; 25 }; 26 27 28 #endif // MARKUP_TEXT_VIEW_H 29