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 nsMathMLmmultiscriptsFrame_h___ michael@0: #define nsMathMLmmultiscriptsFrame_h___ michael@0: michael@0: #include "mozilla/Attributes.h" michael@0: #include "nsMathMLContainerFrame.h" michael@0: michael@0: // michael@0: // -- attach prescripts and tensor indices to a base michael@0: // -- attach a subscript to a base michael@0: // -- attach a subscript-superscript pair to a base michael@0: // -- attach a superscript to a base michael@0: // michael@0: michael@0: class nsMathMLmmultiscriptsFrame : public nsMathMLContainerFrame { michael@0: public: michael@0: NS_DECL_FRAMEARENA_HELPERS michael@0: michael@0: friend nsIFrame* NS_NewMathMLmmultiscriptsFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); michael@0: michael@0: NS_IMETHOD michael@0: TransmitAutomaticData() MOZ_OVERRIDE; 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: static nsresult michael@0: PlaceMultiScript(nsPresContext* aPresContext, michael@0: nsRenderingContext& aRenderingContext, michael@0: bool aPlaceOrigin, michael@0: nsHTMLReflowMetrics& aDesiredSize, michael@0: nsMathMLContainerFrame* aForFrame, michael@0: nscoord aUserSubScriptShift, michael@0: nscoord aUserSupScriptShift, michael@0: nscoord aScriptSpace); michael@0: michael@0: uint8_t michael@0: ScriptIncrement(nsIFrame* aFrame) MOZ_OVERRIDE; michael@0: michael@0: protected: michael@0: nsMathMLmmultiscriptsFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext) {} michael@0: virtual ~nsMathMLmmultiscriptsFrame(); michael@0: michael@0: michael@0: }; michael@0: michael@0: #endif /* nsMathMLmmultiscriptsFrame_h___ */