2003-08-19 13:00:56 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
2006-09-17 09:14:18 +00:00
|
|
|
* \file MathExtern.h
|
2003-08-19 13:00:56 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
2008-11-14 15:58:50 +00:00
|
|
|
* \author André Pönitz
|
2003-08-19 13:00:56 +00:00
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
2001-11-09 10:44:24 +00:00
|
|
|
#ifndef MATH_EXTERN_H
|
|
|
|
#define MATH_EXTERN_H
|
|
|
|
|
2007-11-27 20:51:20 +00:00
|
|
|
#include "support/strfwd.h"
|
2002-06-18 15:44:30 +00:00
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
namespace lyx {
|
|
|
|
|
2010-03-29 22:52:13 +00:00
|
|
|
class HtmlStream;
|
2001-11-09 10:44:24 +00:00
|
|
|
class NormalStream;
|
|
|
|
class MapleStream;
|
2002-10-28 17:15:19 +00:00
|
|
|
class MaximaStream;
|
2002-07-01 11:17:14 +00:00
|
|
|
class MathematicaStream;
|
2020-12-26 19:02:46 +00:00
|
|
|
class MathMLStream;
|
2001-11-09 10:44:24 +00:00
|
|
|
class OctaveStream;
|
|
|
|
class WriteStream;
|
2007-04-26 16:05:57 +00:00
|
|
|
class MathData;
|
2001-11-09 10:44:24 +00:00
|
|
|
|
2007-04-26 16:05:57 +00:00
|
|
|
void write(MathData const &, WriteStream &);
|
2010-03-29 22:52:13 +00:00
|
|
|
void htmlize(MathData const &, HtmlStream &);
|
2007-04-26 16:05:57 +00:00
|
|
|
void normalize(MathData const &, NormalStream &);
|
|
|
|
void maple(MathData const &, MapleStream &);
|
|
|
|
void maxima(MathData const &, MaximaStream &);
|
|
|
|
void mathematica(MathData const &, MathematicaStream &);
|
2020-12-26 19:02:46 +00:00
|
|
|
void mathmlize(MathData const &, MathMLStream &);
|
2007-04-26 16:05:57 +00:00
|
|
|
void octave(MathData const &, OctaveStream &);
|
2001-11-09 10:44:24 +00:00
|
|
|
|
2007-04-26 16:05:57 +00:00
|
|
|
bool extractNumber(MathData const & ar, int & i);
|
|
|
|
bool extractNumber(MathData const & ar, double & i);
|
2002-03-25 12:11:25 +00:00
|
|
|
|
2015-10-12 22:31:15 +00:00
|
|
|
/// Write \p s (which may contain math or text contents in LaTeX syntax) to \p os
|
|
|
|
void writeString(docstring const & s, WriteStream & os);
|
|
|
|
|
2007-04-26 16:05:57 +00:00
|
|
|
MathData pipeThroughExtern(std::string const & language,
|
|
|
|
docstring const & extra, MathData const & ar);
|
2002-06-18 15:44:30 +00:00
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
2001-11-09 10:44:24 +00:00
|
|
|
#endif
|