From: Angus Leeming Date: Fri, 5 Sep 2003 09:01:27 +0000 (+0000) Subject: Strip out redundant includes (193 of 'em). X-Git-Tag: 1.6.10~16168 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c5c7a9e56854dea886977f8e11cbfe31d8a7464f;p=features.git Strip out redundant includes (193 of 'em). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7670 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index f22b964bc2..60b7201ce7 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,7 @@ +2003-09-05 Angus Leeming + + * *.C: strip out redundant #includes. (193 in total.) + 2003-09-03 Martin Vermeer * insets/insetbibtex.[Ch]: diff --git a/src/insets/ExternalTemplate.C b/src/insets/ExternalTemplate.C index 959706e994..3a0900dea0 100644 --- a/src/insets/ExternalTemplate.C +++ b/src/insets/ExternalTemplate.C @@ -12,21 +12,21 @@ #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 - 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! diff --git a/src/insets/inset.C b/src/insets/inset.C index 28637838f0..6f7fc7d1c7 100644 --- a/src/insets/inset.C +++ b/src/insets/inset.C @@ -14,23 +14,11 @@ #include #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; diff --git a/src/insets/insetbase.C b/src/insets/insetbase.C index c242739ff7..7a3a411379 100644 --- a/src/insets/insetbase.C +++ b/src/insets/insetbase.C @@ -9,6 +9,7 @@ */ #include + #include "insetbase.h" diff --git a/src/insets/insetbibitem.C b/src/insets/insetbibitem.C index a9d5fde47f..b3a263d3ff 100644 --- a/src/insets/insetbibitem.C +++ b/src/insets/insetbibitem.C @@ -10,6 +10,7 @@ #include #include "insetbibitem.h" + #include "buffer.h" #include "BufferView.h" #include "funcrequest.h" @@ -17,8 +18,8 @@ #include "frontends/font_metrics.h" -#include "support/tostr.h" #include "support/lstrings.h" +#include "support/tostr.h" using namespace lyx::support; diff --git a/src/insets/insetbibtex.C b/src/insets/insetbibtex.C index 3687af8b63..dc80fab237 100644 --- a/src/insets/insetbibtex.C +++ b/src/insets/insetbibtex.C @@ -11,31 +11,29 @@ #include #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 -#include 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) diff --git a/src/insets/insetbranch.C b/src/insets/insetbranch.C index 4de498724a..dba6f36932 100644 --- a/src/insets/insetbranch.C +++ b/src/insets/insetbranch.C @@ -10,26 +10,19 @@ #include -#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() { diff --git a/src/insets/insetcaption.C b/src/insets/insetcaption.C index 3bd8cd5026..6b384cacfb 100644 --- a/src/insets/insetcaption.C +++ b/src/insets/insetcaption.C @@ -11,26 +11,28 @@ #include #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) diff --git a/src/insets/insetcite.C b/src/insets/insetcite.C index d0cf1c7f48..a4cc7f1e72 100644 --- a/src/insets/insetcite.C +++ b/src/insets/insetcite.C @@ -12,23 +12,23 @@ #include #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 - 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 diff --git a/src/insets/insetcollapsable.C b/src/insets/insetcollapsable.C index 1732465503..94ff01c1fd 100644 --- a/src/insets/insetcollapsable.C +++ b/src/insets/insetcollapsable.C @@ -13,34 +13,28 @@ #include #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) diff --git a/src/insets/insetcommand.C b/src/insets/insetcommand.C index f09ff6369b..dd0224e931 100644 --- a/src/insets/insetcommand.C +++ b/src/insets/insetcommand.C @@ -12,16 +12,12 @@ #include #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; diff --git a/src/insets/insetcommandparams.C b/src/insets/insetcommandparams.C index b07880c384..6f8ad66b19 100644 --- a/src/insets/insetcommandparams.C +++ b/src/insets/insetcommandparams.C @@ -10,15 +10,13 @@ #include - #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() diff --git a/src/insets/insetenv.C b/src/insets/insetenv.C index 3886f765e4..7de871f3c9 100644 --- a/src/insets/insetenv.C +++ b/src/insets/insetenv.C @@ -11,18 +11,15 @@ #include #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 diff --git a/src/insets/insetert.C b/src/insets/insetert.C index 5cc6ba64c9..176fef51da 100644 --- a/src/insets/insetert.C +++ b/src/insets/insetert.C @@ -11,8 +11,6 @@ #include #include "insetert.h" -#include "insettext.h" -#include "metricsinfo.h" #include "buffer.h" #include "BufferView.h" @@ -20,28 +18,23 @@ #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() diff --git a/src/insets/insetexternal.C b/src/insets/insetexternal.C index 38d891e77f..981f314e05 100644 --- a/src/insets/insetexternal.C +++ b/src/insets/insetexternal.C @@ -21,17 +21,12 @@ #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" @@ -40,19 +35,16 @@ #include "support/path.h" #include "support/path_defines.h" #include "support/tostr.h" -#include "support/LAssert.h" #include "support/translator.h" #include -#include -#include - namespace support = lyx::support; -using std::ostream; using std::endl; using std::auto_ptr; +using std::ostream; + namespace lyx { namespace graphics { diff --git a/src/insets/insetfloat.C b/src/insets/insetfloat.C index 197de9e410..962012700f 100644 --- a/src/insets/insetfloat.C +++ b/src/insets/insetfloat.C @@ -12,7 +12,6 @@ #include #include "insetfloat.h" -#include "insettext.h" #include "buffer.h" #include "BufferView.h" @@ -23,24 +22,18 @@ #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 diff --git a/src/insets/insetfloatlist.C b/src/insets/insetfloatlist.C index 6800c53351..91b54b91aa 100644 --- a/src/insets/insetfloatlist.C +++ b/src/insets/insetfloatlist.C @@ -13,7 +13,6 @@ #include "insetfloatlist.h" #include "buffer.h" -#include "BufferView.h" #include "debug.h" #include "Floating.h" #include "FloatList.h" @@ -23,14 +22,13 @@ #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() diff --git a/src/insets/insetfoot.C b/src/insets/insetfoot.C index cc047e2a9b..446834239f 100644 --- a/src/insets/insetfoot.C +++ b/src/insets/insetfoot.C @@ -12,22 +12,18 @@ #include #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) diff --git a/src/insets/insetfootlike.C b/src/insets/insetfootlike.C index 63c55040a9..dbb1729232 100644 --- a/src/insets/insetfootlike.C +++ b/src/insets/insetfootlike.C @@ -11,12 +11,9 @@ #include #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; diff --git a/src/insets/insetgraphics.C b/src/insets/insetgraphics.C index e7b69c6ae8..d9a3f3ba3c 100644 --- a/src/insets/insetgraphics.C +++ b/src/insets/insetgraphics.C @@ -53,7 +53,6 @@ TODO #include #include "insets/insetgraphics.h" -#include "insets/insetgraphicsParams.h" #include "insets/renderers.h" #include "buffer.h" @@ -64,18 +63,14 @@ TODO #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" @@ -85,16 +80,12 @@ TODO #include #include -#include // 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 { diff --git a/src/insets/insetgraphicsParams.C b/src/insets/insetgraphicsParams.C index 0423356447..0a23644894 100644 --- a/src/insets/insetgraphicsParams.C +++ b/src/insets/insetgraphicsParams.C @@ -11,26 +11,26 @@ #include - #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. diff --git a/src/insets/insethfill.C b/src/insets/insethfill.C index 07007bd038..3af0c0fdd4 100644 --- a/src/insets/insethfill.C +++ b/src/insets/insethfill.C @@ -10,12 +10,11 @@ #include - #include "insethfill.h" -#include "support/LOstream.h" using std::ostream; + InsetHFill::InsetHFill() : InsetCommand(InsetCommandParams("hfill")) {} diff --git a/src/insets/insetinclude.C b/src/insets/insetinclude.C index b647952c05..38cfe9d56f 100644 --- a/src/insets/insetinclude.C +++ b/src/insets/insetinclude.C @@ -11,6 +11,7 @@ #include #include "insetinclude.h" + #include "buffer.h" #include "buffer_funcs.h" #include "bufferlist.h" @@ -20,36 +21,31 @@ #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 -#include +#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; diff --git a/src/insets/insetindex.C b/src/insets/insetindex.C index be034b8a9c..b1a3a39677 100644 --- a/src/insets/insetindex.C +++ b/src/insets/insetindex.C @@ -9,19 +9,16 @@ */ #include - #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) {} diff --git a/src/insets/insetlabel.C b/src/insets/insetlabel.C index 1554760f81..923869f571 100644 --- a/src/insets/insetlabel.C +++ b/src/insets/insetlabel.C @@ -10,23 +10,18 @@ #include - #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) diff --git a/src/insets/insetlatexaccent.C b/src/insets/insetlatexaccent.C index a0a364ce29..a3cb9de05c 100644 --- a/src/insets/insetlatexaccent.C +++ b/src/insets/insetlatexaccent.C @@ -13,20 +13,21 @@ #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 */ diff --git a/src/insets/insetlist.C b/src/insets/insetlist.C index fb46a7d3aa..2b20ada5d4 100644 --- a/src/insets/insetlist.C +++ b/src/insets/insetlist.C @@ -9,18 +9,20 @@ */ #include - #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 diff --git a/src/insets/insetmarginal.C b/src/insets/insetmarginal.C index 853219bf14..d06fa37f8f 100644 --- a/src/insets/insetmarginal.C +++ b/src/insets/insetmarginal.C @@ -11,19 +11,14 @@ #include - #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) diff --git a/src/insets/insetminipage.C b/src/insets/insetminipage.C index ecf9ed6d81..7207a4f205 100644 --- a/src/insets/insetminipage.C +++ b/src/insets/insetminipage.C @@ -12,28 +12,19 @@ #include #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: diff --git a/src/insets/insetnewline.C b/src/insets/insetnewline.C index eb7db91402..191f2e9629 100644 --- a/src/insets/insetnewline.C +++ b/src/insets/insetnewline.C @@ -14,19 +14,15 @@ #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 &) diff --git a/src/insets/insetnote.C b/src/insets/insetnote.C index d05b87680e..e249d5b2e4 100644 --- a/src/insets/insetnote.C +++ b/src/insets/insetnote.C @@ -13,26 +13,18 @@ #include #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() diff --git a/src/insets/insetoptarg.C b/src/insets/insetoptarg.C index a1f92a5805..30086b6276 100644 --- a/src/insets/insetoptarg.C +++ b/src/insets/insetoptarg.C @@ -10,23 +10,15 @@ #include +#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) diff --git a/src/insets/insetquotes.C b/src/insets/insetquotes.C index 6e094c0a27..b9f9a7d8f5 100644 --- a/src/insets/insetquotes.C +++ b/src/insets/insetquotes.C @@ -13,16 +13,12 @@ #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" @@ -34,9 +30,10 @@ using namespace lyx::support; -using std::ostream; using std::endl; using std::auto_ptr; +using std::ostream; + namespace { diff --git a/src/insets/insetref.C b/src/insets/insetref.C index c4affe9143..989b51d8e1 100644 --- a/src/insets/insetref.C +++ b/src/insets/insetref.C @@ -9,22 +9,23 @@ */ #include - #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()) {} diff --git a/src/insets/insetspace.C b/src/insets/insetspace.C index 801bf188bd..345a5f1f27 100644 --- a/src/insets/insetspace.C +++ b/src/insets/insetspace.C @@ -16,19 +16,16 @@ #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() diff --git a/src/insets/insetspecialchar.C b/src/insets/insetspecialchar.C index 018ac6763e..f6aa672987 100644 --- a/src/insets/insetspecialchar.C +++ b/src/insets/insetspecialchar.C @@ -15,18 +15,16 @@ #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) diff --git a/src/insets/insettabular.C b/src/insets/insettabular.C index c930f08e6e..6f42d17d80 100644 --- a/src/insets/insettabular.C +++ b/src/insets/insettabular.C @@ -11,55 +11,41 @@ #include #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 -#include -#include +#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 { diff --git a/src/insets/insettext.C b/src/insets/insettext.C index 246280bd1f..2b07ede5f3 100644 --- a/src/insets/insettext.C +++ b/src/insets/insettext.C @@ -11,67 +11,45 @@ #include #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 -#include -#include -#include - -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; diff --git a/src/insets/insettheorem.C b/src/insets/insettheorem.C index acf98c508d..fb4bcbdcd4 100644 --- a/src/insets/insettheorem.C +++ b/src/insets/insettheorem.C @@ -10,19 +10,21 @@ #include - #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 diff --git a/src/insets/insettoc.C b/src/insets/insettoc.C index 74273ce85e..666abdbc9d 100644 --- a/src/insets/insettoc.C +++ b/src/insets/insettoc.C @@ -11,18 +11,13 @@ #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) diff --git a/src/insets/inseturl.C b/src/insets/inseturl.C index c60b5f620b..a67392e604 100644 --- a/src/insets/inseturl.C +++ b/src/insets/inseturl.C @@ -11,16 +11,14 @@ #include #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; diff --git a/src/insets/insetwrap.C b/src/insets/insetwrap.C index f87350f4ca..baf8877a55 100644 --- a/src/insets/insetwrap.C +++ b/src/insets/insetwrap.C @@ -11,31 +11,25 @@ #include #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 { diff --git a/src/insets/mailinset.C b/src/insets/mailinset.C index eb396823e7..ff9e07727c 100644 --- a/src/insets/mailinset.C +++ b/src/insets/mailinset.C @@ -11,15 +11,17 @@ #include #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); diff --git a/src/insets/renderers.C b/src/insets/renderers.C index caf8985e2e..c33cab867c 100644 --- a/src/insets/renderers.C +++ b/src/insets/renderers.C @@ -12,7 +12,6 @@ #include "insets/renderers.h" -#include "buffer.h" #include "BufferView.h" #include "gettext.h" #include "metricsinfo.h" diff --git a/src/insets/updatableinset.C b/src/insets/updatableinset.C index e65b4f9290..30b83b0f2b 100644 --- a/src/insets/updatableinset.C +++ b/src/insets/updatableinset.C @@ -14,16 +14,18 @@ #include #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()