+2003-09-05 Angus Leeming <leeming@lyx.org>
+
+ * *.C: strip out redundant #includes. (193 in total.)
+
2003-09-03 Martin Vermeer <martin.vermeer@hut.fi>
* insets/insetbibtex.[Ch]:
#include "ExternalTemplate.h"
-#include "lyxlex.h"
#include "debug.h"
-#include "support/path.h"
-#include "support/LAssert.h"
+#include "lyxlex.h"
+
#include "support/filetools.h"
+#include "support/LAssert.h"
#include "support/lstrings.h"
+#include "support/path.h"
#include "support/path_defines.h"
-#include <algorithm>
-
namespace support = lyx::support;
using std::endl;
-using std::ostream;
using std::for_each;
+using std::ostream;
+
// We have to have dummy default commands for security reasons!
#include <config.h>
#include "inset.h"
+#include "updatableinset.h"
+
#include "BufferView.h"
-#include "funcrequest.h"
#include "gettext.h"
-#include "lyxfont.h"
-#include "lyxtext.h"
-#include "dimension.h"
-#include "metricsinfo.h"
-
-#include "insets/updatableinset.h"
-
-#include "frontends/Painter.h"
-#include "frontends/mouse_state.h"
-
-#include "support/lstrings.h"
-
-#include "debug.h"
// Initialization of the counter for the inset id's,
unsigned int InsetOld::inset_id = 0;
*/
#include <config.h>
+
#include "insetbase.h"
#include <config.h>
#include "insetbibitem.h"
+
#include "buffer.h"
#include "BufferView.h"
#include "funcrequest.h"
#include "frontends/font_metrics.h"
-#include "support/tostr.h"
#include "support/lstrings.h"
+#include "support/tostr.h"
using namespace lyx::support;
#include <config.h>
#include "insetbibtex.h"
-#include "metricsinfo.h"
+
#include "buffer.h"
-#include "BufferView.h"
#include "debug.h"
#include "funcrequest.h"
#include "gettext.h"
#include "latexrunparams.h"
+#include "metricsinfo.h"
#include "support/filetools.h"
-#include "support/path.h"
-#include "support/os.h"
#include "support/lstrings.h"
-#include "support/LAssert.h"
+#include "support/os.h"
+#include "support/path.h"
#include <fstream>
-#include <cstdlib>
using namespace lyx::support;
-using std::ostream;
-using std::ifstream;
-using std::getline;
using std::endl;
-using std::vector;
+using std::getline;
+using std::ifstream;
+using std::ostream;
using std::pair;
+using std::vector;
InsetBibtex::InsetBibtex(InsetCommandParams const & p)
#include <config.h>
-#include "Lsstream.h"
-
#include "insetbranch.h"
-#include "gettext.h"
-#include "lyxfont.h"
-#include "language.h"
+
#include "buffer.h"
#include "BufferView.h"
#include "funcrequest.h"
-#include "LaTeXFeatures.h"
-#include "latexrunparams.h"
+#include "gettext.h"
#include "lyxlex.h"
-#include "lyxtext.h"
-#include "insets/insettext.h"
-#include "support/LOstream.h"
-#include "support/lstrings.h"
-#include "debug.h"
-using std::ostream;
+#include "Lsstream.h"
+
using std::auto_ptr;
+using std::ostream;
+
void InsetBranch::init()
{
#include <config.h>
#include "insetcaption.h"
-#include "frontends/Painter.h"
-#include "frontends/font_metrics.h"
-#include "BufferView.h"
+#include "insetfloat.h"
+#include "insetwrap.h"
+
#include "buffer.h"
+#include "BufferView.h"
#include "Floating.h"
#include "FloatList.h"
-#include "insets/insetfloat.h"
-#include "insets/insetwrap.h"
-#include "debug.h"
#include "gettext.h"
-#include "Lsstream.h"
#include "metricsinfo.h"
-#include "support/lstrings.h"
+
+#include "frontends/Painter.h"
+#include "frontends/font_metrics.h"
+
#include "support/LAssert.h"
-#include "support/BoostFormat.h"
+#include "support/lstrings.h"
+
+#include "Lsstream.h"
using namespace lyx::support;
-using std::ostream;
using std::endl;
+using std::ostream;
InsetCaption::InsetCaption(BufferParams const & bp)
#include <config.h>
#include "insetcite.h"
-#include "funcrequest.h"
+
#include "buffer.h"
#include "BufferView.h"
+#include "funcrequest.h"
#include "LaTeXFeatures.h"
#include "frontends/controllers/biblio.h"
#include "support/lstrings.h"
-#include <map>
-
using namespace lyx::support;
using std::ostream;
using std::vector;
using std::map;
+
namespace {
// An optimisation. We assume that until the first InsetCitation::edit is
#include <config.h>
#include "insetcollapsable.h"
-#include "insettext.h"
+#include "buffer.h"
#include "BufferView.h"
#include "debug.h"
-#include "dimension.h"
-#include "gettext.h"
-#include "lyxfont.h"
#include "lyxlex.h"
-#include "lyxtext.h"
-#include "WordLangTuple.h"
#include "funcrequest.h"
-#include "buffer.h"
#include "metricsinfo.h"
+#include "WordLangTuple.h"
#include "frontends/font_metrics.h"
#include "frontends/Painter.h"
#include "frontends/LyXView.h"
#include "support/LAssert.h"
-#include "support/LOstream.h"
using namespace lyx::support;
using namespace lyx::graphics;
-using std::vector;
-using std::ostream;
using std::endl;
using std::max;
+using std::vector;
+using std::ostream;
InsetCollapsable::InsetCollapsable(BufferParams const & bp, bool collapsed)
#include <config.h>
#include "insetcommand.h"
+
#include "BufferView.h"
-#include "debug.h"
#include "funcrequest.h"
#include "lyxlex.h"
#include "metricsinfo.h"
-#include "frontends/Painter.h"
-
-#include "support/lstrings.h"
-
#include "Lsstream.h"
using std::ostream;
#include <config.h>
-
#include "insetcommandparams.h"
-#include "lyxlex.h"
-#include "debug.h"
-#include "support/LOstream.h"
+#include "debug.h"
+#include "lyxlex.h"
-using std::ostream;
using std::endl;
+using std::ostream;
InsetCommandParams::InsetCommandParams()
#include <config.h>
#include "insetenv.h"
+
#include "bufferparams.h"
-#include "debug.h"
#include "gettext.h"
-#include "lyxlayout.h"
-#include "lyxtextclass.h"
#include "paragraph_funcs.h"
#include "texrow.h"
-#include "support/LOstream.h"
-using std::ostream;
using std::endl;
using std::auto_ptr;
+using std::ostream;
InsetEnvironment::InsetEnvironment
#include <config.h>
#include "insetert.h"
-#include "insettext.h"
-#include "metricsinfo.h"
#include "buffer.h"
#include "BufferView.h"
#include "funcrequest.h"
#include "gettext.h"
#include "language.h"
-#include "lyxfont.h"
#include "lyxlex.h"
-#include "lyxrow.h"
-#include "lyxtext.h"
+#include "metricsinfo.h"
#include "WordLangTuple.h"
#include "frontends/Alert.h"
-#include "frontends/Dialogs.h"
#include "frontends/LyXView.h"
-#include "support/LOstream.h"
-#include "support/LAssert.h"
#include "support/tostr.h"
using namespace lyx::support;
using lyx::pos_type;
-using std::ostream;
using std::min;
using std::endl;
using std::auto_ptr;
+using std::ostream;
void InsetERT::init()
#include "funcrequest.h"
#include "gettext.h"
#include "LaTeXFeatures.h"
-#include "latexrunparams.h"
-#include "lyx_main.h"
#include "lyxlex.h"
#include "lyxrc.h"
#include "Lsstream.h"
#include "frontends/lyx_gui.h"
-#include "frontends/LyXView.h"
-#include "frontends/Dialogs.h"
-#include "support/FileInfo.h"
#include "support/filetools.h"
#include "support/forkedcall.h"
#include "support/lstrings.h"
#include "support/path.h"
#include "support/path_defines.h"
#include "support/tostr.h"
-#include "support/LAssert.h"
#include "support/translator.h"
#include <boost/bind.hpp>
-#include <cstdio>
-#include <utility>
-
namespace support = lyx::support;
-using std::ostream;
using std::endl;
using std::auto_ptr;
+using std::ostream;
+
namespace lyx {
namespace graphics {
#include <config.h>
#include "insetfloat.h"
-#include "insettext.h"
#include "buffer.h"
#include "BufferView.h"
#include "gettext.h"
#include "iterators.h"
#include "LaTeXFeatures.h"
-#include "Lsstream.h"
-#include "lyxfont.h"
#include "lyxlex.h"
-#include "lyxtext.h"
-#include "Lsstream.h"
-#include "support/LOstream.h"
#include "support/lstrings.h"
#include "support/tostr.h"
-#include "frontends/LyXView.h"
-#include "frontends/Dialogs.h"
+#include "Lsstream.h"
using namespace lyx::support;
-using std::ostream;
using std::endl;
using std::auto_ptr;
+using std::ostream;
// With this inset it will be possible to support the latex package
#include "insetfloatlist.h"
#include "buffer.h"
-#include "BufferView.h"
#include "debug.h"
#include "Floating.h"
#include "FloatList.h"
#include "lyxlex.h"
#include "metricsinfo.h"
#include "toc.h"
-#include "Lsstream.h"
#include "support/lstrings.h"
using namespace lyx::support;
-using std::ostream;
using std::endl;
+using std::ostream;
InsetFloatList::InsetFloatList()
#include <config.h>
#include "insetfoot.h"
+
#include "gettext.h"
-#include "lyxfont.h"
-#include "BufferView.h"
#include "latexrunparams.h"
-#include "lyxtext.h"
-#include "insets/insettext.h"
-#include "support/LOstream.h"
-#include "debug.h"
// the following are needed just to get the layout of the enclosing
// paragraph. This seems a bit too much to me (JMarc)
#include "lyxlayout.h"
#include "paragraph_funcs.h"
+#include "support/LOstream.h"
-using std::ostream;
using std::auto_ptr;
+using std::ostream;
InsetFoot::InsetFoot(BufferParams const & bp)
#include <config.h>
#include "insetfootlike.h"
-#include "metricsinfo.h"
-#include "lyxfont.h"
-#include "buffer.h"
-#include "lyxtext.h"
-#include "support/LOstream.h"
+#include "buffer.h"
+#include "metricsinfo.h"
using std::ostream;
#include <config.h>
#include "insets/insetgraphics.h"
-#include "insets/insetgraphicsParams.h"
#include "insets/renderers.h"
#include "buffer.h"
#include "funcrequest.h"
#include "gettext.h"
#include "LaTeXFeatures.h"
-#include "latexrunparams.h"
#include "Lsstream.h"
#include "lyxlex.h"
#include "lyxrc.h"
-#include "paragraph_funcs.h"
-#include "lyxtext.h"
#include "frontends/Alert.h"
-#include "frontends/Dialogs.h"
-#include "support/LAssert.h"
#include "support/filetools.h"
+#include "support/LAssert.h"
#include "support/lyxalgo.h" // lyx::count
#include "support/lyxlib.h" // float_equal
#include "support/os.h"
#include <boost/bind.hpp>
#include <boost/tuple/tuple.hpp>
-#include <algorithm> // For the std::max
-
-// set by Exporters
-
namespace support = lyx::support;
using namespace lyx::support;
-using std::ostream;
using std::endl;
using std::auto_ptr;
+using std::ostream;
namespace {
#include <config.h>
-
#include "insetgraphicsParams.h"
+#include "debug.h"
+#include "lyxlex.h"
+#include "lyxrc.h"
+
+#include "frontends/lyx_gui.h"
+
#include "graphics/GraphicsParams.h"
#include "support/filetools.h"
#include "support/lyxlib.h"
-#include "support/LOstream.h"
-#include "support/LAssert.h"
#include "support/lstrings.h"
#include "support/translator.h"
-#include "lyxrc.h"
-#include "debug.h"
-#include "lyxlex.h"
-#include "frontends/lyx_gui.h"
using namespace lyx::support;
using std::ostream;
+
namespace lyx {
namespace graphics {
/// The translator between the DisplayType and the corresponding lyx string.
#include <config.h>
-
#include "insethfill.h"
-#include "support/LOstream.h"
using std::ostream;
+
InsetHFill::InsetHFill()
: InsetCommand(InsetCommandParams("hfill"))
{}
#include <config.h>
#include "insetinclude.h"
+
#include "buffer.h"
#include "buffer_funcs.h"
#include "bufferlist.h"
#include "gettext.h"
#include "LaTeXFeatures.h"
#include "latexrunparams.h"
-#include "Lsstream.h"
#include "lyxlex.h"
-#include "lyxrc.h"
#include "metricsinfo.h"
-#include "dimension.h"
-#include "frontends/Dialogs.h"
-#include "frontends/LyXView.h"
#include "frontends/Painter.h"
-#include "support/filetools.h"
+#include "graphics/PreviewedInset.h"
+#include "graphics/PreviewImage.h"
+
#include "support/FileInfo.h"
#include "support/FileMonitor.h"
+#include "support/filetools.h"
#include "support/lstrings.h" // contains
#include "support/tostr.h"
-#include "graphics/PreviewedInset.h"
-#include "graphics/PreviewImage.h"
-
#include <boost/bind.hpp>
-#include <cstdlib>
+#include "Lsstream.h"
using namespace lyx::support;
-using std::ostream;
using std::endl;
-using std::vector;
-using std::pair;
using std::auto_ptr;
+using std::ostream;
+using std::pair;
+using std::vector;
extern BufferList bufferlist;
*/
#include <config.h>
-
#include "insetindex.h"
-#include "metricsinfo.h"
-#include "BufferView.h"
+
#include "funcrequest.h"
-#include "frontends/LyXView.h"
-#include "frontends/Dialogs.h"
-#include "LaTeXFeatures.h"
#include "gettext.h"
-#include "support/LOstream.h"
+#include "LaTeXFeatures.h"
+#include "metricsinfo.h"
using std::ostream;
+
InsetIndex::InsetIndex(InsetCommandParams const & p)
: InsetCommand(p)
{}
#include <config.h>
-
#include "insetlabel.h"
-#include "buffer.h"
+
#include "BufferView.h"
#include "funcrequest.h"
-#include "gettext.h"
-#include "lyxtext.h"
#include "support/lstrings.h"
-#include "support/LOstream.h"
-#include "support/lstrings.h" //frontStrip, strip
using namespace lyx::support;
using std::ostream;
-using std::vector;
using std::pair;
+using std::vector;
InsetLabel::InsetLabel(InsetCommandParams const & p)
#include "insetlatexaccent.h"
#include "debug.h"
-#include "lyxrc.h"
-#include "support/lstrings.h"
-#include "BufferView.h"
-#include "frontends/Painter.h"
-#include "frontends/font_metrics.h"
#include "language.h"
#include "lyxlex.h"
+#include "lyxrc.h"
#include "metricsinfo.h"
+#include "frontends/font_metrics.h"
+#include "frontends/Painter.h"
+
+#include "support/lstrings.h"
+
using namespace lyx::support;
-using std::ostream;
using std::endl;
using std::auto_ptr;
+using std::ostream;
/* LatexAccent. Proper handling of accented characters */
*/
#include <config.h>
-
#include "insetlist.h"
+#include "insets/insettext.h"
+
+#include "BufferView.h"
+#include "debug.h"
#include "gettext.h"
#include "lyxfont.h"
-#include "BufferView.h"
#include "lyxtext.h"
-#include "insets/insettext.h"
+
#include "support/LOstream.h"
-#include "debug.h"
-using std::ostream;
using std::endl;
+using std::ostream;
+
// This class is _far_ from finished. I hope that we can have a inset to
// handle the different lists that we have. It should also be possible
#include <config.h>
-
#include "insetmarginal.h"
+
#include "gettext.h"
-#include "lyxfont.h"
-#include "BufferView.h"
-#include "lyxtext.h"
-#include "insets/insettext.h"
-#include "support/LOstream.h"
-#include "debug.h"
+#include "support/LOstream.h"
-using std::ostream;
using std::auto_ptr;
+using std::ostream;
InsetMarginal::InsetMarginal(BufferParams const & bp)
#include <config.h>
#include "insetminipage.h"
-#include "insettext.h"
#include "BufferView.h"
#include "debug.h"
-#include "dimension.h"
#include "funcrequest.h"
#include "gettext.h"
-#include "Lsstream.h"
-#include "lyxfont.h"
#include "lyxlex.h"
-#include "lyxtext.h"
-#include "Lsstream.h"
#include "metricsinfo.h"
-#include "frontends/LyXView.h"
-#include "frontends/Dialogs.h"
-
-#include "support/LOstream.h"
+#include "Lsstream.h"
-using std::ostream;
using std::endl;
using std::auto_ptr;
+using std::ostream;
// Some information about Minipages in LaTeX:
#include "BufferView.h"
#include "debug.h"
-#include "dimension.h"
-#include "paragraph.h"
#include "lyxtext.h"
#include "metricsinfo.h"
#include "paragraph_funcs.h"
-#include "support/LOstream.h"
-
-#include "frontends/Painter.h"
#include "frontends/font_metrics.h"
+#include "frontends/Painter.h"
-using std::ostream;
using std::endl;
+using std::ostream;
void InsetNewline::read(Buffer const &, LyXLex &)
#include <config.h>
#include "insetnote.h"
-#include "insettext.h"
-#include "buffer.h"
#include "BufferView.h"
-#include "debug.h"
#include "funcrequest.h"
#include "gettext.h"
-#include "language.h"
#include "LaTeXFeatures.h"
-#include "lyxfont.h"
#include "lyxlex.h"
-#include "lyxtext.h"
#include "metricsinfo.h"
-#include "support/LOstream.h"
-#include "support/lstrings.h"
#include "Lsstream.h"
-using std::ostream;
using std::auto_ptr;
+using std::ostream;
void InsetNote::init()
#include <config.h>
+#include "insetoptarg.h"
#include "debug.h"
-
-#include "insetoptarg.h"
-#include "support/LOstream.h"
-#include "frontends/Alert.h"
-#include "support/lstrings.h" // frontStrip, strip
-#include "lyxtext.h"
-#include "buffer.h"
#include "gettext.h"
-#include "BufferView.h"
-#include "support/lstrings.h"
+using std::auto_ptr;
using std::ostream;
-using std::vector;
using std::pair;
-using std::auto_ptr;
+using std::vector;
InsetOptArg::InsetOptArg(BufferParams const & ins)
#include "insetquotes.h"
#include "buffer.h"
-#include "BufferView.h"
#include "debug.h"
-#include "dimension.h"
#include "language.h"
#include "LaTeXFeatures.h"
#include "latexrunparams.h"
-#include "lyxfont.h"
#include "lyxlex.h"
#include "lyxrc.h"
-#include "paragraph.h"
#include "metricsinfo.h"
#include "paragraph_funcs.h"
using namespace lyx::support;
-using std::ostream;
using std::endl;
using std::auto_ptr;
+using std::ostream;
+
namespace {
*/
#include <config.h>
-
#include "insetref.h"
+
#include "buffer.h"
+#include "BufferView.h"
#include "funcrequest.h"
-#include "debug.h"
#include "gettext.h"
#include "LaTeXFeatures.h"
+
#include "frontends/LyXView.h"
-#include "frontends/Dialogs.h"
-#include "BufferView.h"
+
#include "support/lstrings.h"
using namespace lyx::support;
using std::ostream;
+
InsetRef::InsetRef(InsetCommandParams const & p, Buffer const & buf)
: InsetCommand(p), isLatex(buf.isLatex())
{}
#include "insetspace.h"
#include "debug.h"
-#include "dimension.h"
-#include "LaTeXFeatures.h"
#include "latexrunparams.h"
-#include "BufferView.h"
-#include "frontends/Painter.h"
-#include "frontends/font_metrics.h"
#include "lyxlex.h"
-#include "lyxfont.h"
#include "metricsinfo.h"
-using std::ostream;
+#include "frontends/font_metrics.h"
+#include "frontends/Painter.h"
+
using std::max;
using std::auto_ptr;
+using std::ostream;
InsetSpace::InsetSpace()
#include "insetspecialchar.h"
#include "debug.h"
-#include "dimension.h"
#include "LaTeXFeatures.h"
-#include "BufferView.h"
-#include "frontends/Painter.h"
-#include "frontends/font_metrics.h"
#include "lyxlex.h"
-#include "lyxfont.h"
#include "metricsinfo.h"
-using std::ostream;
+#include "frontends/font_metrics.h"
+#include "frontends/Painter.h"
+
using std::max;
using std::auto_ptr;
+using std::ostream;
InsetSpecialChar::InsetSpecialChar(Kind k)
#include <config.h>
#include "insettabular.h"
-#include "insettext.h"
#include "buffer.h"
#include "BufferView.h"
-#include "lfuns.h"
#include "debug.h"
-#include "dimension.h"
#include "funcrequest.h"
#include "FuncStatus.h"
#include "gettext.h"
#include "language.h"
-#include "LaTeXFeatures.h"
-#include "Lsstream.h"
#include "lyx_cb.h"
-#include "lyxfunc.h"
-#include "lyxlength.h"
#include "lyxlex.h"
-#include "lyxtext.h"
+#include "metricsinfo.h"
+#include "paragraph_funcs.h"
#include "ParagraphParameters.h"
#include "undo_funcs.h"
#include "WordLangTuple.h"
-#include "metricsinfo.h"
-#include "paragraph_funcs.h"
#include "frontends/Alert.h"
-#include "frontends/Dialogs.h"
#include "frontends/font_metrics.h"
#include "frontends/LyXView.h"
#include "frontends/Painter.h"
#include "support/LAssert.h"
-#include "support/lstrings.h"
-
-#include <fstream>
-#include <algorithm>
-#include <cstdlib>
+#include "Lsstream.h"
using namespace lyx::support;
using namespace lyx::graphics;
-using std::vector;
-using std::ostream;
-using std::ifstream;
-using std::max;
using std::endl;
-using std::swap;
using std::max;
+using std::swap;
using std::auto_ptr;
+using std::ifstream;
+using std::ostream;
+using std::vector;
namespace {
#include <config.h>
#include "insettext.h"
+#include "insetnewline.h"
#include "buffer.h"
#include "BufferView.h"
-#include "bufferview_funcs.h"
#include "CutAndPaste.h"
#include "debug.h"
-#include "dimension.h"
#include "funcrequest.h"
#include "gettext.h"
-#include "errorlist.h"
#include "intl.h"
-#include "LaTeXFeatures.h"
-#include "LColor.h"
-#include "Lsstream.h"
-#include "lyxfont.h"
-#include "lyxcursor.h"
#include "lyxfind.h"
#include "lyxlex.h"
-#include "lyxrow.h"
#include "lyxrc.h"
-#include "lyxtext.h"
-#include "paragraph.h"
+#include "metricsinfo.h"
+#include "paragraph_funcs.h"
#include "ParagraphParameters.h"
-#include "trans_mgr.h"
+#include "rowpainter.h"
+#include "sgml.h"
#include "undo_funcs.h"
#include "WordLangTuple.h"
-#include "paragraph_funcs.h"
-#include "sgml.h"
-#include "rowpainter.h"
-#include "insetnewline.h"
-#include "metricsinfo.h"
-#include "textcursor.h"
#include "frontends/Alert.h"
-#include "frontends/Dialogs.h"
#include "frontends/font_metrics.h"
#include "frontends/LyXView.h"
#include "frontends/Painter.h"
-#include "frontends/screen.h"
-#include "support/textutils.h"
-#include "support/LAssert.h"
-#include "support/lstrings.h"
#include "support/lyxalgo.h" // lyx::count
#include <boost/bind.hpp>
-#include <fstream>
-#include <algorithm>
-#include <cstdlib>
-
-using std::ostream;
-using std::ifstream;
using std::endl;
+using std::for_each;
using std::min;
using std::max;
using std::make_pair;
-using std::vector;
-using std::pair;
-using std::for_each;
using std::auto_ptr;
+using std::ostream;
+using std::ifstream;
+using std::pair;
+using std::vector;
using namespace lyx::support;
using namespace lyx::graphics;
#include <config.h>
-
#include "insettheorem.h"
-#include "metricsinfo.h"
+#include "insets/insettext.h"
+
+#include "debug.h"
+#include "BufferView.h"
#include "gettext.h"
#include "lyxfont.h"
-#include "BufferView.h"
#include "lyxtext.h"
+#include "metricsinfo.h"
+
#include "support/LOstream.h"
-#include "debug.h"
-#include "insets/insettext.h"
-using std::ostream;
using std::endl;
+using std::ostream;
+
/*
The intention is to be able to create arbitrary theorem like environments
#include "insettoc.h"
-#include "BufferView.h"
-#include "debug.h"
#include "funcrequest.h"
#include "gettext.h"
#include "metricsinfo.h"
#include "toc.h"
-#include "frontends/LyXView.h"
-#include "frontends/Dialogs.h"
-
-using std::vector;
using std::ostream;
+using std::vector;
InsetTOC::InsetTOC(InsetCommandParams const & p)
#include <config.h>
#include "inseturl.h"
+
#include "funcrequest.h"
-#include "BufferView.h"
-#include "LaTeXFeatures.h"
#include "latexrunparams.h"
-#include "frontends/LyXView.h"
-#include "debug.h"
-#include "frontends/Dialogs.h"
-#include "support/lstrings.h"
+#include "LaTeXFeatures.h"
#include "gettext.h"
+#include "support/lstrings.h"
+
using namespace lyx::support;
using std::ostream;
#include <config.h>
#include "insetwrap.h"
-#include "insettext.h"
#include "buffer.h"
#include "BufferView.h"
#include "debug.h"
-#include "funcrequest.h"
#include "Floating.h"
#include "FloatList.h"
+#include "funcrequest.h"
#include "gettext.h"
#include "LaTeXFeatures.h"
-#include "Lsstream.h"
-#include "lyxfont.h"
#include "lyxlex.h"
-#include "lyxtext.h"
-#include "Lsstream.h"
-
-#include "frontends/LyXView.h"
-#include "frontends/Dialogs.h"
-#include "support/LOstream.h"
#include "support/tostr.h"
-using std::ostream;
+#include "Lsstream.h"
+
using std::endl;
using std::auto_ptr;
+using std::ostream;
+
namespace {
#include <config.h>
#include "mailinset.h"
-#include "inset.h"
+
#include "BufferView.h"
-#include "frontends/LyXView.h"
+
#include "frontends/Dialogs.h"
+#include "frontends/LyXView.h"
+
#include "support/LAssert.h"
-#include "Lsstream.h"
using namespace lyx::support;
+
void MailInset::showDialog(BufferView * bv) const
{
Assert(bv);
#include "insets/renderers.h"
-#include "buffer.h"
#include "BufferView.h"
#include "gettext.h"
#include "metricsinfo.h"
#include <config.h>
#include "updatableinset.h"
+
#include "BufferView.h"
-#include "funcrequest.h"
#include "debug.h"
-#include "lyxfont.h"
-#include "WordLangTuple.h"
+#include "funcrequest.h"
#include "lyxtext.h"
+#include "WordLangTuple.h"
+
#include "support/lstrings.h"
using namespace lyx::support;
+
// some stuff for inset locking
UpdatableInset::UpdatableInset()