+2003-09-05 Angus Leeming <leeming@lyx.org>
+
+ * most .C files: strip out redundant #includes.
+
2003-09-02 Alfredo Braunstein <abraunst@libero.it>
* formulamacro.C (prefix): replace %s by %1$s to make bformat happy
#include "formula.h"
#include "math_cursor.h"
#include "math_parser.h"
-#include "math_charinset.h"
-#include "math_arrayinset.h"
-#include "metricsinfo.h"
-#include "math_deliminset.h"
#include "math_hullinset.h"
-#include "math_support.h"
#include "math_mathmlstream.h"
#include "textpainter.h"
-#include "BufferView.h"
-#include "gettext.h"
#include "debug.h"
#include "latexrunparams.h"
-#include "lyxrc.h"
-#include "funcrequest.h"
#include "Lsstream.h"
-#include "support/LOstream.h"
-#include "support/LAssert.h"
-#include "support/lyxlib.h"
-#include "support/systemcall.h"
-#include "support/filetools.h"
-#include "frontends/Alert.h"
-#include "frontends/LyXView.h"
#include "frontends/Painter.h"
#include "graphics/PreviewedInset.h"
#include "support/LAssert.h"
#include "formula.h"
#include "formulamacro.h"
-#include "lyxrc.h"
#include "funcrequest.h"
#include "BufferView.h"
#include "lyxtext.h"
#include "gettext.h"
-#include "LaTeXFeatures.h"
#include "debug.h"
#include "math_support.h"
-#include "metricsinfo.h"
-#include "math_data.h"
#include "support/lstrings.h"
#include "support/lyxlib.h"
#include "frontends/LyXView.h"
-#include "frontends/font_metrics.h"
-#include "frontends/mouse_state.h"
#include "math_arrayinset.h"
-#include "math_charinset.h"
#include "math_deliminset.h"
#include "math_cursor.h"
#include "math_factory.h"
-#include "math_fontinset.h"
#include "math_hullinset.h"
-#include "math_iterator.h"
-#include "math_macrotable.h"
#include "math_parser.h"
-#include "math_pos.h"
#include "math_spaceinset.h"
#include "undo_funcs.h"
-#include "textpainter.h"
#include "frontends/Dialogs.h"
-#include "intl.h"
#include "ref_inset.h"
-#include <fstream>
using namespace lyx::support;
#include <config.h>
#include "formulamacro.h"
-#include "lfuns.h"
#include "math_cursor.h"
-#include "math_parser.h"
-#include "math_macro.h"
#include "math_macrotable.h"
#include "math_macrotemplate.h"
-#include "metricsinfo.h"
-#include "math_support.h"
#include "math_mathmlstream.h"
-#include "BufferView.h"
#include "gettext.h"
#include "latexrunparams.h"
#include "frontends/Painter.h"
#include "frontends/font_metrics.h"
-#include "support/lyxlib.h"
#include "support/lstrings.h"
-#include "support/LOstream.h"
-#include "debug.h"
#include "lyxlex.h"
-#include "lyxtext.h"
#include "Lsstream.h"
using namespace lyx::support;
#include "math_amsarrayinset.h"
#include "math_mathmlstream.h"
-#include "metricsinfo.h"
#include "math_streamstr.h"
#include "math_support.h"
-#include "Lsstream.h"
using std::auto_ptr;
#include "math_arrayinset.h"
#include "math_parser.h"
#include "math_mathmlstream.h"
-#include "metricsinfo.h"
#include "math_streamstr.h"
#include "Lsstream.h"
#include "math_atom.h"
#include "math_inset.h"
-#include "insets/insetbase.h"
-#include <utility>
MathAtom::MathAtom()
#include <config.h>
-#include "LString.h"
#include "Lsstream.h"
#include "debug.h"
#include "support/filetools.h" // LibFileSearch
#include "math_inset.h"
#include "math_parser.h"
-#include <iostream>
#include <fstream>
-#include <vector>
using namespace lyx::support;
#include "math_biginset.h"
#include "math_support.h"
-#include "math_parser.h"
#include "math_mathmlstream.h"
#include "math_streamstr.h"
#include "math_binominset.h"
#include "math_support.h"
-#include "support/LOstream.h"
#include "math_mathmlstream.h"
#include <config.h>
#include "math_boxinset.h"
-#include "math_support.h"
#include "math_mathmlstream.h"
#include "math_streamstr.h"
#include "support/LOstream.h"
#include <config.h>
#include "math_braceinset.h"
-#include "math_parser.h"
#include "math_support.h"
#include "math_mathmlstream.h"
#include "support/LOstream.h"
#include <config.h>
#include "math_casesinset.h"
-#include "math_parser.h"
#include "math_mathmlstream.h"
#include "math_support.h"
#include "LaTeXFeatures.h"
#include <config.h>
#include "math_charinset.h"
-#include "LColor.h"
#include "dimension.h"
-#include "frontends/Painter.h"
-#include "frontends/font_metrics.h"
#include "support/LOstream.h"
-#include "debug.h"
#include "math_support.h"
#include "math_mathmlstream.h"
-#include "LaTeXFeatures.h"
#include "textpainter.h"
-#include <cctype>
-#include <cstring>
using std::ostream;
#include <config.h>
#include "math_commentinset.h"
-#include "math_data.h"
#include "math_support.h"
#include "math_mathmlstream.h"
-#include "LaTeXFeatures.h"
#include "support/LOstream.h"
-#include "textpainter.h"
using std::auto_ptr;
#include <lyxrc.h>
-#include "support/lstrings.h"
#include "support/LAssert.h"
#include "support/limited_stack.h"
#include "debug.h"
#include "Lsstream.h"
-#include "frontends/Painter.h"
#include "math_cursor.h"
#include "formulabase.h"
#include "funcrequest.h"
-#include "math_autocorrect.h"
#include "math_braceinset.h"
#include "math_commentinset.h"
#include "math_charinset.h"
-#include "math_extern.h"
#include "math_factory.h"
-#include "math_fontinset.h"
#include "math_gridinset.h"
-#include "math_iterator.h"
#include "math_macroarg.h"
#include "math_macrotemplate.h"
#include "math_mathmlstream.h"
#include "math_support.h"
#include "math_unknowninset.h"
-#include <algorithm>
-#include <cctype>
//#define FILEDEBUG 1
#include <config.h>
-#include "math_data.h"
-#include "math_inset.h"
#include "math_cursor.h"
-#include "math_deliminset.h"
#include "math_fontinset.h"
#include "math_scriptinset.h"
#include "math_mathmlstream.h"
#include "math_replace.h"
#include "debug.h"
#include "support/LAssert.h"
-#include "metricsinfo.h"
-#include "math_data.h"
#include "frontends/Painter.h"
-#include "textpainter.h"
using namespace lyx::support;
#include <config.h>
#include "math_deliminset.h"
-#include "math_parser.h"
#include "math_support.h"
#include "math_mathmlstream.h"
#include "math_streamstr.h"
-#include "math_extern.h"
using std::max;
#include <config.h>
#include "math_diffinset.h"
-#include "math_support.h"
#include "math_mathmlstream.h"
-#include "math_symbolinset.h"
#include "debug.h"
using std::auto_ptr;
#include <config.h>
#include "math_diminset.h"
-#include "Lsstream.h"
-#include "textpainter.h"
void MathDimInset::metricsT(TextMetricsInfo const &) const
#include "math_dotsinset.h"
#include "math_mathmlstream.h"
-#include "math_streamstr.h"
#include "math_support.h"
#include "math_parser.h"
#include <config.h>
#include "math_exintinset.h"
-#include "math_support.h"
#include "math_mathmlstream.h"
#include "math_streamstr.h"
#include "math_symbolinset.h"
#include "debug.h"
-#include <boost/scoped_ptr.hpp>
using std::auto_ptr;
using std::endl;
#include <config.h>
-#include "math_amsarrayinset.h"
#include "math_arrayinset.h"
#include "math_charinset.h"
#include "math_deliminset.h"
#include "math_scriptinset.h"
#include "math_stringinset.h"
#include "math_symbolinset.h"
-#include "math_unknowninset.h"
#include "math_parser.h"
#include "Lsstream.h"
#include "debug.h"
-#include "support/lyxlib.h"
-#include "support/systemcall.h"
#include "support/filetools.h"
#include "support/lstrings.h"
-#include <algorithm>
using namespace lyx::support;
#include "math_macro.h"
#include "math_macrotable.h"
#include "math_macrotemplate.h"
-#include "math_macroarg.h"
#include "math_makeboxinset.h"
#include "math_oversetinset.h"
#include "math_parboxinset.h"
//#include "insets/insetref.h"
#include "ref_inset.h"
-#include "metricsinfo.h"
-#include "math_data.h"
#include "debug.h"
#include "math_support.h"
#include "Lsstream.h"
#include "support/lstrings.h"
#include "frontends/lyx_gui.h"
-#include <map>
#include <fstream>
using namespace lyx::support;
#include <config.h>
#include "math_fboxinset.h"
-#include "math_support.h"
#include "math_mathmlstream.h"
#include "math_streamstr.h"
#include "math_parser.h"
#include "math_fontinset.h"
#include "math_mathmlstream.h"
-#include "math_streamstr.h"
-#include "math_support.h"
#include "math_parser.h"
#include "LaTeXFeatures.h"
#include "support/LOstream.h"
-#include "textpainter.h"
using std::auto_ptr;
#include "math_fontoldinset.h"
#include "math_mathmlstream.h"
#include "math_streamstr.h"
-#include "math_support.h"
#include "math_parser.h"
-#include "textpainter.h"
#include "support/LOstream.h"
-#include "frontends/Painter.h"
using std::auto_ptr;
#include <config.h>
#include "math_fracinset.h"
-#include "math_support.h"
#include "frontends/Painter.h"
#include "math_mathmlstream.h"
#include "textpainter.h"
#include "math_frameboxinset.h"
#include "math_support.h"
#include "math_mathmlstream.h"
-#include "math_streamstr.h"
#include "frontends/Painter.h"
using std::auto_ptr;
#include "math_gridinset.h"
#include "math_mathmlstream.h"
#include "math_streamstr.h"
-#include "lyxfont.h"
#include "funcrequest.h"
#include "frontends/Painter.h"
#include "debug.h"
#include "Lsstream.h"
#include "LaTeXFeatures.h"
#include "support/LAssert.h"
-#include "frontends/Painter.h"
#include "frontends/Alert.h"
#include "lyxrc.h"
#include "gettext.h"
-#include "BufferView.h"
-#include <vector>
using namespace lyx::support;
#include <config.h>
-#include "math_inset.h"
-#include "math_scriptinset.h"
#include "math_mathmlstream.h"
#include "math_cursor.h"
#include "debug.h"
-#include "frontends/LyXView.h"
-#include "frontends/Dialogs.h"
-#include "BufferView.h"
#include "formulabase.h"
using std::ostream;
#include "math_iterator.h"
#include "math_inset.h"
-#include "debug.h"
#include "support/LAssert.h"
using namespace lyx::support;
#include <config.h>
#include "math_kerninset.h"
-#include "math_extern.h"
#include "math_mathmlstream.h"
#include "math_streamstr.h"
#include "math_support.h"
#include <config.h>
#include "math_lefteqninset.h"
-#include "math_support.h"
#include "support/LOstream.h"
using std::auto_ptr;
#include <config.h>
#include "math_liminset.h"
-#include "math_support.h"
#include "math_mathmlstream.h"
-#include "math_symbolinset.h"
#include "debug.h"
using std::auto_ptr;
#include "math_macrotable.h"
#include "math_macrotemplate.h"
#include "math_mathmlstream.h"
-#include "math_streamstr.h"
-#include "support/lstrings.h"
-#include "support/LAssert.h"
#include "debug.h"
#include "LaTeXFeatures.h"
#include <config.h>
-#include "math_macroarg.h"
#include "math_macro.h"
#include "math_mathmlstream.h"
#include "math_support.h"
#include <config.h>
#include "math_macrotable.h"
-#include "math_macro.h"
#include "math_macrotemplate.h"
-#include "math_parser.h"
-#include "math_mathmlstream.h"
#include "debug.h"
-#include "math_support.h" // math_font_available
-#include <iostream>
using std::endl;
#include "math_makeboxinset.h"
#include "math_support.h"
#include "math_mathmlstream.h"
-#include "math_streamstr.h"
-#include "frontends/Painter.h"
using std::auto_ptr;
#include "math_inset.h"
#include "math_data.h"
#include "math_extern.h"
-#include "debug.h"
#include "support/lyxalgo.h"
-#include "support/LOstream.h"
using std::ostream;
#include <config.h>
#include "math_matrixinset.h"
-#include "math_parser.h"
#include "math_mathmlstream.h"
-#include "Lsstream.h"
using std::auto_ptr;
#include "math_mathmlstream.h"
#include "math_streamstr.h"
#include "math_support.h"
-#include "debug.h"
using std::auto_ptr;
#include "math_oversetinset.h"
#include "math_mathmlstream.h"
-#include "math_support.h"
using std::max;
#include "math_parboxinset.h"
#include "math_mathmlstream.h"
#include "math_streamstr.h"
-#include "lyxlength.h"
#include "debug.h"
using std::auto_ptr;
#include <config.h>
#include "math_parser.h"
-#include "math_inset.h"
#include "math_arrayinset.h"
#include "math_braceinset.h"
-#include "math_boxinset.h"
#include "math_charinset.h"
#include "math_commentinset.h"
#include "math_deliminset.h"
#include "math_envinset.h"
-#include "math_extern.h"
#include "math_factory.h"
#include "math_kerninset.h"
#include "math_macro.h"
#include "math_macrotemplate.h"
-#include "math_hullinset.h"
#include "math_parboxinset.h"
#include "math_parinset.h"
#include "math_rootinset.h"
#include "math_scriptinset.h"
-#include "math_sizeinset.h"
#include "math_sqrtinset.h"
-#include "math_stringinset.h"
#include "math_support.h"
#include "math_tabularinset.h"
#include "lyxlex.h"
#include "Lsstream.h"
#include "debug.h"
-#include "support/LAssert.h"
-#include <cctype>
-#include <algorithm>
using std::istream;
using std::ostream;
#include "math_inset.h"
#include "debug.h"
#include "support/LAssert.h"
-#include "support/LOstream.h"
using namespace lyx::support;
#include "math_parser.h"
#include "math_mathmlstream.h"
#include "math_streamstr.h"
-#include "math_support.h"
#include "support/LOstream.h"
using std::atoi;
#include "math_spaceinset.h"
#include "math_data.h"
-#include "math_support.h"
-#include "LColor.h"
#include "frontends/Painter.h"
#include "math_mathmlstream.h"
#include "LaTeXFeatures.h"
-#include "debug.h"
using std::auto_ptr;
#include "math_sqrtinset.h"
#include "math_mathmlstream.h"
-#include "LColor.h"
#include "frontends/Painter.h"
#include "textpainter.h"
#include "math_stackrelinset.h"
#include "math_mathmlstream.h"
-#include "math_support.h"
using std::max;
#include <config.h>
-#include "math_streamstr.h"
#include "math_mathmlstream.h"
-#include "support/LOstream.h"
-#include "support/lyxalgo.h"
WriteStream & operator<<(WriteStream & ws, string const & s)
#include "math_mathmlstream.h"
#include "math_streamstr.h"
#include "math_support.h"
-#include "debug.h"
using std::auto_ptr;
#include "math_substackinset.h"
#include "math_mathmlstream.h"
-#include "math_streamstr.h"
#include "support/LOstream.h"
using std::auto_ptr;
#include <config.h>
#include "math_support.h"
-#include "lyxfont.h"
-#include "math_inset.h"
#include "math_parser.h"
-#include "metricsinfo.h"
#include "math_data.h"
#include "frontends/Painter.h"
#include "frontends/font_metrics.h"
#include "frontends/lyx_gui.h"
#include "debug.h"
-#include "lfuns.h"
-#include "dimension.h"
#include "Lsstream.h"
#include "math_mathmlstream.h"
#include <config.h>
#include "math_tabularinset.h"
-#include "math_parser.h"
#include "math_mathmlstream.h"
-#include "metricsinfo.h"
#include "math_streamstr.h"
-#include "Lsstream.h"
#include <iterator>
#include "math_undersetinset.h"
#include "math_mathmlstream.h"
-#include "math_support.h"
using std::max;
#include "math_xarrowinset.h"
#include "math_support.h"
-#include "math_parser.h"
#include "math_mathmlstream.h"
#include "math_streamstr.h"
#include "frontends/LyXView.h"
#include "frontends/Dialogs.h"
-#include "support/LOstream.h"
using std::auto_ptr;
using std::endl;