home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool_main.zip / ool / include / xfontdlg.h < prev    next >
C/C++ Source or Header  |  1998-04-06  |  2KB  |  49 lines

  1. #ifndef __XFONTDLG_H__
  2. #define __XFONTDLG_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------------- r 1.0 */
  6. /*===========================================================================*/
  7. /*                              class: XFontDialog                           */
  8. /*                       derived from: XObject                               */
  9. /*                        last update: 9/96                                  */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13.  
  14.  
  15.  
  16. #include "xsysdlg.h"
  17. #include "XWindow.h"
  18. #include "XString.h"
  19.  
  20. #ifdef OOL_FOR_OS2_X86
  21.    #define FDLG_CENTER                  0x00000001
  22.    #define FDLG_OWNERDRAWPREVIEW        0x00000004
  23.    #define FDLG_HELPBUTTON              0x00000008
  24.    #define FDLG_APPLYBUTTON             0x00000010
  25.    #define FDLG_RESETBUTTON             0x00000020
  26.    #define FDLG_MODELESS                0x00000040
  27.    #define FDLG_INITFROMFATTRS          0x00000080
  28.    #define FDLG_BITMAPONLY              0x00000100
  29.    #define FDLG_VECTORONLY              0x00000200
  30.    #define FDLG_FIXEDWIDTHONLY          0x00000400
  31.    #define FDLG_PROPORTIONALONLY        0x00000800
  32.    #define FDLG_NOSYNTHESIZEDFONTS      0x00001000
  33.    #define FDLG_NATIONAL_LANGUAGE       0x80000000
  34. #endif
  35.  
  36.  
  37. class _export_ XFontDialog: public XSystemDialog
  38. {
  39.    private:
  40.       FONTDLG fdlg;
  41.    public:
  42.       ~XFontDialog( );
  43.       XFontDialog( const XWindow * owner, const char * fontName= "Helv", const SHORT fontSize = 10, const LONG fontStyle = 0, const LONG attr = FDLG_CENTER, const char * title = NULL, const char * preView = NULL );
  44.       void GetFontName( XString * buffer ) const ;
  45.       SHORT GetFontSize(void) const { return fdlg.fxPointSize / 65536 ;}
  46. };
  47.  
  48. #endif
  49.