2007-06-12 10:10:23 +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-09-21 06:12:01 +04:00
|
|
|
|
|
|
|
#ifndef nsMathMLmsubFrame_h___
|
|
|
|
#define nsMathMLmsubFrame_h___
|
|
|
|
|
2013-05-14 20:33:23 +04:00
|
|
|
#include "mozilla/Attributes.h"
|
1999-09-21 06:12:01 +04:00
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
#include "nsMathMLContainerFrame.h"
|
|
|
|
|
|
|
|
//
|
|
|
|
// <msub> -- attach a subscript to a base
|
|
|
|
//
|
|
|
|
|
|
|
|
class nsMathMLmsubFrame : public nsMathMLContainerFrame {
|
|
|
|
public:
|
2009-09-12 20:49:24 +04:00
|
|
|
NS_DECL_FRAMEARENA_HELPERS
|
|
|
|
|
2006-03-27 01:30:36 +04:00
|
|
|
friend nsIFrame* NS_NewMathMLmsubFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
1999-09-21 06:12:01 +04:00
|
|
|
|
2002-02-07 07:38:08 +03:00
|
|
|
NS_IMETHOD
|
2013-05-14 20:33:23 +04:00
|
|
|
TransmitAutomaticData() MOZ_OVERRIDE;
|
2002-02-07 07:38:08 +03:00
|
|
|
|
2008-03-18 07:52:48 +03:00
|
|
|
virtual nsresult
|
2011-04-08 05:04:40 +04:00
|
|
|
Place(nsRenderingContext& aRenderingContext,
|
2011-09-29 10:19:26 +04:00
|
|
|
bool aPlaceOrigin,
|
2013-05-14 20:33:23 +04:00
|
|
|
nsHTMLReflowMetrics& aDesiredSize) MOZ_OVERRIDE;
|
1999-09-21 06:12:01 +04:00
|
|
|
|
2001-02-02 12:37:14 +03:00
|
|
|
static nsresult
|
2006-08-04 03:27:55 +04:00
|
|
|
PlaceSubScript (nsPresContext* aPresContext,
|
2011-04-08 05:04:40 +04:00
|
|
|
nsRenderingContext& aRenderingContext,
|
2011-09-29 10:19:26 +04:00
|
|
|
bool aPlaceOrigin,
|
2006-08-04 03:27:55 +04:00
|
|
|
nsHTMLReflowMetrics& aDesiredSize,
|
2007-03-02 13:55:55 +03:00
|
|
|
nsMathMLContainerFrame* aForFrame,
|
2007-02-07 10:46:44 +03:00
|
|
|
nscoord aUserSubScriptShift,
|
|
|
|
nscoord aScriptSpace);
|
2001-02-02 12:37:14 +03:00
|
|
|
|
2000-01-07 17:49:46 +03:00
|
|
|
protected:
|
2006-03-27 01:30:36 +04:00
|
|
|
nsMathMLmsubFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext) {}
|
1999-09-21 06:12:01 +04:00
|
|
|
virtual ~nsMathMLmsubFrame();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsMathMLmsubFrame_h___ */
|