1999-08-18 06:15:29 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
1999-12-08 07:56:56 +03:00
|
|
|
* 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/
|
1999-08-18 06:15:29 +04:00
|
|
|
*
|
1999-12-08 07:56:56 +03:00
|
|
|
* 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.
|
1999-08-18 06:15:29 +04:00
|
|
|
*
|
1999-12-08 07:56:56 +03:00
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is Netscape
|
1999-08-18 06:15:29 +04:00
|
|
|
* Communications Corporation. Portions created by Netscape are
|
1999-12-08 07:56:56 +03:00
|
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
* Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
1999-08-18 06:15:29 +04:00
|
|
|
*/
|
|
|
|
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
|
|
|
|
|
|
|
#ifndef nsIDOMXULTreeElement_h__
|
|
|
|
#define nsIDOMXULTreeElement_h__
|
|
|
|
|
|
|
|
#include "nsISupports.h"
|
|
|
|
#include "nsString.h"
|
|
|
|
#include "nsIScriptContext.h"
|
|
|
|
#include "nsIDOMXULElement.h"
|
|
|
|
|
1999-08-22 10:01:52 +04:00
|
|
|
class nsIDOMXULElement;
|
1999-08-21 23:53:39 +04:00
|
|
|
class nsIDOMNodeList;
|
1999-08-18 06:15:29 +04:00
|
|
|
|
|
|
|
#define NS_IDOMXULTREEELEMENT_IID \
|
|
|
|
{ 0xa6cf90ec, 0x15b3, 0x11d2, \
|
|
|
|
{0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32} }
|
|
|
|
|
2000-12-20 00:08:55 +03:00
|
|
|
class NS_NO_VTABLE nsIDOMXULTreeElement : public nsIDOMXULElement {
|
1999-08-18 06:15:29 +04:00
|
|
|
public:
|
2000-12-21 03:41:00 +03:00
|
|
|
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMXULTREEELEMENT_IID)
|
1999-08-21 23:53:39 +04:00
|
|
|
|
|
|
|
NS_IMETHOD GetSelectedItems(nsIDOMNodeList** aSelectedItems)=0;
|
|
|
|
|
2000-01-25 09:35:27 +03:00
|
|
|
NS_IMETHOD GetCurrentItem(nsIDOMXULElement** aCurrentItem)=0;
|
2000-06-21 06:02:24 +04:00
|
|
|
NS_IMETHOD SetCurrentItem(nsIDOMXULElement* aCurrentItem)=0;
|
2000-01-25 09:35:27 +03:00
|
|
|
|
2000-09-02 22:59:39 +04:00
|
|
|
NS_IMETHOD GetSuppressOnSelect(PRBool* aSuppressOnSelect)=0;
|
|
|
|
NS_IMETHOD SetSuppressOnSelect(PRBool aSuppressOnSelect)=0;
|
|
|
|
|
1999-08-22 10:01:52 +04:00
|
|
|
NS_IMETHOD SelectItem(nsIDOMXULElement* aTreeItem)=0;
|
|
|
|
|
2000-09-02 22:59:39 +04:00
|
|
|
NS_IMETHOD TimedSelect(nsIDOMXULElement* aTreeItem, PRInt32 aTimeout)=0;
|
2000-07-27 03:56:02 +04:00
|
|
|
|
1999-08-22 10:53:01 +04:00
|
|
|
NS_IMETHOD ClearItemSelection()=0;
|
|
|
|
|
1999-08-22 10:01:52 +04:00
|
|
|
NS_IMETHOD AddItemToSelection(nsIDOMXULElement* aTreeItem)=0;
|
|
|
|
|
|
|
|
NS_IMETHOD RemoveItemFromSelection(nsIDOMXULElement* aTreeItem)=0;
|
|
|
|
|
1999-08-22 10:31:00 +04:00
|
|
|
NS_IMETHOD ToggleItemSelection(nsIDOMXULElement* aTreeItem)=0;
|
|
|
|
|
1999-08-22 10:01:52 +04:00
|
|
|
NS_IMETHOD SelectItemRange(nsIDOMXULElement* aStartItem, nsIDOMXULElement* aEndItem)=0;
|
|
|
|
|
|
|
|
NS_IMETHOD SelectAll()=0;
|
|
|
|
|
|
|
|
NS_IMETHOD InvertSelection()=0;
|
1999-08-18 06:15:29 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#define NS_DECL_IDOMXULTREEELEMENT \
|
1999-08-21 23:53:39 +04:00
|
|
|
NS_IMETHOD GetSelectedItems(nsIDOMNodeList** aSelectedItems); \
|
2000-01-25 09:35:27 +03:00
|
|
|
NS_IMETHOD GetCurrentItem(nsIDOMXULElement** aCurrentItem); \
|
2000-06-21 06:02:24 +04:00
|
|
|
NS_IMETHOD SetCurrentItem(nsIDOMXULElement* aCurrentItem); \
|
2000-09-02 22:59:39 +04:00
|
|
|
NS_IMETHOD GetSuppressOnSelect(PRBool* aSuppressOnSelect); \
|
|
|
|
NS_IMETHOD SetSuppressOnSelect(PRBool aSuppressOnSelect); \
|
1999-08-22 10:01:52 +04:00
|
|
|
NS_IMETHOD SelectItem(nsIDOMXULElement* aTreeItem); \
|
2000-09-02 22:59:39 +04:00
|
|
|
NS_IMETHOD TimedSelect(nsIDOMXULElement* aTreeItem, PRInt32 aTimeout); \
|
1999-08-22 10:53:01 +04:00
|
|
|
NS_IMETHOD ClearItemSelection(); \
|
1999-08-22 10:01:52 +04:00
|
|
|
NS_IMETHOD AddItemToSelection(nsIDOMXULElement* aTreeItem); \
|
|
|
|
NS_IMETHOD RemoveItemFromSelection(nsIDOMXULElement* aTreeItem); \
|
1999-08-22 10:31:00 +04:00
|
|
|
NS_IMETHOD ToggleItemSelection(nsIDOMXULElement* aTreeItem); \
|
1999-08-22 10:01:52 +04:00
|
|
|
NS_IMETHOD SelectItemRange(nsIDOMXULElement* aStartItem, nsIDOMXULElement* aEndItem); \
|
|
|
|
NS_IMETHOD SelectAll(); \
|
|
|
|
NS_IMETHOD InvertSelection(); \
|
1999-08-18 06:15:29 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define NS_FORWARD_IDOMXULTREEELEMENT(_to) \
|
1999-08-21 23:53:39 +04:00
|
|
|
NS_IMETHOD GetSelectedItems(nsIDOMNodeList** aSelectedItems) { return _to GetSelectedItems(aSelectedItems); } \
|
2000-01-25 09:35:27 +03:00
|
|
|
NS_IMETHOD GetCurrentItem(nsIDOMXULElement** aCurrentItem) { return _to GetCurrentItem(aCurrentItem); } \
|
2000-06-21 06:02:24 +04:00
|
|
|
NS_IMETHOD SetCurrentItem(nsIDOMXULElement* aCurrentItem) { return _to SetCurrentItem(aCurrentItem); } \
|
2000-09-02 22:59:39 +04:00
|
|
|
NS_IMETHOD GetSuppressOnSelect(PRBool* aSuppressOnSelect) { return _to GetSuppressOnSelect(aSuppressOnSelect); } \
|
|
|
|
NS_IMETHOD SetSuppressOnSelect(PRBool aSuppressOnSelect) { return _to SetSuppressOnSelect(aSuppressOnSelect); } \
|
1999-08-22 10:01:52 +04:00
|
|
|
NS_IMETHOD SelectItem(nsIDOMXULElement* aTreeItem) { return _to SelectItem(aTreeItem); } \
|
2000-09-02 22:59:39 +04:00
|
|
|
NS_IMETHOD TimedSelect(nsIDOMXULElement* aTreeItem, PRInt32 aTimeout) { return _to TimedSelect(aTreeItem, aTimeout); } \
|
1999-08-22 10:53:01 +04:00
|
|
|
NS_IMETHOD ClearItemSelection() { return _to ClearItemSelection(); } \
|
1999-08-22 10:01:52 +04:00
|
|
|
NS_IMETHOD AddItemToSelection(nsIDOMXULElement* aTreeItem) { return _to AddItemToSelection(aTreeItem); } \
|
|
|
|
NS_IMETHOD RemoveItemFromSelection(nsIDOMXULElement* aTreeItem) { return _to RemoveItemFromSelection(aTreeItem); } \
|
1999-08-22 10:31:00 +04:00
|
|
|
NS_IMETHOD ToggleItemSelection(nsIDOMXULElement* aTreeItem) { return _to ToggleItemSelection(aTreeItem); } \
|
1999-08-22 10:01:52 +04:00
|
|
|
NS_IMETHOD SelectItemRange(nsIDOMXULElement* aStartItem, nsIDOMXULElement* aEndItem) { return _to SelectItemRange(aStartItem, aEndItem); } \
|
|
|
|
NS_IMETHOD SelectAll() { return _to SelectAll(); } \
|
|
|
|
NS_IMETHOD InvertSelection() { return _to InvertSelection(); } \
|
1999-08-18 06:15:29 +04:00
|
|
|
|
|
|
|
|
|
|
|
extern "C" NS_DOM nsresult NS_InitXULTreeElementClass(nsIScriptContext *aContext, void **aPrototype);
|
|
|
|
|
|
|
|
extern "C" NS_DOM nsresult NS_NewScriptXULTreeElement(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
|
|
|
|
|
|
|
#endif // nsIDOMXULTreeElement_h__
|