]> git.lyx.org Git - lyx.git/blob - src/mathed/MathExtern.h
Replace boost::scoped_ptr with unique_ptr
[lyx.git] / src / mathed / MathExtern.h
1 // -*- C++ -*-
2 /**
3  * \file MathExtern.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef MATH_EXTERN_H
13 #define MATH_EXTERN_H
14
15 #include "support/strfwd.h"
16
17 namespace lyx {
18
19 class HtmlStream;
20 class NormalStream;
21 class MapleStream;
22 class MaximaStream;
23 class MathematicaStream;
24 class MathStream;
25 class OctaveStream;
26 class WriteStream;
27 class MathData;
28
29 void write(MathData const &, WriteStream &);
30 void htmlize(MathData const &, HtmlStream &);
31 void normalize(MathData const &, NormalStream &);
32 void maple(MathData const &, MapleStream &);
33 void maxima(MathData const &, MaximaStream &);
34 void mathematica(MathData const &, MathematicaStream &);
35 void mathmlize(MathData const &, MathStream &);
36 void octave(MathData const &, OctaveStream &);
37
38 bool extractNumber(MathData const & ar, int & i);
39 bool extractNumber(MathData const & ar, double & i);
40
41 /// Write \p s (which may contain math or text contents in LaTeX syntax) to \p os
42 void writeString(docstring const & s, WriteStream & os);
43
44 MathData pipeThroughExtern(std::string const & language,
45         docstring const & extra, MathData const & ar);
46
47
48 } // namespace lyx
49
50 #endif