Inheritance diagram for CP_FontMenu:
Public Member Functions | |
Constructor / Destructor | |
CP_FontMenu (bool inMenuBar, SInt16 inBeforeMenuID) | |
Constructor. | |
virtual | ~CP_FontMenu () throw () |
Destructor. | |
Getters | |
CP_Menu * | GetFontMenu () |
Selection | |
CP_String | HandleMenuSelection (const CP_S_MenuSelection &inMenuSelection) |
Static Public Member Functions | |
Instance | |
static CP_FontMenu * | Instance () |
Protected Attributes | |
SInt16 | fFontMenuID |
CP_Menu * | fFontMenu |
MenuItemIndex * | fFontMenuHierarchicalItems |
ItemCount | fNumHierarchicalItems |
MenuItemIndex | fFontMenuCurrentMenuItem |
MenuRef | fFontMenuCurrentMenuRef |
Static Protected Attributes | |
static CP_FontMenu * | fsInstance = NULL |
Private Member Functions | |
void | Init (bool inMenuBar, SInt16 inPosition) |
void | BuildFontMenuParentItemArray () |
CP_String | SelectAndGetFontName (MenuRef theMenu, MenuItemIndex theItem) |
MenuItemIndex | GetFontMenuParentItem (MenuRef inMenu) |
void | Init (bool inMenuBar, SInt16 inPosition) |
void | Init (bool inMenuBar, SInt16 inPosition) |
|
Constructor. |
|
Destructor. |
|
Returns the single instance of this object.
|
|
|
|
|
|
|
|
Creates a global array containing information about the submenus in the hierarchical font menu. This information is then used by GetFontMenuParentItem.
|
|
todo -- this needs to be rethought |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|