#include <ie_impGraphic.h>
virtual IE_ImpGraphic::~IE_ImpGraphic | ( | ) | [inline, virtual] |
UT_Error IE_ImpGraphic::constructImporter | ( | const UT_ConstByteBufPtr & | bytes, | |
IEGraphicFileType | ft, | |||
IE_ImpGraphic ** | ppieg | |||
) | [static] |
References IE_ImpGraphicSniffer::constructImporter(), fileTypeForContents(), IE_IMP_GraphicSniffers, IEGFT_Unknown, s, IE_ImpGraphicSniffer::supportsType(), UT_ERROR, and UT_return_val_if_fail.
Referenced by XAP_Win32FrameImpl::_FrameWndProc(), AP_Win32App::_pasteFormatFromClipboard(), constructImporter(), IE_Imp_MHT::importImage(), loadGraphic(), and AP_CocoaApp::pasteFromClipboard().
UT_Error IE_ImpGraphic::constructImporter | ( | GsfInput * | input, | |
IEGraphicFileType | ft, | |||
IE_ImpGraphic ** | ppieg | |||
) | [static] |
References IE_SuffixConfidence::confidence, CONFIDENCE_THRESHOLD, IE_ImpGraphicSniffer::constructImporter(), IE_ImpGraphicSniffer::getSuffixConfidence(), IE_IMP_GraphicSniffers, IEGFT_Unknown, IE_ImpGraphicSniffer::recognizeContents(), s, s_condfidence_heuristic(), IE_SuffixConfidence::suffix, IE_ImpGraphicSniffer::supportsType(), UT_ERROR, UT_IE_FILENOTFOUND, and UT_return_val_if_fail.
UT_Error IE_ImpGraphic::constructImporter | ( | const char * | szFilename, | |
IEGraphicFileType | ft, | |||
IE_ImpGraphic ** | ppieg | |||
) | [static] |
References constructImporter(), and UT_go_file_open().
UT_Error IE_ImpGraphic::constructImporterWithDescription | ( | const char * | szDesc, | |
IE_ImpGraphic ** | ppieg | |||
) | [static] |
bool IE_ImpGraphic::enumerateDlgLabels | ( | UT_uint32 | ndx, | |
const char ** | pszDesc, | |||
const char ** | pszSuffixList, | |||
IEGraphicFileType * | ft | |||
) | [static] |
IEGraphicFileType IE_ImpGraphic::fileTypeForContents | ( | const char * | szBuf, | |
UT_uint32 | iNumbytes | |||
) | [static] |
IEGraphicFileType IE_ImpGraphic::fileTypeForMimetype | ( | const char * | szMimetype | ) | [static] |
IEGraphicFileType IE_ImpGraphic::fileTypeForSuffix | ( | const char * | szSuffix | ) | [static] |
References IE_SuffixConfidence::confidence, getImporterCount(), IE_ImpGraphicSniffer::getSuffixConfidence(), IE_IMP_GraphicSniffers, IEGFT_Unknown, s, IE_SuffixConfidence::suffix, IE_ImpGraphicSniffer::supportsType(), and UT_CONFIDENCE_PERFECT.
Referenced by IE_Imp_WordPerfectGraphics::importGraphic().
UT_uint32 IE_ImpGraphic::getImporterCount | ( | void | ) | [static] |
const char * IE_ImpGraphic::getMimeTypeForSuffix | ( | const char * | suffix | ) | [static] |
Map mime type to a suffix. Returns NULL if not found.
References IE_ImpGraphicSniffer::getMimeConfidence(), IE_ImpGraphicSniffer::getSuffixConfidence(), IE_IMP_GraphicSniffers, IE_MimeConfidence::mimetype, and IE_SuffixConfidence::suffix.
Referenced by s_mapMimeToUriType().
const std::vector< std::string > & IE_ImpGraphic::getSupportedMimeClasses | ( | ) | [static] |
Get supported mime classes by builtin- and plugin-filters.
References IE_IMP_GraphicMimeClasses, IE_IMP_GraphicSniffers, IE_MIME_MATCH_CLASS, IE_MimeConfidence::match, and IE_MimeConfidence::mimetype.
const std::vector< std::string > & IE_ImpGraphic::getSupportedMimeTypes | ( | ) | [static] |
Get supported mimetypes by builtin- and plugin-filters.
References IE_IMP_GraphicMimeTypes, IE_IMP_GraphicSniffers, IE_MIME_MATCH_FULL, IE_MimeConfidence::match, and IE_MimeConfidence::mimetype.
Referenced by s_getDragInfo().
const std::vector< std::string > & IE_ImpGraphic::getSupportedSuffixes | ( | ) | [static] |
Get supported suffixes by builtin- and plugin-filters.
References IE_IMP_GraphicSniffers, IE_IMP_GraphicSuffixes, and IE_SuffixConfidence::suffix.
UT_Error IE_ImpGraphic::importGraphic | ( | const char * | szFilename, | |
FG_ConstGraphicPtr & | pfg | |||
) |
References importGraphic(), and UT_go_file_open().
UT_Error IE_ImpGraphic::importGraphic | ( | GsfInput * | input, | |
FG_ConstGraphicPtr & | pfg | |||
) | [virtual] |
Reimplemented in IE_Imp_WordPerfectGraphics.
References importGraphic(), UT_IE_FILENOTFOUND, and UT_return_val_if_fail.
UT_Error IE_ImpGraphic::importGraphic | ( | const UT_ConstByteBufPtr & | pBB, | |
FG_ConstGraphicPtr & | pfg | |||
) | [virtual] |
Reimplemented in IE_ImpGraphic_BMP, IE_RSVGBitmapGraphic, IE_ImpGraphic_WMF, IE_ImpGraphic_Cocoa, IE_ImpGraphic_GdkPixbuf, IE_ImpGraphic_Win32Native, IE_ImpGraphic_PNG, and IE_ImpGraphic_SVG.
References UT_IE_FILENOTFOUND, and UT_return_val_if_fail.
Referenced by XAP_Win32FrameImpl::_FrameWndProc(), IE_Imp_GraphicAsDocument::_loadFile(), AP_Win32App::_pasteFormatFromClipboard(), importGraphic(), IE_Imp_MHT::importImage(), loadGraphic(), and AP_CocoaApp::pasteFromClipboard().
UT_Error IE_ImpGraphic::loadGraphic | ( | GsfInput * | input, | |
IEGraphicFileType | iegft, | |||
FG_ConstGraphicPtr & | pfg | |||
) | [static] |
References constructImporter(), importGraphic(), UT_IE_FILENOTFOUND, UT_OK, and UT_return_val_if_fail.
UT_Error IE_ImpGraphic::loadGraphic | ( | const UT_ConstByteBufPtr & | pBB, | |
IEGraphicFileType | iegft, | |||
FG_ConstGraphicPtr & | pfg | |||
) | [static] |
References loadGraphic().
UT_Error IE_ImpGraphic::loadGraphic | ( | const char * | szFilename, | |
IEGraphicFileType | iegft, | |||
FG_ConstGraphicPtr & | pfg | |||
) | [static] |
References UT_go_file_open().
Referenced by IE_Imp_MsWord_97::_handleImage(), IE_Imp_MsWord_97::_handlePositionedImage(), OpenWriter_ContentStream_Listener::_insertImage(), IE_Imp_RTF::_parseFldinstBlock(), XAP_Win32Dialog_FileOpenSaveAs::_previewPicture(), abi_widget_insert_image(), AbiGimp_invoke(), OXMLi_ListenerState_Image::addImage(), ODi_Abi_Data::addImageDataItem(), AP_Dialog_FormatTable::askForGraphicPathName(), AP_Dialog_FormatFrame::askForGraphicPathName(), IE_Imp_XSL_FO::createImage(), IE_Imp_WML::createImage(), IE_Imp_DocBook::createImage(), DECLARE_ABI_PLUGIN_METHOD(), Defun1(), IE_Imp_XHTML::importDataURLImage(), IE_Imp_WordPerfectGraphics::importGraphic(), IE_Imp_XHTML::importImage(), loadGraphic(), IE_Imp_RTF::LoadPictData(), AP_UnixApp::pasteFromClipboard(), IE_Imp_MSWrite::read_pic(), and s_loadImage().
void IE_ImpGraphic::registerImporter | ( | IE_ImpGraphicSniffer * | sniffer | ) | [static] |
References IE_IMP_GraphicSniffers, IE_ImpGraphicSniffer::setType(), UT_OK, and UT_return_if_fail.
Referenced by abi_plugin_register(), IE_ImpExp_RegisterPlatform(), and IE_ImpExp_RegisterXP().
void IE_ImpGraphic::unregisterAllImporters | ( | ) | [static] |
References DELETEP, IE_IMP_GraphicSniffers, and size.
Referenced by IE_ImpExp_UnRegisterXP().
void IE_ImpGraphic::unregisterImporter | ( | IE_ImpGraphicSniffer * | sniffer | ) | [static] |