#include "BranchList.h"
#include "support/LAssert.h"
+#include <functional>
using std::bind2nd;
using std::remove_if;
+2003-09-05 Angus Leeming <leeming@lyx.org>
+
+ * factory.C (createInset):
+ * vspace.C (c-tor): replace sscanf call with an istringstream.
+ * ispell.C: re-add missing HP/UX headers.
+ * lyxserver.C: re-add missing os2 headers.
+
+2003-09-05 Martin Vermeer <martin.vermeer@hut.fi>
+
+ * BranchList.C:
+ * graph.C:
+ * ispell.C:
+ * lastfiles.C:
+ * lyx_cb.C:
+ * lyxserver.C:
+ * texrow.C:
+ * text3.C: re-add missing system headers, needed for 2.95.2.
+
2003-09-05 Angus Leeming <leeming@lyx.org>
Changes most place everywhere due to the removal of using directives
#include "frontends/Dialogs.h"
#include "frontends/LyXView.h"
#include "support/lstrings.h"
-
+#include "support/std_sstream.h"
using namespace lyx::support;
using std::endl;
+
InsetOld * createInset(FuncRequest const & cmd)
{
BufferView * bv = cmd.view();
case LFUN_TABULAR_INSERT:
if (!cmd.argument.empty()) {
- int r = 2;
- int c = 2;
- ::sscanf(cmd.argument.c_str(),"%d%d", &r, &c);
+ std::istringstream ss(cmd.argument);
+ int r, c;
+ ss >> r >> c;
+ if (r <= 0) r = 2;
+ if (c <= 0) c = 2;
return new InsetTabular(*bv->buffer(), r, c);
}
bv->owner()->getDialogs().show("tabularcreate");
// GUI-specific implementations
#include "support/std_string.h"
-
+#include <utility>
int prompt_pimpl(string const & title, string const & question,
int default_button, int escape_button,
+2003-09-05 Martin Vermeer <martin.vermeer@hut.fi>
+
+ * Alert_pimpl.h: re-add missing system headers, needed for 2.95.2.
+
2003-09-05 Angus Leeming <leeming@lyx.org>
* WorkArea.C: removed. It was entirely empty.
+2003-09-05 Martin Vermeer <martin.vermeer@hut.fi>
+
+ * biblio.C:
+ * frnt_lang.C: re-add missing system headers, needed for 2.95.2.
+
2003-09-05 Angus Leeming <leeming@lyx.org>
* GUI.h: ensure that the header file can be compiled stand-alone.
#include <boost/regex.hpp>
+#include <algorithm>
+
using namespace lyx::support;
using std::ostringstream;
#include "gettext.h"
#include "language.h"
+#include <algorithm>
+
using std::vector;
namespace {
+2003-09-05 Martin Vermeer <martin.vermeer@hut.fi>
+
+ * Color.C:
+ * ColorHandler.C:
+ * FontInfo.C:
+ * xfont_loader.C: re-add missing system headers, needed for 2.95.2.
+
2003-09-05 Angus Leeming <leeming@lyx.org>
* combox.h:
#include "lyx_forms.h"
#include "support/std_sstream.h"
+
+#include <cmath>
#include <iomanip>
namespace support = lyx::support;
#include <boost/scoped_array.hpp>
+#include <cmath>
+
using namespace lyx::support;
#ifndef CXX_GLOBAL_CSTD
#include "lyx_forms.h"
+#include <cmath>
+
using namespace lyx::support;
using std::abs;
#include "lyx_forms.h"
+#include <algorithm>
+
using namespace lyx::support;
using std::endl;
#include "graph.h"
#include "format.h"
+#include <algorithm>
using std::queue;
using std::vector;
// HP-UX 11.x doesn't have this header
#ifdef HAVE_SYS_SELECT_H
+#include <sys/select.h>
#endif
+#include <sys/time.h>
using namespace lyx::support;
#include "support/FileInfo.h"
+#include <algorithm>
#include <fstream>
#include <iterator>
-
using namespace lyx::support;
using std::ifstream;
#include "support/os.h"
#include "support/systemcall.h"
+#include <cerrno>
#include <fstream>
using namespace lyx::support;
#include <config.h>
-#include <fcntl.h>
-
#include "lyxserver.h"
#include "debug.h"
#include "lyxfunc.h"
#include "support/lyxlib.h"
#include "frontends/lyx_gui.h"
+#include <cerrno>
+#include <sys/stat.h>
+#include <fcntl.h>
+
#ifdef __EMX__
+#include <cstdlib>
+#include <io.h>
#define OS2EMX_PLAIN_CHAR
#define INCL_DOSNMPIPES
#define INCL_DOSERRORS
+#include <os2.h>
+#include "support/os2_errortable.h"
#endif
#include "texrow.h"
#include "debug.h"
+#include <algorithm>
using std::find_if;
using std::endl;
#include "undo_funcs.h"
#include "text_funcs.h"
+#include <clocale>
using namespace lyx::support;
using namespace bv_funcs;
#include "support/lstrings.h"
-
using namespace lyx::support;
-#ifndef CXX_GLOBAL_CSTD
-using std::sscanf;
-#endif
namespace {
else if (prefixIs (input, "bigskip")) kind_ = BIGSKIP;
else if (prefixIs (input, "vfill")) kind_ = VFILL;
else if (isValidGlueLength(input, &len_)) kind_ = LENGTH;
- else if (sscanf(input.c_str(), "%lf", &value) == 1) {
+ else if (isStrDbl(input)) {
+ value = strToDbl(input);
// This last one is for reading old .lyx files
// without units in added_space_top/bottom.
// Let unit default to centimeters here.