#include <boost/assert.hpp>
-using std::string;
+using namespace std;
namespace lyx {
#include <istream>
-using std::string;
+using namespace std;
namespace lyx {
#include "boost/regex.hpp"
-using std::string;
-using std::vector;
-using std::pair;
-using std::endl;
-using std::set;
+using namespace std;
namespace lyx {
#include <ostream>
-using std::ostream;
+using namespace std;
namespace lyx {
#include <algorithm>
-using std::string;
+using namespace std;
namespace lyx {
#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 {
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 {
#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;
#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 {
#include <boost/assert.hpp>
-using std::string;
+using namespace std;
namespace lyx {
#include <boost/format.hpp>
-using std::getline;
-using std::string;
-
+using namespace std;
namespace lyx {
#include <ostream>
#include <string>
-using std::endl;
-using std::string;
+using namespace std;
namespace lyx {
#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 {
#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 {
#include <map>
#include <sstream>
-using std::string;
+using namespace std;
namespace lyx {
#include <sstream>
-using std::endl;
-using std::ostringstream;
-using std::string;
+using namespace std;
namespace lyx {
#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 {
#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 {
#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 {
#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 {
#include <sstream>
-#ifndef CXX_GLOBAL_CSTD
-using std::strtol;
-#endif
-using std::endl;
-using std::string;
-
+using namespace std;
namespace lyx {
#include "ErrorList.h"
-using std::string;
-
+using namespace std;
namespace lyx {
#include <algorithm>
-using std::find;
-using std::string;
-using std::vector;
-
+using namespace std;
namespace lyx {
#include "FloatList.h"
#include "Floating.h"
-using std::string;
-
+using namespace std;
namespace lyx {
#include "Floating.h"
-using std::string;
+using namespace std;
namespace lyx {
#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 {
#include <ostream>
-using std::endl;
-
+using namespace std;
namespace lyx {
#include <algorithm>
-using std::distance;
+using namespace std;
namespace lyx {
#include "support/os.h"
#include "support/Systemcall.h"
-using std::find_if;
-using std::string;
-using std::distance;
-
+using namespace std;
namespace lyx {
#include <sstream>
#include <vector>
-using std::getline;
-using std::istringstream;
-using std::vector;
-using std::string;
-
+using namespace std;
namespace lyx {
#include <algorithm>
-using std::vector;
-using std::reverse;
-using std::fill;
-
+using namespace std;
namespace lyx {
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 {
#include "insets/InsetBranch.h"
-using std::lower_bound;
-
+using namespace std;
namespace lyx {
#include <sstream>
#include <utility>
-using std::endl;
-using std::ios;
-using std::ofstream;
-using std::string;
-
+using namespace std;
namespace lyx {
#include "frontends/KeySymbol.h"
-using std::make_pair;
-using std::string;
-
+using namespace std;
namespace lyx {
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 {
#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 {
#include <ostream>
-using std::endl;
-using std::string;
-
+using namespace std;
namespace lyx {
#include <ostream>
-using std::endl;
-using std::string;
+using namespace std;
namespace lyx {
#include <sstream>
#include <iomanip>
+using namespace std;
namespace lyx {
-using std::ostringstream;
-using std::string;
-
/////////////////////////////////////////////////////////////////////
//
#include <sstream>
#include <vector>
+using namespace std;
namespace lyx {
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;
-
//////////////////////////////////////////////////////////////////////
//
#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 {
#include <boost/assert.hpp>
+using namespace std;
namespace lyx {
using support::split;
using support::trim;
-using std::string;
-
/*
NAMING RULES FOR USER-COMMANDS
#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 {
#include "support/os.h"
#include "support/userinfo.h"
+using namespace std;
namespace lyx {
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!
#include "support/lstrings.h"
#include "support/lyxlib.h"
+using namespace std;
namespace lyx {
using support::makeAbsPath;
using support::tempName;
-using std::string;
-
namespace Alert = frontend::Alert;
#include <algorithm>
#include <ostream>
+using namespace std;
+using boost::bind;
namespace lyx {
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> {
#include <boost/assert.hpp>
+using namespace std;
namespace lyx {
-using std::string;
-
MetricsBase::MetricsBase()
: bv(0), font(), style(LM_ST_TEXT), fontname("mathnormal"),
#include <algorithm>
#include <ostream>
-using std::endl;
-using std::map;
-using std::string;
-using std::vector;
+using namespace std;
namespace lyx {
#include <fstream>
#include <sstream>
-using std::ios;
-using std::string;
+using namespace std;
namespace lyx {
#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");
#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)
#include <sstream>
#include <vector>
-using std::endl;
-using std::string;
-using std::ostream;
+using namespace std;
namespace lyx {
};
-
-
-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;
#include <stack>
#include <sstream>
+using namespace std;
namespace lyx {
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)
{
#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", ""
#include <boost/assert.hpp>
-namespace lyx {
+using namespace std;
-using std::string;
+namespace lyx {
PrinterParams::PrinterParams(Target t,
#include "Section.h"
+using namespace std;
namespace lyx {
-using std::string;
string const & Section::name() const
{
#endif
#include <fcntl.h>
+using namespace std;
namespace lyx {
using support::rtrim;
using support::split;
-using std::endl;
-using std::string;
-
/////////////////////////////////////////////////////////////////////
//
using boost::shared_ptr;
-using std::endl;
-using std::string;
-
+using namespace std;
namespace lyx {
#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 {
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)
#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"};
#include "support/gettext.h"
#include "support/docstring.h"
+using namespace std;
namespace lyx {
-using std::string;
-
bool SpellBase::alive()
{
#include <sstream>
-using std::auto_ptr;
-using std::string;
+using namespace std;
namespace lyx {
#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 {
#include <clocale>
#include <sstream>
-using std::endl;
-using std::string;
-using std::istringstream;
-using std::ostringstream;
+using namespace std;
namespace lyx {
#include <sstream>
-using std::endl;
-using std::find_if;
-using std::remove_if;
-using std::string;
-using std::ostream;
+using namespace std;
namespace lyx {
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
#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 {
#include <algorithm>
+using namespace std;
namespace lyx {
#ifdef HAVE_LIBAIKSAURUS
using support::bformat;
-using std::sort;
-using std::string;
-
Thesaurus::Thesaurus()
: aik_(new Aiksaurus)
#include "support/debug.h"
#include "support/docstream.h"
-using std::string;
-
+using namespace std;
namespace lyx {
#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
#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;
-
/////////////////////////////////////////////////////////////////////
//
#include <algorithm>
#include <ostream>
-using std::advance;
+using namespace std;
namespace lyx {
#include <fstream>
+using namespace std;
+
+using boost::regex;
+using boost::regex_match;
+using boost::smatch;
namespace lyx {
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)
{
#include "support/convert.h"
#include "support/lstrings.h"
+using namespace std;
namespace lyx {
using support::prefixIs;
using support::rtrim;
-using std::string;
-
namespace {
#include "Variables.h"
#include "support/LRegex.h"
+using namespace std;
void Variables::set(string const & var, string const & val)
{
#include <iostream>
-
namespace lyx {
-using std::endl;
-using std::cout;
int main() {
Variables vars;
#include <exception>
#include <iomanip>
-using std::endl;
+using namespace std;
using lyx::lyxerr;
using lyx::LyX;
#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>
#include <exception>
#include <ostream>
-
using std::endl;
namespace boost {
#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 {
#include <iostream>
#include <iomanip>
+using namespace std;
namespace lyx {
using support::bformat;
using support::isStrInt;
-using std::setw;
-using std::string;
-using std::ostream;
-
namespace {
struct ErrorItem {
#include "support/gettext.h"
#include "Messages.h"
+using namespace std;
namespace lyx {
# include <locale.h>
#endif
-using std::string;
-
namespace {
#include <sstream>
-using std::auto_ptr;
-using std::endl;
-using std::string;
-
+using namespace std;
namespace lyx {
#include "insets/InsetFloat.h"
#include "support/lstrings.h"
+using namespace std;
+
using lyx::support::contains;
-using std::string;
//namespace lyx {
#include <iomanip>
-using std::endl;
-
+using namespace std;
namespace lyx {
namespace frontend {
#include <exception>
-using std::endl;
-using std::map;
-using std::string;
-using std::vector;
-
+using namespace std;
namespace lyx {
#include <QCloseEvent>
#include <QLineEdit>
-using std::pair;
-using std::string;
-using std::vector;
-
+using namespace std;
namespace lyx {
namespace frontend {
#include <QLineEdit>
#include <QCloseEvent>
-using std::string;
-using std::vector;
-
+using namespace std;
namespace lyx {
namespace frontend {
#include <QPushButton>
#include <QCloseEvent>
-using std::string;
-using std::vector;
+using namespace std;
namespace lyx {
namespace frontend {
#include <QCloseEvent>
-using std::vector;
-using std::string;
-
+using namespace std;
namespace lyx {
namespace frontend {
#include <string>
#include <vector>
-using std::string;
-using std::vector;
-using std::pair;
+using namespace std;
namespace lyx {
namespace frontend {
#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()
#include <QToolTip>
#include <QVBoxLayout>
-using std::back_inserter;
-using std::transform;
-using std::string;
-using std::vector;
-
+using namespace std;
namespace lyx {
namespace frontend {
// Set to zero if unicode symbols are preferred.
#define USE_PIXMAP 1
-using std::string;
+using namespace std;
static char const * latex_delimiters[] = {
"(", ")", "{", "}", "[", "]",
#include <QSettings>
#include <QShowEvent>
-using std::string;
+using namespace std;
namespace lyx {
namespace frontend {
#include "FuncRequest.h"
#include "insets/InsetCommand.h"
-
-using std::string;
+using namespace std;
namespace lyx {
namespace frontend {
#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>
#include <QPushButton>
#include <QCloseEvent>
-using std::string;
-
+using namespace std;
namespace lyx {
namespace frontend {
#include <QTabWidget>
#include <QTextBrowser>
-using std::advance;
-using std::vector;
-using std::string;
-
+using namespace std;
namespace lyx {
namespace frontend {
#include <QCloseEvent>
#include <QPushButton>
-using std::string;
-
+using namespace std;
namespace lyx {
namespace frontend {
#include <boost/assert.hpp>
-using std::string;
+using namespace std;
namespace lyx {
namespace frontend {
#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 {
#include <utility>
-using std::string;
-using std::vector;
-using std::pair;
-using std::string;
-
+using namespace std;
namespace lyx {
namespace frontend {
#include <QLineEdit>
#include <QCloseEvent>
-using std::string;
-
+using namespace std;
namespace lyx {
namespace frontend {
#include <map>
-
-using std::string;
-using std::map;
+using namespace std;
namespace lyx {
#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 {
#include <fstream>
#include <sstream>
-using std::istringstream;
-using std::ostream;
-using std::string;
-
+using namespace std;
namespace lyx {
namespace frontend {
#include "support/debug.h"
#include "FuncRequest.h"
-using std::string;
-using std::map;
+using namespace std;
namespace lyx {
namespace frontend {
#include <QPushButton>
#include <QSpinBox>
-using std::ostringstream;
-using std::string;
+using namespace std;
namespace lyx {
namespace frontend {
#include <QWhatsThis>
#include <QCloseEvent>
-using std::string;
+using namespace std;
namespace lyx {
namespace frontend {
#include <QCloseEvent>
-using std::string;
-
+using namespace std;
namespace lyx {
namespace frontend {
#define USE_PIXMAP_CACHE 1
#endif
-using std::endl;
-using std::string;
-
+using namespace std;
namespace lyx {
namespace frontend {
#include <sstream>
-using std::istringstream;
-using std::ostringstream;
-using std::string;
-using std::endl;
+using namespace std;
namespace lyx {
namespace frontend {
using namespace Ui;
-using std::endl;
-using std::ostringstream;
-using std::string;
-using std::vector;
+using namespace std;
namespace lyx {
namespace frontend {
#include <QSpinBox>
#include <QPushButton>
-using std::string;
-
+using namespace std;
namespace lyx {
namespace frontend {
#include <QToolTip>
#include <QCloseEvent>
-using std::vector;
-using std::string;
+using namespace std;
namespace lyx {
namespace frontend {
#include <QCloseEvent>
#include <QShowEvent>
-using std::string;
-
+using namespace std;
namespace lyx {
namespace frontend {
#include <QPushButton>
#include <QCloseEvent>
-using std::vector;
-using std::string;
-
+using namespace std;
namespace lyx {
namespace frontend {
#include "frontends/alert.h"
-using std::string;
-
+using namespace std;
namespace lyx {
namespace frontend {
#include <QRadioButton>
#include <QLineEdit>
-using std::string;
-
+using namespace std;
namespace lyx {
namespace frontend {
#include <QSpinBox>
#include <QPushButton>
-using std::string;
-
+using namespace std;
namespace lyx {
namespace frontend {
#include <fstream>
#include <algorithm>
-using std::string;
-using std::vector;
-using std::endl;
+using namespace std;
namespace lyx {
namespace frontend {
#include "lyxfind.h"
#include "FuncRequest.h"
-using std::string;
-
+using namespace std;
namespace lyx {
namespace frontend {
#include <algorithm>
-using std::string;
-
+using namespace std;
namespace lyx {
namespace frontend {
#include <boost/assert.hpp>
+using namespace std;
static void initializeResources()
{
namespace lyx {
namespace frontend {
-using std::string;
-using std::endl;
-
using support::libFileSearch;
using support::subst;
using support::compare;
#include "TextClass.h"
#include "ToolbarBackend.h"
-
-using std::string;
+using namespace std;
namespace lyx {
namespace frontend {
#include <QPushButton>
#include <QValidator>
-using std::string;
-
+using namespace std;
namespace lyx {
namespace frontend {
# include <unistd.h>
#endif
-using std::endl;
-using std::string;
-using std::vector;
+using namespace std;
namespace lyx {
#include <QTextCursor>
#include <QTextDocument>
-using std::string;
+using namespace std;
namespace lyx {
namespace frontend {
#undef KeyPress
#undef NoModifier
-using std::endl;
-using std::min;
-using std::max;
-using std::string;
+using namespace std;
namespace lyx {
#include <QCloseEvent>
#include <QPushButton>
-using std::string;
-
+using namespace std;
namespace lyx {
namespace frontend {
#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)
{
#include <iostream>
-
-using std::endl;
-using std::cout;
+using namespace std;
namespace lyx {
namespace frontend {
#include <boost/assert.hpp>
-using std::max;
-using std::min;
+using namespace std;
namespace lyx {
namespace frontend {
#include <QLineEdit>
#include <QWidget>
-using std::string;
-
+using namespace std;
namespace lyx {
namespace frontend {
#include <fstream>
#include <locale>
-using std::string;
-using std::vector;
-using std::endl;
+using namespace std;
namespace lyx {
#include <boost/regex.hpp>
-
-using std::cout;
-using std::endl;
-using std::string;
+using namespace std;
// Escape special chars.
// All characters are literals except: '.|*?+(){}[]^$\'
#include <map>
-using std::string;
-
+using namespace std;
namespace lyx {
#include <boost/bind.hpp>
+using namespace std;
namespace lyx {
using support::tempName;
using support::unzipFile;
-using std::endl;
-using std::string;
-
namespace graphics {
#include <sstream>
#include <fstream>
-namespace support = lyx::support;
+using namespace std;
+
+namespace lyx {
using support::addExtension;
using support::changeExtension;
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 {
#include <set>
#include <queue>
-using std::string;
-using std::endl;
-using std::list;
-
+using namespace std;
namespace lyx {
namespace graphics {
#include <sstream>
-
-using std::string;
-using std::abs;
-
+using namespace std;
namespace lyx {
namespace graphics {
#include <string>
-using std::string;
-
+using namespace std;
namespace lyx {
namespace graphics {
#include <boost/bind.hpp>
-using std::string;
-
+using namespace std;
namespace lyx {
#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 {
#include <algorithm>
-using std::endl;
-using std::string;
-using std::vector;
-
+using namespace std;
namespace lyx {
#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 {
#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
{
#include <boost/tokenizer.hpp>
+using namespace std;
namespace lyx {
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")
#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;
#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)
#include <sstream>
-
-using std::endl;
-using std::string;
-using std::ostream;
-
+using namespace std;
namespace lyx {
#include <algorithm>
-using std::string;
-using std::vector;
+using namespace std;
namespace lyx {
#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
{
#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?
#include <boost/assert.hpp>
-using std::string;
-
+using namespace std;
namespace lyx {
#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)
#include <sstream>
-using std::string;
-using std::istringstream;
-using std::ostream;
-using std::ostringstream;
-using std::vector;
+using namespace std;
using lyx::support::DocFileName;
#include <sstream>
+using namespace std;
namespace lyx {
-using std::string;
-using std::ostream;
-
InsetFlex::InsetFlex(BufferParams const & bp,
InsetLayout const & il)
#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
#include <ostream>
+using namespace std;
namespace lyx {
using support::bformat;
-using std::string;
-
InsetFloatList::InsetFloatList()
: InsetCommand(InsetCommandParams(FLOAT_LIST_CODE), "toc")
#include <ostream>
-namespace lyx {
+using namespace std;
-using std::string;
-using std::auto_ptr;
-using std::ostream;
+namespace lyx {
InsetFoot::InsetFoot(BufferParams const & bp)
#include <algorithm>
#include <sstream>
+using namespace std;
namespace lyx {
using support::unzipFile;
using support::unzippedFileName;
-using std::endl;
-using std::string;
-using std::istringstream;
-using std::ostream;
-using std::ostringstream;
-
namespace {
#include <ostream>
+using namespace std;
namespace lyx {
using support::token;
using support::DocFileName;
-using std::string;
-using std::ostream;
-
InsetGraphicsParams::InsetGraphicsParams()
{
#include "support/lstrings.h"
#include "support/docstream.h"
-using std::string;
-using std::find;
-using std::replace;
+using namespace std;
namespace lyx {
#include <boost/bind.hpp>
+using namespace std;
namespace lyx {
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;
#include <ostream>
+using namespace std;
namespace lyx {
-using std::string;
-using std::ostream;
-
InsetIndex::InsetIndex(BufferParams const & bp)
: InsetCollapsable(bp)
#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 {
#include "frontends/Painter.h"
+using namespace std;
+
namespace lyx {
using frontend::Painter;
-using std::ostream;
-
void InsetLine::read(Buffer const &, Lexer &)
{
#include <sstream>
-using std::istringstream;
-using std::ostream;
-using std::ostringstream;
-using std::string;
+using namespace std;
namespace lyx {
#include <sstream>
-using std::map;
-using std::vector;
-using std::ostream;
-using std::string;
-using std::exception;
+using namespace std;
namespace lyx {
#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 &)
{
#include "support/docstream.h"
+using namespace std;
namespace lyx {
-using std::string;
-
InsetNomencl::InsetNomencl(InsetCommandParams const & p)
: InsetCommand(p, "nomenclature"),
#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;
#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
#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())
#include "support/docstream.h"
-namespace lyx {
+using namespace std;
-using std::string;
-using std::max;
-using std::ostream;
+namespace lyx {
InsetSpace::InsetSpace()
#include "support/docstream.h"
-namespace lyx {
+using namespace std;
-using std::string;
-using std::ostream;
+namespace lyx {
InsetSpecialChar::InsetSpecialChar(Kind k)
#include <ostream>
+using namespace std;
namespace lyx {
-using std::string;
-using std::ostream;
-
InsetTOC::InsetTOC(InsetCommandParams const & p)
: InsetCommand(p, "toc")
#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;
#include <boost/bind.hpp>
#include <boost/assert.hpp>
+using namespace std;
+
+using boost::bind;
+using boost::ref;
namespace lyx {
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)
#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
#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;
#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))
#include <boost/assert.hpp>
+using namespace std;
namespace lyx {
-using std::string;
-
void MailInset::showDialog(BufferView * bv) const
{
#include <boost/bind.hpp>
+using namespace std;
namespace lyx {
using support::FileName;
-using std::string;
-
LyXRC_PreviewStatus RenderPreview::status()
{
#include <string>
-namespace lyx {
+using namespace std;
-using std::string;
+namespace lyx {
// I am not sure if "mu" should be possible to select (Lgb)
#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 {
#include <sstream>
+using namespace std;
namespace lyx {
-using std::string;
CommandInset::CommandInset(docstring const & name)
: InsetMathNest(2), name_(name), set_label_(false)
#include <sstream>
-using std::string;
-using std::ostream;
-using std::endl;
+using namespace std;
namespace lyx {
#include <boost/assert.hpp>
-using std::endl;
-
+using namespace std;
namespace lyx {
#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)
#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"))
#include "frontends/FontMetrics.h"
+using namespace std;
namespace lyx {
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');
#include "support/docstream.h"
+using namespace std;
namespace lyx {
-using std::string;
-
InsetMathExFunc::InsetMathExFunc(docstring const & name)
: InsetMathNest(1), name_(name)
#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)
#include <sstream>
+using namespace std;
namespace lyx {
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)
#include "TexRow.h"
#include "TextMetrics.h"
+using namespace std;
namespace lyx {
-using std::endl;
-
InsetMathMBox::InsetMathMBox()
{
#include <sstream>
+using namespace std;
namespace lyx {
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)
#include "MathStream.h"
#include "MathSupport.h"
+using namespace std;
namespace lyx {
-using std::vector;
InsetMathNumber::InsetMathNumber(docstring const & s)
: str_(s)
#include <ostream>
-using std::string;
-
+using namespace std;
namespace lyx {
#include "frontends/Painter.h"
+using namespace std;
namespace lyx {
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);
#include <ostream>
+using namespace std;
namespace lyx {
-using std::string;
-using std::max;
InsetMathScript::InsetMathScript()
: InsetMathNest(1), cell_1_is_up_(false), limits_(0)
#include "frontends/Painter.h"
-using std::string;
+using namespace std;
namespace lyx {
#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)
#include <ostream>
+using namespace std;
+
namespace lyx {
using support::bformat;
-using std::string;
InsetMathSubstack::InsetMathSubstack()
: InsetMathGrid(1, 1)
#include "frontends/Painter.h"
#include "support/debug.h"
+using namespace std;
namespace lyx {
-using std::max;
-
-
InsetMathXYArrow::InsetMathXYArrow()
: InsetMathNest(2)
{}
#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;
-
/////////////////////////////////////////////////////////////////////
//
#include "MathAtom.h"
#include "InsetMath.h"
+using namespace std;
namespace lyx {
-using std::swap;
-
MathAtom::MathAtom()
: nucleus_(0)
#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 {
#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)
#include <sstream>
#include <fstream>
+using namespace std;
namespace lyx {
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",
#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;
#include <ostream>
#include <vector>
-namespace lyx {
+using namespace std;
-using std::string;
-using std::max;
+namespace lyx {
/// A proxy for the macro values
#include <sstream>
+using namespace std;
namespace lyx {
using support::bformat;
-using std::ostream;
-using std::endl;
-
class InsetMathWrapper : public InsetMath {
public:
#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 {
#include <algorithm>
#include <ostream>
+using namespace std;
namespace lyx {
-using std::strlen;
-
//////////////////////////////////////////////////////////////////////
#include <map>
#include <sstream>
+using namespace std;
namespace lyx {
using frontend::Painter;
-using std::max;
-using std::endl;
-
///
class Matrix {
#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>
#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(
#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 {
#include "support/lstrings.h"
+using namespace std;
namespace lyx {
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)
#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)
{
#include <ostream>
-using std::endl;
-using std::max;
-using std::string;
-
+using namespace std;
namespace lyx {
#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;
#include <sstream>
-using std::distance;
-using std::ostringstream;
-using std::string;
-using std::vector;
-
+using namespace std;
namespace {
#include <boost/bind.hpp>
#include <boost/signals/trackable.hpp>
-
-using std::string;
+using namespace std;
namespace lyx {
namespace support {
#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 {
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;
}
# 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 {
#include <cerrno>
-using std::map;
-using std::string;
+using namespace std;
namespace {
# include <CoreServices/CoreServices.h> // FSFindFolder, FSRefMakePath
#endif
-using std::string;
+using namespace std;
namespace lyx {
namespace support {
#include <string>
+using namespace std;
namespace lyx {
using boost::lexical_cast;
-using std::string;
-
-
template<>
string convert<string>(bool b)
{
# include <sys/types.h>
#endif
-
-using std::ifstream;
-using std::ofstream;
-using std::ios;
-using std::string;
-
+using namespace std;
namespace lyx {
namespace support {
#include <iostream>
#include <iomanip>
-using std::setw;
-using std::string;
-using std::ostream;
-
+using namespace std;
namespace lyx {
#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
#include <map>
#include <sstream>
-using std::string;
-using std::vector;
-
+using namespace std;
namespace lyx {
namespace support {
#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 {
# include <locale.h>
#endif
-using std::string;
-
+using namespace std;
namespace lyx {
#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 {
#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.
#include <fstream>
#include <iterator>
-
namespace {
template<typename InputIterator>
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)
{
#include "support/lyxtime.h"
-using std::string;
+using namespace std;
namespace lyx {
#include <string>
#include <vector>
#include <utility>
-using std::string;
-using std::vector;
-using std::pair;
-
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#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)
#include <sys/cygwin.h>
-using std::string;
-
+using namespace std;
namespace lyx {
namespace support {
#include <Carbon/Carbon.h>
#endif
-using std::string;
-
+using namespace std;
namespace lyx {
namespace support {
# endif
#endif
-using std::string;
-
+using namespace std;
namespace lyx {
namespace support {
#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)
# endif
#endif
-using boost::scoped_array;
+using namespace std;
-using std::string;
+using boost::scoped_array;
namespace lyx {
namespace support {
#include <map>
#include <string>
-using std::endl;
-using std::map;
-using std::make_pair;
-using std::string;
-using std::vector;
+using namespace std;
namespace {
# include <sys/types.h>
#endif
-using std::string;
+using namespace std;
namespace lyx {
namespace support {
#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,
#include "Lexer.h"
#include "support/lstrings.h"
-using std::string;
+using namespace std;
namespace lyx {
#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];
#include <exception>
#include <ostream>
-
-using std::endl;
+using namespace std;
namespace boost {
#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)
{
#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;
#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 {
#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;
#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 {