Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef XAP_WIN32TOOLBARICONS_H
00021 #define XAP_WIN32TOOLBARICONS_H
00022
00023 #include "ut_types.h"
00024 #include "ut_misc.h"
00025 #include "ut_color.h"
00026 #include "xap_Toolbar_Icons.h"
00027 #include <windows.h>
00028
00029
00030
00031 class ABI_EXPORT XAP_Win32Toolbar_Icons : public XAP_Toolbar_Icons
00032 {
00033 public:
00034 XAP_Win32Toolbar_Icons(void);
00035 ~XAP_Win32Toolbar_Icons(void);
00036
00037 #if defined (EXPORT_XPM_TO_BMP)
00038 static bool getBitmapForIconFromXPM(HWND hwnd,
00039 UT_uint32 maxWidth,
00040 UT_uint32 maxHeight,
00041 UT_RGBColor * pColor,
00042 const char * szIconName,
00043 HBITMAP * pBitmap);
00044
00045 static bool saveBitmap (const char *szFilename);
00046
00047 #endif
00048
00049 static bool getBitmapForIcon(HWND hwnd,
00050 UT_uint32 maxWidth,
00051 UT_uint32 maxHeight,
00052 const UT_RGBColor * pColor,
00053 const char * szIconName,
00054 HBITMAP * pBitmap);
00055
00056 static bool getAlphaBitmapForIcon(HWND hwnd,
00057 UT_uint32 maxWidth,
00058 UT_uint32 maxHeight,
00059 const char * szIconName,
00060 HBITMAP * pBitmap);
00061 };
00062
00063 #endif