2007-06-12 10:10:23 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* 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/. */
|
2000-03-28 14:32:09 +04:00
|
|
|
//#define SHOW_BOUNDING_BOX 1
|
1999-09-21 06:12:01 +04:00
|
|
|
#ifndef nsIMathMLFrame_h___
|
|
|
|
#define nsIMathMLFrame_h___
|
|
|
|
|
2013-08-31 01:37:12 +04:00
|
|
|
#include "nsQueryFrame.h"
|
2002-08-16 15:52:20 +04:00
|
|
|
|
2000-01-14 11:38:25 +03:00
|
|
|
struct nsPresentationData;
|
2000-01-07 17:49:46 +03:00
|
|
|
struct nsEmbellishData;
|
2001-12-18 07:56:50 +03:00
|
|
|
struct nsHTMLReflowMetrics;
|
2011-04-08 05:04:40 +04:00
|
|
|
class nsRenderingContext;
|
2013-08-31 01:37:12 +04:00
|
|
|
class nsIFrame;
|
1999-12-10 16:02:23 +03:00
|
|
|
|
2006-08-15 08:49:43 +04:00
|
|
|
// For MathML, this 'type' will be used to determine the spacing between frames
|
|
|
|
// Subclasses can return a 'type' that will give them a particular spacing
|
|
|
|
enum eMathMLFrameType {
|
|
|
|
eMathMLFrameType_UNKNOWN = -1,
|
|
|
|
eMathMLFrameType_Ordinary,
|
|
|
|
eMathMLFrameType_OperatorOrdinary,
|
|
|
|
eMathMLFrameType_OperatorInvisible,
|
|
|
|
eMathMLFrameType_OperatorUserDefined,
|
|
|
|
eMathMLFrameType_Inner,
|
|
|
|
eMathMLFrameType_ItalicIdentifier,
|
|
|
|
eMathMLFrameType_UprightIdentifier,
|
|
|
|
eMathMLFrameType_COUNT
|
|
|
|
};
|
|
|
|
|
2001-02-23 19:10:51 +03:00
|
|
|
// Abstract base class that provides additional methods for MathML frames
|
2009-01-12 22:20:59 +03:00
|
|
|
class nsIMathMLFrame
|
|
|
|
{
|
1999-09-21 06:12:01 +04:00
|
|
|
public:
|
2009-09-12 20:49:24 +04:00
|
|
|
NS_DECL_QUERYFRAME_TARGET(nsIMathMLFrame)
|
1999-09-21 06:12:01 +04:00
|
|
|
|
2011-03-25 06:38:59 +03:00
|
|
|
// helper to check whether the frame is "space-like", as defined by the spec.
|
2011-09-29 10:19:26 +04:00
|
|
|
virtual bool IsSpaceLike() = 0;
|
2011-03-25 06:38:59 +03:00
|
|
|
|
1999-12-10 16:02:23 +03:00
|
|
|
/* SUPPORT FOR PRECISE POSITIONING */
|
|
|
|
/*====================================================================*/
|
1999-09-21 06:12:01 +04:00
|
|
|
|
1999-12-10 16:02:23 +03:00
|
|
|
/* Metrics that _exactly_ enclose the text of the frame.
|
|
|
|
* The frame *must* have *already* being reflowed, before you can call
|
|
|
|
* the GetBoundingMetrics() method.
|
|
|
|
* Note that for a frame with nested children, the bounding metrics
|
|
|
|
* will exactly enclose its children. For example, the bounding metrics
|
|
|
|
* of msub is the smallest rectangle that exactly encloses both the
|
|
|
|
* base and the subscript.
|
|
|
|
*/
|
|
|
|
NS_IMETHOD
|
|
|
|
GetBoundingMetrics(nsBoundingMetrics& aBoundingMetrics) = 0;
|
|
|
|
|
|
|
|
NS_IMETHOD
|
|
|
|
SetBoundingMetrics(const nsBoundingMetrics& aBoundingMetrics) = 0;
|
2000-01-07 17:49:46 +03:00
|
|
|
|
1999-12-10 16:02:23 +03:00
|
|
|
NS_IMETHOD
|
|
|
|
SetReference(const nsPoint& aReference) = 0;
|
2000-01-07 17:49:46 +03:00
|
|
|
|
2006-08-15 08:49:43 +04:00
|
|
|
virtual eMathMLFrameType GetMathMLFrameType() = 0;
|
1999-12-10 16:02:23 +03:00
|
|
|
|
2001-02-23 19:10:51 +03:00
|
|
|
/* SUPPORT FOR STRETCHY ELEMENTS */
|
1999-09-21 06:12:01 +04:00
|
|
|
/*====================================================================*/
|
|
|
|
|
1999-10-02 10:20:30 +04:00
|
|
|
/* Stretch :
|
1999-12-10 16:02:23 +03:00
|
|
|
* Called to ask a stretchy MathML frame to stretch itself depending
|
|
|
|
* on its context.
|
|
|
|
*
|
2002-02-07 07:38:08 +03:00
|
|
|
* An embellished frame is treated in a special way. When it receives a
|
|
|
|
* Stretch() command, it passes the command to its embellished child and
|
|
|
|
* the stretched size is bubbled up from the inner-most <mo> frame. In other
|
|
|
|
* words, the stretch command descend through the embellished hierarchy.
|
|
|
|
*
|
1999-12-10 16:02:23 +03:00
|
|
|
* @param aStretchDirection [in] the direction where to attempt to
|
|
|
|
* stretch.
|
|
|
|
* @param aContainerSize [in] struct that suggests the maximumn size for
|
|
|
|
* the stretched frame. Only member data of the struct that are
|
|
|
|
* relevant to the direction are used (the rest is ignored).
|
|
|
|
* @param aDesiredStretchSize [in/out] On input the current size
|
2000-03-28 13:38:24 +04:00
|
|
|
* of the frame, on output the size after stretching.
|
1999-09-21 06:12:01 +04:00
|
|
|
*/
|
|
|
|
NS_IMETHOD
|
2011-04-08 05:04:40 +04:00
|
|
|
Stretch(nsRenderingContext& aRenderingContext,
|
1999-11-17 03:49:37 +03:00
|
|
|
nsStretchDirection aStretchDirection,
|
2000-03-28 13:38:24 +04:00
|
|
|
nsBoundingMetrics& aContainerSize,
|
|
|
|
nsHTMLReflowMetrics& aDesiredStretchSize) = 0;
|
1999-12-10 16:02:23 +03:00
|
|
|
|
2010-04-03 15:36:19 +04:00
|
|
|
/* Get the mEmbellishData member variable. */
|
|
|
|
|
1999-12-10 16:02:23 +03:00
|
|
|
NS_IMETHOD
|
2000-01-07 17:49:46 +03:00
|
|
|
GetEmbellishData(nsEmbellishData& aEmbellishData) = 0;
|
1999-12-10 16:02:23 +03:00
|
|
|
|
1999-09-21 06:12:01 +04:00
|
|
|
|
2001-02-23 19:10:51 +03:00
|
|
|
/* SUPPORT FOR SCRIPTING ELEMENTS */
|
1999-09-21 06:12:01 +04:00
|
|
|
/*====================================================================*/
|
|
|
|
|
2010-04-03 15:36:19 +04:00
|
|
|
/* Get the mPresentationData member variable. */
|
2000-01-14 11:38:25 +03:00
|
|
|
|
|
|
|
NS_IMETHOD
|
|
|
|
GetPresentationData(nsPresentationData& aPresentationData) = 0;
|
|
|
|
|
2002-02-01 18:10:50 +03:00
|
|
|
/* InheritAutomaticData() / TransmitAutomaticData() :
|
|
|
|
* There are precise rules governing each MathML frame and its children.
|
|
|
|
* Properties such as the scriptlevel or the embellished nature of a frame
|
|
|
|
* depend on those rules. Also, certain properties that we use to emulate
|
|
|
|
* TeX rendering rules are frame-dependent too. These two methods are meant
|
|
|
|
* to be implemented by frame classes that need to assert specific properties
|
|
|
|
* within their subtrees.
|
|
|
|
*
|
|
|
|
* InheritAutomaticData() is called in a top-down manner [like nsIFrame::Init],
|
2002-02-07 07:38:08 +03:00
|
|
|
* as we descend the frame tree, whereas TransmitAutomaticData() is called in a
|
|
|
|
* bottom-up manner, as we ascend the tree [like nsIFrame::SetInitialChildList].
|
|
|
|
* However, unlike Init() and SetInitialChildList() which are called only once
|
|
|
|
* during the life-time of a frame (when initially constructing the frame tree),
|
|
|
|
* these two methods are called to build automatic data after the <math>...</math>
|
|
|
|
* subtree has been constructed fully, and are called again as we walk a child's
|
|
|
|
* subtree to handle dynamic changes that happen in the content model.
|
|
|
|
*
|
|
|
|
* As a rule of thumb:
|
|
|
|
*
|
|
|
|
* 1. Use InheritAutomaticData() to set properties related to your ancestors:
|
|
|
|
* - set properties that are intrinsic to yourself
|
|
|
|
* - set properties that depend on the state that you expect your ancestors
|
|
|
|
* to have already reached in their own InheritAutomaticData().
|
|
|
|
* - set properties that your descendants assume that you would have set in
|
|
|
|
* your InheritAutomaticData() -- this way, they can safely query them and
|
|
|
|
* the process will feed upon itself.
|
|
|
|
*
|
|
|
|
* 2. Use TransmitAutomaticData() to set properties related to your descendants:
|
|
|
|
* - set properties that depend on the state that you expect your descendants
|
|
|
|
* to have reached upon processing their own TransmitAutomaticData().
|
|
|
|
* - transmit properties that your descendants expect that you will transmit to
|
|
|
|
* them in your TransmitAutomaticData() -- this way, they remain up-to-date.
|
|
|
|
* - set properties that your ancestors expect that you would set in your
|
|
|
|
* TransmitAutomaticData() -- this way, they can safely query them and the
|
|
|
|
* process will feed upon itself.
|
2002-02-01 18:10:50 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
NS_IMETHOD
|
2005-02-07 04:57:50 +03:00
|
|
|
InheritAutomaticData(nsIFrame* aParent) = 0;
|
2002-02-01 18:10:50 +03:00
|
|
|
|
|
|
|
NS_IMETHOD
|
2005-02-07 04:57:50 +03:00
|
|
|
TransmitAutomaticData() = 0;
|
2002-02-01 18:10:50 +03:00
|
|
|
|
2014-01-14 18:39:50 +04:00
|
|
|
/* UpdatePresentationData:
|
|
|
|
* Updates the frame's compression flag.
|
2008-01-09 12:38:28 +03:00
|
|
|
* A frame becomes "compressed" (or "cramped") according to TeX rendering
|
|
|
|
* rules (TeXBook, Ch.17, p.140-141).
|
2001-02-02 12:35:28 +03:00
|
|
|
*
|
|
|
|
* @param aFlagsValues [in]
|
2014-01-14 18:39:50 +04:00
|
|
|
* The new values (e.g., compress) that are going to be
|
2001-02-02 12:35:28 +03:00
|
|
|
* updated.
|
|
|
|
*
|
2006-09-19 08:43:14 +04:00
|
|
|
* @param aWhichFlags [in]
|
2001-02-02 12:35:28 +03:00
|
|
|
* The flags that are relevant to this call. Since not all calls
|
2006-09-19 08:43:14 +04:00
|
|
|
* are meant to update all flags at once, aWhichFlags is used
|
2001-02-02 12:35:28 +03:00
|
|
|
* to distinguish flags that need to retain their existing values
|
|
|
|
* from flags that need to be turned on (or turned off). If a bit
|
2006-09-19 08:43:14 +04:00
|
|
|
* is set in aWhichFlags, then the corresponding value (which
|
2001-02-02 12:35:28 +03:00
|
|
|
* can be 0 or 1) is taken from aFlagsValues and applied to the
|
2006-09-19 08:43:14 +04:00
|
|
|
* frame. Therefore, by setting their bits in aWhichFlags, and
|
2001-02-02 12:35:28 +03:00
|
|
|
* setting their desired values in aFlagsValues, it is possible to
|
|
|
|
* update some flags in the frame, leaving the other flags unchanged.
|
|
|
|
*/
|
1999-09-21 06:12:01 +04:00
|
|
|
NS_IMETHOD
|
2012-08-22 19:56:38 +04:00
|
|
|
UpdatePresentationData(uint32_t aFlagsValues,
|
|
|
|
uint32_t aWhichFlags) = 0;
|
1999-09-21 06:12:01 +04:00
|
|
|
|
|
|
|
/* UpdatePresentationDataFromChildAt :
|
2014-01-14 18:39:50 +04:00
|
|
|
* Sets compression flag on the whole tree. For child frames
|
|
|
|
* at aFirstIndex up to aLastIndex, this method sets their
|
2008-01-09 12:38:28 +03:00
|
|
|
* compression flags. The update is propagated down the subtrees of each of
|
|
|
|
* these child frames.
|
2001-02-02 12:35:28 +03:00
|
|
|
*
|
|
|
|
* @param aFirstIndex [in]
|
|
|
|
* Index of the first child from where the update is propagated.
|
|
|
|
*
|
|
|
|
* @param aLastIndex [in]
|
|
|
|
* Index of the last child where to stop the update.
|
|
|
|
* A value of -1 means up to last existing child.
|
|
|
|
*
|
|
|
|
* @param aFlagsValues [in]
|
2014-01-14 18:39:50 +04:00
|
|
|
* The new values (e.g., compress) that are going to be
|
2001-02-02 12:35:28 +03:00
|
|
|
* assigned in the whole sub-trees.
|
|
|
|
*
|
2006-09-19 08:43:14 +04:00
|
|
|
* @param aWhichFlags [in]
|
2001-02-02 12:35:28 +03:00
|
|
|
* The flags that are relevant to this call. See UpdatePresentationData()
|
|
|
|
* for more details about this parameter.
|
1999-09-21 06:12:01 +04:00
|
|
|
*/
|
|
|
|
NS_IMETHOD
|
2012-08-22 19:56:38 +04:00
|
|
|
UpdatePresentationDataFromChildAt(int32_t aFirstIndex,
|
|
|
|
int32_t aLastIndex,
|
|
|
|
uint32_t aFlagsValues,
|
|
|
|
uint32_t aWhichFlags) = 0;
|
1999-12-10 16:02:23 +03:00
|
|
|
};
|
|
|
|
|
2002-02-07 07:38:08 +03:00
|
|
|
// struct used by a container frame to keep track of its embellishments.
|
|
|
|
// By convention, the data that we keep here is bubbled from the embellished
|
|
|
|
// hierarchy, and it remains unchanged unless we have to recover from a change
|
|
|
|
// that occurs in the embellished hierarchy. The struct remains in its nil
|
|
|
|
// state in those frames that are not part of the embellished hierarchy.
|
2000-01-07 17:49:46 +03:00
|
|
|
struct nsEmbellishData {
|
2002-02-07 07:38:08 +03:00
|
|
|
// bits used to mark certain properties of our embellishments
|
2012-08-22 19:56:38 +04:00
|
|
|
uint32_t flags;
|
2002-02-07 07:38:08 +03:00
|
|
|
|
|
|
|
// pointer on the <mo> frame at the core of the embellished hierarchy
|
|
|
|
nsIFrame* coreFrame;
|
|
|
|
|
|
|
|
// stretchy direction that the nsMathMLChar owned by the core <mo> supports
|
2000-01-07 17:49:46 +03:00
|
|
|
nsStretchDirection direction;
|
|
|
|
|
2002-02-07 07:38:08 +03:00
|
|
|
// spacing that may come from <mo> depending on its 'form'. Since
|
|
|
|
// the 'form' may also depend on the position of the outermost
|
|
|
|
// embellished ancestor, the set up of these values may require
|
|
|
|
// looking up the position of our ancestors.
|
2011-12-22 02:21:59 +04:00
|
|
|
nscoord leadingSpace;
|
|
|
|
nscoord trailingSpace;
|
2002-02-07 07:38:08 +03:00
|
|
|
|
|
|
|
nsEmbellishData() {
|
2000-01-07 17:49:46 +03:00
|
|
|
flags = 0;
|
2012-07-30 18:20:58 +04:00
|
|
|
coreFrame = nullptr;
|
2000-01-07 17:49:46 +03:00
|
|
|
direction = NS_STRETCH_DIRECTION_UNSUPPORTED;
|
2011-12-22 02:21:59 +04:00
|
|
|
leadingSpace = 0;
|
|
|
|
trailingSpace = 0;
|
2002-02-07 07:38:08 +03:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
// struct used by a container frame to modulate its presentation.
|
|
|
|
// By convention, the data that we keep in this struct can change depending
|
|
|
|
// on any of our ancestors and/or descendants. If a data can be resolved
|
|
|
|
// solely from the embellished hierarchy, and it remains immutable once
|
|
|
|
// resolved, we put it in |nsEmbellishData|. If it can be affected by other
|
|
|
|
// things, it comes here. This struct is updated as we receive information
|
|
|
|
// transmitted by our ancestors and is kept in sync with changes in our
|
|
|
|
// descendants that affects us.
|
|
|
|
struct nsPresentationData {
|
2014-01-14 18:39:50 +04:00
|
|
|
// bits for: compressed, etc
|
2012-08-22 19:56:38 +04:00
|
|
|
uint32_t flags;
|
2002-02-07 07:38:08 +03:00
|
|
|
|
2005-09-07 03:47:01 +04:00
|
|
|
// handy pointer on our base child (the 'nucleus' in TeX), but it may be
|
|
|
|
// null here (e.g., tags like <mrow>, <mfrac>, <mtable>, etc, won't
|
|
|
|
// pick a particular child in their child list to be the base)
|
|
|
|
nsIFrame* baseFrame;
|
|
|
|
|
2002-02-07 07:38:08 +03:00
|
|
|
// up-pointer on the mstyle frame, if any, that defines the scope
|
|
|
|
nsIFrame* mstyle;
|
|
|
|
|
|
|
|
nsPresentationData() {
|
|
|
|
flags = 0;
|
2012-07-30 18:20:58 +04:00
|
|
|
baseFrame = nullptr;
|
|
|
|
mstyle = nullptr;
|
2000-01-07 17:49:46 +03:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2001-02-23 19:10:51 +03:00
|
|
|
// ==========================================================================
|
2000-01-14 11:38:25 +03:00
|
|
|
// Bits used for the presentation flags -- these bits are set
|
|
|
|
// in their relevant situation as they become available
|
|
|
|
|
|
|
|
// This bit is used to emulate TeX rendering.
|
|
|
|
// Internal use only, cannot be set by the user with an attribute.
|
2008-02-26 07:19:36 +03:00
|
|
|
#define NS_MATHML_COMPRESSED 0x00000002U
|
2000-01-14 11:38:25 +03:00
|
|
|
|
2002-02-07 07:38:08 +03:00
|
|
|
// This bit is set if the frame will fire a vertical stretch
|
|
|
|
// command on all its (non-empty) children.
|
|
|
|
// Tags like <mrow> (or an inferred mrow), mpadded, etc, will fire a
|
|
|
|
// vertical stretch command on all their non-empty children
|
2008-02-26 07:19:36 +03:00
|
|
|
#define NS_MATHML_STRETCH_ALL_CHILDREN_VERTICALLY 0x00000004U
|
2002-02-07 07:38:08 +03:00
|
|
|
|
|
|
|
// This bit is set if the frame will fire a horizontal stretch
|
|
|
|
// command on all its (non-empty) children.
|
|
|
|
// Tags like munder, mover, munderover, will fire a
|
|
|
|
// horizontal stretch command on all their non-empty children
|
2008-02-26 07:19:36 +03:00
|
|
|
#define NS_MATHML_STRETCH_ALL_CHILDREN_HORIZONTALLY 0x00000008U
|
2002-02-07 07:38:08 +03:00
|
|
|
|
2011-03-25 06:38:59 +03:00
|
|
|
// This bit is set if the frame is "space-like", as defined by the spec.
|
|
|
|
#define NS_MATHML_SPACE_LIKE 0x00000040U
|
|
|
|
|
2000-03-28 13:38:24 +04:00
|
|
|
// This bit is set when the frame cannot be formatted due to an
|
|
|
|
// error (e.g., invalid markup such as a <msup> without an overscript).
|
|
|
|
// When set, a visual feedback will be provided to the user.
|
2008-02-26 07:19:36 +03:00
|
|
|
#define NS_MATHML_ERROR 0x80000000U
|
2000-03-28 13:38:24 +04:00
|
|
|
|
2002-02-07 07:38:08 +03:00
|
|
|
// a bit used for debug
|
2008-02-26 07:19:36 +03:00
|
|
|
#define NS_MATHML_STRETCH_DONE 0x20000000U
|
2002-02-07 07:38:08 +03:00
|
|
|
|
2000-01-18 07:35:37 +03:00
|
|
|
// This bit is used for visual debug. When set, the bounding box
|
2000-03-28 13:38:24 +04:00
|
|
|
// of your frame is painted. This visual debug enable to ensure that
|
|
|
|
// you have properly filled your mReference and mBoundingMetrics in
|
2000-01-18 07:35:37 +03:00
|
|
|
// Place().
|
2008-02-26 07:19:36 +03:00
|
|
|
#define NS_MATHML_SHOW_BOUNDING_METRICS 0x10000000U
|
2000-01-18 07:35:37 +03:00
|
|
|
|
2000-01-14 11:38:25 +03:00
|
|
|
// Macros that retrieve those bits
|
2001-02-23 19:10:51 +03:00
|
|
|
|
2000-01-14 11:38:25 +03:00
|
|
|
#define NS_MATHML_IS_COMPRESSED(_flags) \
|
|
|
|
(NS_MATHML_COMPRESSED == ((_flags) & NS_MATHML_COMPRESSED))
|
|
|
|
|
2002-02-07 07:38:08 +03:00
|
|
|
#define NS_MATHML_WILL_STRETCH_ALL_CHILDREN_VERTICALLY(_flags) \
|
|
|
|
(NS_MATHML_STRETCH_ALL_CHILDREN_VERTICALLY == ((_flags) & NS_MATHML_STRETCH_ALL_CHILDREN_VERTICALLY))
|
|
|
|
|
|
|
|
#define NS_MATHML_WILL_STRETCH_ALL_CHILDREN_HORIZONTALLY(_flags) \
|
|
|
|
(NS_MATHML_STRETCH_ALL_CHILDREN_HORIZONTALLY == ((_flags) & NS_MATHML_STRETCH_ALL_CHILDREN_HORIZONTALLY))
|
|
|
|
|
2011-03-25 06:38:59 +03:00
|
|
|
#define NS_MATHML_IS_SPACE_LIKE(_flags) \
|
|
|
|
(NS_MATHML_SPACE_LIKE == ((_flags) & NS_MATHML_SPACE_LIKE))
|
|
|
|
|
2000-03-28 13:38:24 +04:00
|
|
|
#define NS_MATHML_HAS_ERROR(_flags) \
|
|
|
|
(NS_MATHML_ERROR == ((_flags) & NS_MATHML_ERROR))
|
|
|
|
|
2002-02-07 07:38:08 +03:00
|
|
|
#define NS_MATHML_STRETCH_WAS_DONE(_flags) \
|
|
|
|
(NS_MATHML_STRETCH_DONE == ((_flags) & NS_MATHML_STRETCH_DONE))
|
|
|
|
|
2000-01-18 07:35:37 +03:00
|
|
|
#define NS_MATHML_PAINT_BOUNDING_METRICS(_flags) \
|
|
|
|
(NS_MATHML_SHOW_BOUNDING_METRICS == ((_flags) & NS_MATHML_SHOW_BOUNDING_METRICS))
|
|
|
|
|
2001-02-23 19:10:51 +03:00
|
|
|
// ==========================================================================
|
2000-01-14 11:38:25 +03:00
|
|
|
// Bits used for the embellish flags -- these bits are set
|
|
|
|
// in their relevant situation as they become available
|
|
|
|
|
|
|
|
// This bit is set if the frame is an embellished operator.
|
2000-03-28 13:38:24 +04:00
|
|
|
#define NS_MATHML_EMBELLISH_OPERATOR 0x00000001
|
2000-01-14 11:38:25 +03:00
|
|
|
|
2002-02-07 07:38:08 +03:00
|
|
|
// This bit is set if the frame is an <mo> frame or an embellihsed
|
|
|
|
// operator for which the core <mo> has movablelimits="true"
|
|
|
|
#define NS_MATHML_EMBELLISH_MOVABLELIMITS 0x00000002
|
2000-01-14 11:38:25 +03:00
|
|
|
|
2002-02-07 07:38:08 +03:00
|
|
|
// This bit is set if the frame is an <mo> frame or an embellihsed
|
|
|
|
// operator for which the core <mo> has accent="true"
|
|
|
|
#define NS_MATHML_EMBELLISH_ACCENT 0x00000004
|
2000-01-07 17:49:46 +03:00
|
|
|
|
2002-02-07 07:38:08 +03:00
|
|
|
// This bit is set if the frame is an <mover> or <munderover> with
|
|
|
|
// an accent frame
|
|
|
|
#define NS_MATHML_EMBELLISH_ACCENTOVER 0x00000008
|
1999-12-10 16:02:23 +03:00
|
|
|
|
2002-02-07 07:38:08 +03:00
|
|
|
// This bit is set if the frame is an <munder> or <munderover> with
|
|
|
|
// an accentunder frame
|
|
|
|
#define NS_MATHML_EMBELLISH_ACCENTUNDER 0x00000010
|
1999-12-10 16:02:23 +03:00
|
|
|
|
2000-01-14 11:38:25 +03:00
|
|
|
// Macros that retrieve those bits
|
1999-12-10 16:02:23 +03:00
|
|
|
|
|
|
|
#define NS_MATHML_IS_EMBELLISH_OPERATOR(_flags) \
|
|
|
|
(NS_MATHML_EMBELLISH_OPERATOR == ((_flags) & NS_MATHML_EMBELLISH_OPERATOR))
|
|
|
|
|
2002-02-07 07:38:08 +03:00
|
|
|
#define NS_MATHML_EMBELLISH_IS_MOVABLELIMITS(_flags) \
|
|
|
|
(NS_MATHML_EMBELLISH_MOVABLELIMITS == ((_flags) & NS_MATHML_EMBELLISH_MOVABLELIMITS))
|
2000-01-14 11:38:25 +03:00
|
|
|
|
|
|
|
#define NS_MATHML_EMBELLISH_IS_ACCENT(_flags) \
|
|
|
|
(NS_MATHML_EMBELLISH_ACCENT == ((_flags) & NS_MATHML_EMBELLISH_ACCENT))
|
|
|
|
|
2002-02-07 07:38:08 +03:00
|
|
|
#define NS_MATHML_EMBELLISH_IS_ACCENTOVER(_flags) \
|
|
|
|
(NS_MATHML_EMBELLISH_ACCENTOVER == ((_flags) & NS_MATHML_EMBELLISH_ACCENTOVER))
|
|
|
|
|
|
|
|
#define NS_MATHML_EMBELLISH_IS_ACCENTUNDER(_flags) \
|
|
|
|
(NS_MATHML_EMBELLISH_ACCENTUNDER == ((_flags) & NS_MATHML_EMBELLISH_ACCENTUNDER))
|
2000-01-14 11:38:25 +03:00
|
|
|
|
1999-09-21 06:12:01 +04:00
|
|
|
#endif /* nsIMathMLFrame_h___ */
|