Changeset 846 for trunk/src/activeqt
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/activeqt/container/container.pro
r561 r846 20 20 LIBS += -lole32 -loleaut32 21 21 !wince*:LIBS += -luser32 -lgdi32 -ladvapi32 22 win32-g++ :LIBS += -luuid22 win32-g++*:LIBS += -luuid 23 23 24 24 HEADERS = ../control/qaxaggregated.h \ -
trunk/src/activeqt/container/qaxbase.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 1354 1354 1355 1355 // There seams to be a naming problem in mingw headers 1356 #ifdef Q_CC_GNU 1357 #ifndef COAUTHIDENTITY 1356 #if defined(Q_CC_GNU) && !defined(COAUTHIDENTITY) && !defined(__MINGW64_VERSION_MAJOR) 1358 1357 #define COAUTHIDENTITY AUTH_IDENTITY 1359 #endif1360 1358 #endif 1361 1359 … … 1674 1672 switch(vartype) { 1675 1673 case QVariant::Invalid: 1674 case QVariant::UserType: 1676 1675 if (prop.type == "QVariant") { 1677 1676 prop.typeId |= 0xff << 24; 1678 1677 break; 1679 1678 } 1680 // fall through1681 case QVariant::UserType:1682 1679 if (QMetaType::type(prop.type) == -1) 1683 1680 qWarning("QAxBase: Unsupported property type: %s", prop.type.data()); … … 2544 2541 } 2545 2542 if (funcdesc->invkind == INVOKE_PROPERTYPUT) { 2543 // remove the typename guessed for property setters 2544 // its done only for setter's with more than one parameter. 2545 if (funcdesc->cParams - funcdesc->cParamsOpt > 1) { 2546 type.clear(); 2547 } 2546 2548 QByteArray set; 2547 2549 if (isupper(prototype.at(0))) { -
trunk/src/activeqt/container/qaxbase.h
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/activeqt/container/qaxdump.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/activeqt/container/qaxobject.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/activeqt/container/qaxobject.h
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/activeqt/container/qaxscript.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/activeqt/container/qaxscript.h
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/activeqt/container/qaxscriptwrapper.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/activeqt/container/qaxselect.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/activeqt/container/qaxselect.h
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/activeqt/container/qaxselect.ui
r651 r846 3 3 <comment>********************************************************************* 4 4 ** 5 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).5 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 6 6 ** All rights reserved. 7 7 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/activeqt/container/qaxwidget.cpp
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 78 78 79 79 // missing interface from win32api 80 #if defined(Q_CC_GNU) 81 # if !defined(IOleInPlaceObjectWindowless) 82 # undef INTERFACE 83 # define INTERFACE IOleInPlaceObjectWindowless 84 DECLARE_INTERFACE_(IOleInPlaceObjectWindowless,IOleInPlaceObject) 85 { 86 STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE; 87 STDMETHOD_(ULONG,AddRef)(THIS) PURE; 88 STDMETHOD_(ULONG,Release)(THIS) PURE; 89 STDMETHOD(GetWindow)(THIS_ HWND*) PURE; 90 STDMETHOD(ContextSensitiveHelp)(THIS_ BOOL) PURE; 91 STDMETHOD(InPlaceDeactivate)(THIS) PURE; 92 STDMETHOD(UIDeactivate)(THIS) PURE; 93 STDMETHOD(SetObjectRects)(THIS_ LPCRECT,LPCRECT) PURE; 94 STDMETHOD(ReactivateAndUndo)(THIS) PURE; 95 STDMETHOD(OnWindowMessage)(THIS_ UINT, WPARAM, LPARAM, LRESULT*) PURE; 96 STDMETHOD(GetDropTarget)(THIS_ IDropTarget**) PURE; 97 }; 98 # endif 80 #if defined(Q_CC_GNU) && !defined(__MINGW64_VERSION_MAJOR) 81 DECLARE_INTERFACE_(IOleInPlaceObjectWindowless,IOleInPlaceObject) 82 { 83 STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE; 84 STDMETHOD_(ULONG,AddRef)(THIS) PURE; 85 STDMETHOD_(ULONG,Release)(THIS) PURE; 86 STDMETHOD(GetWindow)(THIS_ HWND*) PURE; 87 STDMETHOD(ContextSensitiveHelp)(THIS_ BOOL) PURE; 88 STDMETHOD(InPlaceDeactivate)(THIS) PURE; 89 STDMETHOD(UIDeactivate)(THIS) PURE; 90 STDMETHOD(SetObjectRects)(THIS_ LPCRECT,LPCRECT) PURE; 91 STDMETHOD(ReactivateAndUndo)(THIS) PURE; 92 STDMETHOD(OnWindowMessage)(THIS_ UINT, WPARAM, LPARAM, LRESULT*) PURE; 93 STDMETHOD(GetDropTarget)(THIS_ IDropTarget**) PURE; 94 }; 99 95 #endif 100 96 … … 1013 1009 } 1014 1010 // ActiveQt based in-processes-servers will handle the event properly, so 1015 // we don t need to send this key event to the host.1011 // we don't need to send this key event to the host. 1016 1012 return S_OK; 1017 1013 } -
trunk/src/activeqt/container/qaxwidget.h
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/activeqt/control/control.pro
r561 r846 16 16 17 17 CONFIG += qt warn_off staticlib 18 QTDIR_build:DESTDIR = $$QT_BUILD_TREE\ lib18 QTDIR_build:DESTDIR = $$QT_BUILD_TREE\\lib 19 19 20 20 DEFINES += QAX_SERVER 21 win32-g++ :DEFINES += QT_NEEDS_QMAIN21 win32-g++*:DEFINES += QT_NEEDS_QMAIN 22 22 win32-borland:DEFINES += QT_NEEDS_QMAIN 23 23 24 24 LIBS += -luser32 -lole32 -loleaut32 -lgdi32 25 win32-g++ :LIBS += -luuid25 win32-g++*:LIBS += -luuid 26 26 27 27 HEADERS = qaxaggregated.h \ -
trunk/src/activeqt/control/qaxaggregated.h
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/activeqt/control/qaxbindable.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 255 255 be destroyed by the ActiveQt framework at any time. 256 256 257 \sa QAxBindable, QAxFactory, { ActiveQt Framework}257 \sa QAxBindable, QAxFactory, {Qt's ActiveX Framework (ActiveQt)} 258 258 */ 259 259 -
trunk/src/activeqt/control/qaxbindable.h
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/activeqt/control/qaxfactory.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/activeqt/control/qaxfactory.h
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/activeqt/control/qaxmain.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/activeqt/control/qaxserver.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/activeqt/control/qaxserverbase.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 161 161 void removeMenu(); 162 162 163 static LRESULT CALLBACK ActiveXProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);163 static LRESULT QT_WIN_CALLBACK ActiveXProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam); 164 164 165 165 // Object registration with OLE … … 765 765 766 766 // callback for DLL server to hook into non-Qt eventloop 767 LRESULT CALLBACK axs_FilterProc(int nCode, WPARAM wParam, LPARAM lParam)767 LRESULT QT_WIN_CALLBACK axs_FilterProc(int nCode, WPARAM wParam, LPARAM lParam) 768 768 { 769 769 if (qApp && !invokeCount) … … 1351 1351 The semantics of \a wParam and \a lParam depend on the value of \a uMsg. 1352 1352 */ 1353 LRESULT CALLBACK QAxServerBase::ActiveXProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)1353 LRESULT QT_WIN_CALLBACK QAxServerBase::ActiveXProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) 1354 1354 { 1355 1355 if (uMsg == WM_CREATE) { … … 1537 1537 EnterCriticalSection(&createWindowSection); 1538 1538 QString cn(QLatin1String("QAxControl")); 1539 cn += QString::number(( int)ActiveXProc);1539 cn += QString::number((quintptr)ActiveXProc); 1540 1540 if (!atom) { 1541 1541 WNDCLASS wcTemp; … … 1600 1600 if (flags & MF_POPUP) { 1601 1601 itemId = static_cast<ushort>( 1602 reinterpret_cast< ulong>(createPopup(action->menu()))1602 reinterpret_cast<quintptr>(createPopup(action->menu())) 1603 1603 ); 1604 1604 } else { 1605 itemId = static_cast<ushort>(reinterpret_cast< ulong>(action));1605 itemId = static_cast<ushort>(reinterpret_cast<quintptr>(action)); 1606 1606 actionMap.remove(itemId); 1607 1607 actionMap.insert(itemId, action); … … 1647 1647 if (flags & MF_POPUP) { 1648 1648 itemId = static_cast<ushort>( 1649 reinterpret_cast< ulong>(createPopup(action->menu()))1649 reinterpret_cast<quintptr>(createPopup(action->menu())) 1650 1650 ); 1651 1651 } else { 1652 itemId = static_cast<ushort>(reinterpret_cast< ulong>(action));1652 itemId = static_cast<ushort>(reinterpret_cast<quintptr>(action)); 1653 1653 actionMap.insert(itemId, action); 1654 1654 } … … 2731 2731 ULONG read; 2732 2732 pStm->Read(qtarray.data(), stat.cbSize.LowPart, &read); 2733 } else if (hres == E_NOTIMPL) { 2734 ULONG read = 0; 2735 while (hres != S_FALSE) { 2736 QByteArray arrayRead; 2737 arrayRead.resize(4098); 2738 hres = pStm->Read(arrayRead.data(), arrayRead.size(), &read); 2739 if (hres != S_OK && hres != S_FALSE) { 2740 qtarray.resize(0); 2741 break; 2742 } else if (read == 0) 2743 break; 2744 qtarray.append(arrayRead); 2745 } 2733 2746 } 2734 2747 const QMetaObject *mo = qt.object->metaObject(); -
trunk/src/activeqt/control/qaxserverdll.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/activeqt/control/qaxservermain.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/activeqt/shared/qaxtypes.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 53 53 #ifdef QAX_SERVER 54 54 # include <qaxfactory.h> 55 # include < qlibrary.h>55 # include <private/qsystemlibrary_p.h> 56 56 #else 57 57 # include <quuid.h> … … 548 548 bool is2D = false; 549 549 // If the first element in the array is a list the whole list is 550 // treated as a 2D array. The colum count is taken from the 1st element.550 // treated as a 2D array. The column count is taken from the 1st element. 551 551 if (count) { 552 552 QVariantList col = list.at(0).toList(); … … 667 667 if (!resolved) { 668 668 resolved = true; 669 pGetRecordInfoFromTypeInfo = (PGetRecordInfoFromTypeInfo)Q Library::resolve(QLatin1String("oleaut32"),669 pGetRecordInfoFromTypeInfo = (PGetRecordInfoFromTypeInfo)QSystemLibrary::resolve(QLatin1String("oleaut32"), 670 670 "GetRecordInfoFromTypeInfo"); 671 671 } … … 1377 1377 1378 1378 QVariant::Type proptype = (QVariant::Type)type; 1379 if (proptype == QVariant::Invalid && !typeName.isEmpty()) 1380 proptype = QVariant::nameToType(typeName); 1379 if (proptype == QVariant::Invalid && !typeName.isEmpty()) { 1380 if (typeName != "QVariant") 1381 proptype = QVariant::nameToType(typeName); 1382 } 1381 1383 if (proptype != QVariant::LastType && proptype != QVariant::Invalid && var.type() != proptype) { 1382 1384 if (var.canConvert(proptype)) { -
trunk/src/activeqt/shared/qaxtypes.h
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com)
Note:
See TracChangeset
for help on using the changeset viewer.