#include <ngitem.h>
Inheritance diagram for SGUsedFonts:
Public Member Functions | |
SGUsedFonts () | |
virtual BOOL | IsMember (Node *, const StringBase &) const |
virtual BOOL | CreateItems (Node *) |
Create 'Used Fonts' set items for the node, as appropriate. |
Definition at line 301 of file ngitem.h.
|
Definition at line 304 of file ngitem.h. 00305 : SGNameGroup(_R(IDS_NAMEGAL_TYPEFACES_TYPE), _R(IDS_NAMEGAL_TYPEFACES_TITLE)) 00306 { /* empty */ }
|
|
Create 'Used Fonts' set items for the node, as appropriate.
Implements SGNameGroup. Definition at line 1318 of file ngitem.cpp. 01319 { 01320 // Only consider genuine text objects. 01321 if (!pNode->IsATextChar()) return TRUE; 01322 // if (!pNode->IsABaseTextClass()) return TRUE; 01323 01324 // Does a typeface attribute apply? 01325 AttrTxtFontTypeface* pAttr = 01326 (AttrTxtFontTypeface*) pNode->FindFirstAttr( &Node::IsATypeface ); 01327 if (pAttr == 0) return TRUE; 01328 01329 // Yes, make an item for it. 01330 String_64 strFont; 01331 FONTMANAGER->GetFontName(pAttr->Value.HTypeface, strFont); 01332 return RegisterMember(pNode, strFont) != 0; 01333 }
|
|
Implements SGNameGroup. Definition at line 1287 of file ngitem.cpp. 01288 { 01289 // Only consider genuine text objects. 01290 if (!pNode->IsATextChar()) return FALSE; 01291 // if (!pNode->IsABaseTextClass()) return FALSE; 01292 01293 // Does a typeface attribute apply? 01294 AttrTxtFontTypeface* pAttr = 01295 (AttrTxtFontTypeface*) pNode->FindFirstAttr( &Node::IsATypeface ); 01296 if (pAttr == 0) return FALSE; 01297 01298 // The same value? 01299 String_64 strFont; 01300 FONTMANAGER->GetFontName(pAttr->Value.HTypeface, strFont); 01301 return strFont == strName; 01302 }
|