Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QWindowsMimeHtml Class Reference
Inheritance diagram for QWindowsMimeHtml:
Collaboration diagram for QWindowsMimeHtml:

Public Member Functions

 QWindowsMimeHtml ()
bool canConvertFromMime (const FORMATETC &formatetc, const QMimeData *mimeData) const override
 Returns true if the converter can convert from the mimeData to the format specified in formatetc.
bool convertFromMime (const FORMATETC &formatetc, const QMimeData *mimeData, STGMEDIUM *pmedium) const override
 Convert the mimeData to the format specified in formatetc.
QList< FORMATETCformatsForMime (const QString &mimeType, const QMimeData *mimeData) const override
 Returns a QList of FORMATETC structures representing the different windows clipboard formats that can be provided for the mimeType from the mimeData.
bool canConvertToMime (const QString &mimeType, IDataObject *pDataObj) const override
 Returns true if the converter can convert to the mimeType from the available formats in pDataObj.
QVariant convertToMime (const QString &mime, IDataObject *pDataObj, QMetaType preferredType) const override
 Returns a QVariant containing the converted data for mimeType from pDataObj.
QString mimeForFormat (const FORMATETC &formatetc) const override
 Returns the mime type that will be created form the format specified in formatetc, or an empty string if this converter does not support formatetc.
 QWindowsMimeHtml ()
bool canConvertFromMime (const FORMATETC &formatetc, const QMimeData *mimeData) const override
 Returns true if the converter can convert from the mimeData to the format specified in formatetc.
bool convertFromMime (const FORMATETC &formatetc, const QMimeData *mimeData, STGMEDIUM *pmedium) const override
 Convert the mimeData to the format specified in formatetc.
QList< FORMATETCformatsForMime (const QString &mimeType, const QMimeData *mimeData) const override
 Returns a QList of FORMATETC structures representing the different windows clipboard formats that can be provided for the mimeType from the mimeData.
bool canConvertToMime (const QString &mimeType, IDataObject *pDataObj) const override
 Returns true if the converter can convert to the mimeType from the available formats in pDataObj.
QVariant convertToMime (const QString &mime, IDataObject *pDataObj, QMetaType preferredType) const override
 Returns a QVariant containing the converted data for mimeType from pDataObj.
QString mimeForFormat (const FORMATETC &formatetc) const override
 Returns the mime type that will be created form the format specified in formatetc, or an empty string if this converter does not support formatetc.
Public Member Functions inherited from QWindowsMimeConverter
 QWindowsMimeConverter ()
 Constructs a QWindowsMimeConverter instance.
virtual ~QWindowsMimeConverter ()
 Constructs a QWindowsMimeConverter instance.

Additional Inherited Members

Static Public Member Functions inherited from QWindowsMimeConverter
static int registerMimeType (const QString &mimeType)
 Registers the MIME type mimeType, and returns an ID number identifying the format on Windows.

Detailed Description

Definition at line 659 of file qwindowsmimeregistry.cpp.

Constructor & Destructor Documentation

◆ QWindowsMimeHtml() [1/2]

QWindowsMimeHtml::QWindowsMimeHtml ( )

Definition at line 678 of file qwindowsmimeregistry.cpp.

◆ QWindowsMimeHtml() [2/2]

QWindowsMimeHtml::QWindowsMimeHtml ( )

Member Function Documentation

◆ canConvertFromMime() [1/2]

bool QWindowsMimeHtml::canConvertFromMime ( const FORMATETC & formatetc,
const QMimeData * mimeData ) const
overridevirtual

Returns true if the converter can convert from the mimeData to the format specified in formatetc.

All subclasses must reimplement this pure virtual function.

Implements QWindowsMimeConverter.

Definition at line 704 of file qwindowsmimeregistry.cpp.

◆ canConvertFromMime() [2/2]

bool QWindowsMimeHtml::canConvertFromMime ( const FORMATETC & formatetc,
const QMimeData * mimeData ) const
overridevirtual

Returns true if the converter can convert from the mimeData to the format specified in formatetc.

All subclasses must reimplement this pure virtual function.

Implements QWindowsMimeConverter.

◆ canConvertToMime() [1/2]

