michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsMathMLmunderoverFrame_h___ michael@0: #define nsMathMLmunderoverFrame_h___ michael@0: michael@0: #include "mozilla/Attributes.h" michael@0: #include "nsMathMLContainerFrame.h" michael@0: michael@0: // michael@0: // -- attach an underscript-overscript pair to a base michael@0: // michael@0: michael@0: class nsMathMLmunderoverFrame : public nsMathMLContainerFrame { michael@0: public: michael@0: NS_DECL_FRAMEARENA_HELPERS michael@0: michael@0: friend nsIFrame* NS_NewMathMLmunderoverFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); michael@0: michael@0: virtual nsresult michael@0: Place(nsRenderingContext& aRenderingContext, michael@0: bool aPlaceOrigin, michael@0: nsHTMLReflowMetrics& aDesiredSize) MOZ_OVERRIDE; michael@0: michael@0: NS_IMETHOD michael@0: InheritAutomaticData(nsIFrame* aParent) MOZ_OVERRIDE; michael@0: michael@0: NS_IMETHOD michael@0: TransmitAutomaticData() MOZ_OVERRIDE; michael@0: michael@0: NS_IMETHOD michael@0: UpdatePresentationData(uint32_t aFlagsValues, michael@0: uint32_t aFlagsToUpdate) MOZ_OVERRIDE; michael@0: michael@0: virtual nsresult michael@0: AttributeChanged(int32_t aNameSpaceID, michael@0: nsIAtom* aAttribute, michael@0: int32_t aModType) MOZ_OVERRIDE; michael@0: michael@0: uint8_t michael@0: ScriptIncrement(nsIFrame* aFrame) MOZ_OVERRIDE; michael@0: michael@0: protected: michael@0: nsMathMLmunderoverFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext), michael@0: mIncrementUnder(false), michael@0: mIncrementOver(false) {} michael@0: virtual ~nsMathMLmunderoverFrame(); michael@0: michael@0: private: michael@0: bool mIncrementUnder; michael@0: bool mIncrementOver; michael@0: }; michael@0: michael@0: michael@0: #endif /* nsMathMLmunderoverFrame_h___ */