2007-06-12 06:10:23 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 11:12:37 +00: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-09-21 02:12:01 +00:00
|
|
|
|
|
|
|
#ifndef nsMathMLmsubsupFrame_h___
|
|
|
|
#define nsMathMLmsubsupFrame_h___
|
|
|
|
|
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
#include "nsMathMLContainerFrame.h"
|
|
|
|
|
|
|
|
//
|
|
|
|
// <msubsup> -- attach a subscript-superscript pair to a base
|
|
|
|
//
|
|
|
|
|
|
|
|
class nsMathMLmsubsupFrame : public nsMathMLContainerFrame {
|
|
|
|
public:
|
2009-09-12 16:49:24 +00:00
|
|
|
NS_DECL_FRAMEARENA_HELPERS
|
|
|
|
|
2006-03-26 21:30:36 +00:00
|
|
|
friend nsIFrame* NS_NewMathMLmsubsupFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
1999-09-21 02:12:01 +00:00
|
|
|
|
2002-02-07 04:38:08 +00:00
|
|
|
NS_IMETHOD
|
2005-02-07 01:57:50 +00:00
|
|
|
TransmitAutomaticData();
|
2002-02-07 04:38:08 +00:00
|
|
|
|
2008-03-18 04:52:48 +00:00
|
|
|
virtual nsresult
|
2011-04-08 01:04:40 +00:00
|
|
|
Place(nsRenderingContext& aRenderingContext,
|
2011-09-29 06:19:26 +00:00
|
|
|
bool aPlaceOrigin,
|
2006-08-03 23:27:55 +00:00
|
|
|
nsHTMLReflowMetrics& aDesiredSize);
|
1999-09-21 02:12:01 +00:00
|
|
|
|
2001-02-02 09:37:14 +00:00
|
|
|
static nsresult
|
2006-08-03 23:27:55 +00:00
|
|
|
PlaceSubSupScript(nsPresContext* aPresContext,
|
2011-04-08 01:04:40 +00:00
|
|
|
nsRenderingContext& aRenderingContext,
|
2011-09-29 06:19:26 +00:00
|
|
|
bool aPlaceOrigin,
|
2006-08-03 23:27:55 +00:00
|
|
|
nsHTMLReflowMetrics& aDesiredSize,
|
2007-03-02 10:55:55 +00:00
|
|
|
nsMathMLContainerFrame* aForFrame,
|
2007-02-07 07:46:44 +00:00
|
|
|
nscoord aUserSubScriptShift,
|
|
|
|
nscoord aUserSupScriptShift,
|
|
|
|
nscoord aScriptSpace);
|
2001-02-02 09:37:14 +00:00
|
|
|
|
1999-09-21 02:12:01 +00:00
|
|
|
protected:
|
2006-03-26 21:30:36 +00:00
|
|
|
nsMathMLmsubsupFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext) {}
|
1999-09-21 02:12:01 +00:00
|
|
|
virtual ~nsMathMLmsubsupFrame();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsMathMLmsubsupFrame_h___ */
|