fontdlg.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/msw/fontdlg.h
  3. // Purpose: wxFontDialog class
  4. // Author: Julian Smart
  5. // Modified by:
  6. // Created: 01/02/97
  7. // Copyright: (c) Julian Smart
  8. // Licence: wxWindows licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. #ifndef _WX_MSW_FONTDLG_H_
  11. #define _WX_MSW_FONTDLG_H_
  12. // ----------------------------------------------------------------------------
  13. // wxFontDialog
  14. // ----------------------------------------------------------------------------
  15. class WXDLLIMPEXP_CORE wxFontDialog : public wxFontDialogBase
  16. {
  17. public:
  18. wxFontDialog() : wxFontDialogBase() { /* must be Create()d later */ }
  19. wxFontDialog(wxWindow *parent)
  20. : wxFontDialogBase(parent) { Create(parent); }
  21. wxFontDialog(wxWindow *parent, const wxFontData& data)
  22. : wxFontDialogBase(parent, data) { Create(parent, data); }
  23. virtual int ShowModal();
  24. #if WXWIN_COMPATIBILITY_2_6
  25. // deprecated interface, don't use
  26. wxDEPRECATED( wxFontDialog(wxWindow *parent, const wxFontData *data) );
  27. #endif // WXWIN_COMPATIBILITY_2_6
  28. protected:
  29. DECLARE_DYNAMIC_CLASS_NO_COPY(wxFontDialog)
  30. };
  31. #if WXWIN_COMPATIBILITY_2_6
  32. // deprecated interface, don't use
  33. inline wxFontDialog::wxFontDialog(wxWindow *parent, const wxFontData *data)
  34. : wxFontDialogBase(parent) { InitFontData(data); Create(parent); }
  35. #endif // WXWIN_COMPATIBILITY_2_6
  36. #endif
  37. // _WX_MSW_FONTDLG_H_