Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CP_FontMenu Class Reference

A class to manage a font menu.

Inheritance diagram for CP_FontMenu:

CP_NoCopy List of all members.

Public Member Functions

Constructor / Destructor
 CP_FontMenu (bool inMenuBar, SInt16 inBeforeMenuID)
 Constructor.
virtual ~CP_FontMenu () throw ()
 Destructor.
Getters
CP_MenuGetFontMenu ()
Selection
CP_String HandleMenuSelection (const CP_S_MenuSelection &inMenuSelection)

Static Public Member Functions

Instance
static CP_FontMenuInstance ()

Protected Attributes

SInt16 fFontMenuID
CP_MenufFontMenu
MenuItemIndex * fFontMenuHierarchicalItems
ItemCount fNumHierarchicalItems
MenuItemIndex fFontMenuCurrentMenuItem
MenuRef fFontMenuCurrentMenuRef

Static Protected Attributes

static CP_FontMenufsInstance = 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 Documentation

CP_FontMenu::CP_FontMenu bool  inMenuBar,
SInt16  inBeforeMenuID
 

Constructor.

CP_FontMenu::~CP_FontMenu  )  throw () [virtual]
 

Destructor.


Member Function Documentation

CP_FontMenu * CP_FontMenu::Instance  )  [static]
 

Returns the single instance of this object.

Exceptions:
none 
Returns:
CP_M_CommandHandler Returns the single instance of this class.

CP_Menu* CP_FontMenu::GetFontMenu  ) 
 

CP_String CP_FontMenu::HandleMenuSelection const CP_S_MenuSelection inMenuSelection  ) 
 

void CP_FontMenu::Init bool  inMenuBar,
SInt16  inPosition
[private]
 

void CP_FontMenu::BuildFontMenuParentItemArray  )  [private]
 

Creates a global array containing information about the submenus in the hierarchical font menu. This information is then used by GetFontMenuParentItem.

Exceptions:
none 
Returns:
void

CP_String CP_FontMenu::SelectAndGetFontName MenuRef  theMenu,
MenuItemIndex  theItem
[private]
 

todo -- this needs to be rethought

MenuItemIndex CP_FontMenu::GetFontMenuParentItem MenuRef  inMenu  )  [private]
 

void CP_FontMenu::Init bool  inMenuBar,
SInt16  inPosition
[private]
 

void CP_FontMenu::Init bool  inMenuBar,
SInt16  inPosition
[private]
 


Member Data Documentation

CPLAT_Begin_Namespace_CPLAT CP_FontMenu * CP_FontMenu::fsInstance = NULL [static, protected]
 

SInt16 CP_FontMenu::fFontMenuID [protected]
 

CP_Menu* CP_FontMenu::fFontMenu [protected]
 

MenuItemIndex* CP_FontMenu::fFontMenuHierarchicalItems [protected]
 

ItemCount CP_FontMenu::fNumHierarchicalItems [protected]
 

MenuItemIndex CP_FontMenu::fFontMenuCurrentMenuItem [protected]
 

MenuRef CP_FontMenu::fFontMenuCurrentMenuRef [protected]
 


The documentation for this class was generated from the following files:
Generated on Sat Sep 17 20:01:42 2005 for CPLAT by  doxygen 1.4.0