+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include <config.h>
#include "LString.h"
#ifndef MATHAUTOCORRECT_H
#define MATHAUTOCORRECT_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
class MathAtom;
// make "corrections" according to file lib/autocorrect
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "math_diffinset.h"
#include "math_support.h"
#include "math_mathmlstream.h"
#ifndef MATH_DIFFINSET_H
#define MATH_DIFFINSET_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
// d f(x)/dx in one block
// for interfacing external programs
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "math_diminset.h"
#include "Lsstream.h"
#include "textpainter.h"
#ifndef MATH_DIMINSET_H
#define MATH_DIMINSET_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "math_inset.h"
#include "dimension.h"
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include <config.h>
#include "math_ertinset.h"
#include "math_mathmlstream.h"
-
#include "support/LOstream.h"
+
MathInset * MathErtInset::clone() const
{
return new MathErtInset(*this);
#ifndef MATH_ERTINSET_H
#define MATH_ERTINSET_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "math_textinset.h"
// implements support for \parbox
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include <config.h>
#include "math_exfuncinset.h"
#ifndef MATH_EXFUNCINSET_H
#define MATH_EXFUNCINSET_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "math_nestinset.h"
// f(x) in one block (as opposed to 'f','(','x',')' or 'f','x')
+
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include <config.h>
#include "math_exintinset.h"
#include <boost/scoped_ptr.hpp>
-using std::endl;
-
MathExIntInset::MathExIntInset(string const & name)
: MathNestInset(4), symbol_(name)
void MathExIntInset::metrics(MathMetricsInfo &) const
{
- lyxerr << "should not happen" << endl;
+ lyxerr << "should not happen\n";
}
void MathExIntInset::draw(MathPainterInfo &, int, int) const
{
- lyxerr << "should not happen" << endl;
+ lyxerr << "should not happen\n";
}
void MathExIntInset::write(WriteStream &) const
{
- lyxerr << "should not happen" << endl;
+ lyxerr << "should not happen\n";
}
#ifndef MATH_EXINTINSET_H
#define MATH_EXINTINSET_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
// \int_l^u f(x) dx in one block (as opposed to 'f','(','x',')' or 'f','x')
// or \sum, \prod... for interfacing external programs
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
// This file contains most of the magic that extracts "context
// information" from the unstructered layout-oriented stuff in an
// MathArray.
#ifndef MATH_EXTERN_H
#define MATH_EXTERN_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "LString.h"
class NormalStream;
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include <config.h>
#include "math_parser.h"
#ifndef MATH_FACTORY_H
#define MATH_FACTORY_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "LString.h"
#include "math_atom.h"
* the GNU General Public Licence version 2 or later.
*/
+#include <config.h>
+
#ifdef __GNUG__
-#pragma implementation
+#pragma implementation
#endif
-#include <config.h>
-
-#include "Lsstream.h"
#include "math_inset.h"
+#include "Lsstream.h"
#include "math_scriptinset.h"
#include "math_mathmlstream.h"
#include "math_cursor.h"
#include "BufferView.h"
#include "formulabase.h"
-
using std::ostream;
-using std::vector;
int MathInset::height() const
}
-ostream & operator<<(ostream & os, MathAtom const & at)
-{
- WriteStream wi(os, false, false);
- at->write(wi);
- return os;
-}
-
-
MathInset::size_type MathInset::nargs() const
{
return 0;
}
+ostream & operator<<(ostream & os, MathAtom const & at)
+{
+ WriteStream wi(os, false, false);
+ at->write(wi);
+ return os;
+}
+
+
Dialogs & getDialogs()
{
return mathcursor->formula()->view()->owner()->getDialogs();
#ifndef MATH_INSET_H
#define MATH_INSET_H
-#include <config.h>
-
#ifdef __GNUG__
#pragma interface
#endif
+#include <config.h>
+
#include "LString.h"
#include "frontends/mouse_state.h"
#include "math_data.h"
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include <config.h>
#include "math_iterator.h"
#ifndef MATH_ITERATOR_H
#define MATH_ITERATOR_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "math_pos.h"
#include <vector>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "math_liminset.h"
#include "math_support.h"
#include "math_mathmlstream.h"
#ifndef MATH_LIMINSET_H
#define MATH_LIMINSET_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
// lim_{x->x0} f(x) in one block
// for interfacing external programs
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include <config.h>
#include "math_mathmlstream.h"
#ifndef MATH_MATHMLSTREAM_H
#define MATH_MATHMLSTREAM_H
+#ifdef __GNUG__
+#pragma interface
+#endif
// Please keep all four streams in one file until the interface has
// settled.
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include <config.h>
#include "math_metricsinfo.h"
#ifndef MATH_METRICSINFO_H
#define MATH_METRICSINFO_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "lyxfont.h"
#include "LString.h"
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "math_parboxinset.h"
#include "math_mathmlstream.h"
#include "math_streamstr.h"
#include "lyxlength.h"
#include "debug.h"
-using std::vector;
-
MathParboxInset::MathParboxInset()
: lyx_width_(0), tex_width_("0mm"), position_('c')
#ifndef MATH_PARBOXINSET_H
#define MATH_PARBOXINSET_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "math_textinset.h"
// implements support for \parbox
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include <config.h>
#include "math_parinset.h"
#include "math_mathmlstream.h"
-
#include "support/LOstream.h"
+
MathParInset::MathParInset(MathArray const & ar)
{
cells_[0] = ar;
#ifndef MATH_PARINSET_H
#define MATH_PARINSET_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "math_hullinset.h"
class MathParInset : public MathHullInset {
-#include "config.h"
-#include <iostream>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+#include "config.h"
#include "math_pos.h"
#include "math_inset.h"
#include "debug.h"
#include "support/LAssert.h"
+#include "support/LOstream.h"
-using std::ostream;
-
MathCursorPos::MathCursorPos()
: par_(0), idx_(0), pos_(0)
{}
}
-ostream & operator<<(ostream & os, MathCursorPos const & p)
+std::ostream & operator<<(std::ostream & os, MathCursorPos const & p)
{
os << "(par: " << p.par_ << " idx: " << p.idx_ << " pos: " << p.pos_ << ")";
return os;
#ifndef MATH_POS_H
#define MATH_POS_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include <iosfwd>
#include "math_data.h"
#ifndef MATH_REPLACE_H
#define MATH_REPLACE_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "math_data.h"
struct ReplaceData {
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include <config.h>
#include "math_streamstr.h"
// -*- C++ -*-
+
#ifndef MATH_STREAMSTR_H
#define MATH_STREAMSTR_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "LString.h"
class WriteStream;
-#include <config.h>
-#include <map>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
+#include <config.h>
#include "math_support.h"
#include "lyxfont.h"
#include "commandtags.h"
#include "dimension.h"
-using std::map;
-using std::endl;
+#include <map>
+
using std::max;
};
-map<string, deco_struct> deco_list;
+std::map<string, deco_struct> deco_list;
// sort the table on startup
struct init_deco_table {
deco_struct const * search_deco(string const & name)
{
- map<string, deco_struct>::const_iterator p = deco_list.find(name);
+ std::map<string, deco_struct>::const_iterator p = deco_list.find(name);
return (p == deco_list.end()) ? 0 : &(p->second);
}
#ifndef MATH_SUPPORT_H
#define MATH_SUPPORT_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "LString.h"
class MathPainterInfo;
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include <config.h>
#include "math_symbolinset.h"
#include "debug.h"
-using std::ostream;
-
-
MathSymbolInset::MathSymbolInset(const latexkeys * l)
: sym_(l), h_(0)
{}
}
-void MathSymbolInset::infoize(ostream & os) const
+void MathSymbolInset::infoize(std::ostream & os) const
{
os << "Symbol: " << name();
}
#ifndef MATH_SYMBOLINSET_H
#define MATH_SYMBOLINSET_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "math_diminset.h"
struct latexkeys;
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "math_textinset.h"
#include "math_metricsinfo.h"
#include "debug.h"
#ifndef MATH_TEXTINSET_H
#define MATH_TEXTINSET_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "math_gridinset.h"
// not yet a substitute for the real text inset...
-// code is currently directly inseide InsetFormula
+// code is currently directly inside InsetFormula
#ifndef PREVIEW_H
#define PREVIEW_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "LString.h"
bool preview(string const & str);
#ifndef REF_INSET_H
#define REF_INSET_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "command_inset.h"
// for \ref
-#include <iostream>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "textpainter.h"
+#include "support/LOstream.h"
TextPainter::TextPainter(int xmax, int ymax)
#ifndef TEXTPAINTER_H
#define TEXTPAINTER_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include <vector>
#include <iosfwd>