StyledDocument.h

00001 /*
00002  * @(#)StyledDocument.h  0.2.0 / 2007-12-19
00003  *
00004  * Copyright (c) 2007, ETF and contributors. All rights reserved.
00005  *
00006  * This software is licensed under the LGPL, version 2.1, license.
00007  * A copy of the license is included in the file LICENSE-LGPL.txt.
00008  */
00009 #ifndef STYLEDDOCUMENT_H
00010 #define STYLEDDOCUMENT_H
00011 
00012 #include "JavaQxQSwing.h"
00013 
00014 #include "QTextDocumentAdapter.h"
00015 
00016 /*^**************************************************************************^*/
00017 /*- StyledDocument Class.                                                    -*/
00018 /*^**************************************************************************^*/
00019 
00026 class JAVAQX_EXPORT StyledDocument : public QTextDocumentAdapter
00027 {
00028 public:
00029   StyledDocument(TextDocumentBridge *documentBridge);
00030 public:
00031   virtual QString getText() const;
00032   virtual void setText(const QString &text);
00033   virtual void appendText(const QString &text);
00034 protected:
00035   virtual QVariant loadResource(int type, const QUrl &name);
00036 };
00037 
00038 #endif // STYLEDDOCUMENT_H
00039 
00040 
00041 /*^*****************************************************************************
00042   File History:
00043 
00044  - 2007-12-19 19:35:56 Slobodan
00045    Initial version
00046 
00047 *****************************************************************************^*/

Copyright © 2007 ETF and contributors. All Rights Reserved.