2001-09-29 00:14:13 +04:00
|
|
|
/* -*- Mode: C++; 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/. */
|
1999-08-25 01:55:56 +04:00
|
|
|
|
|
|
|
#ifndef nsISelectControlFrame_h___
|
|
|
|
#define nsISelectControlFrame_h___
|
|
|
|
|
2009-01-12 22:20:59 +03:00
|
|
|
#include "nsQueryFrame.h"
|
1999-08-25 01:55:56 +04:00
|
|
|
|
2017-07-06 15:00:35 +03:00
|
|
|
/**
|
1999-08-25 01:55:56 +04:00
|
|
|
* nsISelectControlFrame is the interface for combo boxes and listboxes
|
|
|
|
*/
|
2009-02-18 06:27:25 +03:00
|
|
|
class nsISelectControlFrame : public nsQueryFrame
|
2009-01-12 22:20:59 +03:00
|
|
|
{
|
1999-08-25 01:55:56 +04:00
|
|
|
public:
|
2009-09-12 20:49:24 +04:00
|
|
|
NS_DECL_QUERYFRAME_TARGET(nsISelectControlFrame)
|
1999-08-25 01:55:56 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Adds an option to the list at index
|
|
|
|
*/
|
|
|
|
|
2012-08-22 19:56:38 +04:00
|
|
|
NS_IMETHOD AddOption(int32_t index) = 0;
|
1999-08-25 01:55:56 +04:00
|
|
|
|
|
|
|
/**
|
2009-02-18 06:27:25 +03:00
|
|
|
* Removes the option at index. The caller must have a live script
|
|
|
|
* blocker while calling this method.
|
1999-08-25 01:55:56 +04:00
|
|
|
*/
|
2017-07-06 15:00:35 +03:00
|
|
|
NS_IMETHOD RemoveOption(int32_t index) = 0;
|
1999-08-25 01:55:56 +04:00
|
|
|
|
1999-11-12 01:13:33 +03:00
|
|
|
/**
|
2002-03-31 14:14:01 +04:00
|
|
|
* Sets whether the parser is done adding children
|
|
|
|
* @param aIsDone whether the parser is done adding children
|
1999-11-12 01:13:33 +03:00
|
|
|
*/
|
2011-09-29 10:19:26 +04:00
|
|
|
NS_IMETHOD DoneAddingChildren(bool aIsDone) = 0;
|
1999-11-12 01:13:33 +03:00
|
|
|
|
2000-04-29 03:24:59 +04:00
|
|
|
/**
|
2001-11-02 10:40:01 +03:00
|
|
|
* Notify the frame when an option is selected
|
2000-04-29 03:24:59 +04:00
|
|
|
*/
|
2012-08-22 19:56:38 +04:00
|
|
|
NS_IMETHOD OnOptionSelected(int32_t aIndex, bool aSelected) = 0;
|
2000-04-29 03:24:59 +04:00
|
|
|
|
2005-02-05 01:56:13 +03:00
|
|
|
/**
|
2009-02-18 06:27:25 +03:00
|
|
|
* Notify the frame when selectedIndex was changed. This might
|
|
|
|
* destroy the frame.
|
2005-02-05 01:56:13 +03:00
|
|
|
*/
|
2012-08-22 19:56:38 +04:00
|
|
|
NS_IMETHOD OnSetSelectedIndex(int32_t aOldIndex, int32_t aNewIndex) = 0;
|
2005-02-05 01:56:13 +03:00
|
|
|
|
1999-08-25 01:55:56 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|