CDRFontnameStoredItemEnumer Class Reference

A class for those tricky font enumerations in the CDR filter. More...

Inheritance diagram for CDRFontnameStoredItemEnumer:

EnumAllFonts OILEnumFonts CCObject SimpleCCObject List of all members.

Public Member Functions

 CDRFontnameStoredItemEnumer ()
BOOL NewFont (FontClass Class, ENUMLOGFONT FAR *lpelf, NEWTEXTMETRIC FAR *lpntm)

Public Attributes

TCHARTheFontName
FontClass TheFontClass
BOOL Found
String_64 TheRealFontName

Detailed Description

A class for those tricky font enumerations in the CDR filter.

Author:
Ben_Summers (Xara Group Ltd) <camelotdev@xara.com>
Date:
03 01 96
See also:
CDRFilter

Definition at line 1959 of file cdrtext.cpp.


Constructor & Destructor Documentation

CDRFontnameStoredItemEnumer::CDRFontnameStoredItemEnumer  )  [inline]
 

Definition at line 1962 of file cdrtext.cpp.

01962 {TheFontName = 0; Found = FALSE;};


Member Function Documentation

BOOL CDRFontnameStoredItemEnumer::NewFont FontClass  Class,
ENUMLOGFONT FAR *  lpelf,
NEWTEXTMETRIC FAR *  lpntm
 

Definition at line 1973 of file cdrtext.cpp.

01974 {
01975     // got it already?
01976     if(Found)
01977         return TRUE;
01978     
01979     // check we've got a nice font name
01980     ERROR3IF(TheFontName == 0, "Set up that silly little font name first, there's a good chap");
01981 
01982 TRACEUSER( "Ben", _T("against %s\n"), lpelf->elfLogFont.lfFaceName);
01983     // do a case insenstive compare of the two fontnames
01984     if(_tcsncicmp(TheFontName, lpelf->elfLogFont.lfFaceName, 64) == 0)
01985     {
01986 TRACEUSER( "Ben", _T("MATCH\n"));
01987         // then we've found the thingy we want - let's have it...
01988         Found = TRUE;
01989         
01990         // store the font class
01991         TheFontClass = Class;
01992 
01993         // copy across the real font name
01994         TheRealFontName = lpelf->elfLogFont.lfFaceName;
01995     }
01996 
01997     return TRUE;
01998 }


Member Data Documentation

BOOL CDRFontnameStoredItemEnumer::Found
 

Definition at line 1966 of file cdrtext.cpp.

FontClass CDRFontnameStoredItemEnumer::TheFontClass
 

Definition at line 1965 of file cdrtext.cpp.

TCHAR* CDRFontnameStoredItemEnumer::TheFontName
 

Definition at line 1962 of file cdrtext.cpp.

String_64 CDRFontnameStoredItemEnumer::TheRealFontName
 

Definition at line 1967 of file cdrtext.cpp.


The documentation for this class was generated from the following file:
Generated on Sat Nov 10 03:52:19 2007 for Camelot by  doxygen 1.4.4