Landing the XPCDOM_20010329_BRANCH branch, changes mostly done by jband@netscape.com and jst@netscape.com, also some changes done by shaver@mozilla.org, peterv@netscape.com and markh@activestate.com. r= and sr= by vidur@netscape.com, jband@netscape.com, jst@netscpae.com, danm@netscape.com, hyatt@netscape.com, shaver@mozilla.org, dbradley@netscape.com, rpotts@netscape.com.
2001-05-08 21:42:36 +04:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2001-02-23 13:07:18 +03:00
|
|
|
|
2002-01-12 04:20:29 +03:00
|
|
|
#include "nsIDOMXULSelectCntrlEl.idl"
|
2001-02-23 13:07:18 +03:00
|
|
|
|
2013-04-13 11:08:47 +04:00
|
|
|
[scriptable, uuid(40654a10-8204-4f06-9f21-7baa31c7b1dd)]
|
2002-01-12 04:20:29 +03:00
|
|
|
interface nsIDOMXULMultiSelectControlElement : nsIDOMXULSelectControlElement
|
2001-02-23 13:07:18 +03:00
|
|
|
{
|
2002-01-12 04:20:29 +03:00
|
|
|
attribute DOMString selType;
|
2001-02-23 13:07:18 +03:00
|
|
|
|
2002-01-12 04:20:29 +03:00
|
|
|
attribute nsIDOMXULSelectControlItemElement currentItem;
|
2004-04-17 09:53:38 +04:00
|
|
|
attribute long currentIndex;
|
|
|
|
|
2002-01-12 04:20:29 +03:00
|
|
|
readonly attribute nsIDOMNodeList selectedItems;
|
|
|
|
|
|
|
|
void addItemToSelection(in nsIDOMXULSelectControlItemElement item);
|
|
|
|
void removeItemFromSelection(in nsIDOMXULSelectControlItemElement item);
|
|
|
|
void toggleItemSelection(in nsIDOMXULSelectControlItemElement item);
|
2001-02-23 13:07:18 +03:00
|
|
|
|
2002-01-12 04:20:29 +03:00
|
|
|
void selectItem(in nsIDOMXULSelectControlItemElement item);
|
|
|
|
void selectItemRange(in nsIDOMXULSelectControlItemElement startItem, in nsIDOMXULSelectControlItemElement item);
|
2001-02-23 13:07:18 +03:00
|
|
|
|
2002-01-12 04:20:29 +03:00
|
|
|
void selectAll();
|
|
|
|
void invertSelection();
|
|
|
|
void clearSelection();
|
2001-02-23 13:07:18 +03:00
|
|
|
|
2002-01-12 04:20:29 +03:00
|
|
|
// XXX - temporary, pending implementation of scriptable,
|
|
|
|
// mutable nsIDOMNodeList for selectedItems
|
|
|
|
readonly attribute long selectedCount;
|
2012-08-07 11:06:29 +04:00
|
|
|
[binaryname(MultiGetSelectedItem)]
|
2002-01-12 04:20:29 +03:00
|
|
|
nsIDOMXULSelectControlItemElement getSelectedItem(in long index);
|
2001-02-23 13:07:18 +03:00
|
|
|
};
|