Mozilla/mozilla/widget/src/xlib/nsListBox.cpp
blizzard%redhat.com b1c6f06c80 more xlib work
git-svn-id: svn://10.0.0.236/trunk@32738 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 21:52:58 +00:00

146 lines
2.8 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.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsListBox.h"
NS_IMPL_ADDREF(nsListBox)
NS_IMPL_RELEASE(nsListBox)
NS_METHOD nsListBox::SetMultipleSelection(PRBool aMultipleSelections)
{
return NS_OK;
}
NS_METHOD nsListBox::PreCreateWidget(nsWidgetInitData *aInitData)
{
return NS_OK;
}
NS_METHOD nsListBox::AddItemAt(nsString &aItem, PRInt32 aPosition)
{
return NS_OK;
}
PRInt32 nsListBox::FindItem(nsString &aItem, PRInt32 aStartPos)
{
return 0;
}
PRInt32 nsListBox::GetItemCount()
{
return 0;
}
PRBool nsListBox::RemoveItemAt(PRInt32 aPosition)
{
return PR_FALSE;
}
PRBool nsListBox::GetItemAt(nsString& anItem, PRInt32 aPosition)
{
return PR_FALSE;
}
NS_METHOD nsListBox::GetSelectedItem(nsString& aItem)
{
return NS_OK;
}
PRInt32 nsListBox::GetSelectedIndex()
{
return 0;
}
NS_METHOD nsListBox::SelectItem(PRInt32 aPosition)
{
return NS_OK;
}
PRInt32 nsListBox::GetSelectedCount()
{
return 0;
}
NS_METHOD nsListBox::GetSelectedIndices(PRInt32 aIndices[], PRInt32 aSize)
{
return NS_OK;
}
NS_METHOD nsListBox::SetSelectedIndices(PRInt32 aIndices[], PRInt32 aSize)
{
return NS_OK;
}
NS_METHOD nsListBox::Deselect()
{
return NS_OK;
}
nsListBox::nsListBox() : nsWidget(), nsIListWidget(), nsIListBox()
{
NS_INIT_REFCNT();
}
nsListBox::~nsListBox()
{
}
nsresult nsListBox::QueryInterface(const nsIID& aIID, void** aInstancePtr)
{
nsresult result = nsWidget::QueryInterface(aIID, aInstancePtr);
static NS_DEFINE_IID(kInsListBoxIID, NS_ILISTBOX_IID);
static NS_DEFINE_IID(kInsListWidgetIID, NS_ILISTWIDGET_IID);
if (result == NS_NOINTERFACE) {
if (aIID.Equals(kInsListBoxIID)) {
*aInstancePtr = (void*) ((nsIListBox*)this);
NS_ADDREF_THIS();
result = NS_OK;
}
else if (aIID.Equals(kInsListWidgetIID)) {
*aInstancePtr = (void*) ((nsIListWidget*)this);
NS_ADDREF_THIS();
result = NS_OK;
}
}
return result;
}
PRBool nsListBox::OnMove(PRInt32, PRInt32)
{
return PR_FALSE;
}
PRBool nsListBox::OnPaint()
{
return PR_FALSE;
}
PRBool nsListBox::OnResize(nsRect &aWindowRect)
{
return PR_FALSE;
}
PRBool nsListBox::AutoErase()
{
return(PR_TRUE);
}