00001 /* 00002 * @(#)QTextCharFormatAdapter.h 0.2.0 / 2007-12-13 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 QTEXTCHARFORMATADAPTER_H 00010 #define QTEXTCHARFORMATADAPTER_H 00011 00012 #include "JavaQxQSwing.h" 00013 00014 /*^**************************************************************************^*/ 00015 /*- QTextCharFormatAdapter Class. -*/ 00016 /*^**************************************************************************^*/ 00017 00024 class JAVAQX_EXPORT QTextCharFormatAdapter : public QTextCharFormat 00025 { 00026 public: 00027 QTextCharFormatAdapter(jobject format); 00028 public: 00029 static void initialize(JNIEnv *env, jclass cls); 00030 private: 00031 static jmethodID sm_getFontMID; 00032 static jmethodID sm_isFontBoldMID; 00033 static jmethodID sm_getColorMID; 00034 }; 00035 00036 #endif // QTEXTCHARFORMATADAPTER_H 00037 00038 /*^***************************************************************************** 00039 File History: 00040 00041 - 2007-12-13 13:25:25 Slobodan 00042 Initial version 00043 00044 *****************************************************************************^*/