44 #if !defined(_WINDOWS_) && !defined(_WINDOWS_H) && !defined(__WINDOWS__) 45 #error Must include windows.h first! 48 #include <QtGui/qcolor.h> 49 #include <QtGui/qfont.h> 50 #include <QtCore/qdatetime.h> 51 #include <QtCore/qvariant.h> 59 #ifndef QT_NO_WIN_ACTIVEQT 71 #define HIMETRIC_PER_INCH 2540 72 #define MAP_PIX_TO_LOGHIM(x,ppli) ((HIMETRIC_PER_INCH*(x) + ((ppli)>>1)) / (ppli)) 73 #define MAP_LOGHIM_TO_PIX(x,ppli) (((ppli)*(x) + HIMETRIC_PER_INCH/2) / HIMETRIC_PER_INCH) 74 #define QAX_NUM_PARAMS 8 78 return SysAllocStringLen((OLECHAR*)str.
unicode(), str.
length());
93 #define QAX_INPROC_SERVER (0x51540001) 94 #define QAX_OUTPROC_SERVER (0x51540002) 97 #endif // QT_NO_WIN_ACTIVEQT The QVariant class acts like a union for the most common Qt data types.
The QColor class provides colors based on RGB, HSV or CMYK values.
#define QT_END_NAMESPACE
This macro expands to.
QVariant VARIANTToQVariant(const VARIANT &arg, const QByteArray &typeName, uint type=0)
Returns arg as a QVariant of type type.
The QByteArray class provides an array of bytes.
int length() const
Returns the number of characters in this string.
virtual void emitPropertyChanged(const char *)=0
virtual bool emitRequestPropertyChange(const char *)=0
ushort red
Returns the red color component of this color.
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
QColor OLEColorToQColor(uint col)
#define QT_BEGIN_NAMESPACE
This macro expands to.
Q_GUI_EXPORT_INLINE QRgb qRgba(int r, int g, int b, int a)
const QChar * unicode() const
Returns a '\0'-terminated Unicode representation of the string.
void clearVARIANT(VARIANT *var)
virtual QObject * qObject() const =0
static const char * data(const QByteArray &arr)
static uint QColorToOLEColor(const QColor &col)
bool QVariantToVARIANT(const QVariant &var, VARIANT &arg, const QByteArray &typeName=0, bool out=false)
ushort blue
Returns the blue color component of this color.
static BSTR QStringToBSTR(const QString &str)
bool QVariantToVoidStar(const QVariant &var, void *data, const QByteArray &typeName, uint type=0)
Copies the data in var into data.
virtual IUnknown * clientSite() const =0
ushort green
Returns the green color component of this color.
virtual void reportError(int code, const QString &src, const QString &desc, const QString &context)=0