michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsMathMLSelectedFrame_h___ michael@0: #define nsMathMLSelectedFrame_h___ michael@0: michael@0: #include "nsMathMLContainerFrame.h" michael@0: michael@0: class nsMathMLSelectedFrame : public nsMathMLContainerFrame { michael@0: public: michael@0: virtual void michael@0: Init(nsIContent* aContent, michael@0: nsIFrame* aParent, michael@0: nsIFrame* aPrevInFlow) MOZ_OVERRIDE; michael@0: michael@0: NS_IMETHOD michael@0: TransmitAutomaticData() MOZ_OVERRIDE; michael@0: michael@0: virtual nsresult michael@0: SetInitialChildList(ChildListID aListID, michael@0: nsFrameList& aChildList) MOZ_OVERRIDE; michael@0: michael@0: virtual nsresult michael@0: ChildListChanged(int32_t aModType) MOZ_OVERRIDE; michael@0: michael@0: virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder, michael@0: const nsRect& aDirtyRect, michael@0: const nsDisplayListSet& aLists) MOZ_OVERRIDE; michael@0: michael@0: virtual nsresult michael@0: Place(nsRenderingContext& aRenderingContext, michael@0: bool aPlaceOrigin, michael@0: nsHTMLReflowMetrics& aDesiredSize) MOZ_OVERRIDE; michael@0: michael@0: virtual nsresult michael@0: Reflow(nsPresContext* aPresContext, michael@0: nsHTMLReflowMetrics& aDesiredSize, michael@0: const nsHTMLReflowState& aReflowState, michael@0: nsReflowStatus& aStatus) MOZ_OVERRIDE; michael@0: michael@0: virtual nsQueryFrame::FrameIID GetFrameId() = 0; michael@0: michael@0: protected: michael@0: nsMathMLSelectedFrame(nsStyleContext* aContext) : michael@0: nsMathMLContainerFrame(aContext) {} michael@0: virtual ~nsMathMLSelectedFrame(); michael@0: michael@0: virtual nsIFrame* GetSelectedFrame() = 0; michael@0: nsIFrame* mSelectedFrame; michael@0: michael@0: bool mInvalidMarkup; michael@0: michael@0: private: michael@0: void* operator new(size_t, nsIPresShell*) MOZ_MUST_OVERRIDE MOZ_DELETE; michael@0: }; michael@0: michael@0: #endif /* nsMathMLSelectedFrame_h___ */