Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsIMenu_MOZILLA_1_8_BRANCH Class Reference

#include <nsIMenu.h>

Inheritance diagram for nsIMenu_MOZILLA_1_8_BRANCH:
Inheritance graph
[legend]
Collaboration diagram for nsIMenu_MOZILLA_1_8_BRANCH:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_IMETHOD ChangeNativeEnabledStatusForMenuItem (nsIMenuItem *aMenuItem, PRBool aEnabled)=0
 Enable/disable native widget for a particular nsIMenuItem.
NS_IMETHOD GetMenuRefAndItemIndexForMenuItem (nsISupports *aMenuItem, void **aMenuRef, PRUint16 *aMenuItemIndex)=0
 Retrieve the native menu and the index of the item within that menu.
NS_IMETHOD SetupIcon ()=0
 Sets an appropriate icon for the menu.
NS_IMETHOD Create (nsISupports *aParent, const nsAString &aLabel, const nsAString &aAccessKey, nsIChangeManager *aManager, nsIDocShell *aShell, nsIContent *aNode)=0
 Creates the Menu.
NS_IMETHOD GetParent (nsISupports *&aParent)=0
 Get the Menu's Parent.
NS_IMETHOD GetLabel (nsString &aText)=0
 Get the Menu label.
NS_IMETHOD SetLabel (const nsAString &aText)=0
 Set the Menu label.
NS_IMETHOD GetAccessKey (nsString &aText)=0
 Get the Menu Access Key.
NS_IMETHOD SetAccessKey (const nsAString &aText)=0
 Set the Menu Access Key.
NS_IMETHOD SetEnabled (PRBool aIsEnabled)=0
 Set the Menu enabled state.
NS_IMETHOD GetEnabled (PRBool *aIsEnabled)=0
 Get the Menu enabled state.
NS_IMETHOD IsHelpMenu (PRBool *aIsHelpMenu)=0
 Query if this is the help menu.
NS_IMETHOD AddItem (nsISupports *aItem)=0
 Adds a Menu Item.
NS_IMETHOD AddSeparator ()=0
 Adds a separator.
NS_IMETHOD GetItemCount (PRUint32 &aCount)=0
 Returns the number of menu items This does count separators as items.
NS_IMETHOD GetItemAt (const PRUint32 aPos, nsISupports *&aMenuItem)=0
 Returns a Menu or Menu Item at a specified Index.
NS_IMETHOD InsertItemAt (const PRUint32 aPos, nsISupports *aMenuItem)=0
 Inserts a Menu Item at a specified Index.
NS_IMETHOD RemoveItem (const PRUint32 aPos)=0
 Removes an Menu Item from a specified Index.
NS_IMETHOD RemoveAll ()=0
 Removes all the Menu Items.
NS_IMETHOD GetNativeData (void **aData)=0
 Gets Native MenuHandle.
NS_IMETHOD SetNativeData (void *aData)=0
 Sets Native MenuHandle.
NS_IMETHOD AddMenuListener (nsIMenuListener *aMenuListener)=0
 Adds menu listener for dynamic construction.
NS_IMETHOD RemoveMenuListener (nsIMenuListener *aMenuListener)=0
 Removes menu listener for dynamic construction.
NS_IMETHOD GetMenuContent (nsIContent **aMenuContent)=0
 Get GetMenuContent.

Detailed Description

Definition at line 202 of file nsIMenu.h.


Member Function Documentation

NS_IMETHOD nsIMenu::AddItem ( nsISupports *  aItem) [pure virtual, inherited]

Adds a Menu Item.

 

Implemented in nsMenuX, and nsMenuX.

Here is the caller graph for this function:

NS_IMETHOD nsIMenu::AddMenuListener ( nsIMenuListener aMenuListener) [pure virtual, inherited]

Adds menu listener for dynamic construction.

 

Implemented in nsMenuX, and nsMenuX.

NS_IMETHOD nsIMenu::AddSeparator ( ) [pure virtual, inherited]

Adds a separator.

 

Implemented in nsMenuX, and nsMenuX.

Enable/disable native widget for a particular nsIMenuItem.

 

Implemented in nsMenuX.

NS_IMETHOD nsIMenu::Create ( nsISupports *  aParent,
const nsAString &  aLabel,
const nsAString &  aAccessKey,
nsIChangeManager aManager,
nsIDocShell aShell,
nsIContent aNode 
) [pure virtual, inherited]

Creates the Menu.

 

Implemented in nsMenuX, and nsMenuX.

NS_IMETHOD nsIMenu::GetAccessKey ( nsString aText) [pure virtual, inherited]

Get the Menu Access Key.

 

Implemented in nsMenuX, and nsMenuX.

NS_IMETHOD nsIMenu::GetEnabled ( PRBool aIsEnabled) [pure virtual, inherited]

Get the Menu enabled state.

 

Implemented in nsMenuX, and nsMenuX.

Here is the caller graph for this function:

NS_IMETHOD nsIMenu::GetItemAt ( const PRUint32  aPos,
nsISupports *&  aMenuItem 
) [pure virtual, inherited]

Returns a Menu or Menu Item at a specified Index.

 

Implemented in nsMenuX, and nsMenuX.

Here is the caller graph for this function:

NS_IMETHOD nsIMenu::GetItemCount ( PRUint32 aCount) [pure virtual, inherited]

Returns the number of menu items This does count separators as items.

Implemented in nsMenuX, and nsMenuX.

NS_IMETHOD nsIMenu::GetLabel ( nsString aText) [pure virtual, inherited]

Get the Menu label.

 

Implemented in nsMenuX, and nsMenuX.

Here is the caller graph for this function:

NS_IMETHOD nsIMenu::GetMenuContent ( nsIContent **  aMenuContent) [pure virtual, inherited]

Get GetMenuContent.

 

Implemented in nsMenuX, and nsMenuX.

Here is the caller graph for this function:

NS_IMETHOD nsIMenu_MOZILLA_1_8_BRANCH::GetMenuRefAndItemIndexForMenuItem ( nsISupports *  aMenuItem,
void **  aMenuRef,
PRUint16 aMenuItemIndex 
) [pure virtual]

Retrieve the native menu and the index of the item within that menu.

Implemented in nsMenuX.

Here is the caller graph for this function:

NS_IMETHOD nsIMenu::GetNativeData ( void **  aData) [pure virtual, inherited]

Gets Native MenuHandle.

 

Implemented in nsMenuX, and nsMenuX.

Here is the caller graph for this function:

NS_IMETHOD nsIMenu::GetParent ( nsISupports *&  aParent) [pure virtual, inherited]

Get the Menu's Parent.

 

Implemented in nsMenuX, and nsMenuX.

NS_IMETHOD nsIMenu::InsertItemAt ( const PRUint32  aPos,
nsISupports *  aMenuItem 
) [pure virtual, inherited]

Inserts a Menu Item at a specified Index.

 

Implemented in nsMenuX, and nsMenuX.

NS_IMETHOD nsIMenu::IsHelpMenu ( PRBool aIsHelpMenu) [pure virtual, inherited]

Query if this is the help menu.

Mostly for MacOS voodoo.

Implemented in nsMenuX, and nsMenuX.

NS_IMETHOD nsIMenu::RemoveAll ( ) [pure virtual, inherited]

Removes all the Menu Items.

 

Implemented in nsMenuX, and nsMenuX.

NS_IMETHOD nsIMenu::RemoveItem ( const PRUint32  aPos) [pure virtual, inherited]

Removes an Menu Item from a specified Index.

 

Implemented in nsMenuX, and nsMenuX.

NS_IMETHOD nsIMenu::RemoveMenuListener ( nsIMenuListener aMenuListener) [pure virtual, inherited]

Removes menu listener for dynamic construction.

 

Implemented in nsMenuX, and nsMenuX.

NS_IMETHOD nsIMenu::SetAccessKey ( const nsAString &  aText) [pure virtual, inherited]

Set the Menu Access Key.

 

Implemented in nsMenuX, and nsMenuX.

NS_IMETHOD nsIMenu::SetEnabled ( PRBool  aIsEnabled) [pure virtual, inherited]

Set the Menu enabled state.

 

Implemented in nsMenuX, and nsMenuX.

NS_IMETHOD nsIMenu::SetLabel ( const nsAString &  aText) [pure virtual, inherited]

Set the Menu label.

 

Implemented in nsMenuX, and nsMenuX.

NS_IMETHOD nsIMenu::SetNativeData ( void aData) [pure virtual, inherited]

Sets Native MenuHandle.

 

Implemented in nsMenuX, and nsMenuX.

Sets an appropriate icon for the menu.

Implemented in nsMenuX.


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