mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 22:55:23 +00:00
48 lines
1.5 KiB
C++
48 lines
1.5 KiB
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* 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/. */
|
|
|
|
#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:
|
|
NS_DECL_FRAMEARENA_HELPERS
|
|
|
|
friend nsIFrame* NS_NewMathMLmsubsupFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
|
|
|
NS_IMETHOD
|
|
TransmitAutomaticData();
|
|
|
|
virtual nsresult
|
|
Place(nsRenderingContext& aRenderingContext,
|
|
bool aPlaceOrigin,
|
|
nsHTMLReflowMetrics& aDesiredSize);
|
|
|
|
static nsresult
|
|
PlaceSubSupScript(nsPresContext* aPresContext,
|
|
nsRenderingContext& aRenderingContext,
|
|
bool aPlaceOrigin,
|
|
nsHTMLReflowMetrics& aDesiredSize,
|
|
nsMathMLContainerFrame* aForFrame,
|
|
nscoord aUserSubScriptShift,
|
|
nscoord aUserSupScriptShift,
|
|
nscoord aScriptSpace);
|
|
|
|
protected:
|
|
nsMathMLmsubsupFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext) {}
|
|
virtual ~nsMathMLmsubsupFrame();
|
|
|
|
virtual int GetSkipSides() const { return 0; }
|
|
};
|
|
|
|
#endif /* nsMathMLmsubsupFrame_h___ */
|