Public Member Functions | Private Attributes

XAP_Menu_Factory Class Reference

#include <xap_Menu_Layouts.h>

List of all members.

Public Member Functions

 XAP_Menu_Factory (XAP_App *pApp)
 ~XAP_Menu_Factory (void)
EV_Menu_LayoutCreateMenuLayout (const char *szName)
const char * FindContextMenu (EV_EditMouseContext emc)
XAP_Menu_Id addNewMenuAfter (const char *szMenu, const char *szLanguage, const XAP_Menu_Id afterID, EV_Menu_LayoutFlags flags, XAP_Menu_Id newID=0)
XAP_Menu_Id addNewMenuAfter (const char *szMenu, const char *szLanguage, const char *szAfter, EV_Menu_LayoutFlags flags, XAP_Menu_Id menuID=0)
XAP_Menu_Id addNewMenuBefore (const char *szMenu, const char *szLanguage, const XAP_Menu_Id beforeID, EV_Menu_LayoutFlags flags, XAP_Menu_Id newID=0)
XAP_Menu_Id addNewMenuBefore (const char *szMenu, const char *szLanguage, const char *szBefore, EV_Menu_LayoutFlags flags, XAP_Menu_Id menuID=0)
XAP_Menu_Id getNewID (void)
XAP_Menu_Id removeMenuItem (const char *szMenu, const char *szLanguage, XAP_Menu_Id nukeID)
XAP_Menu_Id removeMenuItem (const char *szMenu, const char *szLanguage, const char *szNuke)
void resetMenusToDefault (void)
UT_uint32 GetMenuLabelSetLanguageCount (void)
const char * GetNthMenuLabelLanguageName (UT_uint32 ndx)
EV_Menu_LabelSetCreateMenuLabelSet (const char *szLanguage_)
bool buildMenuLabelSet (const char *szLanguage_)
bool buildBuiltInMenuLabelSet (EV_Menu_LabelSet *&pLabelSet)
bool addNewLabel (const char *szMenu, XAP_Menu_Id newID, const char *szNewLabel, const char *szNewTooltip)
bool removeLabel (const char *szMenu, XAP_Menu_Id nukeID)
void resetLabelsToDefault (void)
EV_EditMouseContext createContextMenu (const char *szMenu)
void removeContextMenu (EV_EditMouseContext menuID)

Private Attributes

UT_Vector m_vecTT
XAP_Appm_pApp
EV_Menu_LabelSetm_pLabelSet
EV_Menu_LabelSetm_pEnglishLabelSet
XAP_Menu_Id m_maxID
XAP_StringSetm_pBSS
EV_EditMouseContext m_NextContext

Constructor & Destructor Documentation

XAP_Menu_Factory::XAP_Menu_Factory ( XAP_App pApp  ) 

Load these cleverly constructed static tables into vectors so they can be manipulated dynamically.

References UT_GenericVector< T >::addItem(), UT_GenericVector< T >::clear(), m_NextContext, m_pBSS, m_pEnglishLabelSet, and m_vecTT.

XAP_Menu_Factory::~XAP_Menu_Factory ( void   ) 

Member Function Documentation

bool XAP_Menu_Factory::addNewLabel ( const char *  szMenu,
XAP_Menu_Id  newID,
const char *  szNewName,
const char *  szNewTooltip 
)
XAP_Menu_Id XAP_Menu_Factory::addNewMenuAfter ( const char *  szMenu,
const char *  szLanguage,
const XAP_Menu_Id  afterID,
EV_Menu_LayoutFlags  flags,
XAP_Menu_Id  newID = 0 
)
XAP_Menu_Id XAP_Menu_Factory::addNewMenuAfter ( const char *  szMenu,
const char *  szLanguage,
const char *  szAfter,
EV_Menu_LayoutFlags  flags,
XAP_Menu_Id  menuID = 0 
)
XAP_Menu_Id XAP_Menu_Factory::addNewMenuBefore ( const char *  szMenu,
const char *  szLanguage,
const XAP_Menu_Id  beforeID,
EV_Menu_LayoutFlags  flags,
XAP_Menu_Id  newID = 0 
)
XAP_Menu_Id XAP_Menu_Factory::addNewMenuBefore ( const char *  szMenu,
const char *  szLanguage,
const char *  szBefore,
EV_Menu_LayoutFlags  flags,
XAP_Menu_Id  menuID = 0 
)
bool XAP_Menu_Factory::buildBuiltInMenuLabelSet ( EV_Menu_LabelSet *&  pLabelSet  ) 

Build a builtin label set in memory that can be used by plugins to find where to put menu items in non-Enmgish locales. Do tricky reference to pointer here....

This file defines the set of Id's used for all menu-related

things. Each Id defines a conceptual unit which may be

used on one or more menus or not at all.

References AP_MENU_ID__BOGUS1__, m_pApp, and m_pBSS.

Referenced by addNewMenuAfter(), addNewMenuBefore(), and removeMenuItem().

bool XAP_Menu_Factory::buildMenuLabelSet ( const char *  szLanguage_  ) 

Build a label set in memory that can be cloned by frames and added to by plugins.

This file defines the set of Id's used for all menu-related

things. Each Id defines a conceptual unit which may be

used on one or more menus or not at all.

References AP_MENU_ID__BOGUS1__, XAP_App::getApp(), XAP_App::getStringSet(), m_pLabelSet, and UT_DEBUGMSG.

EV_EditMouseContext XAP_Menu_Factory::createContextMenu ( const char *  szMenu  ) 
EV_Menu_LabelSet * XAP_Menu_Factory::CreateMenuLabelSet ( const char *  szLanguage_  ) 

This file defines the set of Id's used for all menu-related

things. Each Id defines a conceptual unit which may be

used on one or more menus or not at all.

References AP_MENU_ID__BOGUS1__, XAP_App::getApp(), XAP_App::getStringSet(), m_pLabelSet, and UT_DEBUGMSG.

Referenced by EV_Menu::EV_Menu().

EV_Menu_Layout * XAP_Menu_Factory::CreateMenuLayout ( const char *  szName  ) 
const char * XAP_Menu_Factory::FindContextMenu ( EV_EditMouseContext  emc  ) 
UT_uint32 XAP_Menu_Factory::GetMenuLabelSetLanguageCount ( void   ) 
XAP_Menu_Id XAP_Menu_Factory::getNewID ( void   ) 
const char * XAP_Menu_Factory::GetNthMenuLabelLanguageName ( UT_uint32  ndx  ) 
void XAP_Menu_Factory::removeContextMenu ( EV_EditMouseContext  menuID  ) 
bool XAP_Menu_Factory::removeLabel ( const char *  szMenu,
XAP_Menu_Id  nukeID 
)
XAP_Menu_Id XAP_Menu_Factory::removeMenuItem ( const char *  szMenu,
const char *  szLanguage,
const char *  szNuke 
)
XAP_Menu_Id XAP_Menu_Factory::removeMenuItem ( const char *  szMenu,
const char *  szLanguage,
XAP_Menu_Id  nukeID 
)
void XAP_Menu_Factory::resetLabelsToDefault ( void   ) 
void XAP_Menu_Factory::resetMenusToDefault ( void   ) 

Member Data Documentation

Referenced by getNewID().


The documentation for this class was generated from the following files: