michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef MATHMLTEXTRUNFACTORY_H_ michael@0: #define MATHMLTEXTRUNFACTORY_H_ michael@0: michael@0: #include "nsTextRunTransformations.h" michael@0: michael@0: /** michael@0: * Builds textruns that render their text with MathML specific renderings. michael@0: */ michael@0: class MathMLTextRunFactory : public nsTransformingTextRunFactory { michael@0: public: michael@0: MathMLTextRunFactory(nsTransformingTextRunFactory* aInnerTransformingTextRunFactory, michael@0: uint8_t aSSTYScriptLevel) michael@0: : mInnerTransformingTextRunFactory(aInnerTransformingTextRunFactory), michael@0: mSSTYScriptLevel(aSSTYScriptLevel) {} michael@0: michael@0: virtual void RebuildTextRun(nsTransformedTextRun* aTextRun, michael@0: gfxContext* aRefContext) MOZ_OVERRIDE; michael@0: protected: michael@0: nsAutoPtr mInnerTransformingTextRunFactory; michael@0: uint8_t mSSTYScriptLevel; michael@0: }; michael@0: michael@0: #endif /*MATHMLTEXTRUNFACTORY_H_*/