00001 /* 00002 * @(#)StyledDocumentBridge.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 STYLEDDOCUMENTBRIDGE_H 00010 #define STYLEDDOCUMENTBRIDGE_H 00011 00012 #include "JavaQxQSwing.h" 00013 00014 #include "TextDocumentBridge.h" 00015 00016 /*^**************************************************************************^*/ 00017 /*- StyledDocumentBridge Class. -*/ 00018 /*^**************************************************************************^*/ 00019 00026 class JAVAQX_EXPORT StyledDocumentBridge : public TextDocumentBridge 00027 { 00028 Q_OBJECT 00029 protected: 00030 StyledDocumentBridge(JNIEnv *env, jobject obj); 00031 public slots: // native calls 00032 void setWordWrap(JNIEnv *env, jboolean wrapText); 00033 public: // native calls 00034 static jlong newInstance(JNIEnv *env, jobject obj); 00035 }; 00036 00037 /*^**************************************************************************^*/ 00038 /*- Macro Definition. -*/ 00039 /*^**************************************************************************^*/ 00040 00041 #define styledDocumentBridge (reinterpret_cast<StyledDocumentBridge *>(bridge)) 00042 00043 #endif //STYLEDDOCUMENTBRIDGE_H 00044 00045 /*^***************************************************************************** 00046 File History: 00047 00048 - 2007-12-19 19:33:13 Slobodan 00049 Initial version 00050 00051 *****************************************************************************^*/