114 lines
2.3 KiB
C++
114 lines
2.3 KiB
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
*
|
|
* The contents of this file are subject to the Netscape Public
|
|
* License Version 1.1 (the "License"); you may not use this file
|
|
* except in compliance with the License. You may obtain a copy of
|
|
* the License at http://www.mozilla.org/NPL/
|
|
*
|
|
* Software distributed under the License is distributed on an "AS
|
|
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
* implied. See the License for the specific language governing
|
|
* rights and limitations under the License.
|
|
*
|
|
* The Original Code is mozilla.org code.
|
|
*
|
|
* The Initial Developer of the Original Code is Netscape
|
|
* Communications Corporation. Portions created by Netscape are
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All
|
|
* Rights Reserved.
|
|
*
|
|
* Contributor(s):
|
|
*/
|
|
#include "nsPopUpMenu.h"
|
|
|
|
static NS_DEFINE_IID(kPopUpMenuIID, NS_IPOPUPMENU_IID);
|
|
NS_IMPL_ISUPPORTS(nsPopUpMenu, kPopUpMenuIID)
|
|
|
|
nsPopUpMenu::nsPopUpMenu() : nsIPopUpMenu()
|
|
{
|
|
NS_INIT_REFCNT();
|
|
mParent = nsnull;
|
|
}
|
|
|
|
nsPopUpMenu::~nsPopUpMenu()
|
|
{
|
|
}
|
|
|
|
NS_METHOD nsPopUpMenu::Create(nsIWidget *aParent)
|
|
{
|
|
mParent = aParent;
|
|
NS_ADDREF(mParent);
|
|
return NS_OK;
|
|
}
|
|
|
|
NS_METHOD nsPopUpMenu::AddItem(const nsString &aText)
|
|
{
|
|
return NS_OK;
|
|
}
|
|
|
|
NS_METHOD nsPopUpMenu::AddItem(nsIMenuItem * aMenuItem)
|
|
{
|
|
return NS_OK;
|
|
}
|
|
|
|
NS_METHOD nsPopUpMenu::AddMenu(nsIMenu * aMenu)
|
|
{
|
|
return NS_OK;
|
|
}
|
|
|
|
NS_METHOD nsPopUpMenu::AddSeparator()
|
|
{
|
|
return NS_OK;
|
|
}
|
|
|
|
NS_METHOD nsPopUpMenu::GetItemCount(PRUint32 &aCount)
|
|
{
|
|
return NS_OK;
|
|
}
|
|
|
|
NS_METHOD nsPopUpMenu::GetItemAt(const PRUint32 aCount, nsIMenuItem *& aMenuItem)
|
|
{
|
|
return NS_OK;
|
|
}
|
|
|
|
NS_METHOD nsPopUpMenu::InsertItemAt(const PRUint32 aCount, nsIMenuItem *& aMenuItem)
|
|
{
|
|
return NS_OK;
|
|
}
|
|
|
|
NS_METHOD nsPopUpMenu::InsertItemAt(const PRUint32 aCount, const nsString & aMenuItemName)
|
|
{
|
|
return NS_OK;
|
|
}
|
|
|
|
NS_METHOD nsPopUpMenu::InsertSeparator(const PRUint32 aCount)
|
|
{
|
|
return NS_OK;
|
|
}
|
|
|
|
NS_METHOD nsPopUpMenu::RemoveItem(const PRUint32 aCount)
|
|
{
|
|
return NS_OK;
|
|
}
|
|
|
|
NS_METHOD nsPopUpMenu::RemoveAll()
|
|
{
|
|
return NS_OK;
|
|
}
|
|
|
|
NS_METHOD nsPopUpMenu::ShowMenu(PRInt32 aX, PRInt32 aY)
|
|
{
|
|
return NS_OK;
|
|
}
|
|
|
|
NS_METHOD nsPopUpMenu::GetNativeData(void *& aData)
|
|
{
|
|
return NS_OK;
|
|
}
|
|
|
|
NS_METHOD nsPopUpMenu::GetParent(nsIWidget *& aParent)
|
|
{
|
|
aParent = mParent;
|
|
return NS_OK;
|
|
}
|