Functions | Variables

ie_impGraphic_Win32Native.cpp File Reference

#include <stdlib.h>
#include <ocidl.h>
#include <olectl.h>
#include "ut_string.h"
#include "ut_bytebuf.h"
#include "fg_GraphicRaster.h"
#include "ut_debugmsg.h"
#include "ut_assert.h"
#include "xap_Module.h"
#include "ie_impGraphic_Win32Native.h"

Functions

bool isGDIPlusAvailable ()
UT_Error GDIconvertGraphic (UT_ByteBuf *pBB, UT_ByteBuf *pBBOut, std::string &mimetype)
void shutDownGDIPlus ()
static void _write_png (png_structp png_ptr, png_bytep data, png_size_t length)
static void _write_flush (png_structp)
static void CreateBMPFile (HWND, UT_ByteBuf &pBB, PBITMAPINFO pbi, HBITMAP hBMP, HDC hDC)
static PBITMAPINFO CreateBitmapInfoStruct (HBITMAP hBmp)

Variables

static IE_SuffixConfidence IE_ImpGraphicWin32Native_Sniffer__SuffixConfidence []
static IE_MimeConfidence IE_ImpGraphicWin32_Sniffer__MimeConfidence []

Function Documentation

static void _write_flush ( png_structp   )  [static]
static void _write_png ( png_structp  png_ptr,
png_bytep  data,
png_size_t  length 
) [static]
static PBITMAPINFO CreateBitmapInfoStruct ( HBITMAP  hBmp  )  [static]
static void CreateBMPFile ( HWND  ,
UT_ByteBuf pBB,
PBITMAPINFO  pbi,
HBITMAP  hBMP,
HDC  hDC 
) [static]
UT_Error GDIconvertGraphic ( UT_ByteBuf pBB,
UT_ByteBuf pBBOut,
std::string &  mimetype 
)
bool isGDIPlusAvailable (  ) 
void shutDownGDIPlus (  ) 

References GdiplusShutdown(), and gdiplusToken.


Variable Documentation

Initial value:
 {
    { IE_MIME_MATCH_FULL,   "image/bmp",        UT_CONFIDENCE_PERFECT  },
    { IE_MIME_MATCH_FULL,   "image/x-emf",      UT_CONFIDENCE_PERFECT  },
    { IE_MIME_MATCH_FULL,   "image/gif",        UT_CONFIDENCE_PERFECT  },
    { IE_MIME_MATCH_FULL,   "image/x-icon",     UT_CONFIDENCE_PERFECT  },
    { IE_MIME_MATCH_FULL,   "image/jpeg",       UT_CONFIDENCE_PERFECT  },
    { IE_MIME_MATCH_FULL,   "windows/metafile", UT_CONFIDENCE_PERFECT  },
    { IE_MIME_MATCH_FULL,   "image/x-wmf",      UT_CONFIDENCE_PERFECT  },
    { IE_MIME_MATCH_BOGUS,  "",               UT_CONFIDENCE_ZILCH    }
}
Initial value: