mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
Add missing headers. With thanks to Martin...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7688 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
7ca0c9d069
commit
cba1fa5848
@ -13,6 +13,7 @@
|
||||
#include "BranchList.h"
|
||||
#include "support/LAssert.h"
|
||||
|
||||
#include <functional>
|
||||
|
||||
using std::bind2nd;
|
||||
using std::remove_if;
|
||||
|
@ -1,3 +1,21 @@
|
||||
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
|
||||
|
@ -50,12 +50,13 @@
|
||||
#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();
|
||||
@ -141,9 +142,11 @@ InsetOld * createInset(FuncRequest const & cmd)
|
||||
|
||||
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");
|
||||
|
@ -12,7 +12,7 @@
|
||||
// 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,
|
||||
|
@ -1,3 +1,7 @@
|
||||
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.
|
||||
|
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
@ -21,6 +21,8 @@
|
||||
|
||||
#include <boost/regex.hpp>
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
using namespace lyx::support;
|
||||
|
||||
using std::ostringstream;
|
||||
|
@ -15,6 +15,8 @@
|
||||
#include "gettext.h"
|
||||
#include "language.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
using std::vector;
|
||||
|
||||
namespace {
|
||||
|
@ -1,3 +1,10 @@
|
||||
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:
|
||||
|
@ -17,6 +17,8 @@
|
||||
#include "lyx_forms.h"
|
||||
|
||||
#include "support/std_sstream.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <iomanip>
|
||||
|
||||
namespace support = lyx::support;
|
||||
|
@ -22,6 +22,8 @@
|
||||
|
||||
#include <boost/scoped_array.hpp>
|
||||
|
||||
#include <cmath>
|
||||
|
||||
using namespace lyx::support;
|
||||
|
||||
#ifndef CXX_GLOBAL_CSTD
|
||||
|
@ -24,6 +24,8 @@
|
||||
|
||||
#include "lyx_forms.h"
|
||||
|
||||
#include <cmath>
|
||||
|
||||
using namespace lyx::support;
|
||||
|
||||
using std::abs;
|
||||
|
@ -23,6 +23,8 @@
|
||||
|
||||
#include "lyx_forms.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
using namespace lyx::support;
|
||||
|
||||
using std::endl;
|
||||
|
@ -11,6 +11,7 @@
|
||||
#include "graph.h"
|
||||
#include "format.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
using std::queue;
|
||||
using std::vector;
|
||||
|
@ -24,7 +24,9 @@
|
||||
|
||||
// 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;
|
||||
|
||||
|
@ -15,10 +15,10 @@
|
||||
|
||||
#include "support/FileInfo.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <fstream>
|
||||
#include <iterator>
|
||||
|
||||
|
||||
using namespace lyx::support;
|
||||
|
||||
using std::ifstream;
|
||||
|
@ -40,6 +40,7 @@
|
||||
#include "support/os.h"
|
||||
#include "support/systemcall.h"
|
||||
|
||||
#include <cerrno>
|
||||
#include <fstream>
|
||||
|
||||
using namespace lyx::support;
|
||||
|
@ -39,8 +39,6 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include <fcntl.h>
|
||||
|
||||
#include "lyxserver.h"
|
||||
#include "debug.h"
|
||||
#include "lyxfunc.h"
|
||||
@ -48,10 +46,18 @@
|
||||
#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
|
||||
|
||||
|
||||
|
@ -15,6 +15,7 @@
|
||||
#include "texrow.h"
|
||||
#include "debug.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
using std::find_if;
|
||||
using std::endl;
|
||||
|
@ -39,6 +39,7 @@
|
||||
#include "undo_funcs.h"
|
||||
#include "text_funcs.h"
|
||||
|
||||
#include <clocale>
|
||||
|
||||
using namespace lyx::support;
|
||||
using namespace bv_funcs;
|
||||
|
@ -18,12 +18,8 @@
|
||||
|
||||
#include "support/lstrings.h"
|
||||
|
||||
|
||||
using namespace lyx::support;
|
||||
|
||||
#ifndef CXX_GLOBAL_CSTD
|
||||
using std::sscanf;
|
||||
#endif
|
||||
|
||||
namespace {
|
||||
|
||||
@ -357,7 +353,8 @@ VSpace::VSpace(string const & data)
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user