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 nsMathMLmsubFrame_h___
|
|
|
|
#define nsMathMLmsubFrame_h___
|
|
|
|
|
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
#include "nsMathMLContainerFrame.h"
|
|
|
|
|
|
|
|
//
|
|
|
|
// <msub> -- attach a subscript to a base
|
|
|
|
//
|
|
|
|
|
|
|
|
class nsMathMLmsubFrame : 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_NewMathMLmsubFrame(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
|
|
|
PlaceSubScript (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 aScriptSpace);
|
2001-02-02 09:37:14 +00:00
|
|
|
|
2000-01-07 14:49:46 +00:00
|
|
|
protected:
|
2006-03-26 21:30:36 +00:00
|
|
|
nsMathMLmsubFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext) {}
|
1999-09-21 02:12:01 +00:00
|
|
|
virtual ~nsMathMLmsubFrame();
|
|
|
|
|
2012-08-09 07:09:40 +00:00
|
|
|
virtual int GetSkipSides() const { return 0; }
|
1999-09-21 02:12:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsMathMLmsubFrame_h___ */
|