|
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 nsMathMLmunderoverFrame_h___ |
|
7 #define nsMathMLmunderoverFrame_h___ |
|
8 |
|
9 #include "mozilla/Attributes.h" |
|
10 #include "nsMathMLContainerFrame.h" |
|
11 |
|
12 // |
|
13 // <munderover> -- attach an underscript-overscript pair to a base |
|
14 // |
|
15 |
|
16 class nsMathMLmunderoverFrame : public nsMathMLContainerFrame { |
|
17 public: |
|
18 NS_DECL_FRAMEARENA_HELPERS |
|
19 |
|
20 friend nsIFrame* NS_NewMathMLmunderoverFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); |
|
21 |
|
22 virtual nsresult |
|
23 Place(nsRenderingContext& aRenderingContext, |
|
24 bool aPlaceOrigin, |
|
25 nsHTMLReflowMetrics& aDesiredSize) MOZ_OVERRIDE; |
|
26 |
|
27 NS_IMETHOD |
|
28 InheritAutomaticData(nsIFrame* aParent) MOZ_OVERRIDE; |
|
29 |
|
30 NS_IMETHOD |
|
31 TransmitAutomaticData() MOZ_OVERRIDE; |
|
32 |
|
33 NS_IMETHOD |
|
34 UpdatePresentationData(uint32_t aFlagsValues, |
|
35 uint32_t aFlagsToUpdate) MOZ_OVERRIDE; |
|
36 |
|
37 virtual nsresult |
|
38 AttributeChanged(int32_t aNameSpaceID, |
|
39 nsIAtom* aAttribute, |
|
40 int32_t aModType) MOZ_OVERRIDE; |
|
41 |
|
42 uint8_t |
|
43 ScriptIncrement(nsIFrame* aFrame) MOZ_OVERRIDE; |
|
44 |
|
45 protected: |
|
46 nsMathMLmunderoverFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext), |
|
47 mIncrementUnder(false), |
|
48 mIncrementOver(false) {} |
|
49 virtual ~nsMathMLmunderoverFrame(); |
|
50 |
|
51 private: |
|
52 bool mIncrementUnder; |
|
53 bool mIncrementOver; |
|
54 }; |
|
55 |
|
56 |
|
57 #endif /* nsMathMLmunderoverFrame_h___ */ |