bool QWindowsMimeHtml::canConvertToMime ( const QString & mimeType,
IDataObject * pDataObj ) const
overridevirtual

Returns true if the converter can convert to the mimeType from the available formats in pDataObj.

All subclasses must reimplement this pure virtual function.

Implements QWindowsMimeConverter.

Definition at line 698 of file qwindowsmimeregistry.cpp.

◆ canConvertToMime() [2/2]

bool QWindowsMimeHtml::canConvertToMime ( const QString & mimeType,
IDataObject * pDataObj ) const
overridevirtual

Returns true if the converter can convert to the mimeType from the available formats in pDataObj.

All subclasses must reimplement this pure virtual function.

Implements QWindowsMimeConverter.

◆ convertFromMime() [1/2]

bool QWindowsMimeHtml::convertFromMime ( const FORMATETC & formatetc,
const QMimeData * mimeData,
STGMEDIUM * pmedium ) const
overridevirtual

Convert the mimeData to the format specified in formatetc.

The converted data should then be placed in pmedium structure.

Return true if the conversion was successful.

All subclasses must reimplement this pure virtual function.

Implements QWindowsMimeConverter.

Definition at line 760 of file qwindowsmimeregistry.cpp.

◆ convertFromMime() [2/2]

bool QWindowsMimeHtml::convertFromMime ( const FORMATETC & formatetc,
const QMimeData * mimeData,
STGMEDIUM * pmedium ) const
overridevirtual

Convert the mimeData to the format specified in formatetc.

The converted data should then be placed in pmedium structure.

Return true if the conversion was successful.

All subclasses must reimplement this pure virtual function.

Implements QWindowsMimeConverter.

◆ convertToMime() [1/2]

QVariant QWindowsMimeHtml::convertToMime ( const QString & mimeType,
IDataObject * pDataObj,
QMetaType preferredType ) const
overridevirtual

Returns a QVariant containing the converted data for mimeType from pDataObj.

If possible the QVariant should be of the preferredType to avoid needless conversions.

All subclasses must reimplement this pure virtual function.

Implements QWindowsMimeConverter.

Definition at line 721 of file qwindowsmimeregistry.cpp.

◆ convertToMime() [2/2]

QVariant QWindowsMimeHtml::convertToMime ( const QString & mimeType,
IDataObject * pDataObj,
QMetaType preferredType ) const
overridevirtual

Returns a QVariant containing the converted data for mimeType from pDataObj.

If possible the QVariant should be of the preferredType to avoid needless conversions.

All subclasses must reimplement this pure virtual function.

Implements QWindowsMimeConverter.

◆ formatsForMime() [1/2]

QList< FORMATETC > QWindowsMimeHtml::formatsForMime ( const QString & mimeType,
const QMimeData * mimeData ) const
overridevirtual

Returns a QList of FORMATETC structures representing the different windows clipboard formats that can be provided for the mimeType from the mimeData.

All subclasses must reimplement this pure virtual function.

Implements QWindowsMimeConverter.

Definition at line 683 of file qwindowsmimeregistry.cpp.

◆ formatsForMime() [2/2]

QList< FORMATETC > QWindowsMimeHtml::formatsForMime ( const QString & mimeType,
const QMimeData * mimeData ) const
overridevirtual

Returns a QList of FORMATETC structures representing the different windows clipboard formats that can be provided for the mimeType from the mimeData.

All subclasses must reimplement this pure virtual function.

Implements QWindowsMimeConverter.

◆ mimeForFormat() [1/2]

QString QWindowsMimeHtml::mimeForFormat ( const FORMATETC & formatetc) const
overridevirtual

Returns the mime type that will be created form the format specified in formatetc, or an empty string if this converter does not support formatetc.

All subclasses must reimplement this pure virtual function.

Implements QWindowsMimeConverter.

Definition at line 691 of file qwindowsmimeregistry.cpp.

◆ mimeForFormat() [2/2]

QString QWindowsMimeHtml::mimeForFormat ( const FORMATETC & formatetc) const
overridevirtual

Returns the mime type that will be created form the format specified in formatetc, or an empty string if this converter does not support formatetc.

All subclasses must reimplement this pure virtual function.

Implements QWindowsMimeConverter.


The documentation for this class was generated from the following file: