Teaching context menus about alignment.

This commit is contained in:
hyatt%netscape.com 1999-06-09 09:30:40 +00:00
parent edee2e9784
commit 707d2781a4
5 changed files with 5 additions and 5 deletions

View File

@ -48,7 +48,7 @@ class nsIContextMenu : public nsISupports {
* Creates the context menu
*
*/
NS_IMETHOD Create(nsISupports * aParent) = 0;
NS_IMETHOD Create(nsISupports * aParent, const nsString& anAlignment) = 0;
/**
* Get the context menu's Parent

View File

@ -152,7 +152,7 @@ nsContextMenu::~nsContextMenu()
// Create the proper widget
//
//-------------------------------------------------------------------------
NS_METHOD nsContextMenu::Create(nsISupports *aParent)
NS_METHOD nsContextMenu::Create(nsISupports *aParent, const nsString& anAlignment)
{
mParent = aParent;
mMacMenuHandle = ::NewMenu(mMacMenuIDCount, (const unsigned char *)"");

View File

@ -65,7 +65,7 @@ public:
nsEventStatus MenuDestruct(const nsMenuEvent & aMenuEvent);
// nsIMenu Methods
NS_IMETHOD Create(nsISupports * aParent);
NS_IMETHOD Create(nsISupports * aParent, const nsString& anAlignment);
NS_IMETHOD GetParent(nsISupports *&aParent);
NS_IMETHOD AddItem(nsISupports* aText);
NS_IMETHOD AddSeparator();

View File

@ -118,7 +118,7 @@ nsContextMenu::~nsContextMenu()
// Create the proper widget
//
//-------------------------------------------------------------------------
NS_METHOD nsContextMenu::Create(nsISupports *aParent)
NS_METHOD nsContextMenu::Create(nsISupports *aParent, const nsString& anAlignment)
{
if(aParent)
{

View File

@ -56,7 +56,7 @@ public:
nsEventStatus MenuDestruct(const nsMenuEvent & aMenuEvent);
// nsIMenu Methods
NS_IMETHOD Create(nsISupports * aParent);
NS_IMETHOD Create(nsISupports * aParent, const nsString& anAlignment);
NS_IMETHOD GetParent(nsISupports *&aParent);
NS_IMETHOD AddItem(nsISupports * aItem);