gecko-dev/dom/public/xul/nsIDOMXULTreeElement.h

111 строки
4.9 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):
*/
/* AUTO-GENERATED. DO NOT EDIT!!! */
#ifndef nsIDOMXULTreeElement_h__
#define nsIDOMXULTreeElement_h__
#include "nsISupports.h"
#include "nsString.h"
#include "nsIScriptContext.h"
#include "nsIDOMXULElement.h"
class nsIDOMXULElement;
class nsIDOMNodeList;
#define NS_IDOMXULTREEELEMENT_IID \
{ 0xa6cf90ec, 0x15b3, 0x11d2, \
{0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32} }
class NS_NO_VTABLE nsIDOMXULTreeElement : public nsIDOMXULElement {
public:
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMXULTREEELEMENT_IID)
NS_IMETHOD GetSelectedItems(nsIDOMNodeList** aSelectedItems)=0;
NS_IMETHOD GetCurrentItem(nsIDOMXULElement** aCurrentItem)=0;
2000-06-21 06:02:24 +04:00
NS_IMETHOD SetCurrentItem(nsIDOMXULElement* aCurrentItem)=0;
NS_IMETHOD GetSuppressOnSelect(PRBool* aSuppressOnSelect)=0;
NS_IMETHOD SetSuppressOnSelect(PRBool aSuppressOnSelect)=0;
NS_IMETHOD SelectItem(nsIDOMXULElement* aTreeItem)=0;
NS_IMETHOD TimedSelect(nsIDOMXULElement* aTreeItem, PRInt32 aTimeout)=0;
1999-08-22 10:53:01 +04:00
NS_IMETHOD ClearItemSelection()=0;
NS_IMETHOD AddItemToSelection(nsIDOMXULElement* aTreeItem)=0;
NS_IMETHOD RemoveItemFromSelection(nsIDOMXULElement* aTreeItem)=0;
NS_IMETHOD ToggleItemSelection(nsIDOMXULElement* aTreeItem)=0;
NS_IMETHOD SelectItemRange(nsIDOMXULElement* aStartItem, nsIDOMXULElement* aEndItem)=0;
NS_IMETHOD SelectAll()=0;
NS_IMETHOD InvertSelection()=0;
};
#define NS_DECL_IDOMXULTREEELEMENT \
NS_IMETHOD GetSelectedItems(nsIDOMNodeList** aSelectedItems); \
NS_IMETHOD GetCurrentItem(nsIDOMXULElement** aCurrentItem); \
2000-06-21 06:02:24 +04:00
NS_IMETHOD SetCurrentItem(nsIDOMXULElement* aCurrentItem); \
NS_IMETHOD GetSuppressOnSelect(PRBool* aSuppressOnSelect); \
NS_IMETHOD SetSuppressOnSelect(PRBool aSuppressOnSelect); \
NS_IMETHOD SelectItem(nsIDOMXULElement* aTreeItem); \
NS_IMETHOD TimedSelect(nsIDOMXULElement* aTreeItem, PRInt32 aTimeout); \
1999-08-22 10:53:01 +04:00
NS_IMETHOD ClearItemSelection(); \
NS_IMETHOD AddItemToSelection(nsIDOMXULElement* aTreeItem); \
NS_IMETHOD RemoveItemFromSelection(nsIDOMXULElement* aTreeItem); \
NS_IMETHOD ToggleItemSelection(nsIDOMXULElement* aTreeItem); \
NS_IMETHOD SelectItemRange(nsIDOMXULElement* aStartItem, nsIDOMXULElement* aEndItem); \
NS_IMETHOD SelectAll(); \
NS_IMETHOD InvertSelection(); \
#define NS_FORWARD_IDOMXULTREEELEMENT(_to) \
NS_IMETHOD GetSelectedItems(nsIDOMNodeList** aSelectedItems) { return _to GetSelectedItems(aSelectedItems); } \
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); } \
NS_IMETHOD GetSuppressOnSelect(PRBool* aSuppressOnSelect) { return _to GetSuppressOnSelect(aSuppressOnSelect); } \
NS_IMETHOD SetSuppressOnSelect(PRBool aSuppressOnSelect) { return _to SetSuppressOnSelect(aSuppressOnSelect); } \
NS_IMETHOD SelectItem(nsIDOMXULElement* aTreeItem) { return _to SelectItem(aTreeItem); } \
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(); } \
NS_IMETHOD AddItemToSelection(nsIDOMXULElement* aTreeItem) { return _to AddItemToSelection(aTreeItem); } \
NS_IMETHOD RemoveItemFromSelection(nsIDOMXULElement* aTreeItem) { return _to RemoveItemFromSelection(aTreeItem); } \
NS_IMETHOD ToggleItemSelection(nsIDOMXULElement* aTreeItem) { return _to ToggleItemSelection(aTreeItem); } \
NS_IMETHOD SelectItemRange(nsIDOMXULElement* aStartItem, nsIDOMXULElement* aEndItem) { return _to SelectItemRange(aStartItem, aEndItem); } \
NS_IMETHOD SelectAll() { return _to SelectAll(); } \
NS_IMETHOD InvertSelection() { return _to InvertSelection(); } \
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__