2000-03-28 10:15:19 +00:00
|
|
|
/*
|
|
|
|
* The contents of this file are subject to the Mozilla Public
|
|
|
|
* License Version 1.1 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.mozilla.org/MPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an "AS
|
|
|
|
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
|
|
* implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
|
|
|
*
|
|
|
|
* The Original Code is Mozilla MathML Project.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is The University Of
|
|
|
|
* Queensland. Portions created by The University Of Queensland are
|
|
|
|
* Copyright (C) 1999 The University Of Queensland. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
|
|
|
* Roger B. Sidje <rbs@maths.uq.edu.au>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef nsMathMLmtableFrame_h___
|
|
|
|
#define nsMathMLmtableFrame_h___
|
|
|
|
|
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
#include "nsMathMLContainerFrame.h"
|
|
|
|
|
|
|
|
//
|
|
|
|
// <mtable> -- table or matrix
|
|
|
|
//
|
|
|
|
|
|
|
|
class nsMathMLmtableOuterFrame : public nsTableOuterFrame,
|
2001-02-23 16:10:51 +00:00
|
|
|
public nsMathMLFrame
|
2000-03-28 10:15:19 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
friend nsresult NS_NewMathMLmtableOuterFrame(nsIPresShell* aPresShell, nsIFrame** aNewFrame);
|
|
|
|
|
2001-02-23 16:10:51 +00:00
|
|
|
NS_DECL_ISUPPORTS_INHERITED
|
2000-03-28 10:15:19 +00:00
|
|
|
|
2001-02-23 16:10:51 +00:00
|
|
|
// Overloaded nsIMathMLFrame methods
|
2000-03-28 10:15:19 +00:00
|
|
|
|
|
|
|
NS_IMETHOD
|
2001-02-23 16:10:51 +00:00
|
|
|
UpdatePresentationDataFromChildAt(nsIPresContext* aPresContext,
|
|
|
|
PRInt32 aFirstIndex,
|
|
|
|
PRInt32 aLastIndex,
|
|
|
|
PRInt32 aScriptLevelIncrement,
|
|
|
|
PRUint32 aFlagsValues,
|
|
|
|
PRUint32 aFlagsToUpdate);
|
2000-03-28 10:15:19 +00:00
|
|
|
|
|
|
|
NS_IMETHOD
|
2001-02-23 16:10:51 +00:00
|
|
|
ReResolveScriptStyle(nsIPresContext* aPresContext,
|
|
|
|
nsIStyleContext* aParentContext,
|
|
|
|
PRInt32 aParentScriptLevel);
|
2000-03-28 10:15:19 +00:00
|
|
|
|
2000-05-11 23:03:19 +00:00
|
|
|
// overloaded nsTableOuterFrame methods
|
|
|
|
|
2000-03-28 10:15:19 +00:00
|
|
|
NS_IMETHOD
|
|
|
|
Init(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIFrame* aParent,
|
|
|
|
nsIStyleContext* aContext,
|
|
|
|
nsIFrame* aPrevInFlow);
|
|
|
|
|
|
|
|
NS_IMETHOD
|
|
|
|
Reflow(nsIPresContext* aPresContext,
|
|
|
|
nsHTMLReflowMetrics& aDesiredSize,
|
|
|
|
const nsHTMLReflowState& aReflowState,
|
|
|
|
nsReflowStatus& aStatus);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
nsMathMLmtableOuterFrame();
|
|
|
|
virtual ~nsMathMLmtableOuterFrame();
|
|
|
|
}; // class nsMathMLmtableOuterFrame
|
|
|
|
|
|
|
|
|
|
|
|
// --------------
|
|
|
|
|
2001-05-19 10:00:01 +00:00
|
|
|
class nsMathMLmtdInnerFrame : public nsBlockFrame,
|
|
|
|
public nsMathMLFrame {
|
2000-03-28 10:15:19 +00:00
|
|
|
public:
|
2001-05-19 10:00:01 +00:00
|
|
|
friend nsresult NS_NewMathMLmtdInnerFrame(nsIPresShell* aPresShell, nsIFrame** aNewFrame);
|
2000-03-28 10:15:19 +00:00
|
|
|
|
2001-02-23 16:10:51 +00:00
|
|
|
NS_DECL_ISUPPORTS_INHERITED
|
|
|
|
|
|
|
|
NS_IMETHOD
|
|
|
|
ReResolveScriptStyle(nsIPresContext* aPresContext,
|
|
|
|
nsIStyleContext* aParentContext,
|
|
|
|
PRInt32 aParentScriptLevel);
|
|
|
|
|
|
|
|
NS_IMETHOD
|
|
|
|
Init(nsIPresContext* aPresContext,
|
|
|
|
nsIContent* aContent,
|
|
|
|
nsIFrame* aParent,
|
|
|
|
nsIStyleContext* aContext,
|
|
|
|
nsIFrame* aPrevInFlow);
|
|
|
|
|
2000-03-28 10:15:19 +00:00
|
|
|
NS_IMETHOD
|
|
|
|
Reflow(nsIPresContext* aPresContext,
|
|
|
|
nsHTMLReflowMetrics& aDesiredSize,
|
|
|
|
const nsHTMLReflowState& aReflowState,
|
|
|
|
nsReflowStatus& aStatus);
|
|
|
|
|
2000-05-16 13:18:42 +00:00
|
|
|
protected:
|
2001-05-19 10:00:01 +00:00
|
|
|
nsMathMLmtdInnerFrame();
|
|
|
|
virtual ~nsMathMLmtdInnerFrame();
|
2000-03-28 10:15:19 +00:00
|
|
|
|
|
|
|
virtual PRIntn GetSkipSides() const { return 0; }
|
2001-05-19 10:00:01 +00:00
|
|
|
}; // class nsMathMLmtdInnerFrame
|
2000-03-28 10:15:19 +00:00
|
|
|
|
|
|
|
#endif /* nsMathMLmtableFrame_h___ */
|