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-01-22 21:14:23 +03:00
|
|
|
|
|
|
|
#ifndef nsIFormControlFrame_h___
|
|
|
|
#define nsIFormControlFrame_h___
|
|
|
|
|
2009-01-12 22:20:59 +03:00
|
|
|
#include "nsQueryFrame.h"
|
2014-01-16 09:28:33 +04:00
|
|
|
|
2001-11-02 10:40:01 +03:00
|
|
|
class nsAString;
|
2002-07-25 22:31:10 +04:00
|
|
|
class nsIAtom;
|
1999-01-22 21:14:23 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* nsIFormControlFrame is the common interface for frames of form controls. It
|
|
|
|
* provides a uniform way of creating widgets, resizing, and painting.
|
|
|
|
* @see nsLeafFrame and its base classes for more info
|
|
|
|
*/
|
2009-01-12 22:20:59 +03:00
|
|
|
class nsIFormControlFrame : public nsQueryFrame
|
|
|
|
{
|
1999-01-22 21:14:23 +03:00
|
|
|
public:
|
2009-09-12 20:49:24 +04:00
|
|
|
NS_DECL_QUERYFRAME_TARGET(nsIFormControlFrame)
|
1999-01-22 21:14:23 +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
|
|
|
/**
|
2005-12-13 02:53:06 +03:00
|
|
|
*
|
|
|
|
* @param aOn
|
|
|
|
* @param aRepaint
|
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
|
|
|
*/
|
2011-09-29 10:19:26 +04:00
|
|
|
virtual void SetFocus(bool aOn = true, bool aRepaint = false) = 0;
|
1999-01-22 22:10:10 +03:00
|
|
|
|
1999-01-26 01:16:27 +03:00
|
|
|
/**
|
1999-05-14 03:45:40 +04:00
|
|
|
* Set a property on the form control frame.
|
|
|
|
*
|
1999-01-26 01:16:27 +03:00
|
|
|
* @param aName name of the property to set
|
|
|
|
* @param aValue value of the property
|
|
|
|
* @returns NS_OK if the property name is valid, otherwise an error code
|
|
|
|
*/
|
2005-12-13 02:53:06 +03:00
|
|
|
virtual nsresult SetFormProperty(nsIAtom* aName, const nsAString& aValue) = 0;
|
1999-01-22 21:14:23 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|