1999-09-06 09:36:21 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2006-05-29 21:12:51 +00:00
|
|
|
// Name: wx/msw/fontenum.h
|
1999-09-06 09:36:21 +00:00
|
|
|
// Purpose: wxFontEnumerator class for Windows
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 04/01/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Julian Smart
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1999-09-06 09:36:21 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2006-05-29 21:12:51 +00:00
|
|
|
#ifndef _WX_FONTENUM_MSW_H_
|
|
|
|
#define _WX_FONTENUM_MSW_H_
|
1999-09-06 09:36:21 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* wxFontEnumerator: for gathering font information
|
|
|
|
*/
|
|
|
|
|
|
|
|
class wxFontEnumerator: public wxObject
|
|
|
|
{
|
|
|
|
DECLARE_CLASS(wxFontEnumerator)
|
|
|
|
public:
|
2004-10-13 14:04:19 +00:00
|
|
|
wxFontEnumerator() {}
|
1999-09-06 09:36:21 +00:00
|
|
|
|
|
|
|
// Enumerate the fonts.
|
|
|
|
bool Enumerate();
|
|
|
|
|
2004-08-25 12:17:55 +00:00
|
|
|
// Stop enumeration if false is returned.
|
1999-09-06 09:36:21 +00:00
|
|
|
// By default, the enumerator stores the facenames in a list for
|
|
|
|
// retrieval via GetFacenames().
|
|
|
|
virtual bool OnFont(const wxFont& font);
|
|
|
|
|
|
|
|
// Return the list of facenames.
|
|
|
|
wxStringList& GetFacenames() { return (wxStringList&) m_faceNames; }
|
|
|
|
protected:
|
|
|
|
wxStringList m_faceNames;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2006-05-29 21:12:51 +00:00
|
|
|
// _WX_FONTENUM_MSW_H_
|