/**************************************************************************** ** PaperImage meta object code from reading C++ file 'FrameObjects.h' ** ** Created: Fri Aug 13 00:02:48 2004 ** by: The Qt MOC ($Id: qt/moc_yacc.cpp 3.3.2 edited Apr 19 11:34 $) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #undef QT_NO_COMPAT #include "FrameObjects.h" #include #include #include #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26) #error "This file was generated using the moc from 3.3.2. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif const char *PaperImage::className() const { return "PaperImage"; } QMetaObject *PaperImage::metaObj = 0; static QMetaObjectCleanUp cleanUp_PaperImage( "PaperImage", &PaperImage::staticMetaObject ); #ifndef QT_NO_TRANSLATION QString PaperImage::tr( const char *s, const char *c ) { if ( qApp ) return qApp->translate( "PaperImage", s, c, QApplication::DefaultCodec ); else return QString::fromLatin1( s ); } #ifndef QT_NO_TRANSLATION_UTF8 QString PaperImage::trUtf8( const char *s, const char *c ) { if ( qApp ) return qApp->translate( "PaperImage", s, c, QApplication::UnicodeUTF8 ); else return QString::fromUtf8( s ); } #endif // QT_NO_TRANSLATION_UTF8 #endif // QT_NO_TRANSLATION QMetaObject* PaperImage::staticMetaObject() { if ( metaObj ) return metaObj; QMetaObject* parentObject = MathFrame::staticMetaObject(); static const QUMethod slot_0 = {"Reload", 0, 0 }; static const QMetaData slot_tbl[] = { { "Reload()", &slot_0, QMetaData::Private } }; metaObj = QMetaObject::new_metaobject( "PaperImage", parentObject, slot_tbl, 1, 0, 0, #ifndef QT_NO_PROPERTIES 0, 0, 0, 0, #endif // QT_NO_PROPERTIES 0, 0 ); cleanUp_PaperImage.setMetaObject( metaObj ); return metaObj; } void* PaperImage::qt_cast( const char* clname ) { if ( !qstrcmp( clname, "PaperImage" ) ) return this; return MathFrame::qt_cast( clname ); } bool PaperImage::qt_invoke( int _id, QUObject* _o ) { switch ( _id - staticMetaObject()->slotOffset() ) { case 0: Reload(); break; default: return MathFrame::qt_invoke( _id, _o ); } return TRUE; } bool PaperImage::qt_emit( int _id, QUObject* _o ) { return MathFrame::qt_emit(_id,_o); } #ifndef QT_NO_PROPERTIES bool PaperImage::qt_property( int id, int f, QVariant* v) { return MathFrame::qt_property( id, f, v); } bool PaperImage::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; } #endif // QT_NO_PROPERTIES const char *PaperText::className() const { return "PaperText"; } QMetaObject *PaperText::metaObj = 0; static QMetaObjectCleanUp cleanUp_PaperText( "PaperText", &PaperText::staticMetaObject ); #ifndef QT_NO_TRANSLATION QString PaperText::tr( const char *s, const char *c ) { if ( qApp ) return qApp->translate( "PaperText", s, c, QApplication::DefaultCodec ); else return QString::fromLatin1( s ); } #ifndef QT_NO_TRANSLATION_UTF8 QString PaperText::trUtf8( const char *s, const char *c ) { if ( qApp ) return qApp->translate( "PaperText", s, c, QApplication::UnicodeUTF8 ); else return QString::fromUtf8( s ); } #endif // QT_NO_TRANSLATION_UTF8 #endif // QT_NO_TRANSLATION QMetaObject* PaperText::staticMetaObject() { if ( metaObj ) return metaObj; QMetaObject* parentObject = MathFrame::staticMetaObject(); static const QUMethod slot_0 = {"editCut", 0, 0 }; static const QUMethod slot_1 = {"editCopy", 0, 0 }; static const QUMethod slot_2 = {"editPaste", 0, 0 }; static const QUMethod slot_3 = {"textBold", 0, 0 }; static const QUMethod slot_4 = {"textUnderline", 0, 0 }; static const QUMethod slot_5 = {"textItalic", 0, 0 }; static const QUParameter param_slot_6[] = { { "f", &static_QUType_QString, 0, QUParameter::In } }; static const QUMethod slot_6 = {"textFamily", 1, param_slot_6 }; static const QUParameter param_slot_7[] = { { "p", &static_QUType_QString, 0, QUParameter::In } }; static const QUMethod slot_7 = {"textSize", 1, param_slot_7 }; static const QUParameter param_slot_8[] = { { "s", &static_QUType_int, 0, QUParameter::In } }; static const QUMethod slot_8 = {"textStyle", 1, param_slot_8 }; static const QUMethod slot_9 = {"textColor", 0, 0 }; static const QUParameter param_slot_10[] = { { "a", &static_QUType_ptr, "QAction", QUParameter::In } }; static const QUMethod slot_10 = {"textAlign", 1, param_slot_10 }; static const QMetaData slot_tbl[] = { { "editCut()", &slot_0, QMetaData::Public }, { "editCopy()", &slot_1, QMetaData::Public }, { "editPaste()", &slot_2, QMetaData::Public }, { "textBold()", &slot_3, QMetaData::Public }, { "textUnderline()", &slot_4, QMetaData::Public }, { "textItalic()", &slot_5, QMetaData::Public }, { "textFamily(const QString&)", &slot_6, QMetaData::Public }, { "textSize(const QString&)", &slot_7, QMetaData::Public }, { "textStyle(int)", &slot_8, QMetaData::Public }, { "textColor()", &slot_9, QMetaData::Public }, { "textAlign(QAction*)", &slot_10, QMetaData::Public } }; metaObj = QMetaObject::new_metaobject( "PaperText", parentObject, slot_tbl, 11, 0, 0, #ifndef QT_NO_PROPERTIES 0, 0, 0, 0, #endif // QT_NO_PROPERTIES 0, 0 ); cleanUp_PaperText.setMetaObject( metaObj ); return metaObj; } void* PaperText::qt_cast( const char* clname ) { if ( !qstrcmp( clname, "PaperText" ) ) return this; return MathFrame::qt_cast( clname ); } bool PaperText::qt_invoke( int _id, QUObject* _o ) { switch ( _id - staticMetaObject()->slotOffset() ) { case 0: editCut(); break; case 1: editCopy(); break; case 2: editPaste(); break; case 3: textBold(); break; case 4: textUnderline(); break; case 5: textItalic(); break; case 6: textFamily((const QString&)static_QUType_QString.get(_o+1)); break; case 7: textSize((const QString&)static_QUType_QString.get(_o+1)); break; case 8: textStyle((int)static_QUType_int.get(_o+1)); break; case 9: textColor(); break; case 10: textAlign((QAction*)static_QUType_ptr.get(_o+1)); break; default: return MathFrame::qt_invoke( _id, _o ); } return TRUE; } bool PaperText::qt_emit( int _id, QUObject* _o ) { return MathFrame::qt_emit(_id,_o); } #ifndef QT_NO_PROPERTIES bool PaperText::qt_property( int id, int f, QVariant* v) { return MathFrame::qt_property( id, f, v); } bool PaperText::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; } #endif // QT_NO_PROPERTIES const char *TextControl::className() const { return "TextControl"; } QMetaObject *TextControl::metaObj = 0; static QMetaObjectCleanUp cleanUp_TextControl( "TextControl", &TextControl::staticMetaObject ); #ifndef QT_NO_TRANSLATION QString TextControl::tr( const char *s, const char *c ) { if ( qApp ) return qApp->translate( "TextControl", s, c, QApplication::DefaultCodec ); else return QString::fromLatin1( s ); } #ifndef QT_NO_TRANSLATION_UTF8 QString TextControl::trUtf8( const char *s, const char *c ) { if ( qApp ) return qApp->translate( "TextControl", s, c, QApplication::UnicodeUTF8 ); else return QString::fromUtf8( s ); } #endif // QT_NO_TRANSLATION_UTF8 #endif // QT_NO_TRANSLATION QMetaObject* TextControl::staticMetaObject() { if ( metaObj ) return metaObj; QMetaObject* parentObject = QObject::staticMetaObject(); static const QUParameter param_slot_0[] = { { "f", &static_QUType_varptr, "\x05", QUParameter::In } }; static const QUMethod slot_0 = {"fontChanged", 1, param_slot_0 }; static const QUParameter param_slot_1[] = { { "c", &static_QUType_varptr, "\x0a", QUParameter::In } }; static const QUMethod slot_1 = {"colorChanged", 1, param_slot_1 }; static const QUParameter param_slot_2[] = { { "a", &static_QUType_int, 0, QUParameter::In } }; static const QUMethod slot_2 = {"alignmentChanged", 1, param_slot_2 }; static const QMetaData slot_tbl[] = { { "fontChanged(const QFont&)", &slot_0, QMetaData::Public }, { "colorChanged(const QColor&)", &slot_1, QMetaData::Public }, { "alignmentChanged(int)", &slot_2, QMetaData::Public } }; metaObj = QMetaObject::new_metaobject( "TextControl", parentObject, slot_tbl, 3, 0, 0, #ifndef QT_NO_PROPERTIES 0, 0, 0, 0, #endif // QT_NO_PROPERTIES 0, 0 ); cleanUp_TextControl.setMetaObject( metaObj ); return metaObj; } void* TextControl::qt_cast( const char* clname ) { if ( !qstrcmp( clname, "TextControl" ) ) return this; return QObject::qt_cast( clname ); } bool TextControl::qt_invoke( int _id, QUObject* _o ) { switch ( _id - staticMetaObject()->slotOffset() ) { case 0: fontChanged((const QFont&)*((const QFont*)static_QUType_ptr.get(_o+1))); break; case 1: colorChanged((const QColor&)*((const QColor*)static_QUType_ptr.get(_o+1))); break; case 2: alignmentChanged((int)static_QUType_int.get(_o+1)); break; default: return QObject::qt_invoke( _id, _o ); } return TRUE; } bool TextControl::qt_emit( int _id, QUObject* _o ) { return QObject::qt_emit(_id,_o); } #ifndef QT_NO_PROPERTIES bool TextControl::qt_property( int id, int f, QVariant* v) { return QObject::qt_property( id, f, v); } bool TextControl::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; } #endif // QT_NO_PROPERTIES