::com::sun::star::uno::Type * operator()() const { ::rtl::OUString sTypeName( "com.sun.star.accessibility.XAccessibleEventListener" ); // Start inline typedescription generation // typelib_InterfaceTypeDescription * pTD = 0; // typelib_TypeDescriptionReference * aSuperTypes[1]; // aSuperTypes[0] = ::cppu::UnoType< ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > >::get().getTypeLibType(); // typelib_TypeDescriptionReference * pMembers[1] = { 0 }; // ::rtl::OUString sMethodName0( "com.sun.star.accessibility.XAccessibleEventListener::notifyEvent" ); // typelib_typedescriptionreference_new( &pMembers[0], // (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD, // sMethodName0.pData ); // typelib_typedescription_newMIInterface( // &pTD, // sTypeName.pData, 0, 0, 0, 0, 0, // 1, aSuperTypes, // 1, // pMembers ); // typelib_typedescription_register( (typelib_TypeDescription**)&pTD ); // typelib_typedescriptionreference_release( pMembers[0] ); // typelib_typedescription_release( (typelib_TypeDescription*)pTD ); return new ::com::sun::star::uno::Type( ::com::sun::star::uno::TypeClass_INTERFACE, sTypeName ); // leaked }
/** insert one IDENTIFIER or DYN_ATTRIBUTE */ int sTableInsertId(struct Node* node, int ttype) { if ( ttype < DYN_STRING_T && ttype!=DYNAMIC_T) { // take care of declare unsupported type for attribute ERRNO = ErrorAttributeTypeNotSupported; errorInfo(ERRNO, node->line, "Type `%s' is not supported for Attribute\n", sTypeName(ttype)); return ERRNO; } else if ( ttype == VOID_T ) { ERRNO = ErrorVoidTypeVariableNotSupported; errorInfo(ERRNO, node->line, " cannot declare `void' variable.\n"); return ERRNO; } SymbolTableEntry* entry = sNewVarEty ( node->lexval.sval, ttype, node->line ); if ( sTableInsert( entry ) == ErrorSymbolTableKeyAlreadyExsit ) { SymbolTableEntry * te = sTableLookup(entry->key); ERRNO = ErrorIdentifierAlreadyDeclared; errorInfo(ERRNO, node->line,"`%s%s' is already declared.\n",(ttype<0)?"@":"", node->lexval.sval); errorInfoNote("`%s%s' is first declared at line %d\n", (ttype<0)?"@":"",node->lexval.sval, te->line); return ERRNO; // should tell where first declared } node->symbol = entry; node->type = ttype; return 0; }
::com::sun::star::uno::Type * operator()() const { ::rtl::OUString sTypeName( "com.sun.star.accessibility.XAccessibleRelationSet" ); // Start inline typedescription generation /* typelib_InterfaceTypeDescription * pTD = 0; typelib_TypeDescriptionReference * aSuperTypes[1]; aSuperTypes[0] = ::cppu::UnoType< ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > >::get().getTypeLibType(); typelib_TypeDescriptionReference * pMembers[4] = { 0,0,0,0 }; ::rtl::OUString sMethodName0( "com.sun.star.accessibility.XAccessibleRelationSet::getRelationCount" ); typelib_typedescriptionreference_new( &pMembers[0], (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD, sMethodName0.pData ); ::rtl::OUString sMethodName1( "com.sun.star.accessibility.XAccessibleRelationSet::getRelation" ); typelib_typedescriptionreference_new( &pMembers[1], (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD, sMethodName1.pData ); ::rtl::OUString sMethodName2( "com.sun.star.accessibility.XAccessibleRelationSet::containsRelation" ); typelib_typedescriptionreference_new( &pMembers[2], (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD, sMethodName2.pData ); ::rtl::OUString sMethodName3( "com.sun.star.accessibility.XAccessibleRelationSet::getRelationByType" ); typelib_typedescriptionreference_new( &pMembers[3], (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD, sMethodName3.pData ); typelib_typedescription_newMIInterface( &pTD, sTypeName.pData, 0, 0, 0, 0, 0, 1, aSuperTypes, 4, pMembers ); typelib_typedescription_register( (typelib_TypeDescription**)&pTD ); typelib_typedescriptionreference_release( pMembers[0] ); typelib_typedescriptionreference_release( pMembers[1] ); typelib_typedescriptionreference_release( pMembers[2] ); typelib_typedescriptionreference_release( pMembers[3] ); typelib_typedescription_release( (typelib_TypeDescription*)pTD ); */ return new ::com::sun::star::uno::Type( ::com::sun::star::uno::TypeClass_INTERFACE, sTypeName ); // leaked }
QString Xsd::ConvertTypeToXSD( const QString &sType, bool bCustomType ) { if (bCustomType || sType.startsWith( "DTC::")) { QString sTypeName( sType ); sTypeName.remove( "DTC::" ); sTypeName.remove( QChar('*') ); if (sType == "QStringList" ) return "ArrayOfString"; return sTypeName; } if (sType == "QDateTime") return "dateTime"; if (sType == "QDate") return "date"; if (sType == "QTime") return "time"; if (sType == "bool") return "boolean"; if (sType == "uint") return "unsignedInt"; if (sType == "qlonglong" ) return "long"; if (sType == "long long" ) return "long"; if (sType == "QFileInfo" ) return "string"; // temp solution if (sType.at(0) == 'Q') return sType.mid( 1 ).toLower(); return sType.toLower(); }
::com::sun::star::uno::Type * operator()() const { ::rtl::OUString sTypeName( "com.sun.star.accessibility.XAccessibleMultiLineText" ); // // Start inline typedescription generation // typelib_InterfaceTypeDescription * pTD = 0; // typelib_TypeDescriptionReference * aSuperTypes[1]; // aSuperTypes[0] = ::cppu::UnoType< ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleText > >::get().getTypeLibType(); // typelib_TypeDescriptionReference * pMembers[4] = { 0,0,0,0 }; // ::rtl::OUString sMethodName0( "com.sun.star.accessibility.XAccessibleMultiLineText::getLineNumberAtIndex" ); // typelib_typedescriptionreference_new( &pMembers[0], // (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD, // sMethodName0.pData ); // ::rtl::OUString sMethodName1( "com.sun.star.accessibility.XAccessibleMultiLineText::getTextAtLineNumber" ); // typelib_typedescriptionreference_new( &pMembers[1], // (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD, // sMethodName1.pData ); // ::rtl::OUString sMethodName2( "com.sun.star.accessibility.XAccessibleMultiLineText::getTextAtLineWithCaret" ); // typelib_typedescriptionreference_new( &pMembers[2], // (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD, // sMethodName2.pData ); // ::rtl::OUString sMethodName3( "com.sun.star.accessibility.XAccessibleMultiLineText::getNumberOfLineWithCaret" ); // typelib_typedescriptionreference_new( &pMembers[3], // (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD, // sMethodName3.pData ); // typelib_typedescription_newMIInterface( // &pTD, // sTypeName.pData, 0, 0, 0, 0, 0, // 1, aSuperTypes, // 4, // pMembers ); // typelib_typedescription_register( (typelib_TypeDescription**)&pTD ); // typelib_typedescriptionreference_release( pMembers[0] ); // typelib_typedescriptionreference_release( pMembers[1] ); // typelib_typedescriptionreference_release( pMembers[2] ); // typelib_typedescriptionreference_release( pMembers[3] ); // typelib_typedescription_release( (typelib_TypeDescription*)pTD ); return new ::com::sun::star::uno::Type( ::com::sun::star::uno::TypeClass_INTERFACE, sTypeName ); // leaked }
QString Wsdl::ConvertTypeToXSD( const QString &sType, bool bCustomType ) { if (bCustomType || sType.startsWith( "DTC::")) { QString sTypeName( sType ); sTypeName.remove( "DTC::" ); sTypeName.remove( QChar('*') ); return sTypeName; } if (sType == "QDateTime") return "xs:dateTime"; if (sType == "bool") return "xs:boolean"; if (sType.at(0) == 'Q') return "xs:" + sType.mid( 1 ).toLower(); return "xs:" + sType.toLower(); }
::com::sun::star::uno::Type * operator()() const { ::rtl::OUString sTypeName( "com.sun.star.accessibility.XAccessibleTable" ); // // Start inline typedescription generation // typelib_InterfaceTypeDescription * pTD = 0; // typelib_TypeDescriptionReference * aSuperTypes[1]; // aSuperTypes[0] = ::cppu::UnoType< ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > >::get().getTypeLibType(); // typelib_TypeDescriptionReference * pMembers[19] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }; // ::rtl::OUString sMethodName0( "com.sun.star.accessibility.XAccessibleTable::getAccessibleRowCount" ); // typelib_typedescriptionreference_new( &pMembers[0], // (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD, // sMethodName0.pData ); // ::rtl::OUString sMethodName1( "com.sun.star.accessibility.XAccessibleTable::getAccessibleColumnCount" ); // typelib_typedescriptionreference_new( &pMembers[1], // (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD, // sMethodName1.pData ); // ::rtl::OUString sMethodName2( "com.sun.star.accessibility.XAccessibleTable::getAccessibleRowDescription" ); // typelib_typedescriptionreference_new( &pMembers[2], // (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD, // sMethodName2.pData ); // ::rtl::OUString sMethodName3( "com.sun.star.accessibility.XAccessibleTable::getAccessibleColumnDescription" ); // typelib_typedescriptionreference_new( &pMembers[3], // (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD, // sMethodName3.pData ); // ::rtl::OUString sMethodName4( "com.sun.star.accessibility.XAccessibleTable::getAccessibleRowExtentAt" ); // typelib_typedescriptionreference_new( &pMembers[4], // (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD, // sMethodName4.pData ); // ::rtl::OUString sMethodName5( "com.sun.star.accessibility.XAccessibleTable::getAccessibleColumnExtentAt" ); // typelib_typedescriptionreference_new( &pMembers[5], // (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD, // sMethodName5.pData ); // ::rtl::OUString sMethodName6( "com.sun.star.accessibility.XAccessibleTable::getAccessibleRowHeaders" ); // typelib_typedescriptionreference_new( &pMembers[6], // (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD, // sMethodName6.pData ); // ::rtl::OUString sMethodName7( "com.sun.star.accessibility.XAccessibleTable::getAccessibleColumnHeaders" ); // typelib_typedescriptionreference_new( &pMembers[7], // (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD, // sMethodName7.pData ); // ::rtl::OUString sMethodName8( "com.sun.star.accessibility.XAccessibleTable::getSelectedAccessibleRows" ); // typelib_typedescriptionreference_new( &pMembers[8], // (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD, // sMethodName8.pData ); // ::rtl::OUString sMethodName9( "com.sun.star.accessibility.XAccessibleTable::getSelectedAccessibleColumns" ); // typelib_typedescriptionreference_new( &pMembers[9], // (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD, // sMethodName9.pData ); // ::rtl::OUString sMethodName10( "com.sun.star.accessibility.XAccessibleTable::isAccessibleRowSelected" ); // typelib_typedescriptionreference_new( &pMembers[10], // (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD, // sMethodName10.pData ); // ::rtl::OUString sMethodName11( "com.sun.star.accessibility.XAccessibleTable::isAccessibleColumnSelected" ); // typelib_typedescriptionreference_new( &pMembers[11], // (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD, // sMethodName11.pData ); // ::rtl::OUString sMethodName12( "com.sun.star.accessibility.XAccessibleTable::getAccessibleCellAt" ); // typelib_typedescriptionreference_new( &pMembers[12], // (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD, // sMethodName12.pData ); // ::rtl::OUString sMethodName13( "com.sun.star.accessibility.XAccessibleTable::getAccessibleCaption" ); // typelib_typedescriptionreference_new( &pMembers[13], // (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD, // sMethodName13.pData ); // ::rtl::OUString sMethodName14( "com.sun.star.accessibility.XAccessibleTable::getAccessibleSummary" ); // typelib_typedescriptionreference_new( &pMembers[14], // (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD, // sMethodName14.pData ); // ::rtl::OUString sMethodName15( "com.sun.star.accessibility.XAccessibleTable::isAccessibleSelected" ); // typelib_typedescriptionreference_new( &pMembers[15], // (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD, // sMethodName15.pData ); // ::rtl::OUString sMethodName16( "com.sun.star.accessibility.XAccessibleTable::getAccessibleIndex" ); // typelib_typedescriptionreference_new( &pMembers[16], // (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD, // sMethodName16.pData ); // ::rtl::OUString sMethodName17( "com.sun.star.accessibility.XAccessibleTable::getAccessibleRow" ); // typelib_typedescriptionreference_new( &pMembers[17], // (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD, // sMethodName17.pData ); // ::rtl::OUString sMethodName18( "com.sun.star.accessibility.XAccessibleTable::getAccessibleColumn" ); // typelib_typedescriptionreference_new( &pMembers[18], // (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD, // sMethodName18.pData ); // typelib_typedescription_newMIInterface( // &pTD, // sTypeName.pData, 0, 0, 0, 0, 0, // 1, aSuperTypes, // 19, // pMembers ); // typelib_typedescription_register( (typelib_TypeDescription**)&pTD ); // typelib_typedescriptionreference_release( pMembers[0] ); // typelib_typedescriptionreference_release( pMembers[1] ); // typelib_typedescriptionreference_release( pMembers[2] ); // typelib_typedescriptionreference_release( pMembers[3] ); // typelib_typedescriptionreference_release( pMembers[4] ); // typelib_typedescriptionreference_release( pMembers[5] ); // typelib_typedescriptionreference_release( pMembers[6] ); // typelib_typedescriptionreference_release( pMembers[7] ); // typelib_typedescriptionreference_release( pMembers[8] ); // typelib_typedescriptionreference_release( pMembers[9] ); // typelib_typedescriptionreference_release( pMembers[10] ); // typelib_typedescriptionreference_release( pMembers[11] ); // typelib_typedescriptionreference_release( pMembers[12] ); // typelib_typedescriptionreference_release( pMembers[13] ); // typelib_typedescriptionreference_release( pMembers[14] ); // typelib_typedescriptionreference_release( pMembers[15] ); // typelib_typedescriptionreference_release( pMembers[16] ); // typelib_typedescriptionreference_release( pMembers[17] ); // typelib_typedescriptionreference_release( pMembers[18] ); // typelib_typedescription_release( (typelib_TypeDescription*)pTD ); return new ::com::sun::star::uno::Type( ::com::sun::star::uno::TypeClass_INTERFACE, sTypeName ); // leaked }