2017-10-27 20:33:53 +03: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 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/. */
|
1999-09-21 06:12:01 +04:00
|
|
|
|
|
|
|
#ifndef nsMathMLmmultiscriptsFrame_h___
|
|
|
|
#define nsMathMLmmultiscriptsFrame_h___
|
|
|
|
|
2013-05-14 20:33:23 +04:00
|
|
|
#include "mozilla/Attributes.h"
|
1999-09-21 06:12:01 +04:00
|
|
|
#include "nsMathMLContainerFrame.h"
|
|
|
|
|
|
|
|
//
|
2017-07-06 15:00:35 +03:00
|
|
|
// <mmultiscripts> -- attach prescripts and tensor indices to a base
|
2013-08-19 17:09:34 +04: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 06:12:01 +04:00
|
|
|
//
|
|
|
|
|
2018-09-06 04:23:14 +03:00
|
|
|
class nsMathMLmmultiscriptsFrame final : public nsMathMLContainerFrame {
|
1999-09-21 06:12:01 +04:00
|
|
|
public:
|
2017-05-26 13:11:11 +03:00
|
|
|
NS_DECL_FRAMEARENA_HELPERS(nsMathMLmmultiscriptsFrame)
|
2009-09-12 20:49:24 +04:00
|
|
|
|
2018-03-22 21:20:41 +03:00
|
|
|
friend nsIFrame* NS_NewMathMLmmultiscriptsFrame(nsIPresShell* aPresShell,
|
|
|
|
ComputedStyle* aStyle);
|
1999-09-21 06:12:01 +04:00
|
|
|
|
2002-02-01 18:10:50 +03:00
|
|
|
NS_IMETHOD
|
2015-03-21 19:28:04 +03:00
|
|
|
TransmitAutomaticData() override;
|
2002-02-01 18:10:50 +03:00
|
|
|
|
2015-12-16 00:56:41 +03:00
|
|
|
virtual nsresult Place(DrawTarget* aDrawTarget, bool aPlaceOrigin,
|
2016-07-21 13:36:38 +03:00
|
|
|
ReflowOutput& aDesiredSize) override;
|
2018-11-30 13:46:48 +03:00
|
|
|
|
2015-12-16 00:56:41 +03:00
|
|
|
static nsresult PlaceMultiScript(nsPresContext* aPresContext,
|
|
|
|
DrawTarget* aDrawTarget, bool aPlaceOrigin,
|
2016-07-21 13:36:38 +03:00
|
|
|
ReflowOutput& aDesiredSize,
|
2015-12-16 00:56:41 +03:00
|
|
|
nsMathMLContainerFrame* aForFrame,
|
|
|
|
nscoord aUserSubScriptShift,
|
|
|
|
nscoord aUserSupScriptShift,
|
|
|
|
float aFontSizeInflation);
|
2017-07-06 15:00:35 +03:00
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
uint8_t ScriptIncrement(nsIFrame* aFrame) override;
|
2002-02-07 07:38:08 +03:00
|
|
|
|
1999-09-21 06:12:01 +04:00
|
|
|
protected:
|
2019-02-05 19:45:54 +03:00
|
|
|
explicit nsMathMLmmultiscriptsFrame(ComputedStyle* aStyle,
|
|
|
|
nsPresContext* aPresContext)
|
|
|
|
: nsMathMLContainerFrame(aStyle, aPresContext, kClassID) {}
|
1999-09-21 06:12:01 +04:00
|
|
|
virtual ~nsMathMLmmultiscriptsFrame();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsMathMLmmultiscriptsFrame_h___ */
|