Qt 4.8
|
#include "qimagewriter.h"
#include <qbytearray.h>
#include <qfile.h>
#include <qfileinfo.h>
#include <qimageiohandler.h>
#include <qset.h>
#include <qvariant.h>
#include <qcoreapplication.h>
#include <private/qfactoryloader_p.h>
#include <private/qbmphandler_p.h>
#include <private/qppmhandler_p.h>
#include <private/qxbmhandler_p.h>
#include <private/qxpmhandler_p.h>
#include <private/qpnghandler_p.h>
#include <private/qjpeghandler_p.h>
#include <private/qmnghandler_p.h>
#include <private/qtiffhandler_p.h>
Go to the source code of this file.
Classes | |
class | QImageWriterPrivate |
Functions | |
if (device &&format.isEmpty()) | |
if (suffixPluginIndex !=-1) | |
if (!handler &&!testFormat.isEmpty()) | |
if (!testFormat.isEmpty()) | |
if (!handler) return 0 | |
Q_GLOBAL_STATIC_WITH_ARGS (QFactoryLoader, loader,(QImageIOHandlerFactoryInterface_iid, QLatin1String("/imageformats"))) static QImageIOHandler *createWriteHandlerHelper(QIODevice *device | |
handler | setDevice (device) |
Variables | |
const QByteArray & | format |
QImageIOHandler * | handler = 0 |
QStringList | keys = l->keys() |
QFactoryLoader * | l = loader() |
QByteArray | suffix |
int | suffixPluginIndex = -1 |
QByteArray | testFormat = !form.isEmpty() ? form : suffix |
if | ( | device &&format. | isEmpty() | ) |
Definition at line 157 of file qimagewriter.cpp.
if | ( | suffixPluginIndex ! | = -1 | ) |
Definition at line 175 of file qimagewriter.cpp.
if | ( | !handler &&!testFormat. | isEmpty() | ) |
Definition at line 185 of file qimagewriter.cpp.
if | ( | !testFormat. | isEmpty() | ) |
Definition at line 230 of file qimagewriter.cpp.
if | ( | ! | handler | ) |
Definition at line 585 of file qcocoasharedwindowmethods_mac_p.h.
Q_GLOBAL_STATIC_WITH_ARGS | ( | QFactoryLoader | , |
loader | , | ||
(QImageIOHandlerFactoryInterface_iid, QLatin1String("/imageformats")) | |||
) |
handler setDevice | ( | device | ) |
Referenced by QGLOffscreen::QGLOffscreen(), and QtIcoHandler::QtIcoHandler().
const QByteArray& format |
Definition at line 145 of file qimagewriter.cpp.
return handler = 0 |
Definition at line 148 of file qimagewriter.cpp.
Referenced by QDeclarativePropertyChanges::actions(), QICOPlugin::create(), QJpegPlugin::create(), QGifPlugin::create(), createReadHandlerHelper(), createTextAreaNode(), QDeclarativePropertyChangesPrivate::decode(), QTextDocumentLayoutPrivate::drawFlow(), QAbstractTextDocumentLayout::drawInlineObject(), QAbstractTextDocumentLayout::handlerForObject(), if(), QImageReader::imageFormat(), QAccessible::installRootObjectHandler(), QAccessible::installUpdateHandler(), QSvgTinyDocument::load(), QWSServerPrivate::newMouseHandler(), QScriptDebuggerFrontend::notifyCommandFinished(), QWSServer::openKeyboard(), QWSServer::openMouse(), QDesktopServices::openUrl(), parseFont(), parsePen(), QTextDocumentLayout::positionInlineObject(), QTest::qExec(), QWSIntKbPrivate::readKeyboardData(), QTextDocumentLayout::resizeInlineObject(), QAbstractTextDocumentLayout::resizeInlineObject(), QGraphicsItem::sceneEvent(), QXmlSimpleReader::setContentHandler(), QXmlSimpleReader::setDeclHandler(), QXmlSimpleReader::setDTDHandler(), QXmlSimpleReader::setEntityResolver(), QXmlSimpleReader::setErrorHandler(), QXmlSimpleReader::setLexicalHandler(), QXmlSchemaValidator::setMessageHandler(), QXmlSchemaPrivate::setMessageHandler(), QPatternist::XsdSchemaContext::setMessageHandler(), and QXmlReader::~QXmlReader().
QStringList keys = l->keys() |
Definition at line 153 of file qimagewriter.cpp.
Referenced by QTextCodec::availableCodecs(), QScriptEngine::availableExtensions(), QTextCodec::availableMibs(), QWinSettingsPrivate::children(), QGLGlyphCache::cleanCache(), QGLGlyphCache::cleanupContext(), QTestEventList::clear(), QMacPasteboardMimeTiff::convertFromMime(), createForName(), createReadHandlerHelper(), QBBEngine::doRequestUpdate(), fetchWacomToolId(), QGLGlyphCache::fontEngineDestroyed(), QScanThread::getUserConfigurations(), QTextLine::glyphs(), init_platform(), QApplication::inputContext(), QHash< QExplicitlySharedDataPointer, QHash >::isSharedWith(), QMetaEnumBuilder::key(), QAccessibleMenuItem::keyBindings(), QProcessEnvironment::operator!=(), Q_GLOBAL_STATIC_WITH_ARGS(), qax_startServer(), qax_stopServer(), qAxFactory(), QClassFactory::QClassFactory(), QMetaEnum::QMetaEnum(), qt_init(), qtValue(), QWSLock::QWSLock(), QConfFileSettingsPrivate::readPlistFile(), QMacSettingsPrivate::remove(), QMetaEnumBuilder::removeKey(), QMap< int, QFrameInfo >::setInsertInOrder(), QCoreWlanEngine::startTime(), QImageReader::supportedImageFormats(), QMenuPrivate::QMacMenuPrivate::syncAction(), QImage::textLanguages(), QImage::textList(), QPatternist::XsdStateMachine< XsdSchemaToken::NodeName >::toDFA(), QMetaEnumBuilder::value(), QMetaEnum::valueToKeys(), QFactoryInterface::~QFactoryInterface(), QFSFileEngine::~QFSFileEngine(), QTestEvent::~QTestEvent(), and QWSLock::~QWSLock().
QFactoryLoader* l = loader() |
Definition at line 152 of file qimagewriter.cpp.
Referenced by QDateTimeEditPrivate::_q_editorCursorPositionChanged(), QHeaderViewPrivate::_q_sectionsRemoved(), _qdtoa(), QWSSoundServerProvider::add(), QLayout::addChildWidget(), QTessellatorPrivate::addEdges(), QBezier::addToPolygon(), QSystemTrayIconSys::addToTray(), QGridLayout::addWidget(), Graph< AnchorVertex, AnchorData >::adjacentVertices(), QTextCursorPrivate::adjustCursor(), QPatternist::NamePool::allocateBinding(), QPatternist::NamePool::allocateLocalName(), QPatternist::NamePool::allocateNamespace(), QPatternist::NamePool::allocatePrefix(), QPatternist::NamePool::allocateQName(), QJpUnicodeConv::asciiToUnicode(), QTextCodec::availableCodecs(), QAudioDeviceFactory::availableDevices(), QTextCodec::availableMibs(), QVector< QPoint >::back(), blend_color_generic(), blend_tiled_argb(), blend_tiled_generic(), blend_transformed_argb(), blend_transformed_tiled_argb(), blend_untransformed_generic(), blendTiled(), blendTransformed(), blendTransformedBilinear(), blendTransformedTiled(), bm_find(), bm_init_skiptable(), QLocalePrivate::bytearrayToLongLong(), QLocalePrivate::bytearrayToUnsLongLong(), QTextCodec::canEncode(), canonicalOrderHelper(), QPicturePrivate::checkFormat(), childKeysOrGroups(), QLayout::closestAcceptableSize(), QRect::contains(), QRectF::contains(), QWindowsMimeURI::convertFromMime(), createForName(), QTextLayout::createLine(), createReadHandlerHelper(), QLineControl::cursorRect(), QTextLine::cursorToX(), QOpenGLPaintEnginePrivate::curveToStencil(), QGIFFormat::decode(), QListData::detach_grow(), QAudioOutputPrivate::deviceReady(), QPatternist::NamePool::displayName(), QGIFFormat::disposePrevious(), do_size_hints(), QEventDispatcherUNIXPrivate::doSelect(), QTextLayout::draw(), QTextDocumentLayoutPrivate::drawBlock(), QMacStyle::drawControl(), QTextLayout::drawCursor(), QPainter::drawLine(), QOpenGLPaintEngine::drawLines(), QRasterPaintEngine::drawLines(), drawLines(), QX11PaintEngine::drawRects(), QMatrix::dy(), QTessellatorPrivate::edgeInChain(), QTriangulator< T >::ComplexToSimple::edgeIsLeftOfEdge(), QTriangulator< T >::SimpleToMonotone::edgeIsLeftOfEdge(), QBoxLayoutPrivate::effectiveMargins(), QGridLayoutPrivate::effectiveMargins(), QTextLayout::endLayout(), QPlainTextEditPrivate::ensureVisible(), QTestEventLoop::enterLoop(), QDir::entryInfoList(), QDir::entryList(), equal(), QVarLengthArray< QVariant, 9 >::erase(), QVector< QPoint >::erase(), escapedKey(), QWindowsStyle::eventFilter(), QDeclarativeBindingCompilerPrivate::exceptionId(), extractEncodingDecl(), QDeclarativeScriptParser::extractMetaData(), QDeclarativeScriptParser::extractPragmas(), QWSSoundServerPrivate::feedDevice(), QDeclarativeImportedNamespace::find(), QDateTimeParser::findDay(), QDateTimeParser::findMonth(), QResourceRoot::findNode(), QToolBarAreaLayoutInfo::fitLayout(), QFontInfo::fixedPitch(), QAudioOutputPrivate::freeBlocks(), QAudioInputPrivate::freeBlocks(), QFont::fromString(), getMacDateFormat(), getMacLocaleName(), getMacTimeFormat(), QDeclarativeParser::Property::getValue(), QFontSubset::glyphName(), good_offset(), handle_xdnd_position(), handle_xdnd_status(), handleSpans(), QGraphicsLayoutItemPrivate::hasHeightForWidth(), QIntersectionFinder::hasIntersections(), QGraphicsLayoutItemPrivate::hasWidthForHeight(), QTextDocumentLayout::hitTest(), QTextDocumentLayoutPrivate::hitTest(), QDeclarativeEnginePrivate::hsla(), QDeclarativeCompiledData::indexForLocation(), QByteArray::indexOf(), QIconModeViewBase::initBspTree(), QDirPrivate::initFileLists(), QDockWidget::initStyleOption(), jisx0201ToUnicode11(), jisx0208ToSjis(), QJpUnicodeConv::jisx0212ToUnicode(), jisx0212ToUnicode11(), QSQLiteDriverPlugin::keys(), QSQLite2DriverPlugin::keys(), QIBaseDriverPlugin::keys(), QPSQLDriverPlugin::keys(), QOCIDriverPlugin::keys(), QDB2DriverPlugin::keys(), QMYSQLDriverPlugin::keys(), QODBCDriverPlugin::keys(), QSymSQLDriverPlugin::keys(), QTDSDriverPlugin::keys(), QMetaEnum::keysToValue(), QString::lastIndexOf(), QStringRef::lastIndexOf(), QTextDocumentLayoutPrivate::layoutBlock(), QFontEngineXLFD::leading(), QFontEngineBox::leading(), QSortFilterProxyModel::lessThan(), lessThan(), QMetaType::load(), QFontEngineFT::loadGlyph(), mapToLowerCase(), QScanConverter::mergeCurve(), QToolBarAreaLayoutInfo::minimumSize(), QSplitter::minimumSizeHint(), QToolBarAreaLayoutInfo::moveToolBar(), QWindowsEnumerate::Next(), normalizedTimeval(), QLocalePrivate::numberToCLocale(), QPatternist::OperandsIterator::OperandsIterator(), QLinkedList< JSC::Identifier >::operator!=(), QList< QPostEvent >::operator!=(), QLinkedList< JSC::Identifier >::operator+(), QVector< QPoint >::operator+(), QList< QPostEvent >::operator+(), QList< QPostEvent >::operator+=(), QStandardItem::operator<(), QStringList::operator<<(), QLinkedList< JSC::Identifier >::operator<<(), operator<<(), QVector< QPoint >::operator<<(), QList< QPostEvent >::operator<<(), QImage::operator==(), operator>>(), QPlainTextEdit::paintEvent(), parse_locale_tag(), QHttpResponseHeader::parseLine(), QWorkspacePrivate::place(), QFontDatabase::pointSizes(), QTextHtmlImporter::processBlockNode(), QEventDispatcherUNIX::processEvents(), QTextHtmlImporter::processSpecialNodes(), QDeclarativeGridScaledImage::QDeclarativeGridScaledImage(), qFindByteArray(), qFindString(), qGetODBCVersion(), QJpUnicodeConv_JISX0221_ASCII::QJpUnicodeConv_JISX0221_ASCII(), QJpUnicodeConv_JISX0221_JISX0201::QJpUnicodeConv_JISX0221_JISX0201(), QJpUnicodeConv_Microsoft::QJpUnicodeConv_Microsoft(), QJpUnicodeConv_Sun::QJpUnicodeConv_Sun(), QJpUnicodeConv_Unicode_ASCII::QJpUnicodeConv_Unicode_ASCII(), QLineF::QLineF(), QList< QPostEvent >::QList(), qScanConvert(), qSplitTableQualifier(), qt_format_text(), qt_is_idn_enabled(), qt_mac_execute_apple_script(), qt_mac_menu_event(), qt_mac_removeMnemonics(), qt_section_chunk::qt_section_chunk(), qt_set_x11_resources(), QTest::qToInt(), QTransform::QTransform(), QUuid::QUuid(), QVariant::QVariant(), QXmlParseException::QXmlParseException(), QRasterPaintEnginePrivate::rasterizeLine_dashed(), QAudioInputPrivate::read(), QIODevicePrivateLinearBuffer::readAll(), QWinSettingsPrivate::readKey(), QStatusBar::reformat(), removeGroupSeparators(), QGraphicsLayoutPrivate::reparentChildItems(), QLayoutPrivate::reparentChildWidgets(), QAccessibleDisplay::role(), QZipReaderPrivate::scanFiles(), QDateTimeParser::sectionMaxSize(), QWSServerPrivate::sendQCopEvent(), QWinSettingsPrivate::set(), QLayout::setAlignment(), QLineF::setAngle(), QGraphicsWidget::setContentsMargins(), QWidget::setContentsMargins(), QDeclarativeDataBlob::setError(), QWidgetPrivate::setFont_helper(), QWidget::setLayout(), QGraphicsWidgetPrivate::setLayout_helper(), QDeclarativeDebugFileReference::setLineNumber(), QApplicationPrivate::setMaxWindowRect(), QWSQCopSendCommand::setMessage(), QXlibWindow::setMWMHints(), SetMWMHints(), QWSRegionNameCommand::setName(), QTableView::setSelection(), QApplication::setStartDragDistance(), QWidget::setTabOrder(), QXcbWindow::setWindowFlags(), QDial::setWrapping(), QTextEngine::shapeTextMac(), shift(), QSplitter::sizeHint(), QGraphicsProxyWidget::sizeHint(), QToolBarAreaLayoutInfo::sizeHint(), QFontDatabase::smoothSizes(), QDirPrivate::sortFileList(), SoundPlayProc(), QColor::spec(), QSettingsPrivate::splitArgs(), QAccessibleLineEdit::state(), QPatternist::NamePool::stringForLocalName(), QPatternist::NamePool::stringForNamespace(), QPatternist::NamePool::stringForPrefix(), QSettingsPrivate::stringListToVariantList(), QOpenGLPaintEnginePrivate::strokePathFastPen(), QFontDatabase::styles(), QImageReader::supportedImageFormats(), QLinkedList< JSC::Identifier >::swap(), QBoxLayout::takeAt(), QFormLayout::takeAt(), QGridLayoutPrivate::takeAt(), QWidget::takeLayout(), QAccessibleDisplay::text(), timerSourcePrepareHelper(), QByteArray::toBase64(), QPatternist::NamePool::toClarkName(), QPatternist::NamePool::toLexical(), QApplication::topLevelAt(), QColor::toRgb(), QFontEngineXLFD::toUnicode(), QByteArray::trimmed(), QString::trimmed(), trimRef(), QTextUndoCommand::tryMerge(), QWSSoundServerClient::tryReadCommand(), ucstrcmp(), unicode11ToJisx0201(), unicode11ToJisx0208(), unicode11ToJisx0212(), QJpUnicodeConv::unicodeToAscii(), QGL2PaintEngineExPrivate::updateBrushUniforms(), QNetworkConfigurationManagerPrivate::updateConfigurations(), QLineControl::updateDisplayText(), QOpenGLPaintEnginePrivate::updateGradient(), QX11Data::xdndHandleDrop(), QX11Data::xdndHandleEnter(), QX11Data::xdndHandleFinished(), QX11Data::xdndHandleLeave(), xic_draw_callback(), QPatternist::yyparse(), and QLayout::~QLayout().
QByteArray suffix |
Definition at line 147 of file qimagewriter.cpp.
Referenced by QFileDialogPrivate::_q_createDirectory(), QPrintPreviewDialogPrivate::_q_print(), QUnixPrintWidgetPrivate::_q_printerChanged(), QFileDialogPrivate::_q_useNameFilter(), QIcon::addFile(), comify(), createReadHandlerHelper(), find_translation(), QBenchmarkValgrindUtils::getNewestFileName(), if(), QLibrary::isLibrary(), QTranslator::load(), QLibraryPrivate::load_sys(), QFileInfo::operator!=(), QFactoryLoader::QFactoryLoader(), QPageSetupWidget::QPageSetupWidget(), QDeclarativeImportDatabase::resolvePlugin(), QFileDialog::setDefaultSuffix(), QFileInfo::symLinkTarget(), QPageSetupWidget::unitChanged(), and QTextDocumentWriter::write().
int suffixPluginIndex = -1 |
Definition at line 154 of file qimagewriter.cpp.
Referenced by createReadHandlerHelper().
QByteArray testFormat = !form.isEmpty() ? form : suffix |
Definition at line 172 of file qimagewriter.cpp.
Referenced by createReadHandlerHelper().