2001-09-29 00:14:13 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* ***** BEGIN LICENSE BLOCK *****
|
|
|
|
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
|
1999-01-18 18:14:00 +03:00
|
|
|
*
|
2001-09-29 00:14:13 +04: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-01-18 18:14:00 +03:00
|
|
|
*
|
2001-09-29 00:14:13 +04: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-01-18 18:14:00 +03:00
|
|
|
*
|
|
|
|
* The Original Code is Mozilla Communicator client code.
|
|
|
|
*
|
2001-09-29 00:14:13 +04:00
|
|
|
* The Initial Developer of the Original Code is
|
|
|
|
* Netscape Communications Corporation.
|
|
|
|
* Portions created by the Initial Developer are Copyright (C) 1998
|
|
|
|
* the Initial Developer. All Rights Reserved.
|
1999-11-06 06:40:37 +03:00
|
|
|
*
|
2001-09-29 00:14:13 +04:00
|
|
|
* Contributor(s):
|
|
|
|
*
|
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
|
|
|
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
|
|
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
* of those above. If you wish to allow use of your version of this file only
|
|
|
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
* use your version of this file under the terms of the NPL, indicate your
|
|
|
|
* decision by deleting the provisions above and replace them with the notice
|
|
|
|
* and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
* the provisions above, a recipient may use your version of this file under
|
|
|
|
* the terms of any one of the NPL, the GPL or the LGPL.
|
|
|
|
*
|
|
|
|
* ***** END LICENSE BLOCK ***** */
|
1999-01-18 18:14:00 +03:00
|
|
|
#ifndef nsListControlFrame_h___
|
|
|
|
#define nsListControlFrame_h___
|
|
|
|
|
2000-03-03 07:28:59 +03:00
|
|
|
#ifdef DEBUG_evaughan
|
|
|
|
//#define DEBUG_rods
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef DEBUG_rods
|
2001-02-23 04:45:45 +03:00
|
|
|
//#define DO_REFLOW_DEBUG
|
|
|
|
//#define DO_REFLOW_COUNTER
|
2000-03-03 07:28:59 +03:00
|
|
|
//#define DO_UNCONSTRAINED_CHECK
|
|
|
|
//#define DO_PIXELS
|
|
|
|
#endif
|
|
|
|
|
1999-01-18 18:14:00 +03:00
|
|
|
#include "nsScrollFrame.h"
|
|
|
|
#include "nsIFormControlFrame.h"
|
|
|
|
#include "nsIListControlFrame.h"
|
1999-08-26 18:54:07 +04:00
|
|
|
#include "nsISelectControlFrame.h"
|
|
|
|
#include "nsIDOMMouseListener.h"
|
|
|
|
#include "nsIDOMMouseMotionListener.h"
|
1999-08-27 18:42:27 +04:00
|
|
|
#include "nsIDOMKeyListener.h"
|
2000-01-14 12:28:54 +03:00
|
|
|
#include "nsIPresState.h"
|
2000-08-14 18:42:12 +04:00
|
|
|
#include "nsCWeakReference.h"
|
|
|
|
#include "nsIContent.h"
|
2001-11-02 10:40:01 +03:00
|
|
|
#include "nsIStatefulFrame.h"
|
1999-01-18 18:14:00 +03:00
|
|
|
|
|
|
|
class nsIDOMHTMLSelectElement;
|
|
|
|
class nsIDOMHTMLCollection;
|
|
|
|
class nsIDOMHTMLOptionElement;
|
|
|
|
class nsIComboboxControlFrame;
|
1999-06-22 00:41:56 +04:00
|
|
|
class nsIViewManager;
|
1999-08-26 18:54:07 +04:00
|
|
|
class nsIPresContext;
|
2000-02-15 18:04:38 +03:00
|
|
|
class nsVoidArray;
|
2000-03-15 18:55:30 +03:00
|
|
|
class nsIScrollableView;
|
2001-11-02 10:40:01 +03:00
|
|
|
class nsIStatefulFrame;
|
1999-01-18 18:14:00 +03:00
|
|
|
|
2000-08-14 18:42:12 +04:00
|
|
|
class nsListControlFrame;
|
2001-06-08 06:34:09 +04:00
|
|
|
class nsSelectUpdateTimer;
|
|
|
|
class nsVoidArray;
|
2000-08-14 18:42:12 +04:00
|
|
|
|
|
|
|
#define NS_ILIST_EVENT_LISTENER_IID \
|
|
|
|
{/* 45BC6821-6EFB-11d4-B1EE-000064657374*/ \
|
|
|
|
0x45bc6821, 0x6efb, 0x11d4, \
|
|
|
|
{0xb1, 0xee, 0x0, 0x0, 0x64, 0x65, 0x73, 0x74} }
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* nsIListEventListener
|
|
|
|
* Standard interface for event listeners that are attached to nsListControls
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
class nsIListEventListener : public nsISupports
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
static const nsIID& GetIID() { static nsIID iid = NS_ILIST_EVENT_LISTENER_IID; return iid; }
|
|
|
|
|
|
|
|
/** SetFrame sets the frame we send event messages to, when necessary
|
|
|
|
* @param aFrame -- the frame, can be null, not ref counted (guaranteed to outlive us!)
|
|
|
|
*/
|
|
|
|
NS_IMETHOD SetFrame(nsListControlFrame *aFrame)=0;
|
|
|
|
|
|
|
|
};
|
|
|
|
/******************************************************************************
|
|
|
|
* nsListEventListener
|
2001-12-24 02:23:41 +03:00
|
|
|
* This class is responsible for propagating events to the nsListControlFrame
|
2000-08-14 18:42:12 +04:00
|
|
|
* becuase it isn't ref-counted
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
class nsListEventListener; // forward declaration for factory
|
|
|
|
|
|
|
|
/* factory for ender key listener */
|
|
|
|
nsresult NS_NewListEventListener(nsIListEventListener ** aInstancePtrResult);
|
|
|
|
|
|
|
|
class nsListEventListener : public nsIListEventListener,
|
|
|
|
public nsIDOMKeyListener,
|
|
|
|
public nsIDOMMouseListener,
|
|
|
|
public nsIDOMMouseMotionListener
|
|
|
|
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
/** the default destructor */
|
|
|
|
virtual ~nsListEventListener();
|
|
|
|
|
|
|
|
/** interfaces for addref and release and queryinterface*/
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
|
|
|
|
/** nsIDOMKeyListener interfaces
|
|
|
|
* @see nsIDOMKeyListener
|
|
|
|
*/
|
|
|
|
NS_IMETHOD SetFrame(nsListControlFrame *aFrame);
|
|
|
|
|
|
|
|
/** nsIDOMKeyListener interfaces
|
|
|
|
* @see nsIDOMKeyListener
|
|
|
|
*/
|
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
|
|
|
NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent);
|
|
|
|
NS_IMETHOD KeyDown(nsIDOMEvent* aKeyEvent);
|
|
|
|
NS_IMETHOD KeyUp(nsIDOMEvent* aKeyEvent);
|
|
|
|
NS_IMETHOD KeyPress(nsIDOMEvent* aKeyEvent);
|
2000-08-14 18:42:12 +04:00
|
|
|
/* END interfaces from nsIDOMKeyListener*/
|
|
|
|
|
|
|
|
/** nsIDOMMouseListener interfaces
|
|
|
|
* @see nsIDOMMouseListener
|
|
|
|
*/
|
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
|
|
|
NS_IMETHOD MouseDown(nsIDOMEvent* aMouseEvent);
|
|
|
|
NS_IMETHOD MouseUp(nsIDOMEvent* aMouseEvent);
|
|
|
|
NS_IMETHOD MouseClick(nsIDOMEvent* aMouseEvent);
|
|
|
|
NS_IMETHOD MouseDblClick(nsIDOMEvent* aMouseEvent);
|
|
|
|
NS_IMETHOD MouseOver(nsIDOMEvent* aMouseEvent);
|
|
|
|
NS_IMETHOD MouseOut(nsIDOMEvent* aMouseEvent);
|
2000-08-14 18:42:12 +04:00
|
|
|
/* END interfaces from nsIDOMMouseListener*/
|
|
|
|
|
|
|
|
//nsIDOMEventMotionListener
|
|
|
|
/** nsIDOMEventMotionListener interfaces
|
|
|
|
* @see nsIDOMEventMotionListener
|
|
|
|
*/
|
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
|
|
|
NS_IMETHOD MouseMove(nsIDOMEvent* aMouseEvent);
|
|
|
|
NS_IMETHOD DragMove(nsIDOMEvent* aMouseEvent);
|
2000-08-14 18:42:12 +04:00
|
|
|
/* END interfaces from nsIDOMMouseListener*/
|
|
|
|
|
|
|
|
friend nsresult NS_NewListEventListener(nsIListEventListener ** aInstancePtrResult);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
/** the default constructor. Protected, use the factory to create an instance.
|
|
|
|
* @see NS_NewEnderEventListener
|
|
|
|
*/
|
|
|
|
nsListEventListener();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
nsCWeakReference<nsListControlFrame> mFrame;
|
|
|
|
nsCOMPtr<nsIContent> mContent; // ref counted
|
|
|
|
};
|
|
|
|
|
1999-01-18 18:14:00 +03:00
|
|
|
/**
|
1999-05-28 01:17:10 +04:00
|
|
|
* Frame-based listbox.
|
1999-01-18 18:14:00 +03:00
|
|
|
*/
|
1999-05-28 01:17:10 +04:00
|
|
|
|
1999-01-18 18:14:00 +03:00
|
|
|
class nsListControlFrame : public nsScrollFrame,
|
1999-03-23 00:32:12 +03:00
|
|
|
public nsIFormControlFrame,
|
1999-08-26 18:54:07 +04:00
|
|
|
public nsIListControlFrame,
|
|
|
|
public nsIDOMMouseListener,
|
|
|
|
public nsIDOMMouseMotionListener,
|
1999-08-27 18:42:27 +04:00
|
|
|
public nsIDOMKeyListener,
|
2000-06-15 04:35:46 +04:00
|
|
|
public nsISelectControlFrame
|
1999-01-18 18:14:00 +03:00
|
|
|
{
|
|
|
|
public:
|
1999-12-05 02:49:50 +03:00
|
|
|
friend nsresult NS_NewListControlFrame(nsIPresShell* aPresShell, nsIFrame** aNewFrame);
|
2001-06-08 06:34:09 +04:00
|
|
|
friend class nsSelectUpdateTimer;
|
1999-01-18 18:14:00 +03:00
|
|
|
|
|
|
|
// nsISupports
|
1999-08-31 17:22:50 +04:00
|
|
|
NS_IMETHOD QueryInterface(const nsIID& aIID, void** aInstancePtr);
|
1999-01-18 18:14:00 +03:00
|
|
|
|
fixed bugs #6303, #6753, #6756, #6759
Re-wrote nsComboboxFrame.
removed the obsolete nsHTMLAtoms: comboText,comoTextSelected,comTextSelectedFocus,dropDownVisible,
dropdownHidden, dropDownBtnOut, dropDownBtnPressed,
Added nsHTMLAtoms::combobox, nsLayoutAtoms::popupList
Renamed dropDownList to dropDownListPseudo
Added "arrow.gif" as to be used the background-image for the combobox button
ua.css - added rules for select to differentiate between comboboxes and listboxes.
Added style rules to more closely match the XPTOOLKIT XPWidgets look.
removed the following :-moz-combobox-text, -moz-combobox-textselected
nsIFormControlFrame.h - Added SetSuggestedSize method.
nsButtonControlFrame - Implemented SetSuggestedSize.
nsCSSFrameConstructor.cpp - Rewrote ConstructSelectFrame.
nsIWidget.h -Added GetAbsoluteBounds method.
nsWindow.cpp - Implemented GetAbsoluteBounds.
1999-07-15 02:00:24 +04:00
|
|
|
// nsIFrame
|
1999-11-24 09:03:41 +03:00
|
|
|
NS_IMETHOD HandleEvent(nsIPresContext* aPresContext,
|
fixed bugs #6303, #6753, #6756, #6759
Re-wrote nsComboboxFrame.
removed the obsolete nsHTMLAtoms: comboText,comoTextSelected,comTextSelectedFocus,dropDownVisible,
dropdownHidden, dropDownBtnOut, dropDownBtnPressed,
Added nsHTMLAtoms::combobox, nsLayoutAtoms::popupList
Renamed dropDownList to dropDownListPseudo
Added "arrow.gif" as to be used the background-image for the combobox button
ua.css - added rules for select to differentiate between comboboxes and listboxes.
Added style rules to more closely match the XPTOOLKIT XPWidgets look.
removed the following :-moz-combobox-text, -moz-combobox-textselected
nsIFormControlFrame.h - Added SetSuggestedSize method.
nsButtonControlFrame - Implemented SetSuggestedSize.
nsCSSFrameConstructor.cpp - Rewrote ConstructSelectFrame.
nsIWidget.h -Added GetAbsoluteBounds method.
nsWindow.cpp - Implemented GetAbsoluteBounds.
1999-07-15 02:00:24 +04:00
|
|
|
nsGUIEvent* aEvent,
|
1999-11-24 09:03:41 +03:00
|
|
|
nsEventStatus* aEventStatus);
|
fixed bugs #6303, #6753, #6756, #6759
Re-wrote nsComboboxFrame.
removed the obsolete nsHTMLAtoms: comboText,comoTextSelected,comTextSelectedFocus,dropDownVisible,
dropdownHidden, dropDownBtnOut, dropDownBtnPressed,
Added nsHTMLAtoms::combobox, nsLayoutAtoms::popupList
Renamed dropDownList to dropDownListPseudo
Added "arrow.gif" as to be used the background-image for the combobox button
ua.css - added rules for select to differentiate between comboboxes and listboxes.
Added style rules to more closely match the XPTOOLKIT XPWidgets look.
removed the following :-moz-combobox-text, -moz-combobox-textselected
nsIFormControlFrame.h - Added SetSuggestedSize method.
nsButtonControlFrame - Implemented SetSuggestedSize.
nsCSSFrameConstructor.cpp - Rewrote ConstructSelectFrame.
nsIWidget.h -Added GetAbsoluteBounds method.
nsWindow.cpp - Implemented GetAbsoluteBounds.
1999-07-15 02:00:24 +04:00
|
|
|
|
1999-11-24 09:03:41 +03:00
|
|
|
NS_IMETHOD SetInitialChildList(nsIPresContext* aPresContext,
|
1999-01-18 18:14:00 +03:00
|
|
|
nsIAtom* aListName,
|
|
|
|
nsIFrame* aChildList);
|
1999-04-13 02:14:31 +04:00
|
|
|
|
1999-11-24 09:03:41 +03:00
|
|
|
NS_IMETHOD Reflow(nsIPresContext* aCX,
|
1999-01-18 18:14:00 +03:00
|
|
|
nsHTMLReflowMetrics& aDesiredSize,
|
|
|
|
const nsHTMLReflowState& aReflowState,
|
|
|
|
nsReflowStatus& aStatus);
|
|
|
|
|
1999-11-24 09:03:41 +03:00
|
|
|
NS_IMETHOD Init(nsIPresContext* aPresContext,
|
1999-01-18 18:14:00 +03:00
|
|
|
nsIContent* aContent,
|
1999-01-22 18:32:57 +03:00
|
|
|
nsIFrame* aParent,
|
1999-02-25 06:27:57 +03:00
|
|
|
nsIStyleContext* aContext,
|
|
|
|
nsIFrame* aPrevInFlow);
|
1999-01-18 18:14:00 +03:00
|
|
|
|
2001-12-07 17:51:12 +03:00
|
|
|
NS_IMETHOD DidReflow(nsIPresContext* aPresContext,
|
|
|
|
const nsHTMLReflowState* aReflowState,
|
|
|
|
nsDidReflowStatus aStatus);
|
1999-10-26 08:44:41 +04:00
|
|
|
NS_IMETHOD MoveTo(nsIPresContext* aPresContext, nscoord aX, nscoord aY);
|
2000-08-03 18:13:58 +04:00
|
|
|
NS_IMETHOD Destroy(nsIPresContext *aPresContext);
|
1999-01-18 18:14:00 +03:00
|
|
|
|
2001-09-19 16:35:19 +04:00
|
|
|
NS_IMETHOD Paint(nsIPresContext* aPresContext,
|
2001-01-27 17:09:34 +03:00
|
|
|
nsIRenderingContext& aRenderingContext,
|
2001-09-19 16:35:19 +04:00
|
|
|
const nsRect& aDirtyRect,
|
|
|
|
nsFramePaintLayer aWhichLayer,
|
|
|
|
PRUint32 aFlags = 0);
|
2001-01-27 17:09:34 +03:00
|
|
|
|
2001-03-20 02:20:21 +03:00
|
|
|
/**
|
|
|
|
* Get the "type" of the frame
|
|
|
|
*
|
|
|
|
* @see nsLayoutAtoms::scrollFrame
|
|
|
|
*/
|
|
|
|
NS_IMETHOD GetFrameType(nsIAtom** aType) const;
|
|
|
|
|
2001-10-25 05:08:40 +04:00
|
|
|
#ifdef DEBUG
|
|
|
|
// nsIFrameDebug
|
2001-11-14 04:33:42 +03:00
|
|
|
NS_IMETHOD GetFrameName(nsAString& aResult) const;
|
2001-10-25 05:08:40 +04:00
|
|
|
#endif
|
|
|
|
|
fixed bugs #6303, #6753, #6756, #6759
Re-wrote nsComboboxFrame.
removed the obsolete nsHTMLAtoms: comboText,comoTextSelected,comTextSelectedFocus,dropDownVisible,
dropdownHidden, dropDownBtnOut, dropDownBtnPressed,
Added nsHTMLAtoms::combobox, nsLayoutAtoms::popupList
Renamed dropDownList to dropDownListPseudo
Added "arrow.gif" as to be used the background-image for the combobox button
ua.css - added rules for select to differentiate between comboboxes and listboxes.
Added style rules to more closely match the XPTOOLKIT XPWidgets look.
removed the following :-moz-combobox-text, -moz-combobox-textselected
nsIFormControlFrame.h - Added SetSuggestedSize method.
nsButtonControlFrame - Implemented SetSuggestedSize.
nsCSSFrameConstructor.cpp - Rewrote ConstructSelectFrame.
nsIWidget.h -Added GetAbsoluteBounds method.
nsWindow.cpp - Implemented GetAbsoluteBounds.
1999-07-15 02:00:24 +04:00
|
|
|
// nsIFormControlFrame
|
|
|
|
NS_IMETHOD GetType(PRInt32* aType) const;
|
2001-11-02 10:40:01 +03:00
|
|
|
NS_IMETHOD GetName(nsAString* aName);
|
2000-08-23 21:27:06 +04:00
|
|
|
NS_IMETHOD SetProperty(nsIPresContext* aPresContext, nsIAtom* aName, const nsAReadableString& aValue);
|
|
|
|
NS_IMETHOD GetProperty(nsIAtom* aName, nsAWritableString& aValue);
|
fixed bugs #6303, #6753, #6756, #6759
Re-wrote nsComboboxFrame.
removed the obsolete nsHTMLAtoms: comboText,comoTextSelected,comTextSelectedFocus,dropDownVisible,
dropdownHidden, dropDownBtnOut, dropDownBtnPressed,
Added nsHTMLAtoms::combobox, nsLayoutAtoms::popupList
Renamed dropDownList to dropDownListPseudo
Added "arrow.gif" as to be used the background-image for the combobox button
ua.css - added rules for select to differentiate between comboboxes and listboxes.
Added style rules to more closely match the XPTOOLKIT XPWidgets look.
removed the following :-moz-combobox-text, -moz-combobox-textselected
nsIFormControlFrame.h - Added SetSuggestedSize method.
nsButtonControlFrame - Implemented SetSuggestedSize.
nsCSSFrameConstructor.cpp - Rewrote ConstructSelectFrame.
nsIWidget.h -Added GetAbsoluteBounds method.
nsWindow.cpp - Implemented GetAbsoluteBounds.
1999-07-15 02:00:24 +04:00
|
|
|
NS_IMETHOD GetMultiple(PRBool* aResult, nsIDOMHTMLSelectElement* aSelect = nsnull);
|
1999-01-18 18:14:00 +03:00
|
|
|
NS_IMETHOD GetFont(nsIPresContext* aPresContext,
|
2000-01-25 18:25:46 +03:00
|
|
|
const nsFont*& aFont);
|
1999-01-18 18:14:00 +03:00
|
|
|
NS_IMETHOD GetFormContent(nsIContent*& aContent) const;
|
2001-11-02 10:40:01 +03:00
|
|
|
NS_IMETHOD OnContentReset();
|
1999-01-18 18:14:00 +03:00
|
|
|
|
|
|
|
virtual void SetFocus(PRBool aOn = PR_TRUE, PRBool aRepaint = PR_FALSE);
|
1999-08-21 04:09:24 +04:00
|
|
|
virtual void ScrollIntoView(nsIPresContext* aPresContext);
|
1999-01-18 18:14:00 +03:00
|
|
|
virtual void MouseClicked(nsIPresContext* aPresContext);
|
|
|
|
virtual void SetFormFrame(nsFormFrame* aFrame);
|
1999-11-24 09:03:41 +03:00
|
|
|
virtual nscoord GetVerticalInsidePadding(nsIPresContext* aPresContext,
|
1999-09-30 15:36:44 +04:00
|
|
|
float aPixToTwip,
|
fixed bugs #6303, #6753, #6756, #6759
Re-wrote nsComboboxFrame.
removed the obsolete nsHTMLAtoms: comboText,comoTextSelected,comTextSelectedFocus,dropDownVisible,
dropdownHidden, dropDownBtnOut, dropDownBtnPressed,
Added nsHTMLAtoms::combobox, nsLayoutAtoms::popupList
Renamed dropDownList to dropDownListPseudo
Added "arrow.gif" as to be used the background-image for the combobox button
ua.css - added rules for select to differentiate between comboboxes and listboxes.
Added style rules to more closely match the XPTOOLKIT XPWidgets look.
removed the following :-moz-combobox-text, -moz-combobox-textselected
nsIFormControlFrame.h - Added SetSuggestedSize method.
nsButtonControlFrame - Implemented SetSuggestedSize.
nsCSSFrameConstructor.cpp - Rewrote ConstructSelectFrame.
nsIWidget.h -Added GetAbsoluteBounds method.
nsWindow.cpp - Implemented GetAbsoluteBounds.
1999-07-15 02:00:24 +04:00
|
|
|
nscoord aInnerHeight) const;
|
1999-11-24 09:03:41 +03:00
|
|
|
virtual nscoord GetHorizontalInsidePadding(nsIPresContext* aPresContext,
|
fixed bugs #6303, #6753, #6756, #6759
Re-wrote nsComboboxFrame.
removed the obsolete nsHTMLAtoms: comboText,comoTextSelected,comTextSelectedFocus,dropDownVisible,
dropdownHidden, dropDownBtnOut, dropDownBtnPressed,
Added nsHTMLAtoms::combobox, nsLayoutAtoms::popupList
Renamed dropDownList to dropDownListPseudo
Added "arrow.gif" as to be used the background-image for the combobox button
ua.css - added rules for select to differentiate between comboboxes and listboxes.
Added style rules to more closely match the XPTOOLKIT XPWidgets look.
removed the following :-moz-combobox-text, -moz-combobox-textselected
nsIFormControlFrame.h - Added SetSuggestedSize method.
nsButtonControlFrame - Implemented SetSuggestedSize.
nsCSSFrameConstructor.cpp - Rewrote ConstructSelectFrame.
nsIWidget.h -Added GetAbsoluteBounds method.
nsWindow.cpp - Implemented GetAbsoluteBounds.
1999-07-15 02:00:24 +04:00
|
|
|
float aPixToTwip,
|
|
|
|
nscoord aInnerWidth,
|
|
|
|
nscoord aCharWidth) const;
|
|
|
|
virtual nsresult RequiresWidget(PRBool &aRequiresWidget);
|
|
|
|
|
2001-06-30 04:25:09 +04:00
|
|
|
// for accessibility purposes
|
2001-08-17 07:13:07 +04:00
|
|
|
#ifdef ACCESSIBILITY
|
2001-06-30 04:25:09 +04:00
|
|
|
NS_IMETHOD GetAccessible(nsIAccessible** aAccessible);
|
2001-08-17 07:13:07 +04:00
|
|
|
#endif
|
2001-06-30 04:25:09 +04:00
|
|
|
|
fixed bugs #6303, #6753, #6756, #6759
Re-wrote nsComboboxFrame.
removed the obsolete nsHTMLAtoms: comboText,comoTextSelected,comTextSelectedFocus,dropDownVisible,
dropdownHidden, dropDownBtnOut, dropDownBtnPressed,
Added nsHTMLAtoms::combobox, nsLayoutAtoms::popupList
Renamed dropDownList to dropDownListPseudo
Added "arrow.gif" as to be used the background-image for the combobox button
ua.css - added rules for select to differentiate between comboboxes and listboxes.
Added style rules to more closely match the XPTOOLKIT XPWidgets look.
removed the following :-moz-combobox-text, -moz-combobox-textselected
nsIFormControlFrame.h - Added SetSuggestedSize method.
nsButtonControlFrame - Implemented SetSuggestedSize.
nsCSSFrameConstructor.cpp - Rewrote ConstructSelectFrame.
nsIWidget.h -Added GetAbsoluteBounds method.
nsWindow.cpp - Implemented GetAbsoluteBounds.
1999-07-15 02:00:24 +04:00
|
|
|
// nsHTMLContainerFrame
|
|
|
|
virtual PRIntn GetSkipSides() const;
|
|
|
|
|
|
|
|
// nsIListControlFrame
|
1999-01-18 18:14:00 +03:00
|
|
|
NS_IMETHOD SetComboboxFrame(nsIFrame* aComboboxFrame);
|
1999-08-26 18:54:07 +04:00
|
|
|
NS_IMETHOD GetSelectedIndex(PRInt32* aIndex);
|
2001-11-02 10:40:01 +03:00
|
|
|
NS_IMETHOD GetOptionText(PRInt32 aIndex, nsAString & aStr);
|
1999-10-26 08:44:41 +04:00
|
|
|
NS_IMETHOD CaptureMouseEvents(nsIPresContext* aPresContext, PRBool aGrabMouseEvents);
|
fixed bugs #6303, #6753, #6756, #6759
Re-wrote nsComboboxFrame.
removed the obsolete nsHTMLAtoms: comboText,comoTextSelected,comTextSelectedFocus,dropDownVisible,
dropdownHidden, dropDownBtnOut, dropDownBtnPressed,
Added nsHTMLAtoms::combobox, nsLayoutAtoms::popupList
Renamed dropDownList to dropDownListPseudo
Added "arrow.gif" as to be used the background-image for the combobox button
ua.css - added rules for select to differentiate between comboboxes and listboxes.
Added style rules to more closely match the XPTOOLKIT XPWidgets look.
removed the following :-moz-combobox-text, -moz-combobox-textselected
nsIFormControlFrame.h - Added SetSuggestedSize method.
nsButtonControlFrame - Implemented SetSuggestedSize.
nsCSSFrameConstructor.cpp - Rewrote ConstructSelectFrame.
nsIWidget.h -Added GetAbsoluteBounds method.
nsWindow.cpp - Implemented GetAbsoluteBounds.
1999-07-15 02:00:24 +04:00
|
|
|
NS_IMETHOD GetMaximumSize(nsSize &aSize);
|
|
|
|
NS_IMETHOD SetSuggestedSize(nscoord aWidth, nscoord aHeight);
|
1999-07-21 02:32:41 +04:00
|
|
|
NS_IMETHOD GetNumberOfOptions(PRInt32* aNumOptions);
|
1999-10-26 08:44:41 +04:00
|
|
|
NS_IMETHOD SyncViewWithFrame(nsIPresContext* aPresContext);
|
1999-09-08 18:27:38 +04:00
|
|
|
NS_IMETHOD AboutToDropDown();
|
1999-10-01 18:30:33 +04:00
|
|
|
NS_IMETHOD AboutToRollup();
|
2001-11-02 10:40:01 +03:00
|
|
|
NS_IMETHOD UpdateSelection();
|
|
|
|
NS_IMETHOD ComboboxUpdateSelection(PRBool aForceUpdate, PRBool aSendEvent);
|
2000-03-03 07:28:59 +03:00
|
|
|
NS_IMETHOD SetOverrideReflowOptimization(PRBool aValue) { mOverrideReflowOpt = aValue; return NS_OK; }
|
2000-03-18 17:17:34 +03:00
|
|
|
NS_IMETHOD GetOptionsContainer(nsIPresContext* aPresContext, nsIFrame** aFrame);
|
2000-03-03 07:28:59 +03:00
|
|
|
|
1999-08-26 18:54:07 +04:00
|
|
|
// nsISelectControlFrame
|
1999-10-26 08:44:41 +04:00
|
|
|
NS_IMETHOD AddOption(nsIPresContext* aPresContext, PRInt32 index);
|
|
|
|
NS_IMETHOD RemoveOption(nsIPresContext* aPresContext, PRInt32 index);
|
1999-09-15 09:31:31 +04:00
|
|
|
NS_IMETHOD GetOptionSelected(PRInt32 aIndex, PRBool* aValue);
|
1999-11-19 18:46:20 +03:00
|
|
|
NS_IMETHOD DoneAddingContent(PRBool aIsDone);
|
2001-11-02 10:40:01 +03:00
|
|
|
NS_IMETHOD OnOptionSelected(nsIPresContext* aPresContext,
|
|
|
|
PRInt32 aIndex,
|
|
|
|
PRBool aSelected);
|
|
|
|
NS_IMETHOD GetDummyFrame(nsIFrame** aFrame);
|
|
|
|
NS_IMETHOD SetDummyFrame(nsIFrame* aFrame);
|
1999-08-26 18:54:07 +04:00
|
|
|
|
|
|
|
//nsIDOMEventListener
|
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
|
|
|
NS_IMETHOD MouseDown(nsIDOMEvent* aMouseEvent);
|
|
|
|
NS_IMETHOD MouseUp(nsIDOMEvent* aMouseEvent);
|
|
|
|
NS_IMETHOD MouseClick(nsIDOMEvent* aMouseEvent) { return NS_OK; }
|
|
|
|
NS_IMETHOD MouseDblClick(nsIDOMEvent* aMouseEvent) { return NS_OK; }
|
|
|
|
NS_IMETHOD MouseOver(nsIDOMEvent* aMouseEvent) { return NS_OK; }
|
|
|
|
NS_IMETHOD MouseOut(nsIDOMEvent* aMouseEvent) { return NS_OK; }
|
|
|
|
NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent) { return NS_OK; }
|
1999-08-26 18:54:07 +04:00
|
|
|
|
|
|
|
//nsIDOMEventMotionListener
|
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
|
|
|
NS_IMETHOD MouseMove(nsIDOMEvent* aMouseEvent);
|
|
|
|
NS_IMETHOD DragMove(nsIDOMEvent* aMouseEvent);
|
1999-08-26 18:54:07 +04:00
|
|
|
|
1999-08-27 18:42:27 +04:00
|
|
|
//nsIDOMKeyListener
|
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
|
|
|
NS_IMETHOD KeyDown(nsIDOMEvent* aKeyEvent);
|
|
|
|
NS_IMETHOD KeyUp(nsIDOMEvent* aKeyEvent) { return NS_OK; }
|
|
|
|
NS_IMETHOD KeyPress(nsIDOMEvent* aKeyEvent);
|
1999-08-26 18:54:07 +04:00
|
|
|
|
2001-11-02 10:40:01 +03:00
|
|
|
//nsIStatefulFrame
|
|
|
|
NS_IMETHOD SaveState(nsIPresContext* aPresContext, nsIPresState** aState);
|
|
|
|
NS_IMETHOD RestoreState(nsIPresContext* aPresContext, nsIPresState* aState);
|
|
|
|
|
|
|
|
// Static Methods
|
1999-01-18 18:14:00 +03:00
|
|
|
static nsIDOMHTMLSelectElement* GetSelect(nsIContent * aContent);
|
|
|
|
static nsIDOMHTMLCollection* GetOptions(nsIContent * aContent, nsIDOMHTMLSelectElement* aSelect = nsnull);
|
1999-08-27 18:42:27 +04:00
|
|
|
static nsIDOMHTMLOptionElement* GetOption(nsIDOMHTMLCollection& aOptions, PRInt32 aIndex);
|
|
|
|
static nsIContent* GetOptionAsContent(nsIDOMHTMLCollection* aCollection,PRInt32 aIndex);
|
1999-01-18 18:14:00 +03:00
|
|
|
|
2000-08-14 18:42:12 +04:00
|
|
|
// Weak Reference
|
|
|
|
nsCWeakReferent *WeakReferent()
|
|
|
|
{ return &mWeakReferent; }
|
|
|
|
|
2001-11-02 10:40:01 +03:00
|
|
|
// Helper
|
2001-02-23 04:45:45 +03:00
|
|
|
void SetPassId(PRInt16 aId) { mPassId = aId; }
|
|
|
|
|
1999-06-22 00:41:56 +04:00
|
|
|
protected:
|
1999-11-12 01:13:33 +03:00
|
|
|
|
2001-11-02 10:40:01 +03:00
|
|
|
nsresult IsOptionDisabled(PRInt32 anIndex, PRBool &aIsDisabled);
|
1999-11-12 01:13:33 +03:00
|
|
|
nsresult ScrollToFrame(nsIContent * aOptElement);
|
2001-11-02 10:40:01 +03:00
|
|
|
nsresult ScrollToIndex(PRInt32 anIndex);
|
2000-01-11 23:36:37 +03:00
|
|
|
PRBool IsClickingInCombobox(nsIDOMEvent* aMouseEvent);
|
2001-11-02 10:40:01 +03:00
|
|
|
void AdjustIndexForDisabledOpt(PRInt32 aStartIndex, PRInt32 &anNewIndex,
|
2000-08-18 01:38:15 +04:00
|
|
|
PRInt32 aNumOptions, PRInt32 aDoAdjustInc, PRInt32 aDoAdjustIncNext);
|
2001-06-08 06:34:09 +04:00
|
|
|
virtual void ResetList(nsIPresContext* aPresContext, nsVoidArray * aInxList = nsnull);
|
|
|
|
|
1999-01-18 18:14:00 +03:00
|
|
|
nsListControlFrame();
|
|
|
|
virtual ~nsListControlFrame();
|
|
|
|
|
2001-11-02 10:40:01 +03:00
|
|
|
// nsScrollFrame overrides
|
|
|
|
// Override the widget created for the list box so a Borderless top level
|
|
|
|
// widget is created for drop-down lists.
|
2001-06-01 02:19:43 +04:00
|
|
|
virtual nsresult CreateScrollingViewWidget(nsIView* aView, const nsStyleDisplay* aDisplay);
|
1999-10-26 08:44:41 +04:00
|
|
|
virtual nsresult GetScrollingParentView(nsIPresContext* aPresContext,
|
|
|
|
nsIFrame* aParent,
|
|
|
|
nsIView** aParentView);
|
2001-11-02 10:40:01 +03:00
|
|
|
// Utility methods
|
1999-07-21 02:32:41 +04:00
|
|
|
nsresult GetSizeAttribute(PRInt32 *aSize);
|
1999-08-26 18:54:07 +04:00
|
|
|
nsIContent* GetOptionFromContent(nsIContent *aContent);
|
2001-11-02 10:40:01 +03:00
|
|
|
nsresult GetIndexFromDOMEvent(nsIDOMEvent* aMouseEvent, PRInt32& aCurIndex);
|
1999-08-27 18:42:27 +04:00
|
|
|
nsIContent* GetOptionContent(PRInt32 aIndex);
|
fixed bugs #6303, #6753, #6756, #6759
Re-wrote nsComboboxFrame.
removed the obsolete nsHTMLAtoms: comboText,comoTextSelected,comTextSelectedFocus,dropDownVisible,
dropdownHidden, dropDownBtnOut, dropDownBtnPressed,
Added nsHTMLAtoms::combobox, nsLayoutAtoms::popupList
Renamed dropDownList to dropDownListPseudo
Added "arrow.gif" as to be used the background-image for the combobox button
ua.css - added rules for select to differentiate between comboboxes and listboxes.
Added style rules to more closely match the XPTOOLKIT XPWidgets look.
removed the following :-moz-combobox-text, -moz-combobox-textselected
nsIFormControlFrame.h - Added SetSuggestedSize method.
nsButtonControlFrame - Implemented SetSuggestedSize.
nsCSSFrameConstructor.cpp - Rewrote ConstructSelectFrame.
nsIWidget.h -Added GetAbsoluteBounds method.
nsWindow.cpp - Implemented GetAbsoluteBounds.
1999-07-15 02:00:24 +04:00
|
|
|
PRBool IsContentSelected(nsIContent* aContent);
|
1999-08-27 18:42:27 +04:00
|
|
|
PRBool IsContentSelectedByIndex(PRInt32 aIndex);
|
fixed bugs #6303, #6753, #6756, #6759
Re-wrote nsComboboxFrame.
removed the obsolete nsHTMLAtoms: comboText,comoTextSelected,comTextSelectedFocus,dropDownVisible,
dropdownHidden, dropDownBtnOut, dropDownBtnPressed,
Added nsHTMLAtoms::combobox, nsLayoutAtoms::popupList
Renamed dropDownList to dropDownListPseudo
Added "arrow.gif" as to be used the background-image for the combobox button
ua.css - added rules for select to differentiate between comboboxes and listboxes.
Added style rules to more closely match the XPTOOLKIT XPWidgets look.
removed the following :-moz-combobox-text, -moz-combobox-textselected
nsIFormControlFrame.h - Added SetSuggestedSize method.
nsButtonControlFrame - Implemented SetSuggestedSize.
nsCSSFrameConstructor.cpp - Rewrote ConstructSelectFrame.
nsIWidget.h -Added GetAbsoluteBounds method.
nsWindow.cpp - Implemented GetAbsoluteBounds.
1999-07-15 02:00:24 +04:00
|
|
|
void GetViewOffset(nsIViewManager* aManager, nsIView* aView, nsPoint& aPoint);
|
|
|
|
PRBool IsInDropDownMode();
|
|
|
|
PRBool IsOptionElement(nsIContent* aContent);
|
2001-11-02 10:40:01 +03:00
|
|
|
void SingleSelection(PRInt32 aSelectedIndex, PRBool aDoToggle);
|
|
|
|
void ExtendedSelection(PRInt32 aStartIndex,
|
|
|
|
PRInt32 aEndIndex,
|
|
|
|
PRBool aClearAll);
|
|
|
|
void PerformSelection(PRInt32 aSelectedIndex,
|
|
|
|
PRBool aIsShift,
|
|
|
|
PRBool aIsControl);
|
1999-10-01 18:30:33 +04:00
|
|
|
void ResetSelectedItem();
|
1999-11-12 01:13:33 +03:00
|
|
|
PRBool CheckIfAllFramesHere();
|
2001-11-02 10:40:01 +03:00
|
|
|
PRInt32 GetIndexFromContent(nsIContent *aContent);
|
|
|
|
void HandleListSelection(nsIDOMEvent * aDOMEvent, PRInt32 selectedIndex);
|
2000-02-09 22:34:39 +03:00
|
|
|
PRBool IsLeftButton(nsIDOMEvent* aMouseEvent);
|
2001-11-02 10:40:01 +03:00
|
|
|
nsresult SetOptionsSelectedFromFrame(PRInt32 aStartIndex,
|
|
|
|
PRInt32 aEndIndex,
|
|
|
|
PRBool aValue,
|
|
|
|
PRBool aClearAll);
|
|
|
|
nsresult ToggleOptionSelectedFromFrame(PRInt32 aIndex);
|
2000-03-15 18:55:30 +03:00
|
|
|
void GetScrollableView(nsIScrollableView*& aScrollableView);
|
|
|
|
|
2001-06-08 06:34:09 +04:00
|
|
|
// Timer Methods
|
|
|
|
nsresult StartUpdateTimer(nsIPresContext * aPresContext);
|
|
|
|
void StopUpdateTimer();
|
|
|
|
void ItemsHaveBeenRemoved(nsIPresContext * aPresContext);
|
|
|
|
|
1999-10-06 03:43:06 +04:00
|
|
|
// onChange detection
|
2001-11-02 10:40:01 +03:00
|
|
|
nsresult SelectionChanged();
|
1999-10-06 03:43:06 +04:00
|
|
|
|
1999-01-18 18:14:00 +03:00
|
|
|
// Data Members
|
|
|
|
nsFormFrame* mFormFrame;
|
2001-11-02 10:40:01 +03:00
|
|
|
|
|
|
|
PRInt32 mStartSelectionIndex;
|
|
|
|
PRInt32 mEndSelectionIndex;
|
|
|
|
PRBool mChangesNotNotified;
|
|
|
|
|
1999-09-08 18:27:38 +04:00
|
|
|
PRInt32 mSelectedIndexWhenPoppedDown;
|
1999-05-28 01:17:10 +04:00
|
|
|
nsIComboboxControlFrame *mComboboxFrame;
|
2001-03-09 06:21:51 +03:00
|
|
|
PRPackedBool mButtonDown;
|
fixed bugs #6303, #6753, #6756, #6759
Re-wrote nsComboboxFrame.
removed the obsolete nsHTMLAtoms: comboText,comoTextSelected,comTextSelectedFocus,dropDownVisible,
dropdownHidden, dropDownBtnOut, dropDownBtnPressed,
Added nsHTMLAtoms::combobox, nsLayoutAtoms::popupList
Renamed dropDownList to dropDownListPseudo
Added "arrow.gif" as to be used the background-image for the combobox button
ua.css - added rules for select to differentiate between comboboxes and listboxes.
Added style rules to more closely match the XPTOOLKIT XPWidgets look.
removed the following :-moz-combobox-text, -moz-combobox-textselected
nsIFormControlFrame.h - Added SetSuggestedSize method.
nsButtonControlFrame - Implemented SetSuggestedSize.
nsCSSFrameConstructor.cpp - Rewrote ConstructSelectFrame.
nsIWidget.h -Added GetAbsoluteBounds method.
nsWindow.cpp - Implemented GetAbsoluteBounds.
1999-07-15 02:00:24 +04:00
|
|
|
nscoord mMaxWidth;
|
|
|
|
nscoord mMaxHeight;
|
2001-03-09 06:21:51 +03:00
|
|
|
PRPackedBool mIsCapturingMouseEvents;
|
2000-08-03 18:13:58 +04:00
|
|
|
PRInt32 mNumDisplayRows;
|
2000-02-15 18:04:38 +03:00
|
|
|
|
1999-11-12 01:13:33 +03:00
|
|
|
PRBool mIsAllContentHere;
|
2001-03-09 06:21:51 +03:00
|
|
|
PRPackedBool mIsAllFramesHere;
|
|
|
|
PRPackedBool mHasBeenInitialized;
|
|
|
|
PRPackedBool mDoneWithInitialReflow;
|
2000-03-03 07:28:59 +03:00
|
|
|
|
2001-03-09 06:21:51 +03:00
|
|
|
PRPackedBool mOverrideReflowOpt;
|
1999-11-12 01:13:33 +03:00
|
|
|
|
1999-08-26 18:54:07 +04:00
|
|
|
nsIPresContext* mPresContext; // XXX: Remove the need to cache the pres context.
|
1999-07-29 01:38:08 +04:00
|
|
|
|
2000-08-14 18:42:12 +04:00
|
|
|
nsCOMPtr<nsIListEventListener> mEventListener; // ref counted
|
|
|
|
nsCWeakReferent mWeakReferent; // so this obj can be used as a weak ptr
|
|
|
|
|
1999-07-29 01:38:08 +04:00
|
|
|
// XXX temprary only until full system mouse capture works
|
2001-03-09 06:21:51 +03:00
|
|
|
PRPackedBool mIsScrollbarVisible;
|
1999-08-31 17:22:50 +04:00
|
|
|
|
2001-02-23 04:45:45 +03:00
|
|
|
PRInt16 mPassId;
|
|
|
|
nsSize mCachedDesiredMaxSize;
|
|
|
|
|
2001-06-08 06:34:09 +04:00
|
|
|
// Update timer
|
|
|
|
nsSelectUpdateTimer * mUpdateTimer;
|
|
|
|
|
2001-11-02 10:40:01 +03:00
|
|
|
nsIFrame* mDummyFrame;
|
|
|
|
|
2000-01-09 04:41:11 +03:00
|
|
|
//Resize Reflow OpitmizationSize;
|
|
|
|
nsSize mCacheSize;
|
|
|
|
nsSize mCachedMaxElementSize;
|
2000-03-03 07:28:59 +03:00
|
|
|
nsSize mCachedUnconstrainedSize;
|
|
|
|
nsSize mCachedAvailableSize;
|
|
|
|
|
|
|
|
#ifdef DO_REFLOW_COUNTER
|
|
|
|
PRInt32 mReflowId;
|
|
|
|
#endif
|
2000-01-09 04:41:11 +03:00
|
|
|
|
1999-08-31 17:22:50 +04:00
|
|
|
private:
|
|
|
|
NS_IMETHOD_(nsrefcnt) AddRef() { return NS_OK; }
|
|
|
|
NS_IMETHOD_(nsrefcnt) Release() { return NS_OK; }
|
1999-01-18 18:14:00 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsListControlFrame_h___ */
|
|
|
|
|