layout/mathml/nsMathMLmmultiscriptsFrame.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/mathml/nsMathMLmmultiscriptsFrame.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,53 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#ifndef nsMathMLmmultiscriptsFrame_h___
    1.10 +#define nsMathMLmmultiscriptsFrame_h___
    1.11 +
    1.12 +#include "mozilla/Attributes.h"
    1.13 +#include "nsMathMLContainerFrame.h"
    1.14 +
    1.15 +//
    1.16 +// <mmultiscripts> -- attach prescripts and tensor indices to a base 
    1.17 +// <msub> -- attach a subscript to a base
    1.18 +// <msubsup> -- attach a subscript-superscript pair to a base
    1.19 +// <msup> -- attach a superscript to a base
    1.20 +//
    1.21 +
    1.22 +class nsMathMLmmultiscriptsFrame : public nsMathMLContainerFrame {
    1.23 +public:
    1.24 +  NS_DECL_FRAMEARENA_HELPERS
    1.25 +
    1.26 +  friend nsIFrame* NS_NewMathMLmmultiscriptsFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
    1.27 +
    1.28 +  NS_IMETHOD
    1.29 +  TransmitAutomaticData() MOZ_OVERRIDE;
    1.30 +
    1.31 +  virtual nsresult
    1.32 +  Place(nsRenderingContext& aRenderingContext,
    1.33 +        bool                 aPlaceOrigin,
    1.34 +        nsHTMLReflowMetrics& aDesiredSize) MOZ_OVERRIDE;
    1.35 +
    1.36 +  static nsresult
    1.37 +  PlaceMultiScript(nsPresContext*      aPresContext,
    1.38 +                    nsRenderingContext& aRenderingContext,
    1.39 +                    bool                 aPlaceOrigin,
    1.40 +                    nsHTMLReflowMetrics& aDesiredSize,
    1.41 +                    nsMathMLContainerFrame* aForFrame,
    1.42 +                    nscoord              aUserSubScriptShift,
    1.43 +                    nscoord              aUserSupScriptShift,
    1.44 +                    nscoord              aScriptSpace);
    1.45 +
    1.46 +  uint8_t
    1.47 +  ScriptIncrement(nsIFrame* aFrame) MOZ_OVERRIDE;
    1.48 +
    1.49 +protected:
    1.50 +  nsMathMLmmultiscriptsFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext) {}
    1.51 +  virtual ~nsMathMLmmultiscriptsFrame();
    1.52 +  
    1.53 +
    1.54 +};
    1.55 +
    1.56 +#endif /* nsMathMLmmultiscriptsFrame_h___ */

mercurial