|
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
|
2 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
3 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
5 |
|
6 #ifndef nsMathMLmmultiscriptsFrame_h___ |
|
7 #define nsMathMLmmultiscriptsFrame_h___ |
|
8 |
|
9 #include "mozilla/Attributes.h" |
|
10 #include "nsMathMLContainerFrame.h" |
|
11 |
|
12 // |
|
13 // <mmultiscripts> -- attach prescripts and tensor indices to a base |
|
14 // <msub> -- attach a subscript to a base |
|
15 // <msubsup> -- attach a subscript-superscript pair to a base |
|
16 // <msup> -- attach a superscript to a base |
|
17 // |
|
18 |
|
19 class nsMathMLmmultiscriptsFrame : public nsMathMLContainerFrame { |
|
20 public: |
|
21 NS_DECL_FRAMEARENA_HELPERS |
|
22 |
|
23 friend nsIFrame* NS_NewMathMLmmultiscriptsFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); |
|
24 |
|
25 NS_IMETHOD |
|
26 TransmitAutomaticData() MOZ_OVERRIDE; |
|
27 |
|
28 virtual nsresult |
|
29 Place(nsRenderingContext& aRenderingContext, |
|
30 bool aPlaceOrigin, |
|
31 nsHTMLReflowMetrics& aDesiredSize) MOZ_OVERRIDE; |
|
32 |
|
33 static nsresult |
|
34 PlaceMultiScript(nsPresContext* aPresContext, |
|
35 nsRenderingContext& aRenderingContext, |
|
36 bool aPlaceOrigin, |
|
37 nsHTMLReflowMetrics& aDesiredSize, |
|
38 nsMathMLContainerFrame* aForFrame, |
|
39 nscoord aUserSubScriptShift, |
|
40 nscoord aUserSupScriptShift, |
|
41 nscoord aScriptSpace); |
|
42 |
|
43 uint8_t |
|
44 ScriptIncrement(nsIFrame* aFrame) MOZ_OVERRIDE; |
|
45 |
|
46 protected: |
|
47 nsMathMLmmultiscriptsFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext) {} |
|
48 virtual ~nsMathMLmmultiscriptsFrame(); |
|
49 |
|
50 |
|
51 }; |
|
52 |
|
53 #endif /* nsMathMLmmultiscriptsFrame_h___ */ |