2017-10-27 17:33:53 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2012-05-21 11:12:37 +00: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/. */
|
1999-09-21 02:12:01 +00:00
|
|
|
|
|
|
|
#ifndef nsMathMLmmultiscriptsFrame_h___
|
|
|
|
#define nsMathMLmmultiscriptsFrame_h___
|
|
|
|
|
2013-05-14 16:33:23 +00:00
|
|
|
#include "mozilla/Attributes.h"
|
1999-09-21 02:12:01 +00:00
|
|
|
#include "nsMathMLContainerFrame.h"
|
|
|
|
|
|
|
|
//
|
2017-07-06 12:00:35 +00:00
|
|
|
// <mmultiscripts> -- attach prescripts and tensor indices to a base
|
2013-08-19 13:09:34 +00:00
|
|
|
// <msub> -- attach a subscript to a base
|
|
|
|
// <msubsup> -- attach a subscript-superscript pair to a base
|
|
|
|
// <msup> -- attach a superscript to a base
|
1999-09-21 02:12:01 +00:00
|
|
|
//
|
|
|
|
|
2018-09-06 01:23:14 +00:00
|
|
|
class nsMathMLmmultiscriptsFrame final : public nsMathMLContainerFrame
|
|
|
|
{
|
1999-09-21 02:12:01 +00:00
|
|
|
public:
|
2017-05-26 10:11:11 +00:00
|
|
|
NS_DECL_FRAMEARENA_HELPERS(nsMathMLmmultiscriptsFrame)
|
2009-09-12 16:49:24 +00:00
|
|
|
|
2018-03-22 18:20:41 +00:00
|
|
|
friend nsIFrame* NS_NewMathMLmmultiscriptsFrame(nsIPresShell* aPresShell, ComputedStyle* aStyle);
|
1999-09-21 02:12:01 +00:00
|
|
|
|
2002-02-01 15:10:50 +00:00
|
|
|
NS_IMETHOD
|
2015-03-21 16:28:04 +00:00
|
|
|
TransmitAutomaticData() override;
|
2002-02-01 15:10:50 +00:00
|
|
|
|
2008-03-18 04:52:48 +00:00
|
|
|
virtual nsresult
|
2015-12-15 21:56:41 +00:00
|
|
|
Place(DrawTarget* aDrawTarget,
|
2011-09-29 06:19:26 +00:00
|
|
|
bool aPlaceOrigin,
|
2016-07-21 10:36:38 +00:00
|
|
|
ReflowOutput& aDesiredSize) override;
|
1999-09-21 02:12:01 +00:00
|
|
|
|
2013-08-19 13:09:34 +00:00
|
|
|
static nsresult
|
2015-12-15 21:56:41 +00:00
|
|
|
PlaceMultiScript(nsPresContext* aPresContext,
|
|
|
|
DrawTarget* aDrawTarget,
|
|
|
|
bool aPlaceOrigin,
|
2016-07-21 10:36:38 +00:00
|
|
|
ReflowOutput& aDesiredSize,
|
2015-12-15 21:56:41 +00:00
|
|
|
nsMathMLContainerFrame* aForFrame,
|
|
|
|
nscoord aUserSubScriptShift,
|
|
|
|
nscoord aUserSupScriptShift,
|
|
|
|
float aFontSizeInflation);
|
2013-08-19 13:09:34 +00:00
|
|
|
|
2014-01-15 14:49:00 +00:00
|
|
|
uint8_t
|
2015-03-21 16:28:04 +00:00
|
|
|
ScriptIncrement(nsIFrame* aFrame) override;
|
2014-01-15 14:49:00 +00:00
|
|
|
|
1999-09-21 02:12:01 +00:00
|
|
|
protected:
|
2018-03-22 18:20:41 +00:00
|
|
|
explicit nsMathMLmmultiscriptsFrame(ComputedStyle* aStyle)
|
|
|
|
: nsMathMLContainerFrame(aStyle, kClassID) {}
|
1999-09-21 02:12:01 +00:00
|
|
|
virtual ~nsMathMLmmultiscriptsFrame();
|
2017-07-06 12:00:35 +00:00
|
|
|
|
2002-02-07 04:38:08 +00:00
|
|
|
|
1999-09-21 02:12:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsMathMLmmultiscriptsFrame_h___ */
|