Include wx/font.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
54a6176249
commit
48a1108eb8
@ -35,6 +35,7 @@
|
||||
#include "wx/frame.h"
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/colour.h"
|
||||
#include "wx/font.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/dcclient.h"
|
||||
#include "wx/dcmemory.h"
|
||||
|
@ -11,11 +11,12 @@
|
||||
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/font.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/string.h"
|
||||
#endif
|
||||
|
||||
#include "wx/font.h"
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/encinfo.h"
|
||||
|
||||
|
@ -28,10 +28,9 @@
|
||||
#include "wx/settings.h"
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/colour.h"
|
||||
#include "wx/font.h"
|
||||
#endif
|
||||
|
||||
#include "wx/font.h"
|
||||
|
||||
WXDLLIMPEXP_DATA_CORE(wxBrushList*) wxTheBrushList;
|
||||
WXDLLIMPEXP_DATA_CORE(wxFontList*) wxTheFontList;
|
||||
WXDLLIMPEXP_DATA_CORE(wxPenList*) wxThePenList;
|
||||
|
@ -26,10 +26,10 @@
|
||||
#include "wx/settings.h"
|
||||
#include "wx/msgdlg.h"
|
||||
#include "wx/memory.h"
|
||||
#include "wx/font.h"
|
||||
#endif
|
||||
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/font.h"
|
||||
#include "wx/file.h"
|
||||
#include "wx/filename.h"
|
||||
#include "wx/module.h"
|
||||
|
@ -26,10 +26,10 @@
|
||||
#include "wx/settings.h"
|
||||
#include "wx/msgdlg.h"
|
||||
#include "wx/memory.h"
|
||||
#include "wx/font.h"
|
||||
#endif
|
||||
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/font.h"
|
||||
#include "wx/file.h"
|
||||
#include "wx/filename.h"
|
||||
#include "wx/module.h"
|
||||
|
@ -18,6 +18,7 @@
|
||||
#include "wx/app.h"
|
||||
#if wxUSE_GUI
|
||||
#include "wx/toplevel.h"
|
||||
#include "wx/font.h"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -25,7 +26,6 @@
|
||||
|
||||
#if wxUSE_GUI
|
||||
#include "wx/mac/uma.h"
|
||||
#include "wx/font.h"
|
||||
#endif
|
||||
|
||||
#include <ctype.h>
|
||||
|
@ -1,8 +1,8 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: mac/fontenum.cpp
|
||||
// Name: src/mac/classic/fontenum.cpp
|
||||
// Purpose: wxFontEnumerator class for MacOS
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
// Modified by:
|
||||
// Created: 04/01/98
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) Stefan Csomor
|
||||
@ -21,11 +21,11 @@
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/font.h"
|
||||
#include "wx/font.h"
|
||||
#endif
|
||||
|
||||
#include "wx/fontenum.h"
|
||||
@ -78,7 +78,7 @@ wxFontEnumeratorHelper::wxFontEnumeratorHelper(wxFontEnumerator *fontEnum)
|
||||
{
|
||||
m_fontEnum = fontEnum;
|
||||
m_charset = -1;
|
||||
m_fixedOnly = FALSE;
|
||||
m_fixedOnly = false;
|
||||
}
|
||||
|
||||
bool wxFontEnumeratorHelper::SetEncoding(wxFontEncoding encoding)
|
||||
@ -89,13 +89,13 @@ bool wxFontEnumeratorHelper::SetEncoding(wxFontEncoding encoding)
|
||||
if ( !wxFontMapper::Get()->GetAltForEncoding(encoding, &info) )
|
||||
{
|
||||
// no such encodings at all
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
m_charset = info.charset;
|
||||
m_facename = info.facename;
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
void wxFontEnumeratorHelper::DoEnumerate()
|
||||
@ -104,7 +104,7 @@ void wxFontEnumeratorHelper::DoEnumerate()
|
||||
Str255 p_name ;
|
||||
|
||||
short lines ;
|
||||
|
||||
|
||||
menu = NewMenu( 32000 , "\pFont" ) ;
|
||||
AppendResMenu( menu , 'FONT' ) ;
|
||||
lines = CountMenuItems( menu ) ;
|
||||
@ -115,7 +115,7 @@ void wxFontEnumeratorHelper::DoEnumerate()
|
||||
wxString c_name = wxMacMakeStringFromPascal(p_name) ;
|
||||
|
||||
/*
|
||||
|
||||
|
||||
if ( m_fixedOnly )
|
||||
{
|
||||
// check that it's a fixed pitch font (there is *no* error here, the
|
||||
@ -126,7 +126,7 @@ void wxFontEnumeratorHelper::DoEnumerate()
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ( m_charset != -1 )
|
||||
{
|
||||
// check that we have the right encoding
|
||||
@ -135,7 +135,7 @@ void wxFontEnumeratorHelper::DoEnumerate()
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
*/
|
||||
m_fontEnum->OnFacename( c_name ) ;
|
||||
}
|
||||
@ -158,12 +158,12 @@ bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding,
|
||||
}
|
||||
// else: no such fonts, unknown encoding
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wxFontEnumerator::EnumerateEncodings(const wxString& family)
|
||||
{
|
||||
wxFAIL_MSG(wxT("wxFontEnumerator::EnumerateEncodings() not yet implemented"));
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
@ -16,13 +16,15 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/intl.h"
|
||||
#include "wx/app.h"
|
||||
#if wxUSE_GUI
|
||||
#include "wx/font.h"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "wx/apptrait.h"
|
||||
|
||||
#if wxUSE_GUI
|
||||
#include "wx/mac/uma.h"
|
||||
#include "wx/font.h"
|
||||
#endif
|
||||
|
||||
#include <ctype.h>
|
||||
|
@ -10,15 +10,16 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/string.h"
|
||||
#include "wx/intl.h"
|
||||
#if wxUSE_GUI
|
||||
#include "wx/font.h"
|
||||
#endif
|
||||
#endif
|
||||
#include "wx/mac/corefoundation/cfstring.h"
|
||||
|
||||
#if wxUSE_GUI
|
||||
#include "wx/font.h"
|
||||
#endif
|
||||
#include "wx/mac/corefoundation/cfstring.h"
|
||||
|
||||
#ifdef __DARWIN__
|
||||
#include <CoreServices/CoreServices.h>
|
||||
@ -633,7 +634,7 @@ wxFontEncoding wxMacGetFontEncFromSystemEnc(wxUint32 encoding)
|
||||
// converts this string into a carbon foundation string with optional pc 2 mac encoding
|
||||
void wxMacCFStringHolder::Assign( const wxString &st , wxFontEncoding encoding )
|
||||
{
|
||||
Release() ;
|
||||
Release() ;
|
||||
if (st.IsEmpty())
|
||||
{
|
||||
m_cfs = CFSTR("") ;
|
||||
@ -668,7 +669,7 @@ wxString wxMacCFStringHolder::AsString(wxFontEncoding encoding)
|
||||
{
|
||||
if ( m_cfs == NULL )
|
||||
return wxEmptyString ;
|
||||
|
||||
|
||||
Size cflen = CFStringGetLength( m_cfs ) ;
|
||||
size_t noChars ;
|
||||
wxChar* buf = NULL ;
|
||||
@ -706,4 +707,3 @@ wxString wxMacCFStringHolder::AsString(wxFontEncoding encoding)
|
||||
delete[] buf ;
|
||||
return result ;
|
||||
}
|
||||
|
||||
|
@ -17,9 +17,9 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/colour.h"
|
||||
#include "wx/font.h"
|
||||
#endif
|
||||
|
||||
#include "wx/font.h"
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/module.h"
|
||||
|
||||
|
@ -24,11 +24,12 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/font.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/list.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/font.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/encinfo.h"
|
||||
#endif // WX_PRECOMP
|
||||
@ -573,7 +574,7 @@ void wxNativeFontInfo::SetFamily(wxFontFamily family)
|
||||
BYTE ff_family;
|
||||
wxArrayString facename;
|
||||
|
||||
// the list of fonts associated with a family was partially
|
||||
// the list of fonts associated with a family was partially
|
||||
// taken from http://www.codestyle.org/css/font-family
|
||||
|
||||
switch ( family )
|
||||
@ -635,9 +636,9 @@ void wxNativeFontInfo::SetFamily(wxFontFamily family)
|
||||
facename.Add(_T("MS Shell Dlg"));
|
||||
|
||||
// Quoting the MSDN:
|
||||
// "MS Shell Dlg is a mapping mechanism that enables
|
||||
// U.S. English Microsoft Windows NT, and Microsoft Windows 2000 to
|
||||
// support locales that have characters that are not contained in code
|
||||
// "MS Shell Dlg is a mapping mechanism that enables
|
||||
// U.S. English Microsoft Windows NT, and Microsoft Windows 2000 to
|
||||
// support locales that have characters that are not contained in code
|
||||
// page 1252. It is not a font but a face name for a nonexistent font."
|
||||
}
|
||||
}
|
||||
@ -1095,4 +1096,3 @@ bool wxFont::IsFixedWidth() const
|
||||
|
||||
return wxFontBase::IsFixedWidth();
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,6 @@
|
||||
#include "wx/font.h"
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/font.h"
|
||||
#include "wx/window.h"
|
||||
#include "wx/accel.h"
|
||||
#include "wx/string.h"
|
||||
|
@ -30,9 +30,9 @@
|
||||
#include "wx/listbox.h"
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/colour.h"
|
||||
#include "wx/font.h"
|
||||
#endif
|
||||
|
||||
#include "wx/font.h"
|
||||
#include "wx/ownerdrw.h"
|
||||
|
||||
#define INCL_PM
|
||||
|
@ -20,12 +20,13 @@
|
||||
// headers
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#include "wx/font.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include <stdio.h>
|
||||
#include "wx/list.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/font.h"
|
||||
#include "wx/log.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
@ -1135,19 +1136,14 @@ const wxNativeFontInfo* wxFont::GetNativeFontInfo() const
|
||||
//
|
||||
// Internal use only method to set the FONTMETRICS array
|
||||
//
|
||||
void wxFont::SetFM(
|
||||
PFONTMETRICS pFM
|
||||
, int nNumFonts
|
||||
)
|
||||
void wxFont::SetFM( PFONTMETRICS pFM, int nNumFonts )
|
||||
{
|
||||
M_FONTDATA->SetFM(pFM);
|
||||
M_FONTDATA->SetNumFonts(nNumFonts);
|
||||
} // end of wxFont::SetFM
|
||||
|
||||
|
||||
void wxFont::SetPS(
|
||||
HPS hPS
|
||||
)
|
||||
void wxFont::SetPS( HPS hPS )
|
||||
{
|
||||
Unshare();
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: msw/fontenum.cpp
|
||||
// Name: src/os2/fontenum.cpp
|
||||
// Purpose: wxFontEnumerator class for Windows
|
||||
// Author: Julian Smart
|
||||
// Modified by: David Webster to add support for font encodings
|
||||
@ -22,11 +22,12 @@
|
||||
|
||||
#if wxUSE_FONTMAP
|
||||
|
||||
#include "wx/fontenum.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/font.h"
|
||||
#include "wx/font.h"
|
||||
#endif
|
||||
|
||||
#include "wx/fontenum.h"
|
||||
#include "wx/fontmap.h"
|
||||
#include "wx/encinfo.h"
|
||||
|
||||
|
@ -12,8 +12,12 @@
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/gdiobj.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/font.h"
|
||||
#endif
|
||||
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/font.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxGDIObject, wxObject)
|
||||
|
||||
|
@ -22,7 +22,6 @@
|
||||
#include "wx/font.h"
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/font.h"
|
||||
#include "wx/window.h"
|
||||
#include "wx/accel.h"
|
||||
#include "wx/menu.h"
|
||||
|
@ -24,11 +24,12 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/font.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/list.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/font.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/encinfo.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
@ -32,7 +32,6 @@
|
||||
#include "wx/font.h"
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/font.h"
|
||||
#include "wx/window.h"
|
||||
#include "wx/accel.h"
|
||||
#include "wx/string.h"
|
||||
|
Loading…
Reference in New Issue
Block a user