]> git.lyx.org Git - lyx.git/commitdiff
'using namespace std' instead of 'using std::xxx'
authorAbdelrazak Younes <younes@lyx.org>
Wed, 12 Dec 2007 10:16:00 +0000 (10:16 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 12 Dec 2007 10:16:00 +0000 (10:16 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22097 a592a061-630c-0410-9148-cb99ea01b6c8

257 files changed:
src/ASpell.cpp
src/Author.cpp
src/BiblioInfo.cpp
src/Box.cpp
src/BranchList.cpp
src/Buffer.cpp
src/BufferList.cpp
src/BufferParams.cpp
src/BufferView.cpp
src/Bullet.cpp
src/Chktex.cpp
src/CmdDef.cpp
src/Color.cpp
src/Converter.cpp
src/ConverterCache.cpp
src/Counters.cpp
src/Cursor.cpp
src/CutAndPaste.cpp
src/DepTable.cpp
src/EmbeddedFiles.cpp
src/Encoding.cpp
src/ErrorList.cpp
src/Exporter.cpp
src/FloatList.cpp
src/Floating.cpp
src/Font.cpp
src/FontInfo.cpp
src/FontList.cpp
src/Format.cpp
src/FuncRequest.cpp
src/Graph.cpp
src/ISpell.cpp
src/InsetList.cpp
src/KeyMap.cpp
src/KeySequence.cpp
src/LaTeX.cpp
src/LaTeXFeatures.cpp
src/Language.cpp
src/Layout.cpp
src/Length.cpp
src/Lexer.cpp
src/LyX.cpp
src/LyXAction.cpp
src/LyXFunc.cpp
src/LyXRC.cpp
src/LyXVC.cpp
src/MenuBackend.cpp
src/MetricsInfo.cpp
src/ModuleList.cpp
src/Mover.cpp
src/PDFOptions.cpp
src/PSpell.cpp
src/Paragraph.cpp
src/ParagraphMetrics.cpp
src/ParagraphParameters.cpp
src/PrinterParams.cpp
src/Section.cpp
src/Server.cpp
src/ServerSocket.cpp
src/Session.cpp
src/Spacing.cpp
src/SpellBase.cpp
src/Text.cpp
src/Text2.cpp
src/Text3.cpp
src/TextClass.cpp
src/TextClassList.cpp
src/TextMetrics.cpp
src/Thesaurus.cpp
src/TocBackend.cpp
src/ToolbarBackend.cpp
src/Trans.cpp
src/Undo.cpp
src/VCBackend.cpp
src/VSpace.cpp
src/Variables.cpp
src/boost.cpp
src/client/Messages.cpp
src/client/boost.cpp
src/client/client.cpp
src/client/debug.cpp
src/client/gettext.cpp
src/factory.cpp
src/frontends/qt4/FloatPlacement.cpp
src/frontends/qt4/GuiAlert.cpp
src/frontends/qt4/GuiApplication.cpp
src/frontends/qt4/GuiBibtex.cpp
src/frontends/qt4/GuiBox.cpp
src/frontends/qt4/GuiBranch.cpp
src/frontends/qt4/GuiCharacter.cpp
src/frontends/qt4/GuiCitation.cpp
src/frontends/qt4/GuiClipboard.cpp
src/frontends/qt4/GuiCommandBuffer.cpp
src/frontends/qt4/GuiDelimiter.cpp
src/frontends/qt4/GuiDialog.cpp
src/frontends/qt4/GuiDocument.cpp
src/frontends/qt4/GuiErrorList.cpp
src/frontends/qt4/GuiExternal.cpp
src/frontends/qt4/GuiFloat.cpp
src/frontends/qt4/GuiFontMetrics.cpp
src/frontends/qt4/GuiGraphics.cpp
src/frontends/qt4/GuiInclude.cpp
src/frontends/qt4/GuiIndex.cpp
src/frontends/qt4/GuiKeySymbol.cpp
src/frontends/qt4/GuiListings.cpp
src/frontends/qt4/GuiLog.cpp
src/frontends/qt4/GuiMath.cpp
src/frontends/qt4/GuiMathMatrix.cpp
src/frontends/qt4/GuiNomencl.cpp
src/frontends/qt4/GuiNote.cpp
src/frontends/qt4/GuiPainter.cpp
src/frontends/qt4/GuiParagraph.cpp
src/frontends/qt4/GuiPrefs.cpp
src/frontends/qt4/GuiPrint.cpp
src/frontends/qt4/GuiRef.cpp
src/frontends/qt4/GuiSearch.cpp
src/frontends/qt4/GuiSendto.cpp
src/frontends/qt4/GuiSpellchecker.cpp
src/frontends/qt4/GuiTabular.cpp
src/frontends/qt4/GuiTabularCreate.cpp
src/frontends/qt4/GuiTexinfo.cpp
src/frontends/qt4/GuiThesaurus.cpp
src/frontends/qt4/GuiToc.cpp
src/frontends/qt4/GuiToolbar.cpp
src/frontends/qt4/GuiToolbars.cpp
src/frontends/qt4/GuiVSpace.cpp
src/frontends/qt4/GuiView.cpp
src/frontends/qt4/GuiViewSource.cpp
src/frontends/qt4/GuiWorkArea.cpp
src/frontends/qt4/GuiWrap.cpp
src/frontends/qt4/LyXFileDialog.cpp
src/frontends/qt4/PanelStack.cpp
src/frontends/qt4/TocModel.cpp
src/frontends/qt4/Validator.cpp
src/frontends/qt4/qt_helpers.cpp
src/frontends/tests/biblio.cpp
src/graphics/GraphicsCache.cpp
src/graphics/GraphicsCacheItem.cpp
src/graphics/GraphicsConverter.cpp
src/graphics/GraphicsLoader.cpp
src/graphics/GraphicsParams.cpp
src/graphics/GraphicsTypes.cpp
src/graphics/PreviewImage.cpp
src/graphics/PreviewLoader.cpp
src/insets/ExternalSupport.cpp
src/insets/ExternalTemplate.cpp
src/insets/ExternalTransforms.cpp
src/insets/InsetBibtex.cpp
src/insets/InsetBox.cpp
src/insets/InsetBranch.cpp
src/insets/InsetCaption.cpp
src/insets/InsetCitation.cpp
src/insets/InsetCollapsable.cpp
src/insets/InsetCommand.cpp
src/insets/InsetCommandParams.cpp
src/insets/InsetERT.cpp
src/insets/InsetExternal.cpp
src/insets/InsetFlex.cpp
src/insets/InsetFloat.cpp
src/insets/InsetFloatList.cpp
src/insets/InsetFoot.cpp
src/insets/InsetGraphics.cpp
src/insets/InsetGraphicsParams.cpp
src/insets/InsetHyperlink.cpp
src/insets/InsetInclude.cpp
src/insets/InsetIndex.cpp
src/insets/InsetInfo.cpp
src/insets/InsetLine.cpp
src/insets/InsetListings.cpp
src/insets/InsetListingsParams.cpp
src/insets/InsetNewline.cpp
src/insets/InsetNomencl.cpp
src/insets/InsetNote.cpp
src/insets/InsetQuotes.cpp
src/insets/InsetRef.cpp
src/insets/InsetSpace.cpp
src/insets/InsetSpecialChar.cpp
src/insets/InsetTOC.cpp
src/insets/InsetTabular.cpp
src/insets/InsetText.cpp
src/insets/InsetTheorem.cpp
src/insets/InsetVSpace.cpp
src/insets/InsetWrap.cpp
src/insets/MailInset.cpp
src/insets/RenderPreview.cpp
src/lengthcommon.cpp
src/lyxfind.cpp
src/mathed/CommandInset.cpp
src/mathed/InsetFormulaMacro.cpp
src/mathed/InsetMath.cpp
src/mathed/InsetMathArray.cpp
src/mathed/InsetMathCases.cpp
src/mathed/InsetMathDelim.cpp
src/mathed/InsetMathExFunc.cpp
src/mathed/InsetMathGrid.cpp
src/mathed/InsetMathHull.cpp
src/mathed/InsetMathMBox.cpp
src/mathed/InsetMathNest.cpp
src/mathed/InsetMathNumber.cpp
src/mathed/InsetMathRef.cpp
src/mathed/InsetMathRoot.cpp
src/mathed/InsetMathScript.cpp
src/mathed/InsetMathSpace.cpp
src/mathed/InsetMathSplit.cpp
src/mathed/InsetMathSubstack.cpp
src/mathed/InsetMathXYArrow.cpp
src/mathed/MacroTable.cpp
src/mathed/MathAtom.cpp
src/mathed/MathAutoCorrect.cpp
src/mathed/MathData.cpp
src/mathed/MathExtern.cpp
src/mathed/MathFactory.cpp
src/mathed/MathMacro.cpp
src/mathed/MathMacroTemplate.cpp
src/mathed/MathParser.cpp
src/mathed/MathStream.cpp
src/mathed/MathSupport.cpp
src/output.cpp
src/output_docbook.cpp
src/output_latex.cpp
src/output_plaintext.cpp
src/paragraph_funcs.cpp
src/rowpainter.cpp
src/sgml.cpp
src/support/FileFilterList.cpp
src/support/FileMonitor.cpp
src/support/FileName.cpp
src/support/ForkedCalls.cpp
src/support/Messages.cpp
src/support/Package.cpp
src/support/convert.cpp
src/support/copy.cpp
src/support/debug.cpp
src/support/docstream.cpp
src/support/environment.cpp
src/support/filetools.cpp
src/support/gettext.cpp
src/support/lstrings.cpp
src/support/lyxsum.cpp
src/support/lyxtime.cpp
src/support/minizip/zipunzip.cpp
src/support/os_cygwin.cpp
src/support/os_unix.cpp
src/support/os_win32.cpp
src/support/socktools.cpp
src/support/tempname.cpp
src/support/unicode.cpp
src/support/userinfo.cpp
src/tex2lyx/Context.cpp
src/tex2lyx/Font.cpp
src/tex2lyx/Parser.cpp
src/tex2lyx/boost.cpp
src/tex2lyx/math.cpp
src/tex2lyx/preamble.cpp
src/tex2lyx/table.cpp
src/tex2lyx/tex2lyx.cpp
src/tex2lyx/text.cpp

index 7d32fa55e21e7b3c3e3fa109d20c03f7bceb1274..9dff24a3008fe8a66e173f2cd2496805dde98bfa 100644 (file)
@@ -20,7 +20,7 @@
 
 #include <boost/assert.hpp>
 
-using std::string;
+using namespace std;
 
 namespace lyx {
 
index 44acfbc60582c449765109057d557fa49db262a2..d31dd7cb5f2017f51ac4480c949b6736c1a20432 100644 (file)
@@ -18,7 +18,7 @@
 
 #include <istream>
 
-using std::string;
+using namespace std;
 
 namespace lyx {
 
index ca4d2850de747b20022a59c9459f2a2bb44d41c9..b5579da7b1cfa63e0ead3e2fefe34fc94a82d065 100644 (file)
 
 #include "boost/regex.hpp"
 
-using std::string;
-using std::vector;
-using std::pair;
-using std::endl;
-using std::set;
+using namespace std;
 
 namespace lyx {
 
index d968448abae683feacf8bafdf2cd2b6af0c73b2f..d17c458982d6cfc8883e29f78ea6f80580215d3d 100644 (file)
@@ -16,7 +16,7 @@
 
 #include <ostream>
 
-using std::ostream;
+using namespace std;
 
 namespace lyx {
 
index b846641e15556a217053a245a120862089c46181..2867f49e4ad436ddaca924c05d748a3835d2fb30 100644 (file)
@@ -17,7 +17,7 @@
 
 #include <algorithm>
 
-using std::string;
+using namespace std;
 
 namespace lyx {
 
index 0581eacfe23b0e40fb760c95953799f94bde7ece..319942d46b8f9457795e8d8b14ad986cad7cacad 100644 (file)
 #include <sstream>
 #include <fstream>
 
-using std::endl;
-using std::for_each;
-using std::make_pair;
-
-using std::ios;
-using std::map;
-using std::ostream;
-using std::ostringstream;
-using std::ofstream;
-using std::ifstream;
-using std::pair;
-using std::stack;
-using std::vector;
-using std::string;
-using std::time_t;
+using namespace std;
 
 namespace lyx {
 
index c33d64f21fe7113998cc2261d3c1e0326b507a92..a650ba62dc32d7a7c67a89463dc983c59932f176 100644 (file)
 
 using boost::bind;
 
-using std::auto_ptr;
-using std::endl;
-using std::equal_to;
-using std::find;
-using std::find_if;
-using std::for_each;
-using std::string;
-using std::vector;
-using std::back_inserter;
-using std::transform;
-
+using namespace std;
 
 namespace lyx {
 
index 037e18b3802713fb42b72e0489280fcbd483fe86..322d9d3ea57ec3840cb89ec0d3d229f7b4b64a43 100644 (file)
 #include <algorithm>
 #include <sstream>
 
-using std::count;
-using std::endl;
-using std::find;
-using std::string;
-using std::istringstream;
-using std::make_pair;
-using std::ostream;
-using std::ostringstream;
-using std::pair;
-using std::string;
+using namespace std;
+
 using lyx::support::FileName;
 using lyx::support::libFileSearch;
 using lyx::support::bformat;
index d050da8228110f8174528a6737e2c839fc84bd17..8ce64641e4e0dfed4dc20e362004ff34f0d66b12 100644 (file)
 #include <iterator>
 #include <vector>
 
-using std::distance;
-using std::endl;
-using std::ifstream;
-using std::istringstream;
-using std::istream_iterator;
-using std::make_pair;
-using std::min;
-using std::max;
-using std::mem_fun_ref;
-using std::string;
-using std::vector;
+using namespace std;
 
 namespace lyx {
 
index 2db54cec17d8de12ec8bd889826e1d777184836f..da946dcbdce4e9ed6391f16ae87622cebfcc2075 100644 (file)
@@ -20,7 +20,7 @@
 
 #include <boost/assert.hpp>
 
-using std::string;
+using namespace std;
 
 namespace lyx {
 
index c88aefb2ba9a2da00fd534b5d21751700ceef08f..809d9643675e0c74067b1d3b8f4c8ec61a6857ea 100644 (file)
@@ -23,9 +23,7 @@
 
 #include <boost/format.hpp>
 
-using std::getline;
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 
index aac8ac3c1d1a7b86effd9161efab11550d93c072..b05d726a18fb8304a03be8ee7466690f95d0e6e3 100644 (file)
@@ -22,8 +22,7 @@
 #include <ostream>
 #include <string>
 
-using std::endl;
-using std::string;
+using namespace std;
 
 namespace lyx {
 
index 95074309c8191cb07eb65aba4e753cf493ba123f..f90b24e255d98990094d9204ccc849a3c10a5983 100644 (file)
 #include <iomanip>
 
 
-#ifndef CXX_GLOBAL_CSTD
-using std::floor;
-#endif
-
-using std::max;
-using std::min;
-using std::setw;
-
-using std::istringstream;
-using std::ostringstream;
-using std::string;
-using std::endl;
+using namespace std;
 
 namespace lyx {
 
index 53c1a7b5cdd8601e4ff25496f5e46c30c3ce135f..6768299f7c8352ad2964dbe5aa01ffe8b46e2382 100644 (file)
 #include "support/Path.h"
 #include "support/Systemcall.h"
 
-using std::find_if;
-using std::string;
-using std::vector;
-using std::distance;
-
+using namespace std;
 
 namespace lyx {
 
index fe5e813fb5335ddbc201f2790c3773b8e7e27a69..4ca2979a35c4581b13a90cf364e884e22a10f4e1 100644 (file)
@@ -35,7 +35,7 @@
 #include <map>
 #include <sstream>
 
-using std::string;
+using namespace std;
 
 namespace lyx {
 
index b4bf026e42d5bd72c9f702a3c9fae76914219fcf..ad13330cd78365f2b95831ce95fc493531b69215 100644 (file)
@@ -23,9 +23,7 @@
 
 #include <sstream>
 
-using std::endl;
-using std::ostringstream;
-using std::string;
+using namespace std;
 
 namespace lyx {
 
index 520417dfdbeed60bd83aef674ba6a5278e1e6d8a..f4489c899cdd668e2be72f9fa3b33d46259bff6a 100644 (file)
 #include <limits>
 #include <map>
 
-using std::string;
-using std::vector;
-using std::endl;
-using std::min;
-using std::for_each;
-
+using namespace std;
 
 namespace lyx {
 
index 6984e5f5daf68b388e8d0582a0ba1bd00e9f5d5b..51fd1bbf1bde66962a6b75142ee15200b3ff446a 100644 (file)
 
 #include <string>
 
-using std::endl;
-using std::for_each;
-using std::make_pair;
-using std::pair;
-using std::vector;
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 
index 8ebb08aa06a04da7ea1dea156eb8f116d4236572..b37f9141509f41e6d6891de056678fb99980d895 100644 (file)
 
 #include <fstream>
 
-using std::endl;
-using std::flush;
-using std::getline;
-using std::string;
-using std::ofstream;
-using std::ifstream;
-
+using namespace std;
 
 namespace lyx {
 
index 5ef9da5792d8cdde7458725bd588415107cd378e..e31f95460d91c4827d563aaad4d83d146fbde0b8 100644 (file)
 #include <fstream>
 #include <utility>
 
-using std::ofstream;
-using std::endl;
-using std::vector;
-using std::string;
-using std::pair;
-using std::make_pair;
-using std::istream;
-using std::ostream;
-using std::getline;
-using std::istringstream;
+using namespace std;
 
 namespace lyx {
 
index d828b9d7e62fbfbe7c84af15e1f17191b330db80..949e673d42148ac7ab29d393671db977ff7754e0 100644 (file)
 
 #include <sstream>
 
-#ifndef CXX_GLOBAL_CSTD
-using std::strtol;
-#endif
-using std::endl;
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 
index 1fc64c7315284f377aef2f17dbb6abb5cd01d17b..bc007da2ddc5d8d060f5fd77cc6636eb59eef9e5 100644 (file)
@@ -12,8 +12,7 @@
 
 #include "ErrorList.h"
 
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 
index 7cb141bcf562ab76137e3c3f72e3613411c95368..326358560cf8cc4e6a0800ffb60903c305a6afbf 100644 (file)
 
 #include <algorithm>
 
-using std::find;
-using std::string;
-using std::vector;
-
+using namespace std;
 
 namespace lyx {
 
index 1c80fc1b1500297a63a0e7d773c6ce3fbd0272fd..28d37ecb021f682200a0736db5f84066ef35d634 100644 (file)
@@ -13,8 +13,7 @@
 #include "FloatList.h"
 #include "Floating.h"
 
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 
index 9da1f1a3899ba899dd3d1438db48aee7fa6e1303..645dcf9307e1bbd82ea9aa1e26968d799dd8a439 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "Floating.h"
 
-using std::string;
+using namespace std;
 
 
 namespace lyx {
index 7821c58e85685f79818793b7da8832135c302c3f..a1492db03233f6909792ca7dd318ec375d7a279d 100644 (file)
 #include "support/gettext.h"
 #include "support/lstrings.h"
 
-using std::endl;
-using std::string;
-using std::ostream;
-using std::ostringstream;
-using std::istringstream;
-using std::pair;
-
-#ifndef CXX_GLOBAL_CSTD
-using std::strlen;
-#endif
-
+using namespace std;
 
 namespace lyx {
 
index 743f6b6325014788145cecedd4257c617e0880ff..2623f2ea232f1eb9a0fda85a84b93a1ae2ac1a61 100644 (file)
@@ -20,8 +20,7 @@
 
 #include <ostream>
 
-using std::endl;
-
+using namespace std;
 
 namespace lyx {
 
index a5ffca8102949a5665a0c153a0942418729b8557..f6b456d9db495d4383cede00d8e38a71dbd77151 100644 (file)
@@ -24,7 +24,7 @@
 
 #include <algorithm>
 
-using std::distance;
+using namespace std;
 
 namespace lyx {
 
index 6dd5bd6557249065eb546ef1c58886b168dd39ec..6154d69689c39a2cd87be575c0723a2c389617df 100644 (file)
 #include "support/os.h"
 #include "support/Systemcall.h"
 
-using std::find_if;
-using std::string;
-using std::distance;
-
+using namespace std;
 
 namespace lyx {
 
index 634111f14795959123559a186c6e5674ef864bf6..af4d97c7d70dd1435fd2333a15f8c19a7b4367ad 100644 (file)
 #include <sstream>
 #include <vector>
 
-using std::getline;
-using std::istringstream;
-using std::vector;
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 
index 502ff72944dc3aa14791e0cfa22dd41f439ff328..1f5c66ed83275d93cb53afe699531ca64e463c82 100644 (file)
 
 #include <algorithm>
 
-using std::vector;
-using std::reverse;
-using std::fill;
-
+using namespace std;
 
 namespace lyx {
 
index daeaabab469e3d3b2e1c21d2396aa7202a89a711..28358c828b4bbddeef0bb8af519d2c499dc90e26 100644 (file)
 
 using boost::shared_ptr;
 
-#ifndef CXX_GLOBAL_CSTD
-using std::strcpy;
-using std::strlen;
-using std::strpbrk;
-#endif
-
-using std::endl;
-using std::max;
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 
index a18c8b636712559eb0f491226cf9066af7037c90..1f205858794ef899ac7aabeb2d0d214dcaf85cf1 100644 (file)
@@ -20,8 +20,7 @@
 
 #include "insets/InsetBranch.h"
 
-using std::lower_bound;
-
+using namespace std;
 
 namespace lyx {
 
index 6d105ee6e87ea8e3ce34254d784dc431e44de259..f6cc6848b5bef4d65b5068a50ac90cf45e99f23d 100644 (file)
 #include <sstream>
 #include <utility>
 
-using std::endl;
-using std::ios;
-using std::ofstream;
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 
index 1af1b88f72b742145b1d163d7853174f4a14e510..3bb207c5decb56ed11eb0cbb4153929f936f6428 100644 (file)
@@ -20,9 +20,7 @@
 
 #include "frontends/KeySymbol.h"
 
-using std::make_pair;
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 
index 2fe59820551d156e252623dcf8911036e07d351e..5c62824e0e12dd5a5d8e8d3d57119e593218eb5c 100644 (file)
 using boost::regex;
 using boost::smatch;
 
-#ifndef CXX_GLOBAL_CSTD
-using std::sscanf;
-#endif
-
-using std::endl;
-using std::getline;
-using std::string;
-using std::ifstream;
-using std::set;
-using std::vector;
-
+using namespace std;
 
 namespace lyx {
 
index 72ce130ca0f1ab3bca5f01cfe74dcd6725742822..5953c952df6aa706af827d6dc7ec9aa75b46bff6 100644 (file)
 #include "support/docstream.h"
 #include "support/filetools.h"
 
-using std::endl;
-using std::find;
-using std::string;
-using std::list;
-using std::ostream;
-using std::ostringstream;
-using std::set;
-
+using namespace std;
 
 namespace lyx {
 
index 39c6efda93d6209ef978c0dac5800ad8cbef9ef2..770ee8686c5254d77d24187be72fa85503f2fb4a 100644 (file)
@@ -23,9 +23,7 @@
 
 #include <ostream>
 
-using std::endl;
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 
index 6d285881b53374a7abb5ece6428a24e58f63d95e..1374fbefd7d738fb9af23446bed37efe1a8c6dc6 100644 (file)
@@ -23,8 +23,7 @@
 
 #include <ostream>
 
-using std::endl;
-using std::string;
+using namespace std;
 
 namespace lyx {
 
index cc457365701cbe0e27024d878847fcd04fa243c9..90da83a74ca7080a9fbc2b75762ce761f13501f0 100644 (file)
 #include <sstream>
 #include <iomanip>
 
+using namespace std;
 
 namespace lyx {
 
-using std::ostringstream;
-using std::string;
-
 
 /////////////////////////////////////////////////////////////////////
 //
index d8dbe629e6d44dfceafb896cdc29624409a5d211..a6418ef040dfd975240daab372b46bc80c443a6e 100644 (file)
@@ -33,6 +33,7 @@
 #include <sstream>
 #include <vector>
 
+using namespace std;
 
 namespace lyx {
 
@@ -47,15 +48,6 @@ using support::split;
 using support::subst;
 using support::trim;
 
-using std::endl;
-using std::getline;
-using std::lower_bound;
-using std::sort;
-using std::string;
-using std::ios;
-using std::istream;
-using std::ostream;
-
 
 //////////////////////////////////////////////////////////////////////
 //
index db9e92033a41066a4a7b805bf39b8f37636d3239..e74dfc7814f4a143d7247696cb4c0a8116a9c321 100644 (file)
 #include <string>
 #include <vector>
 
-using std::endl;
-using std::for_each;
-using std::map;
-using std::make_pair;
-using std::string;
-using std::vector;
-
-#ifndef CXX_GLOBAL_CSTD
-using std::exit;
-using std::signal;
-using std::system;
-#endif
+using namespace std;
 
 namespace lyx {
 
index c3d6ff3a77c8fc9c61d355fa0e2858c996f83e50..e493aa0d527e65524d32f9d23aa1b5a5e20b999b 100644 (file)
 
 #include <boost/assert.hpp>
 
+using namespace std;
 
 namespace lyx {
 
 using support::split;
 using support::trim;
 
-using std::string;
-
 
 /*
      NAMING RULES FOR USER-COMMANDS
index 77732fc72f25fab88621bd1d5372ed56579f63dc..4e05990dc967dc78aec683c94c94d29cab157a9a 100644 (file)
 
 #include <sstream>
 
-using std::endl;
-using std::make_pair;
-using std::pair;
-using std::string;
-using std::istringstream;
-using std::ostringstream;
-using std::find;
-using std::vector;
+using namespace std;
 
 namespace lyx {
 
index a9e01d961cfe5c4562b0b704056542e18275318e..d7b6f09b4561fcc4c4b5285d7573064c7b382e50 100644 (file)
@@ -40,6 +40,7 @@
 #include "support/os.h"
 #include "support/userinfo.h"
 
+using namespace std;
 
 namespace lyx {
 
@@ -53,15 +54,6 @@ using support::getEnv;
 using support::libFileSearch;
 using support::token;
 
-using std::cout;
-using std::endl;
-
-using std::ios;
-using std::ofstream;
-using std::ostream;
-using std::string;
-
-
 namespace {
 
 // when adding something to this array keep it sorted!
index 2e316d6af7fa28a08c6225af65cf986d1d4f024a..aff782494fe2977f7f2d69ed0e75cd40f9b58809 100644 (file)
@@ -27,6 +27,7 @@
 #include "support/lstrings.h"
 #include "support/lyxlib.h"
 
+using namespace std;
 
 namespace lyx {
 
@@ -35,8 +36,6 @@ using support::FileName;
 using support::makeAbsPath;
 using support::tempName;
 
-using std::string;
-
 namespace Alert = frontend::Alert;
 
 
index ca4dd00d489c1aa1921e2f8b9460309e4247c22a..5c20906999387af23a63ef1325b2ae729881f36d 100644 (file)
@@ -48,6 +48,8 @@
 #include <algorithm>
 #include <ostream>
 
+using namespace std;
+using boost::bind;
 
 namespace lyx {
 
@@ -56,18 +58,6 @@ using support::contains;
 using support::makeDisplayPath;
 using support::token;
 
-using boost::bind;
-
-using std::auto_ptr;
-using std::endl;
-using std::equal_to;
-using std::find_if;
-using std::max;
-using std::sort;
-using std::string;
-using std::vector;
-using std::stack;
-
 namespace {
 
 class MenuNamesEqual : public std::unary_function<Menu, bool> {
index 97d733aa993f1cfdaff71d8cf72f0e6f47da1267..02a458dbeb04c1dc603176335780df1ada16893c 100644 (file)
 
 #include <boost/assert.hpp>
 
+using namespace std;
 
 namespace lyx {
 
-using std::string;
-
 
 MetricsBase::MetricsBase()
        : bv(0), font(), style(LM_ST_TEXT), fontname("mathnormal"),
index 258b71c585f9cff1159019ca8d5e17881363ca90..1e7f13ca36af03675765c1d2a2dfe69b4ec4a661 100644 (file)
 #include <algorithm>
 #include <ostream>
        
-using std::endl;
-using std::map;
-using std::string;
-using std::vector;
+using namespace std;
 
 namespace lyx {
 
index 112b857f4a3d39a50b2372f79d0a194fbf3826dc..b989cf118e147265dac58311bd7e5df608608eea 100644 (file)
@@ -20,8 +20,7 @@
 #include <fstream>
 #include <sstream>
 
-using std::ios;
-using std::string;
+using namespace std;
 
 namespace lyx {
 
index 94896f562b3692dcbb55ece886a441579070b75f..8ef2665631b9fbbca860ceb0de1c1643d55d0abd 100644 (file)
 #include <sstream>
 #include <string>
 
-namespace lyx {
+using namespace std;
 
+namespace lyx {
 
-using std::ostream;
-using std::ostringstream;
-using std::string;
 
 const string PDFOptions::pagemode_fullscreen("FullScreen");
 
index 0a60cd84ebc11b336356fe291df26d06f7b7e649..bb5862da9aec64a75b64ed8f4fead921c4bc0e71 100644 (file)
@@ -24,12 +24,10 @@ extern "C" {
 
 #include <boost/assert.hpp>
 
+using namespace std;
 
 namespace lyx {
 
-using std::endl;
-using std::string;
-
 
 PSpell::PSpell(BufferParams const &, string const & lang)
        : els(0), spell_error_object(0)
index 42c4bec1ccd3a879f2c560640b5b61c68e58a327..ecb0733969816efa4178badc627a0e46c7f99223 100644 (file)
@@ -58,9 +58,7 @@
 #include <sstream>
 #include <vector>
 
-using std::endl;
-using std::string;
-using std::ostream;
+using namespace std;
 
 namespace lyx {
 
@@ -214,14 +212,6 @@ public:
 };
 
 
-
-
-using std::endl;
-using std::upper_bound;
-using std::lower_bound;
-using std::string;
-
-
 // Initialization of the counter for the paragraph id's,
 unsigned int Paragraph::Private::paragraph_id = 0;
 
index ff1eb3ffc17c08e61a51cfd9952d7f77e6d4ff9f..5d89a3c280207e6760d6abfff9ff2c9deb28fd7f 100644 (file)
@@ -57,6 +57,7 @@
 #include <stack>
 #include <sstream>
 
+using namespace std;
 
 namespace lyx {
 
@@ -64,14 +65,6 @@ using lyx::support::contains;
 using lyx::support::rsplit;
 using support::subst;
 
-using std::distance;
-using std::endl;
-using std::list;
-using std::stack;
-using std::string;
-using std::ostream;
-using std::ostringstream;
-
 
 ParagraphMetrics::ParagraphMetrics(Paragraph const & par): position_(-1), par_(&par)
 {
index bbbdca4b394020317cd6a2ce9d1f2042d468cef0..c8c0a5dab470d71b1659d96ccc5fed305405f8c0 100644 (file)
 
 #include <sstream>
 
-using lyx::support::rtrim;
-
-using std::istringstream;
-using std::ostream;
-using std::ostringstream;
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 
+using support::rtrim;
+
 //NOTE The order of these MUST be the same as in Layout.h.
 static char const * const string_align[] = {
        "block", "left", "right", "center", "default", ""
index 52de90c10cf5fb036b00f14ad0734daf38a69dc9..7a96aae4717db20be3c017030537143c4e9e866b 100644 (file)
@@ -17,9 +17,9 @@
 #include <boost/assert.hpp>
 
 
-namespace lyx {
+using namespace std;
 
-using std::string;
+namespace lyx {
 
 
 PrinterParams::PrinterParams(Target t,
index fcacc7e8f0632dd4894172fa5f84728846e9d9d4..7cca23be14b57a723acf4482d8baba1943e90a49 100644 (file)
 
 #include "Section.h"
 
+using namespace std;
 
 namespace lyx {
 
-using std::string;
 
 string const & Section::name() const
 {
index a9233745afd1afca82edf7bea37a2109566f2088..e4a44343688990d8c1d49115faa3b371cf9fdb82 100644 (file)
@@ -58,6 +58,7 @@
 #endif
 #include <fcntl.h>
 
+using namespace std;
 
 namespace lyx {
 
@@ -66,9 +67,6 @@ using support::FileName;
 using support::rtrim;
 using support::split;
 
-using std::endl;
-using std::string;
-
 
 /////////////////////////////////////////////////////////////////////
 //
index ae80d9b750706972da1dc4f6f1098acaa9fdf0b4..ba56a7d873687e905f48828663a71bbc73c8819b 100644 (file)
@@ -39,9 +39,7 @@
 
 using boost::shared_ptr;
 
-using std::endl;
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 
index 839ec38ada5a94e7892cfa5c5db1de66753d21c8..e76a2ec6d2241cfe03aa6d50df644076dd47d14a 100644 (file)
 #include <algorithm>
 #include <iterator>
 
-using lyx::support::absolutePath;
-using lyx::support::addName;
-using lyx::support::FileName;
-using lyx::support::package;
-
-using std::vector;
-using std::getline;
-using std::string;
-using std::ifstream;
-using std::ofstream;
-using std::istream;
-using std::ostream;
-using std::endl;
-using std::istringstream;
-using std::copy;
-using std::find;
-using std::ostream_iterator;
+using namespace std;
 
 namespace {
 
@@ -53,6 +37,11 @@ string const sec_toolbars = "[toolbars]";
 
 namespace lyx {
 
+using support::absolutePath;
+using support::addName;
+using support::FileName;
+using support::package;
+
 LastFilesSection::LastFilesSection(unsigned int num) :
        default_num_last_files(4),
        absolute_max_last_files(100)
index d2ed1acd80dee85017672f17af7b4eb088d7d4ec..9589cff1cd75f02bb180b9bede746a3d071728d4 100644 (file)
 #include <sstream>
 #include <string>
 
+using namespace std;
 
 namespace lyx {
 
 
-using std::ostream;
-using std::ostringstream;
-using std::string;
-
-
 string const Spacing::spacing_string[]
        = {"single", "onehalf", "double", "other"};
 
index 54b6b20549ca4c310b46030b48f41f8d27a344d0..ea76127bad7a201661cef5d834bfe56f91cdb36e 100644 (file)
 #include "support/gettext.h"
 #include "support/docstring.h"
 
+using namespace std;
 
 namespace lyx {
 
-using std::string;
-
 
 bool SpellBase::alive()
 {
index faeb92c4b40d355e6d77adfc55be8b82dd741bd4..ce49dfc5498c1002ef413c9466f991d919a1244d 100644 (file)
@@ -73,8 +73,7 @@
 
 #include <sstream>
 
-using std::auto_ptr;
-using std::string;
+using namespace std;
 
 namespace lyx {
 
index d03d71d1073b198f4804aaeec066f3c5381a17da..e9d1131808508945dff8f66910b5c6a53174a8ac 100644 (file)
 
 #include <sstream>
 
-using std::endl;
-using std::ostringstream;
-using std::string;
-using std::max;
-using std::min;
-using std::istringstream;
+using namespace std;
 
 namespace lyx {
 
index fa9fa8d69f0c9d22f09682e965a693aa38280c4c..a8e079fdf6a183e3091eb3fc0067ee2bd5a0c1e2 100644 (file)
 #include <clocale>
 #include <sstream>
 
-using std::endl;
-using std::string;
-using std::istringstream;
-using std::ostringstream;
+using namespace std;
 
 namespace lyx {
 
index 8f1ca296513d81235ae097f84019a46c0e6ddb1b..2253108761a4ea6e86be5d813e4a88c6389ecb49 100644 (file)
 
 #include <sstream>
 
-using std::endl;
-using std::find_if;
-using std::remove_if;
-using std::string;
-using std::ostream;
+using namespace std;
 
 namespace lyx {
 
index 558eae477005c9616f56fb6aa18f4e7e45d0cdbe..eceacd29da1f3d3d6bfd6c0b124cff10d2f0e252 100644 (file)
@@ -35,15 +35,7 @@ using boost::bind;
 using boost::regex;
 using boost::smatch;
 
-using std::endl;
-using std::equal_to;
-using std::find_if;
-using std::make_pair;
-using std::sort;
-using std::string;
-using std::pair;
-using std::ifstream;
-
+using namespace std;
 
 // Gets textclass number from name
 pair<bool, textclass_type> const
index 4fa2857ad6156baf4f3cba0a960b179bf6ed5f36..a0ac6afdfabbd759dbcbe848bbfdb708cffabbcb 100644 (file)
 #include "frontends/FontMetrics.h"
 #include "frontends/Painter.h"
 
-using std::make_pair;
-using std::max;
-using std::min;
-using std::pair;
+using namespace std;
 
 namespace lyx {
 
index 466abebc1d5eea6854340bf9d2e560ba20e27923..6e5d80a07d351068aaf4690c760ae81ea10b90d3 100644 (file)
 
 #include <algorithm>
 
+using namespace std;
 
 namespace lyx {
 
 #ifdef HAVE_LIBAIKSAURUS
 using support::bformat;
 
-using std::sort;
-using std::string;
-
 
 Thesaurus::Thesaurus()
        : aik_(new Aiksaurus)
index c11dc939c2f1f1ca17cb80d52a87b1b9c90f4307..daa95283d307312b13d1de5cfb8b55ded5353fae 100644 (file)
@@ -30,8 +30,7 @@
 #include "support/debug.h"
 #include "support/docstream.h"
 
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 
index b5c7d40574c4b83c4658593181cfd2962d9617d2..cbe318267df65dfea424d2e91c2ea96b51cb6339 100644 (file)
 #include <boost/bind.hpp>
 #include <algorithm>
 
+using namespace std;
+
 namespace lyx {
 
 using support::compare_ascii_no_case;
 using support::getVectorFromString;
 
-using std::make_pair;
-using std::string;
-using std::vector;
-using std::find_if;
-
-
 namespace {
 
 class ToolbarNamesEqual
index f2dc6680db3098cbbe238a5dc7c43b3aa8e2359d..9d061d15eccc162032bc7284221e4bec51dbc81a 100644 (file)
 #include "support/convert.h"
 #include "support/docstream.h"
 
+using namespace std;
+
 namespace lyx {
 
 using support::split;
 using support::contains;
 using support::libFileSearch;
 
-using std::endl;
-using std::string;
-using std::pair;
-using std::map;
-
 
 /////////////////////////////////////////////////////////////////////
 //
index 0c906db882268391f65958b233782050bbd2a95b..74e8cbc2c3d9453c70388320d9ec282031109df1 100644 (file)
@@ -36,7 +36,7 @@
 #include <algorithm>
 #include <ostream>
 
-using std::advance;
+using namespace std;
 
 namespace lyx {
 
index 0fd2094822a42b5a09ba3afa5273ffe968e496b7..c92a648ffd7b6d6e3e6074d47b13786ed8f9940c 100644 (file)
 
 #include <fstream>
 
+using namespace std;
+
+using boost::regex;
+using boost::regex_match;
+using boost::smatch;
 
 namespace lyx {
 
@@ -37,20 +42,6 @@ using support::rtrim;
 using support::split;
 using support::Systemcall;
 
-using boost::regex;
-using boost::regex_match;
-using boost::smatch;
-
-#ifndef CXX_GLOBAL_CSTD
-using std::asctime;
-using std::gmtime;
-#endif
-
-using std::endl;
-using std::getline;
-using std::string;
-using std::ifstream;
-
 
 int VCS::doVCCommand(string const & cmd, FileName const & path)
 {
index 979498797056aaab5f5a8c96f8dcf7faa725ba2c..b42409e88d88d194d894f4dee2d1e28f3746c7ae 100644 (file)
@@ -23,6 +23,7 @@
 #include "support/convert.h"
 #include "support/lstrings.h"
 
+using namespace std;
 
 namespace lyx {
 
@@ -32,8 +33,6 @@ using support::ltrim;
 using support::prefixIs;
 using support::rtrim;
 
-using std::string;
-
 
 namespace {
 
index 46e542a3211b45e4909dc50c3f45b5bcf46e2807..2257f9f1e3a3c661641beb989352eba0c605777b 100644 (file)
@@ -14,6 +14,7 @@
 #include "Variables.h"
 #include "support/LRegex.h"
 
+using namespace std;
 
 void Variables::set(string const & var, string const & val)
 {
@@ -67,10 +68,7 @@ string const Variables::expand(string const & s) const
 
 #include <iostream>
 
-
 namespace lyx {
-using std::endl;
-using std::cout;
 
 int main() {
        Variables vars;
index 46d43df40ecdce4667951b3efe45fbe061889f04..768f4117f05b3bb8515be12be39f5c0ff942385d 100644 (file)
@@ -20,7 +20,7 @@
 #include <exception>
 #include <iomanip>
 
-using std::endl;
+using namespace std;
 using lyx::lyxerr;
 using lyx::LyX;
 
index 081c6d31eec3161cd4bddf6cd26140fd7a65d404..0b2aa7319d253c587a46473b8c03e61252a129e5 100644 (file)
 #include <cerrno>
 #include <ostream>
 
+using namespace std;
 
 namespace lyx {
 
 using support::package;
 
-using std::endl;
-using std::string;
-
 
 #ifdef ENABLE_NLS
 
-
 #if 0
 
 #include <locale>
index c3183ea51eeaa07408e8055a5f93cba9f75a0214..0d28e322f2adf4382cac516e98bf7aec227b5ba2 100644 (file)
@@ -19,7 +19,6 @@
 #include <exception>
 #include <ostream>
 
-
 using std::endl;
 
 namespace boost {
index 5540f1a2f5cdf6058ab57f1e71ab2e9ed5f73856..4b1962eb3bf30aea02f76a0a9c722ddce231e8b0 100644 (file)
 #include <map>
 #include <iostream>
 
-
-namespace lyx {
-
-using support::FileName;
-using support::prefixIs;
+using namespace std;
 
 using ::boost::scoped_ptr;
 namespace fs = ::boost::filesystem;
 
-using std::string;
-using std::vector;
-using std::cout;
-using std::cerr;
-using std::cin;
-using std::endl;
+namespace lyx {
 
+using support::FileName;
+using support::prefixIs;
 
 namespace support {
 
index 320bbf1e8bac1283c30208da702ef038424c8184..40cf5f5bc7b54d280cd93257d053873600d2fac2 100644 (file)
@@ -21,6 +21,7 @@
 #include <iostream>
 #include <iomanip>
 
+using namespace std;
 
 namespace lyx {
 
@@ -28,10 +29,6 @@ using support::ascii_lowercase;
 using support::bformat;
 using support::isStrInt;
 
-using std::setw;
-using std::string;
-using std::ostream;
-
 namespace {
 
 struct ErrorItem {
index f5b99cdf7fcbf1a6b5d43bb0498adff1f232a9f7..e62c0efa5177b940d7b055456bc961f989868896 100644 (file)
@@ -14,6 +14,7 @@
 #include "support/gettext.h"
 #include "Messages.h"
 
+using namespace std;
 
 namespace lyx {
 
@@ -22,8 +23,6 @@ namespace lyx {
 #  include <locale.h>
 #endif
 
-using std::string;
-
 
 namespace {
 
index 0f3ebb6152721cff841b9e4d0089656c1fbf9055..63654d7b9e77ff3671648f7c5ebd27936839a4b7 100644 (file)
 
 #include <sstream>
 
-using std::auto_ptr;
-using std::endl;
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 
index 145c98707103e0fd0b397c60a2e41d338237a46c..ffcedaf32bb07408667227f98042e7f88a28183b 100644 (file)
@@ -17,8 +17,9 @@
 #include "insets/InsetFloat.h"
 #include "support/lstrings.h"
 
+using namespace std;
+
 using lyx::support::contains;
-using std::string;
 
 //namespace lyx {
 
index 2835ec90d3aee9a5cbdefb2352cc46dbdf374b4e..512700421b882953e356fc968cad6bdc355ebca9 100644 (file)
@@ -31,8 +31,7 @@
 
 #include <iomanip>
 
-using std::endl;
-
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index 9cf2d707a4336927fa5b80256962b03bf87d1615..a84e5ae3168e42981a67fbf04942de6348070a05 100644 (file)
 
 #include <exception>
 
-using std::endl;
-using std::map;
-using std::string;
-using std::vector;
-
+using namespace std;
 
 namespace lyx {
 
index 71772c7bcc077a4917513e18440d525b340df3b3..7c62b2913ac5bbb61d76aab94e08e23a125a3a7f 100644 (file)
 #include <QCloseEvent>
 #include <QLineEdit>
 
-using std::pair;
-using std::string;
-using std::vector;
-
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index c29a4e24d5fb24192dada1a76cdfd8c875ee6435..91243256fd1a30235ccf462b7abdc85f7d47ea96 100644 (file)
@@ -31,9 +31,7 @@
 #include <QLineEdit>
 #include <QCloseEvent>
 
-using std::string;
-using std::vector;
-
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index b7aa73a7cbaa24503a03024a9b8453d286384e56..f3599d1283470ff7b14e3548f0b482b03a707f83 100644 (file)
@@ -27,8 +27,7 @@
 #include <QPushButton>
 #include <QCloseEvent>
 
-using std::string;
-using std::vector;
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index b8d5044fde50175d200ec87f9334ca7ee53f18a7..f547a38b0d82060271f45b61f5d8294bee55b0b9 100644 (file)
@@ -23,9 +23,7 @@
 
 #include <QCloseEvent>
 
-using std::vector;
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index 7e6470b963fb75d904d8c3d9b02d9a89346aacfc..65a6b4cf6aeaecc5436f4d71d0d6b45e6e84c578 100644 (file)
@@ -40,9 +40,7 @@
 #include <string>
 #include <vector>
 
-using std::string;
-using std::vector;
-using std::pair;
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index 7522aeb58182e3d7bd22b86676014f0dfaceb5b7..f7b32c2d44c482e0bb31544cc8d58aad055f2862 100644 (file)
 
 #include "support/lstrings.h"
 
-using lyx::support::internalLineEnding;
-using lyx::support::externalLineEnding;
-
-using std::string;
+using namespace std;
 
 static char const * const mime_type = "application/x-lyx";
 
-
 namespace lyx {
+
+using support::internalLineEnding;
+using support::externalLineEnding;
+
 namespace frontend {
 
 GuiClipboard::GuiClipboard()
index ce6896ef9fda2de08ebb1032df9a5e8eff2d779f..1f36f91c413abd976c2e834ace16f925aa3e0462 100644 (file)
 #include <QToolTip>
 #include <QVBoxLayout>
 
-using std::back_inserter;
-using std::transform;
-using std::string;
-using std::vector;
-
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index 0d7e55dbe7d61524030902092a733d4d81ce7145..0daa2fdad6d3ee15a43c7fbc2f5f72e5c14d06e6 100644 (file)
@@ -25,7 +25,7 @@
 // Set to zero if unicode symbols are preferred.
 #define USE_PIXMAP 1
 
-using std::string;
+using namespace std;
 
 static char const *  latex_delimiters[] = {
        "(", ")", "{", "}", "[", "]",
index 80fca20fea48cc2699be8d03ad3a399ea706e3ed..31d6806064e9db248fab3ab883e8c29e86848963 100644 (file)
@@ -21,7 +21,7 @@
 #include <QSettings>
 #include <QShowEvent>
 
-using std::string;
+using namespace std;
 
 namespace lyx {
 namespace frontend {
@@ -115,8 +115,7 @@ void GuiDialog::updateView()
 #include "FuncRequest.h"
 #include "insets/InsetCommand.h"
 
-
-using std::string;
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index 93d1f19efa35aea22bccc437dd407036c136bd4b..80e5f50aa2e37bf4c30acaaba27063160c292db7 100644 (file)
 #include <algorithm>
 #include <sstream>
 
-using std::distance;
-using std::make_pair;
-using std::pair;
-using std::vector;
-using std::string;
-using std::ostringstream;
-using std::sort;
+using namespace std;
 
 ///
 template<class Pair>
index 0289b584367af9ca96ce59059023fc839dd9dc79..99c7b4cbb78671a3f903df698c208598a285c29f 100644 (file)
@@ -28,8 +28,7 @@
 #include <QPushButton>
 #include <QCloseEvent>
 
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index 2bf12fcd20f352fde1c1875aff4cc78cb65f1906..a3dc99831e2ed952198310e9dec929208995eb1e 100644 (file)
 #include <QTabWidget>
 #include <QTextBrowser>
 
-using std::advance;
-using std::vector;
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index 6ac3cf7d54892f685687667074891885c69b780b..25d0f1aacbf73b86fe78fbaa9c1cecf24efaf13b 100644 (file)
@@ -20,8 +20,7 @@
 #include <QCloseEvent>
 #include <QPushButton>
 
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index b6eb96927817a28cb7630627d38cf2600de53e5d..19359dc0081a40c8f89d560a138e218353b91e58 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <boost/assert.hpp>
 
-using std::string;
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index 74c86496e4383b830a9a9cd9af1f374c1d4d9083..35a6c71005e33e3678c161cd7b8afb30892f00eb 100644 (file)
 #include <cmath>
 #include <utility>
 
-#ifndef CXX_GLOBAL_CSTD
-using std::floor;
-#endif
-using std::find;
-using std::vector;
-using std::string;
-using std::transform;
-using std::make_pair;
-using std::pair;
-using std::vector;
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index 5aaf12a889c02afc43510c17f5bccdeb17334a69..2c99e278065eaa624d18a145e5262cd8a80dcd63 100644 (file)
 
 #include <utility>
 
-using std::string;
-using std::vector;
-using std::pair;
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index 4f27d2b4d59acbb4bce108b561433c925c7088b5..860055e1b51583bf54c3a8ad13d2c3359e191506 100644 (file)
@@ -20,8 +20,7 @@
 #include <QLineEdit>
 #include <QCloseEvent>
 
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index 32ad7d06b48159f3e58c369d6a32291b86d03929..d3ba7f29650687201d08b67f632513982e9a05ee 100644 (file)
@@ -29,9 +29,7 @@
 
 #include <map>
 
-
-using std::string;
-using std::map;
+using namespace std;
 
 namespace lyx {
 
index 3d56be910b4f66882c973894da1f6486bdd26540..8341e99419fbfa42722d8322d0d8f347631e8c63 100644 (file)
 #include <QValidator>
 #include <QRegExpValidator>
 
+using namespace std;
 
-using std::string;
-using std::vector;
-using lyx::support::findToken;
-using lyx::support::getVectorFromString;
-using lyx::support::getStringFromVector;
-using lyx::support::prefixIs;
-using lyx::support::suffixIs;
-using lyx::support::contains;
+namespace lyx {
 
+using support::findToken;
+using support::getVectorFromString;
+using support::getStringFromVector;
+using support::prefixIs;
+using support::suffixIs;
+using support::contains;
 
-namespace lyx {
 namespace frontend {
 
 
index 09c11502b90cfb3a338d14c3f7cd82395d1dc7a8..899e1d574371603349ae3243405480f52da89d24 100644 (file)
 #include <fstream>
 #include <sstream>
 
-using std::istringstream;
-using std::ostream;
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index a0979d5f8c8bd64204915c8a7447248a9939e4f0..7ef65f971fc85834e4f96cdd23469d2ba80f148b 100644 (file)
@@ -14,8 +14,7 @@
 #include "support/debug.h"
 #include "FuncRequest.h"
 
-using std::string;
-using std::map;
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index 151196196c497bbcff760fd69769ea157016908d..53566e7120946dbb575776f25ecf100d6ec813e7 100644 (file)
@@ -22,8 +22,7 @@
 #include <QPushButton>
 #include <QSpinBox>
 
-using std::ostringstream;
-using std::string;
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index 40302d87533768460c2afeb08456000559e8fda0..f3b6e3c7ef8eb9516eb1be4b42365f506dd2ef96 100644 (file)
@@ -23,7 +23,7 @@
 #include <QWhatsThis>
 #include <QCloseEvent>
 
-using std::string;
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index 2c432f3b3b2af20fc1bf828917dc4db31f4197bf..4f152947558f7611f93ea6128665aab45e9576f0 100644 (file)
@@ -19,8 +19,7 @@
 
 #include <QCloseEvent>
 
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index dae8eda5eaf82b1527527876a09ddb6fc5dc8b5c..a1478d609042cd4a331399487a2b13b5628987b2 100644 (file)
@@ -37,9 +37,7 @@
 #define USE_PIXMAP_CACHE 1
 #endif
 
-using std::endl;
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index 7e785a54d2815eb951433074edbf986037420d85..e6ccc7dadd78eba4a7d4708a7fe0b6a57e78ee83 100644 (file)
 
 #include <sstream>
 
-using std::istringstream;
-using std::ostringstream;
-using std::string;
-using std::endl;
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index 23f8a5752f2b110580b70ced799070c50b174637..5c7dc1a9cbe8c8292720840717b60bb69af3c1d0 100644 (file)
 
 using namespace Ui;
 
-using std::endl;
-using std::ostringstream;
-using std::string;
-using std::vector;
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index 466b905d3464607a4cf5152fe704bfd5a7f86956..f54cde7fe4e3367835e8eaf29b2cd4762646ffaf 100644 (file)
@@ -33,8 +33,7 @@
 #include <QSpinBox>
 #include <QPushButton>
 
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index 5a0c01c054b77ada8b7189c7cee595d7a2a3fd9e..0567fdf49b361b2ca4958c39b8540ee2ea03e994 100644 (file)
@@ -31,8 +31,7 @@
 #include <QToolTip>
 #include <QCloseEvent>
 
-using std::vector;
-using std::string;
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index 6039c20a5930a647fa75037c8f118517d34ecfda..814b208a56117b7978cdfc03a7e6e0afbc78e6a0 100644 (file)
@@ -23,8 +23,7 @@
 #include <QCloseEvent>
 #include <QShowEvent>
 
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index c6cc0d62b26c70ea563d3756827cb83b0fea967a..84b960de6a7c0a45ae1764f63d4d8bd24c08e672 100644 (file)
@@ -27,9 +27,7 @@
 #include <QPushButton>
 #include <QCloseEvent>
 
-using std::vector;
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index 1663d2a9a7c87e74d80a6cac24b1bcd735799d9c..87804fe0db659ce25f6a7bdea652edc70262c8d2 100644 (file)
@@ -46,8 +46,7 @@
 
 #include "frontends/alert.h"
 
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index 7d8e1b1ba8ef7a8a7a84295a05f94152540c6ffd..4bd8ac77c898190b9183ab83fbcc3c5de7055fbb 100644 (file)
@@ -31,8 +31,7 @@
 #include <QRadioButton>
 #include <QLineEdit>
 
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index 2a8b5f6436f48815f96b13a7ce5da504e7ab5fc4..ba167bd384ca4439c85c628e686358915af03d0c 100644 (file)
@@ -21,8 +21,7 @@
 #include <QSpinBox>
 #include <QPushButton>
 
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index 23b0b39b5fcdc82db6f8094e35b9390bf95c9e0e..048df8d7e6c8e8ef6c8edcaba16df189bfb11e56 100644 (file)
@@ -30,9 +30,7 @@
 #include <fstream>
 #include <algorithm>
 
-using std::string;
-using std::vector;
-using std::endl;
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index 9f2d08e33844cd9dc9a610bb99098263bb7b4a7e..347221f0908e4c8bb798c81c4228a69c32e023f8 100644 (file)
@@ -25,8 +25,7 @@
 #include "lyxfind.h"
 #include "FuncRequest.h"
 
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index 78ed45c50fc0b60c5cc3f40c11f6f12e456d86d7..74fdae35a67575152a97751f8d722fe34176e9c9 100644 (file)
@@ -35,8 +35,7 @@
 
 #include <algorithm>
 
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index b89e900b160083aa63d5290747336e2c7d5a5497..aaed4f2a28ee26f0af7f5186167b5de22521ae1b 100644 (file)
@@ -50,6 +50,7 @@
 
 #include <boost/assert.hpp>
 
+using namespace std;
 
 static void initializeResources()
 {
@@ -64,9 +65,6 @@ static void initializeResources()
 namespace lyx {
 namespace frontend {
 
-using std::string;
-using std::endl;
-
 using support::libFileSearch;
 using support::subst;
 using support::compare;
index d6183e02f365c9cce6bdf7a2328c9204ac5bff96..3bc5a4a3f6af3f699e07a38b4a041308590e61a8 100644 (file)
@@ -30,8 +30,7 @@
 #include "TextClass.h"
 #include "ToolbarBackend.h"
 
-
-using std::string;
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index 3dcb45dab144a245cb3e126ae083efee29ddb088..51b1672e467585e4ff990740d49d5ceb818329b5 100644 (file)
@@ -34,8 +34,7 @@
 #include <QPushButton>
 #include <QValidator>
 
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index 339d87ab5d4a78bd849a682b2f26b07a7b5d35be..0217a128374a0d49b7e61495755d05441d82c259 100644 (file)
@@ -93,9 +93,7 @@
 # include <unistd.h>
 #endif
 
-using std::endl;
-using std::string;
-using std::vector;
+using namespace std;
 
 namespace lyx {
 
index a856d549495816a0579660de3112cedc94837529..8f23234c8e2854677a01de4669934ad75a26f2e2 100644 (file)
@@ -29,7 +29,7 @@
 #include <QTextCursor>
 #include <QTextDocument>
 
-using std::string;
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index 2c53eb524ff99b995b1e6a4b8e0073ae0ffb8367..997f341148da02e6a413e6254bb96462e47fdefa 100644 (file)
@@ -70,10 +70,7 @@ int const CursorWidth = 1;
 #undef KeyPress
 #undef NoModifier 
 
-using std::endl;
-using std::min;
-using std::max;
-using std::string;
+using namespace std;
 
 namespace lyx {
 
index 40a30caae0025dd18530b3c753a9fc0344f9156d..7c31e48b1be6e6419de003d74a2dd8216d7f8e7a 100644 (file)
@@ -25,8 +25,7 @@
 #include <QCloseEvent>
 #include <QPushButton>
 
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index 30c45848b82e1127567b81fcb52f1f914f0b61c1..56fef5d74de97af004c25c20e650691b627cee72 100644 (file)
 #include <QToolButton>
 #include <QHBoxLayout>
 
-using lyx::support::split;
-using std::string;
+using namespace std;
 
 namespace lyx {
 
+using support::split;
+
 /// return the Qt form of the label
 static docstring const getLabel(docstring const & ucs4str)
 {
index 37cdcc47f37dbe798cba20da4871bb0a2ff5fba9..feb80b78be8225c684f0a8cd9f679cd575d95ed4 100644 (file)
@@ -26,9 +26,7 @@
 
 #include <iostream>
 
-
-using std::endl;
-using std::cout;
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index c247817b41efbbdcebe852c4c973781330da25ba..287d7fab79aeba4e8eead68d92a3f044e26d53bd 100644 (file)
@@ -17,8 +17,7 @@
 
 #include <boost/assert.hpp>
 
-using std::max;
-using std::min;
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index a58a27d31227c03a67043ba4d83a9ac58926405e..f39e503ae5e6c9e9895aebfad6b0c17450b3953d 100644 (file)
@@ -26,8 +26,7 @@
 #include <QLineEdit>
 #include <QWidget>
 
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 namespace frontend {
index 02a344ef9ea1ee406c652d121f9fbbea225929f2..aad055d2f0fe36ba0634ba67e4cbe4da1f8f0d5d 100644 (file)
@@ -43,9 +43,7 @@
 #include <fstream>
 #include <locale>
 
-using std::string;
-using std::vector;
-using std::endl;
+using namespace std;
 
 namespace lyx {
 
index fc4e211b58ea61d4adf19c0e3c946484ae809364..2d6d05720aa2daeb5682e14604978be1ec944adf 100644 (file)
@@ -5,10 +5,7 @@
 
 #include <boost/regex.hpp>
 
-
-using std::cout;
-using std::endl;
-using std::string;
+using namespace std;
 
 // Escape special chars.
 // All characters are literals except: '.|*?+(){}[]^$\'
index 57bb6a9e5f8f5fd4a91d7d5f620988d17129ffd8..ed87453fa1db32f05491f07570f71469694b6ad8 100644 (file)
@@ -21,8 +21,7 @@
 
 #include <map>
 
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 
index 229dd89e9048122bfb47c34844af98af77b9f103..4f90611033f6bc1fa51dbf8245984a6ac94ab064 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <boost/bind.hpp>
 
+using namespace std;
 
 namespace lyx {
 
@@ -36,9 +37,6 @@ using support::onlyFilename;
 using support::tempName;
 using support::unzipFile;
 
-using std::endl;
-using std::string;
-
 
 namespace graphics {
 
index 9f736803cd1ff07c46a35b5e822587acd37480b4..fab772a7069558416189b468e16b3866ed8d960d 100644 (file)
@@ -28,7 +28,9 @@
 #include <sstream>
 #include <fstream>
 
-namespace support = lyx::support;
+using namespace std;
+
+namespace lyx {
 
 using support::addExtension;
 using support::changeExtension;
@@ -43,13 +45,6 @@ using support::quote_python;
 using support::subst;
 using support::tempName;
 
-using std::endl;
-using std::ostream;
-using std::ostringstream;
-using std::string;
-
-
-namespace lyx {
 namespace graphics {
 
 class Converter::Impl : public boost::signals::trackable {
index 36f6eec2dad5c3fa03fd457d430b4ac3c8fd4e28..5545ed194e4075b5585d6fdfbf3effa5c11b5c01 100644 (file)
 #include <set>
 #include <queue>
 
-using std::string;
-using std::endl;
-using std::list;
-
+using namespace std;
 
 namespace lyx {
 namespace graphics {
index 0677d95b2abc4d066e194a7ca8ccaedcb399611d..c5274f6552701f338f26d0343e829c74468f7013 100644 (file)
 
 #include <sstream>
 
-
-using std::string;
-using std::abs;
-
+using namespace std;
 
 namespace lyx {
 namespace graphics {
index f8f6f45a912079c4fe61c8b8cceb3738cdc63091..126bf55f6c0739e010aaba743d28925191913c44 100644 (file)
@@ -14,8 +14,7 @@
 
 #include <string>
 
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 namespace graphics {
index ba51f85ce4b41386ff4f15a47f4c7e7784dd146c..07d04d7b4d6f8659f0686b8dd8d2f0ffcf25bb1f 100644 (file)
@@ -20,8 +20,7 @@
 
 #include <boost/bind.hpp>
 
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 
index e13673bac365b305734f0841289cb94db83253c0..96afd27842483ed167f935b5358756b216cd2be9 100644 (file)
 #include <fstream>
 #include <iomanip>
 
-using lyx::support::FileName;
-
-using std::endl;
-using std::find;
-using std::fill;
-using std::find_if;
-using std::make_pair;
+using namespace std;
 
 using boost::bind;
-
-using std::ifstream;
-using std::list;
-using std::map;
-using std::ostringstream;
-using std::pair;
-using std::vector;
-using std::string;
-
+using lyx::support::FileName;
 
 namespace {
 
index 108df0e55576bddedf74407009417494442ea7d6..ec85244aa8ffda8ccdefcf34dcd9263a9acc84d6 100644 (file)
 
 #include <algorithm>
 
-using std::endl;
-using std::string;
-using std::vector;
-
+using namespace std;
 
 namespace lyx {
 
index 0c93cbe5eabd8a202c685613e668bf75add824b9..9f6ba3ce5d2aeca0605bf83f4b96db5e4e7cec53 100644 (file)
 
 #include <ostream>
 
-using std::endl;
-using std::for_each;
-using std::string;
-using std::ostream;
-using std::vector;
+using namespace std;
 
 namespace lyx {
 namespace external {
index 8506d8e8d2c98c4b70e126b971c9d07c031aadc4..6bbbb6813eaaab8d527f514203b197ee0edcb9bd 100644 (file)
 #include <cmath> // std::abs
 #include <sstream>
 
+using namespace std;
 
 namespace lyx {
 namespace external {
 
 using support::float_equal;
-using std::string;
-
 
 string const ExtraData::get(string const & id) const
 {
index 3f92e03234bcb21b8af2e7e7d0251fd67bd30ff5..726b93e234bbfc73b60a8fbe25c1141e027f596c 100644 (file)
@@ -39,6 +39,7 @@
 
 #include <boost/tokenizer.hpp>
 
+using namespace std;
 
 namespace lyx {
 
@@ -68,14 +69,6 @@ using support::lowercase;
 namespace Alert = frontend::Alert;
 namespace os = support::os;
 
-using std::endl;
-using std::getline;
-using std::string;
-using std::ostream;
-using std::pair;
-using std::vector;
-using std::map;
-
 
 InsetBibtex::InsetBibtex(InsetCommandParams const & p)
        : InsetCommand(p, "bibtex")
index df1bd4778429e96a48372a79d49502d7a666cc00..f6d6f6abbf09c5b8e18124930852ae1c7ef37658 100644 (file)
 
 #include <sstream>
 
+using namespace std;
 
 namespace lyx {
 
-using std::string;
-using std::istringstream;
-using std::ostream;
-using std::ostringstream;
-using std::endl;
-
-
 namespace {
 
 typedef Translator<std::string, InsetBox::BoxType> BoxTranslator;
index 641efa3024ca00747507a9395af045f742032966..8b9d8726627b324c390462e38ace82d5d17f7473 100644 (file)
 
 #include <sstream>
 
+using namespace std;
 
 namespace lyx {
 
-using std::string;
-using std::istringstream;
-using std::ostream;
-using std::ostringstream;
-
 
 InsetBranch::InsetBranch(BufferParams const & bp,
                         InsetBranchParams const & params)
index 0927cf0f48fb95f91105c134496e230061c04b19..6a67075e99894ad05420fd11b3b014afbe04f572 100644 (file)
 
 #include <sstream>
 
-
-using std::endl;
-using std::string;
-using std::ostream;
-
+using namespace std;
 
 namespace lyx {
 
index 5d5bbdacd278dea08ed56f78fdd93981a2c357c8..0a8929260fbd68fa54238cb909698ec2f0a003c7 100644 (file)
@@ -26,8 +26,7 @@
 
 #include <algorithm>
 
-using std::string;
-using std::vector;
+using namespace std;
 
 namespace lyx {
 
index 2a2d8db9f7d9859c35ab621f399f735fd0f1871f..a74072f25b8546e28c3d696934c5349419b9dd36 100644 (file)
 
 #include "support/docstream.h"
 
+using namespace std;
 
 namespace lyx {
 
-using std::endl;
-using std::max;
-using std::ostream;
-using std::string;
-
 
 InsetCollapsable::CollapseStatus InsetCollapsable::status() const
 {
index d811d9c0e6fb391d4dbfa892af5b5dc8388c9f1a..2cb37b4f0a9356e883a9a0ff95d64c0ade83f187 100644 (file)
 
 #include <sstream>
 
+using namespace std;
 
 namespace lyx {
 
-using std::string;
-using std::istringstream;
-using std::ostringstream;
-
 
 // FIXME Would it now be possible to use the InsetCode in 
 // place of the mailer name and recover that information?
index 39b066bace83c53fdb2ae64e9d10e4526b2266f9..ca248155d23a0a5907235b75fee9fb285c6b6f6e 100644 (file)
@@ -37,8 +37,7 @@
 
 #include <boost/assert.hpp>
 
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 
index 05da70c14fddac8ed9675e177f610ee898510991..4264fa6aa47c49e555926348f2770099ac97f82b 100644 (file)
 
 #include <sstream>
 
+using namespace std;
 
 namespace lyx {
 
 using support::token;
 
-using std::endl;
-using std::min;
-
-using std::istringstream;
-using std::ostream;
-using std::ostringstream;
-using std::string;
-
 
 InsetERT::InsetERT(BufferParams const & bp, CollapseStatus status)
        : InsetCollapsable(bp, status)
index 74339bc656ca9bc5732a78f11279e8e69b58eab2..2ce1566a4d8077f7aedfae38cc5df84ec83b8de7 100644 (file)
 
 #include <sstream>
 
-using std::string;
-using std::istringstream;
-using std::ostream;
-using std::ostringstream;
-using std::vector;
+using namespace std;
 
 using lyx::support::DocFileName;
 
index 654b9b7253193786c58cbabdcc9898498dfe2635..cf499e9862d5681cce769966dcbdc0fb25790cbd 100644 (file)
 
 #include <sstream>
 
+using namespace std;
 
 namespace lyx {
 
-using std::string;
-using std::ostream;
-
 
 InsetFlex::InsetFlex(BufferParams const & bp,
                                InsetLayout const & il)
index c601b647e839103b6b7882be5e2ec27720c16064..0d80dcbf5b777518a10143bd83278855722945df 100644 (file)
 #include "support/docstream.h"
 #include "support/convert.h"
 
+using namespace std;
 
 namespace lyx {
 
-using std::endl;
-using std::string;
-using std::istringstream;
-using std::ostream;
-using std::ostringstream;
-
 
 // With this inset it will be possible to support the latex package
 // float.sty, and I am sure that with this and some additional support
index eafb61065650f017744e99bb3502ba2f705c2ad1..cec2f9737280a7420050123dfaadbbb20e5c9c89 100644 (file)
 
 #include <ostream>
 
+using namespace std;
 
 namespace lyx {
 
 using support::bformat;
 
-using std::string;
-
 
 InsetFloatList::InsetFloatList()
        : InsetCommand(InsetCommandParams(FLOAT_LIST_CODE), "toc")
index 238f6b78bf7ec011eb0619f9a9a5707ba5c01039..44998604198acb5413cf9e8d7716388e7c6bfa1c 100644 (file)
 
 #include <ostream>
 
-namespace lyx {
+using namespace std;
 
-using std::string;
-using std::auto_ptr;
-using std::ostream;
+namespace lyx {
 
 
 InsetFoot::InsetFoot(BufferParams const & bp)
index be567ce62ede758ff7bb731ae0cf05c1ce1d6074..39e5fb5875494a7a6409e0c5eb49eedde6a1dba0 100644 (file)
@@ -89,6 +89,7 @@ TODO
 #include <algorithm>
 #include <sstream>
 
+using namespace std;
 
 namespace lyx {
 
@@ -111,12 +112,6 @@ using support::Systemcall;
 using support::unzipFile;
 using support::unzippedFileName;
 
-using std::endl;
-using std::string;
-using std::istringstream;
-using std::ostream;
-using std::ostringstream;
-
 
 namespace {
 
index 8fee672724347f4418e7314529a1691afaafe53f..e88ef42839e862401c4e73ffd800845c9d482633 100644 (file)
@@ -30,6 +30,7 @@
 
 #include <ostream>
 
+using namespace std;
 
 namespace lyx {
 
@@ -38,9 +39,6 @@ using support::readBB_from_PSFile;
 using support::token;
 using support::DocFileName;
 
-using std::string;
-using std::ostream;
-
 
 InsetGraphicsParams::InsetGraphicsParams()
 {
index 5c5e885a04a2be22f54a754b7f150752811dd41a..e254b93751f419e9c3dd6c2547a7d304d229dcaa 100644 (file)
@@ -22,9 +22,7 @@
 #include "support/lstrings.h"
 #include "support/docstream.h"
 
-using std::string;
-using std::find;
-using std::replace;
+using namespace std;
 
 namespace lyx {
 
index e8d91dfced42359f0810e2bf557a56767322d3ef..9aff3d66b84150f614554d523edb9273b690a3c5 100644 (file)
@@ -53,6 +53,7 @@
 
 #include <boost/bind.hpp>
 
+using namespace std;
 
 namespace lyx {
 
@@ -76,13 +77,6 @@ using support::onlyPath;
 using support::prefixIs;
 using support::subst;
 
-using std::find;
-using std::string;
-using std::istringstream;
-using std::ostream;
-using std::ostringstream;
-using std::vector;
-
 namespace Alert = frontend::Alert;
 
 
index 1c479b6bbdf43dc5eaeeb998580b17068202d835..35c09245bf3f415a3f7709794b168f7346eded84 100644 (file)
 
 #include <ostream>
 
+using namespace std;
 
 namespace lyx {
 
-using std::string;
-using std::ostream;
-
 
 InsetIndex::InsetIndex(BufferParams const & bp)
        : InsetCollapsable(bp)
index 16efeeefd62c50daea35c3dbaf4d927956277bb2..063c7bee73651d97d060139645d37d821a9c23f0 100644 (file)
 #include "support/lstrings.h"
 #include "support/ExceptionMessage.h"
 
-using std::pair;
-using std::string;
-using std::ostream;
-using std::ostringstream;
-using std::stack;
+using namespace std;
 
 namespace lyx {
 
index a12da398917aeec994ff7163f560fbed9c4b6f2d..f331092cec7e4c468d8091cbdf18a58fdaaa52fe 100644 (file)
 #include "frontends/Painter.h"
 
 
+using namespace std;
+
 namespace lyx {
 
 using frontend::Painter;
 
-using std::ostream;
-
 
 void InsetLine::read(Buffer const &, Lexer &)
 {
index 2d9fc167960a8c00cbd5ea3cf63573727ff51447..f205cc822c09eec5b05e47560694f8a769e5bb6a 100644 (file)
 
 #include <sstream>
 
-using std::istringstream;
-using std::ostream;
-using std::ostringstream;
-using std::string;
+using namespace std;
 
 namespace lyx {
 
index fb0be3e6050bdf3c3f96840ab4665ecca7896896..599e2f1e1382e1f59debec84205315f779d337c0 100644 (file)
 
 #include <sstream>
 
-using std::map;
-using std::vector;
-using std::ostream;
-using std::string;
-using std::exception;
+using namespace std;
 
 namespace lyx {
 
index 103fbe866a590ee12d8bdc6dc2618a8891caf7f5..104fdfab4851cf8d36c3a0e0f80e3b5c9eadf75b 100644 (file)
 #include "support/docstring.h"
 #include "support/docstream.h"
 
+using namespace std;
 
 namespace lyx {
 
-using std::endl;
-using std::ostream;
-
 
 void InsetNewline::read(Buffer const &, Lexer &)
 {
index dec08854d2877a7e4707ef5e548e51753045ba05..5dd474cbfa2e7ffa9a5c771e1e4abc996cbfd250 100644 (file)
 
 #include "support/docstream.h"
 
+using namespace std;
 
 namespace lyx {
 
-using std::string;
-
 
 InsetNomencl::InsetNomencl(InsetCommandParams const & p)
        : InsetCommand(p, "nomenclature"),
index e69bd6ee90ae2710ad872e0bf2851a47618af586..62c8915b6feb5b81daef8dab3c9567be2c69be02 100644 (file)
 #include <algorithm>
 #include <sstream>
 
+using namespace std;
 
 namespace lyx {
 
-using std::string;
-using std::istringstream;
-using std::ostream;
-using std::ostringstream;
-
-
 namespace {
 
 typedef Translator<std::string, InsetNoteParams::Type> NoteTranslator;
index 50b9ec18080daa473771ff79eb9a172e594c52e9..14a8f629b4ef80dd7e05b6f3c3c606e5cb76b324 100644 (file)
 #include "support/docstream.h"
 #include "support/lstrings.h"
 
+using namespace std;
 
 namespace lyx {
 
 using support::prefixIs;
 
-using std::endl;
-using std::string;
-using std::ostream;
-
-
 namespace {
 
 /* codes used to read/write quotes to LyX files
index 498a06b915db4d8a7d3c07e61971fc50e321be60..f22c2f67f18334bd52f60c62b5b0f0f113bfddde 100644 (file)
 #include "support/docstream.h"
 #include "support/lstrings.h"
 
+using namespace std;
 
 namespace lyx {
 
 using support::escape;
 
-using std::string;
-using std::ostream;
-
 
 InsetRef::InsetRef(InsetCommandParams const & p, Buffer const & buf)
        : InsetCommand(p, "ref"), isLatex(buf.isLatex())
index d1f2b399f4703aaf1a62ee315f593df2bfa6b295..5a5b10521033272ca4be98f983b5ac6da041ee5e 100644 (file)
 
 #include "support/docstream.h"
 
-namespace lyx {
+using namespace std;
 
-using std::string;
-using std::max;
-using std::ostream;
+namespace lyx {
 
 
 InsetSpace::InsetSpace()
index 0463795ee1210df7279b7b2d904edaab2c116365..b6f6b2ac83b438e9d6b0e951ceb8a64c9eaf0728 100644 (file)
 
 #include "support/docstream.h"
 
-namespace lyx {
+using namespace std;
 
-using std::string;
-using std::ostream;
+namespace lyx {
 
 
 InsetSpecialChar::InsetSpecialChar(Kind k)
index ea9345bb6da53eea5d3eb96cb6ae8a9d4d7d5f9b..dc4bb4f360a2b40c5d0c10b8d2ce5c2905041c9b 100644 (file)
 
 #include <ostream>
 
+using namespace std;
 
 namespace lyx {
 
-using std::string;
-using std::ostream;
-
 
 InsetTOC::InsetTOC(InsetCommandParams const & p)
        : InsetCommand(p, "toc")
index 8904bfc0b26a48b3f5081e8b4fdbe06911d4d54f..849f1a8513fa66e27333e187033337511232245f 100644 (file)
 #include <iostream>
 #include <limits>
 
-using std::abs;
-using std::endl;
-using std::getline;
-using std::istream;
-using std::istringstream;
-using std::max;
-using std::ostream;
-using std::ostringstream;
-using std::string;
-using std::swap;
-using std::vector;
-
-#ifndef CXX_GLOBAL_CSTD
-using std::strlen;
-#endif
+using namespace std;
 
 using boost::shared_ptr;
 using boost::dynamic_pointer_cast;
index 18c8c9543aaf58ddda4f9b576be7a2f8f0939992..830a3806262274f2a31ffabe8597fc2905475c4d 100644 (file)
 #include <boost/bind.hpp>
 #include <boost/assert.hpp>
 
+using namespace std;
+
+using boost::bind;
+using boost::ref;
 
 namespace lyx {
 
@@ -61,16 +65,6 @@ using graphics::PreviewLoader;
 
 using support::isStrUnsignedInt;
 
-using boost::bind;
-using boost::ref;
-
-using std::endl;
-using std::for_each;
-using std::max;
-using std::string;
-using std::ostream;
-using std::vector;
-
 
 InsetText::InsetText(BufferParams const & bp)
        : drawFrame_(false), frame_color_(Color_insetframe)
index 9a62fbf483a17da2c68fb5fde0dadd9a138b0f32..3dae9df1b2a973049dd1bc8a22ac5d2aea92431c 100644 (file)
 
 #include <ostream>
 
+using namespace std;
 
 namespace lyx {
 
-using std::endl;
-using std::ostream;
-
-
 /*
   The intention is to be able to create arbitrary theorem like environments
    sing this class and some helper/container classes. It should be possible
index 2444f675310d91c1e0742f92fcb8bbc17b59839c..24cfe3ebcf14869a9e8ddf1576e211d28143b992 100644 (file)
 
 #include <sstream>
 
+using namespace std;
 
 namespace lyx {
 
-using std::istringstream;
-using std::ostream;
-using std::ostringstream;
-using std::string;
-using std::max;
-
-
 namespace {
 
 int const ADD_TO_VSPACE_WIDTH = 5;
index aea6976a526561b70aa3bdb6a127a1862416ff40..9155960c2f4f833f9c42b0712075e8ca3043ca38 100644 (file)
 #include "support/convert.h"
 #include "support/docstream.h"
 
+using namespace std;
 
 namespace lyx {
 
-using std::string;
-using std::endl;
-using std::istringstream;
-using std::ostream;
-using std::ostringstream;
-
 
 InsetWrap::InsetWrap(BufferParams const & bp, string const & type)
        : InsetCollapsable(bp), name_(from_utf8(type))
index 04e0d886fa8ae5468c56b485514c899a77dc465d..5d61a3980c64e0f8193eada3cf0a8562452113e3 100644 (file)
 
 #include <boost/assert.hpp>
 
+using namespace std;
 
 namespace lyx {
 
-using std::string;
-
 
 void MailInset::showDialog(BufferView * bv) const
 {
index 4ad8ef126951fe7a1052429e35ecf1277104ec5d..233c86d58cfa0c816700ee57ed37cd286f5b6e5e 100644 (file)
 
 #include <boost/bind.hpp>
 
+using namespace std;
 
 namespace lyx {
 
 using support::FileName;
 
-using std::string;
-
 
 LyXRC_PreviewStatus RenderPreview::status()
 {
index 05baafaaa278a3057cc4495a3ecdcf4d271d0c44..b29b692f6e7844c145d0d325b519d2c465695be3 100644 (file)
@@ -17,9 +17,9 @@
 
 #include <string>
 
-namespace lyx {
+using namespace std;
 
-using std::string;
+namespace lyx {
 
 // I am not sure if "mu" should be possible to select (Lgb)
 
index e9a462a8759cf9ce42d26278e92dec4c34db5182..08c63fbb85d7bdd107be39d3f8ac595768b61a4e 100644 (file)
 #include "support/docstream.h"
 #include "support/lstrings.h"
 
+using namespace std;
+
 namespace lyx {
 
 using support::compare_no_case;
 using support::uppercase;
 using support::split;
 
-using std::advance;
-
 
 namespace {
 
index 01337c595f40a5422a0007ea2ee20255af48ca01..7c24458cf557dbab919f6d65ca3ed087de53193b 100644 (file)
 
 #include <sstream>
 
+using namespace std;
 
 namespace lyx {
 
-using std::string;
 
 CommandInset::CommandInset(docstring const & name)
        : InsetMathNest(2), name_(name), set_label_(false)
index 2941e5597de8edab98f81cc92fc380074933ea8b..1e929d28f4505c70825acbc624ad2402645775a8 100644 (file)
@@ -29,9 +29,7 @@
 
 #include <sstream>
 
-using std::string;
-using std::ostream;
-using std::endl;
+using namespace std;
 
 namespace lyx {
 
index 49d381cd94c3bea1555561c962dd6ac33b104889..b7c7d5761962a822e790d9ab9ccc10fe90fa228f 100644 (file)
@@ -23,8 +23,7 @@
 
 #include <boost/assert.hpp>
 
-using std::endl;
-
+using namespace std;
 
 namespace lyx {
 
index bbfb583b9e4ae57bb189962f23c52c0cc2188743..319e7ef55c6c85ac91dd37d6aad471f44c7b77a1 100644 (file)
 #include <iterator>
 #include <sstream>
 
+using namespace std;
 
 namespace lyx {
 
-using std::getline;
-using std::istringstream;
-using std::istream_iterator;
-using std::vector;
-using std::string;
-
 
 InsetMathArray::InsetMathArray(docstring const & name, int m, int n)
        : InsetMathGrid(m, n), name_(name)
index 8a45e2155534c9e76256926b50301fa91dd7de19..c38e91fda036c6848b36700abcf8b639f3c6f53f 100644 (file)
 
 #include <ostream>
 
+using namespace std;
 
 namespace lyx {
 
 using support::bformat;
 
-using std::endl;
-
 
 InsetMathCases::InsetMathCases(row_type n)
        : InsetMathGrid(2, n, 'c', from_ascii("ll"))
index 298a8a8263ace4e3586efb4ae6d7d8c2615ae668..5c732751a6d1649b4a68a5918fa0b145c9ee2775 100644 (file)
@@ -22,6 +22,7 @@
 
 #include "frontends/FontMetrics.h"
 
+using namespace std;
 
 namespace lyx {
 
@@ -72,7 +73,6 @@ void InsetMathDelim::normalize(NormalStream & os) const
 
 void InsetMathDelim::metrics(MetricsInfo & mi, Dimension & dim) const
 {
-       using std::max;
        Dimension dim0;
        cell(0).metrics(mi, dim0);
        Dimension t = theFontMetrics(mi.base.font).dimension('I');
index 360f1c17ef82299412212991b192fde51b754992..7b03387ba3abc06d96c0833a985c244ea04e9499 100644 (file)
 
 #include "support/docstream.h"
 
+using namespace std;
 
 namespace lyx {
 
-using std::string;
-
 
 InsetMathExFunc::InsetMathExFunc(docstring const & name)
        : InsetMathNest(1), name_(name)
index a7e0d6e349b74e2af0f23cffeec7c917b9cf7535..09df2b4973a93d2f029b45c6c2c67889e15093ac 100644 (file)
 
 #include <sstream>
 
+using namespace std;
 
 namespace lyx {
 
 using support::bformat;
 
-using std::endl;
-using std::max;
-using std::min;
-using std::swap;
-
-using std::string;
-using std::istream;
-using std::istringstream;
-using std::vector;
-
-
 namespace {
 
 docstring verboseHLine(int n)
index 894504e7a474ea63021fcfc38105af14acdcf11e..8cbb24e6e85846e9de10f952b2d0c64541a13717 100644 (file)
@@ -55,6 +55,7 @@
 
 #include <sstream>
 
+using namespace std;
 
 namespace lyx {
 
@@ -62,15 +63,6 @@ using cap::grabAndEraseSelection;
 using support::bformat;
 using support::subst;
 
-using std::endl;
-using std::max;
-using std::ostream;
-using std::istringstream;
-using std::ostringstream;
-using std::swap;
-using std::vector;
-
-
 namespace {
 
        int getCols(HullType type)
index 680eb4df8fc5bb99ea8fc96da6ef5e21cd8a47f3..4fc4ffd95e3406661b26aac9d8b8ca5ff6db54e4 100644 (file)
 #include "TexRow.h"
 #include "TextMetrics.h"
 
+using namespace std;
 
 namespace lyx {
 
-using std::endl;
-
 
 InsetMathMBox::InsetMathMBox()
 {
index 99edfadb8bc4bffeac0fd28ca07beafc6732d65b..c23be25152653cb47cf0f6d9de1c058dae6d8cd9 100644 (file)
@@ -59,6 +59,7 @@
 
 #include <sstream>
 
+using namespace std;
 
 namespace lyx {
 
@@ -68,10 +69,6 @@ using cap::cutSelection;
 using cap::replaceSelection;
 using cap::selClearOrDel;
 
-using std::endl;
-using std::string;
-using std::istringstream;
-
 
 InsetMathNest::InsetMathNest(idx_type nargs)
        : cells_(nargs), lock_(false), mouse_hover_(false)
index a352c6f8618337922ea1347af76d36a7cadafb04..86d68f29d6811cb03e5905ad008315cc7ac3211e 100644 (file)
 #include "MathStream.h"
 #include "MathSupport.h"
 
+using namespace std;
 
 namespace lyx {
 
-using std::vector;
 
 InsetMathNumber::InsetMathNumber(docstring const & s)
        : str_(s)
index 35322dcda5c35a652c8183dc9c88a8ddb2e4f2bf..f17acde308ce9a8003ef40c2ca0cb17660d9e2a0 100644 (file)
@@ -30,8 +30,7 @@
 
 #include <ostream>
 
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 
index 2c453bafa1fcb6335ddf70a630fc546ae419b0f4..0017e1c9542e38111970fac0ce880dd1d6b9e97a 100644 (file)
@@ -18,6 +18,7 @@
 
 #include "frontends/Painter.h"
 
+using namespace std;
 
 namespace lyx {
 
@@ -35,7 +36,6 @@ Inset * InsetMathRoot::clone() const
 
 void InsetMathRoot::metrics(MetricsInfo & mi, Dimension & dim) const
 {
-       using std::max;
        InsetMathNest::metrics(mi);
        Dimension const & dim0 = cell(0).dimension(*mi.base.bv);
        Dimension const & dim1 = cell(1).dimension(*mi.base.bv);
index 8b1c0e1fc56a61edb9508b598e7d32b89e59c1c3..a6d81617d7e64a4e011d557653ed5dfc0353ec95 100644 (file)
 
 #include <ostream>
 
+using namespace std;
 
 namespace lyx {
 
-using std::string;
-using std::max;
 
 InsetMathScript::InsetMathScript()
        : InsetMathNest(1), cell_1_is_up_(false), limits_(0)
index 88701f2f5643d0928d784c5280335cf24042e3a8..7d44accf7bd2146919a953d62332611c67dd73aa 100644 (file)
@@ -18,7 +18,7 @@
 
 #include "frontends/Painter.h"
 
-using std::string;
+using namespace std;
 
 namespace lyx {
 
index d5a7200b2f481f2f7d9b5018b622c27df7221ff1..647f5cf7371eeed6b9354a4041cf2138bb05b532 100644 (file)
 
 #include <ostream>
 
+using namespace std;
 
 namespace lyx {
 
 using support::bformat;
 
-using std::string;
-
 
 InsetMathSplit::InsetMathSplit(docstring const & name, char valign)
        : InsetMathGrid(1, 1, valign, docstring()), name_(name)
index 433f7cca59cb65c633c5e97e04bcf20e65a20141..1ecf2b04e7d4674aee8498bdcffb633da32851e7 100644 (file)
 
 #include <ostream>
 
+using namespace std;
+
 namespace lyx {
 
 using support::bformat;
 
-using std::string;
 
 InsetMathSubstack::InsetMathSubstack()
        : InsetMathGrid(1, 1)
index 62acb0a17420b0fdc12394c5a08ec90fae922b1e..22f20a2b61c33d4000688c31348579c0cbb19c54 100644 (file)
 #include "frontends/Painter.h"
 #include "support/debug.h"
 
+using namespace std;
 
 namespace lyx {
 
 
-using std::max;
-
-
 InsetMathXYArrow::InsetMathXYArrow()
        : InsetMathNest(2)
 {}
index fb46f401702d3e8ea09b56f5c308a9d859e56b5f..3b163db43a66ea3b3dde27a326f316c6733fb9af 100644 (file)
 
 #include <sstream>
 
+using namespace std;
 
 namespace lyx {
 
-using std::endl;
-using std::istringstream;
-using std::map;
-using std::pair;
-using std::string;
-using std::vector;
-using std::size_t;
-
 
 /////////////////////////////////////////////////////////////////////
 //
index cd476cdb29f5d9a3397332dfcf962a1cd8d75d52..6787e282f3a5adb158cabbc6a67a9f520b143ae3 100644 (file)
 #include "MathAtom.h"
 #include "InsetMath.h"
 
+using namespace std;
 
 namespace lyx {
 
-using std::swap;
-
 
 MathAtom::MathAtom()
        : nucleus_(0)
index c8b6788af5235331b33417a6e1100337787dedf2..958a12652674226c7a5bbffb0e99541341f25313 100644 (file)
 #include <fstream>
 #include <sstream>
 
+using namespace std;
 
 namespace lyx {
 
 using support::libFileSearch;
 
-using std::string;
-using std::ifstream;
-using std::endl;
-using std::vector;
-
 namespace {
 
 class Correction {
index 253a888c745eae46e9b70832dc3b3cfd3753193b..5cb566d8ca4cd4244fefd1e7728ec589c8899186 100644 (file)
 #include <boost/assert.hpp>
 #include <boost/next_prior.hpp>
 
+using namespace std;
 
 namespace lyx {
 
-using std::abs;
-using std::endl;
-using std::min;
-using std::ostringstream;
-using std::string;
-using std::vector;
-
 
 MathData::MathData(const_iterator from, const_iterator to)
        : base_type(from, to)
index 49b01631d1993dd94887a80f7c9586d00b260974..4ca2e021c4b5563242fc5378259287a64b23ea0a 100644 (file)
@@ -44,6 +44,7 @@
 #include <sstream>
 #include <fstream>
 
+using namespace std;
 
 namespace lyx {
 
@@ -56,15 +57,6 @@ using support::quoteName;
 using support::tempName;
 using support::subst;
 
-using std::auto_ptr;
-using std::endl;
-using std::find_if;
-using std::istringstream;
-using std::ostream;
-using std::swap;
-using std::string;
-using std::vector;
-
 static char const * function_names[] = {
        "arccos", "arcsin", "arctan", "arg", "bmod",
        "cos", "cosh", "cot", "coth", "csc", "deg",
index 8af81f3a8d573cb2bfa9b31fcf75a50150d38ccb..d79885b3b208df7606806e0c105f5ffada852b42 100644 (file)
 
 #include "frontends/FontLoader.h"
 
+using namespace std;
 
 namespace lyx {
 
 using support::libFileSearch;
 using support::split;
 
-using std::string;
-using std::endl;
-using std::istringstream;
-using std::vector;
-
 bool has_math_fonts;
 
 
index 19ca28cf1b210f456554c50e60b77f92a35192a5..b3cc80ae72be76cd212376a013b0abf66f47525c 100644 (file)
 #include <ostream>
 #include <vector>
 
-namespace lyx {
+using namespace std;
 
-using std::string;
-using std::max;
+namespace lyx {
 
 
 /// A proxy for the macro values
index 3ff517eb86031d7e8cdd2595e8efa1f05f997037..9e92ba97861020a8a6e2ebbe0903e73be5be223c 100644 (file)
 
 #include <sstream>
 
+using namespace std;
 
 namespace lyx {
 
 using support::bformat;
 
-using std::ostream;
-using std::endl;
-
 
 class InsetMathWrapper : public InsetMath {
 public:
index 4c3f60a433a3fa75c386ab671175cb50cd36dca7..84069deb2b2841827b01bdb9b0f4b7a3fb5610b9 100644 (file)
@@ -70,21 +70,11 @@ following hack as starting point to write some macros:
 
 #include <sstream>
 
-
-namespace lyx {
-
-using std::endl;
-using std::fill;
-
-using std::string;
-using std::ios;
-using std::istream;
-using std::ostream;
-using std::vector;
-
-
 //#define FILEDEBUG
 
+using namespace std;
+
+namespace lyx {
 
 namespace {
 
index 43d618f8ce34d8aa639528247c5b16581e16db74..c30da8240ab018150a9e2a45a80f34d409cd9099 100644 (file)
 #include <algorithm>
 #include <ostream>
 
+using namespace std;
 
 namespace lyx {
 
-using std::strlen;
-
 
 //////////////////////////////////////////////////////////////////////
 
index 5a60602c8f991c24015557eda08496c6f6bbd292..aa3a627addc7ad3734d7045ebc8e94c780540c46 100644 (file)
 #include <map>
 #include <sstream>
 
+using namespace std;
 
 namespace lyx {
 
 using frontend::Painter;
 
-using std::max;
-using std::endl;
-
 
 ///
 class Matrix {
index b3377b3762994061beb1d2c55211dd37e115f360..0e51cf3becc8440a9162e36f8b2fe79a61a2a2c9 100644 (file)
 #include "support/filetools.h"
 #include "support/lstrings.h"
 
+using namespace std;
 
 namespace lyx {
 
 using support::bformat;
 using support::FileName;
 
-using std::ofstream;
-using std::string;
-
 namespace {
 
 template<typename OFStream>
index ba4bc9b09e01a1596f0c33621af5d8da9d6c3237..6103990257adc0d32ce49733bd3694e1ed9ec4c0 100644 (file)
 
 #include <boost/next_prior.hpp>
 
+using namespace std;
 
 namespace lyx {
 
 using support::subst;
 
-using std::endl;
-using std::ostream;
-using std::vector;
-using std::string;
-
 namespace {
 
 ParagraphList::const_iterator searchParagraph(
index e953d91d9de82e7cdc7426eab72ec4f8864e6c54..5d1090c3045ecd1c6a3c4e77a9077f2dbe29a925 100644 (file)
 
 #include <boost/next_prior.hpp>
 
+using namespace std;
+
 namespace lyx {
 
 using support::subst;
 
-using std::endl;
-using std::string;
-using std::pair;
-using std::make_pair;
-
-
 namespace {
 
 
index eb11c576600a1bfa558f709c2cc7f6b79375f32e..f9629e920307ec3ca1c4ed2fe9acb5c9c28215ef 100644 (file)
@@ -25,6 +25,7 @@
 
 #include "support/lstrings.h"
 
+using namespace std;
 
 namespace lyx {
 
@@ -33,11 +34,6 @@ using support::compare_ascii_no_case;
 using support::contains;
 using support::FileName;
 
-using std::endl;
-using std::ostream;
-using std::pair;
-using std::string;
-
 
 void writePlaintextFile(Buffer const & buf, FileName const & fname,
        OutputParams const & runparams)
index 9e56bd550bd3105df4049dd08ff3d74e4c42ee7e..2f87daf5b59d553417418371384dfc34fcdc7750 100644 (file)
 
 #include <boost/next_prior.hpp>
 
+using namespace std;
 
 namespace lyx {
 
-using std::endl;
-
-
 static bool moveItem(Paragraph & fromPar, pos_type fromPos,
        Paragraph & toPar, pos_type toPos, BufferParams const & params)
 {
index 653c9d12769df04d4ef9bdb783ad3df8285d3883..a95870bdf5c9711f0f33861df71e2aca351d4e7a 100644 (file)
 
 #include <ostream>
 
-using std::endl;
-using std::max;
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 
index 6568a35bcd4ae172661339885e9db06a23b62bcb..4addbd319a5680f7c80d00811d359174faaac890 100644 (file)
 #include <map>
 #include <ostream>
 
+using namespace std;
 
 namespace lyx {
 
 using support::subst;
 
-using std::map;
-using std::ostream;
-using std::ostringstream;
-using std::string;
-
 docstring sgml::escapeChar(char_type c)
 {
        docstring str;
index 4b39efdfdad3adf8b03300ce5dbe48c3666c3d85..e4e79c721fb66e1d0ab6356081f5220df25eefc3 100644 (file)
 
 #include <sstream>
 
-using std::distance;
-using std::ostringstream;
-using std::string;
-using std::vector;
-
+using namespace std;
 
 namespace {
 
index d9571bcc01e95210eddfe9f65b05b03c52d5934f..f7cca518ab6ad5778cc5decdd151fb9e2a0f560e 100644 (file)
@@ -19,8 +19,7 @@
 #include <boost/bind.hpp>
 #include <boost/signals/trackable.hpp>
 
-
-using std::string;
+using namespace std;
 
 namespace lyx {
 namespace support {
index 32422b81468efd2bc1ac538ed138e43c5b3229ac..40e717516c971614267e9dab8f06f3678b205061 100644 (file)
@@ -25,6 +25,7 @@
 #include <QFile>
 #include <QFileInfo>
 #include <QList>
+#include <QTime>
 
 #include <boost/assert.hpp>
 
 #include <cerrno>
 #include <fcntl.h>
 
-
-using std::map;
-using std::string;
-using std::ifstream;
-using std::ostringstream;
-using std::endl;
+using namespace std;
 
 namespace lyx {
 namespace support {
@@ -295,8 +291,15 @@ unsigned long FileName::checksum() const
                LYXERR0('"' << absFilename() << "\" is a directory!");
                return 0;
        }
-       LYXERR0("Checksumming \"" << absFilename() << "\".");
-       return sum(absFilename().c_str());
+       if (!lyxerr.debugging(Debug::FILES))
+               return sum(absFilename().c_str());
+
+       QTime t;
+       t.start();
+       unsigned long r = sum(absFilename().c_str());
+       lyxerr << "Checksumming \"" << absFilename() << "\" lasted "
+               << t.elapsed() << " ms." << endl;
+       return r;
 }
 
 
index 03e99ee32dae036a3aa4d04010b4a8fffeae40f2..545ebeac983ae75eb723b65e590fc6c889d5e5d6 100644 (file)
 #  include <unistd.h>
 # endif
 # include <sys/wait.h>
-# ifndef CXX_GLOBAL_CSTD
-  using std::signal;
-  using std::strerror;
-# endif
 #endif
 
+using namespace std;\r
+\r
 using boost::bind;
 
-using std::endl;
-using std::equal_to;
-using std::find_if;
-using std::string;
-using std::vector;
-
-
 namespace lyx {
 namespace support {
 
index 7c57b92cd2acc2cd08ebaab38cc7c35ec2c22ab7..00735e480871659b56f8987b80a3987530d690f8 100644 (file)
@@ -21,8 +21,7 @@
 
 #include <cerrno>
 
-using std::map;
-using std::string;
+using namespace std;
 
 namespace {
 
index b526df6d4d15399e1fec67233829056dd968ff7d..9ffc8dc3f8ed24279bfc0d445ad556080f8599dd 100644 (file)
@@ -38,7 +38,7 @@
 # include <CoreServices/CoreServices.h> // FSFindFolder, FSRefMakePath
 #endif
 
-using std::string;
+using namespace std;
 
 namespace lyx {
 namespace support {
index b7ce3fc90bd33ee2d17ce1a707fbbf105c3cd880..125d40492c97eeef2662a5c0b9bcb2a204efd87f 100644 (file)
 
 #include <string>
 
+using namespace std;
 
 namespace lyx {
 
 using boost::lexical_cast;
 
-using std::string;
-
-
 template<>
 string convert<string>(bool b)
 {
index 98d1ed78c53addcf29946a3133f40add6e7e731a..3c7c43ad56f2b21ef428db3b478ad3b70c93cea9 100644 (file)
 # include <sys/types.h>
 #endif
 
-
-using std::ifstream;
-using std::ofstream;
-using std::ios;
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 namespace support {
index 2e1c7ab1d91822f88829fb7d99cba0d6916faf47..a20e06b41593e56a2cdbdd05932763bc5f994f06 100644 (file)
 #include <iostream>
 #include <iomanip>
 
-using std::setw;
-using std::string;
-using std::ostream;
-
+using namespace std;
 
 namespace lyx {
 
index 481fd8555af396a1a104d832225502d013ffbfee..3dad26c329ecc72ad03ce46c1b5660eedfd90064 100644 (file)
 #include <iconv.h>
 #include <locale>
 
+using namespace std;
 
 using lyx::ucs4_codeset;
 
-using std::string;
-
-
 namespace {
 
 // We use C IO throughout this file, because the facets might be used with
index 477dbf6848ed5b56f926e7ab25a8c1461eab19a8..e1bbaccc0618ed8b385dc462559d6d9cc1b804ca 100644 (file)
@@ -23,9 +23,7 @@
 #include <map>
 #include <sstream>
 
-using std::string;
-using std::vector;
-
+using namespace std;
 
 namespace lyx {
 namespace support {
index cc77812708580b7ddc40427df9fa3e73da35bbd4..feb90e752c928795ed58d2e151782f3025274416 100644 (file)
 #include <fstream>
 #include <sstream>
 
-using std::endl;
-using std::getline;
-using std::make_pair;
-using std::string;
-using std::ifstream;
-using std::ostringstream;
-using std::vector;
-using std::pair;
+using namespace std;
 
 namespace lyx {
 namespace support {
index ce3a52da6dd58df5e320dc5e5d1f4e7a433de514..9cd1a3ffbd7795e01275d4bc13bcbe842b91d2ac 100644 (file)
@@ -20,8 +20,7 @@
 #  include <locale.h>
 #endif
 
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 
index 1952300ecd305f17713893761bb51ce291e591f8..aa5bbc6cbc024c565be155da640614ddaae2ce67 100644 (file)
 #include <algorithm>
 #include <sstream>
 
-
-using std::transform;
-using std::string;
-using std::vector;
-
-#ifndef CXX_GLOBAL_CSTD
-using std::isdigit;
-using std::tolower;
-using std::toupper;
-#endif
-
+using namespace std;
 
 namespace lyx {
 
index e191a32bb8dc116cada1da9edd477c3d9afb817e..781ca7f5591b1d8cfb9f8385f9201a425dee270c 100644 (file)
@@ -19,8 +19,7 @@
 #include <algorithm>
 #include <iomanip>
 
-using std::endl;
-using std::string;
+using namespace std;
 
 // OK, this is ugly, but it is the only workaround I found to compile
 // with gcc (any version) on a system which uses a non-GNU toolchain.
@@ -92,7 +91,6 @@ unsigned long sum(char const * file)
 #include <fstream>
 #include <iterator>
 
-
 namespace {
 
 template<typename InputIterator>
@@ -110,11 +108,6 @@ unsigned long do_crc(InputIterator first, InputIterator last)
 namespace lyx {
 namespace support {
 
-using std::ifstream;
-using std::istreambuf_iterator;
-using std::istream_iterator;
-using std::ios;
-using std::ios_base;
 
 unsigned long sum(char const * file)
 {
index ad97912d3ed94135af1279b41c1e15322b709444..7f2530d41553b4b8649ac5920cf888307a60365d 100644 (file)
@@ -12,7 +12,7 @@
 
 #include "support/lyxtime.h"
 
-using std::string;
+using namespace std;
 
 namespace lyx {
 
index 964dcd6b29f76a4add37a343ba9ab70a9138370a..e6307a2cb02f549c448d996ae22f57a22b90eace 100644 (file)
 #include <string>
 #include <vector>
 #include <utility>
-using std::string;
-using std::vector;
-using std::pair;
-
 
 #ifdef HAVE_UNISTD_H
 # include <unistd.h>
@@ -94,10 +90,8 @@ using std::pair;
 #define WRITEBUFFERSIZE (16384)
 #define MAXFILENAME (256)
 
+using namespace std;\r
 
-#ifndef CXX_GLOBAL_CSTD
-using std::fgetc;
-#endif
 
 #ifdef WIN32
 uLong filetime(const char * f, tm_zip * tmzip, uLong * dt)
index 952f038f1a3357adc6dcdeae8923a975fd00f75c..cf57336f7dd176210c7ab29aff29db71a40779ee 100644 (file)
@@ -27,8 +27,7 @@
 
 #include <sys/cygwin.h>
 
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 namespace support {
index e2c772522168a5c502210683cf30f4bfd91e39a1..8e61c6564912bdf757ac6764b3e23d9d024ec262 100644 (file)
@@ -19,8 +19,7 @@
 #include <Carbon/Carbon.h>
 #endif
 
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 namespace support {
index 8c44bed84f037874d28a8b2e0f134d67c2eff187..4beaaa16e446c46e2e41f9c72bf3ff37666fa1f1 100644 (file)
@@ -62,8 +62,7 @@
 # endif
 #endif
 
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 namespace support {
index 9215228df9cee6d21a7032f06b8fbdbfc5767796..7537e126043afd9f91b5ec37b2f4fe45237d8b8f 100644 (file)
@@ -50,11 +50,8 @@ int accept(int)
 
 #include <cerrno>
 
-using std::string;
+using namespace std;
 
-#ifndef CXX_GLOBAL_CSTD
-using std::strerror;
-#endif
 
 // This MACRO eppears to be defined only on Linux.
 #if !defined(SUN_LEN)
index 7030c2a72c87c60fa76c7f49c55e897724d62fda..e5d19f30fe8b650776f21e93937aa7cd613da22e 100644 (file)
@@ -42,9 +42,9 @@ extern "C" int mkstemp(char *);
 # endif
 #endif
 
-using boost::scoped_array;
+using namespace std;
 
-using std::string;
+using boost::scoped_array;
 
 namespace lyx {
 namespace support {
index 48cb1a186e3c34a2a489099511899a38252baf4b..d9bdc872f6d65d3dd2fc9d70d66c1c0ad7b3b724 100644 (file)
 #include <map>
 #include <string>
 
-using std::endl;
-using std::map;
-using std::make_pair;
-using std::string;
-using std::vector;
+using namespace std;
 
 namespace {
 
index 1b9b3c1a43f0e189b8b8e0be253c6dfa17bfcbc3..ca4e0e948077be62c8dba20631e24ac14dc682b1 100644 (file)
@@ -30,7 +30,7 @@
 # include <sys/types.h>
 #endif
 
-using std::string;
+using namespace std;
 
 namespace lyx {
 namespace support {
index ae64f434809d38962696c8b6d534ac52092df109..a587401907a474a35c9b75ba732d1ed123da3b1d 100644 (file)
 
 #include <iostream>
 
+using namespace std;
 
 namespace lyx {
 
-using std::ostream;
-using std::endl;
-using std::string;
-
-
 namespace {
 
 void begin_layout(ostream & os, LayoutPtr const & layout, TeXFont const & font,
index 24ee436ec218011c985d4f9699efb885dd7e525e..a5a3042683d0c84724b6430f9bbf4ba7ab0074ee 100644 (file)
@@ -14,7 +14,7 @@
 #include "Lexer.h"
 #include "support/lstrings.h"
 
-using std::string;
+using namespace std;
 
 namespace lyx {
 
index cdd5c3992160ac3a3d39d03b70a1f0b2bed9a074..2c826fed4aec579698464544f5876977173c52f9 100644 (file)
 #include <iostream>
 #include <sstream>
 
+using namespace std;
 
 namespace lyx {
 
-using std::cerr;
-using std::endl;
-using std::fill;
-using std::istream;
-using std::istringstream;
-using std::ostringstream;
-using std::ostream;
-using std::string;
-
-
 namespace {
 
 CatCode theCatcode[256];
index e073058e87a3a9a4a503667283c6e2282008bcac..49db80c9d948a15dd377489c15869b92be92caf0 100644 (file)
@@ -18,8 +18,7 @@
 #include <exception>
 #include <ostream>
 
-
-using std::endl;
+using namespace std;
 
 namespace boost {
 
index 30af6a6cb2a42764e2af7c0b5dbd3878690e8d2f..e5ba486957a34f680e1674611c44195b26b3c204 100644 (file)
 
 #include <iostream>
 
+using namespace std;
 
 namespace lyx {
 
-using std::cerr;
-using std::endl;
-
-using std::ostream;
-using std::string;
-
 
 bool is_math_env(string const & name)
 {
index 77f9c37df6efc68b271a5a44ef67831251810f57..235ff4579945e68f26948bf5adc350566f3e184e 100644 (file)
 #include <vector>
 #include <map>
 
+using namespace std;
 
 namespace lyx {
 
-using std::istringstream;
-using std::ostream;
-using std::ostringstream;
-using std::string;
-using std::vector;
-using std::cerr;
-using std::endl;
-using std::find;
-
 using support::FileName;
 using support::libFileSearch;
 using support::isStrDbl;
index 2fa33955e7888f9f60c06b063af5c34d9fadc521..79f750d8c79b5475c9f6dc71f1696be7d61b7aaa 100644 (file)
 #include <vector>
 #include <map>
 
+using namespace std;
 
 namespace lyx {
 
-using std::cerr;
-using std::endl;
-using std::istringstream;
-using std::ostream;
-using std::ostringstream;
-using std::string;
-using std::vector;
-
-
 // filled in preamble.cpp
-std::map<char, int> special_columns;
+map<char, int> special_columns;
 
 
 namespace {
index 32a06c6bde868e717e1b00c1ce217fe77ea36a07..eb576288500365d313160db188ab37980fed4023 100644 (file)
 #include <vector>
 #include <map>
 
+using namespace std;
 
 namespace lyx {
 
-using std::endl;
-using std::cout;
-using std::cerr;
-using std::getline;
-
-using std::ifstream;
-using std::ofstream;
-using std::istringstream;
-using std::ostringstream;
-using std::stringstream;
-using std::string;
-using std::vector;
-using std::map;
-
 using support::changeExtension;
 using support::FileName;
 using support::isStrUnsignedInt;
index c0d1258e63debe84f6196de45ddfeb1725981ef1..78069912df1c0167889d89cdd57d1ece8a49f8a9 100644 (file)
 #include <sstream>
 #include <vector>
 
-using std::cerr;
-using std::endl;
-using std::find;
-using std::map;
-using std::ostream;
-using std::ostringstream;
-using std::istringstream;
-using std::string;
-using std::vector;
+using namespace std;
 
 namespace lyx {