• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

xap_Win32Toolbar_Icons.h

Go to the documentation of this file.
00001 /* AbiSource Application Framework
00002  * Copyright (C) 1998 AbiSource, Inc.
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017  * 02110-1301 USA.
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 /* XAP_WIN32TOOLBARICONS_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1