+1999-11-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * src/lyx_cb.C (RunLinuxDoc): add a cast to please dec cxx.
+
+ * src/chset.C: add "using std::ifstream;" to please dec cxx.
+
+ * src/lyx_main.C (init), INSTALL.OS2: the environment variable
+ which is used to point to LyX data is now LYX_DIR_11x.
+
+ * lyx.man: convert to a unix text file; small updates.
+
1999-11-15 Lars Gullik Bjønnes <larsbj@lyx.org>
* src/support/LSubstring.[Ch]: made the second arg of most of the
-INSTALL.OS2 file for OS/2 version of LyX 1.0.1
+INSTALL.OS2 file for OS/2 version of LyX 1.1.3
by Shigeru Miyata <miyata@kusm.kyoto-u.ac.jp>
modified by Arnd Hanses <Arnd.H.Hanses@rz.ruhr-uni-bochum.de>
##############################################################
its system configuration files in the directory
%X11ROOT%/XFree86/lib/X11/lyx
If you unpacked the distribution in directory c:\foo, add
- the environment variables LYX_LOCALEDIR and LYX_DIR_10x
+ the environment variables LYX_LOCALEDIR and LYX_DIR_11x
to config.sys to point to c:/foo/XFree86/lib/X11/locale and
c:/foo/XFree86/lib/X11/lyx as follows:
SET LYX_LOCALEDIR=c:/foo/XFree86/lib/X11/locale
- SET LYX_DIR_10x=c:/foo/XFree86/lib/X11/lyx
+ SET LYX_DIR_11x=c:/foo/XFree86/lib/X11/lyx
Note that, if you do not have any interest in having LyX display
its messages in other languages than english, you can safely
skip this step for LYX_LOCALEDIR.
.\"
.\" tbl lyx.1 | nroff -man | less
.\"
-.TH LYX 1 "October 1998" "Version 1.0" "LyX 1.0"
+.TH LYX 1 "November 1999" "Version 1.1" "LyX 1.1"
.SH NAME
lyx \- A Document Processor
.\"
obtained, rather than the default executable file name.
.SH ENVIRONMENT
.TP
-.B LYX_DIR_10x
+.B LYX_DIR_11x
can be used to specify which system directory to use.
.PP
The system directory is determined by searching for the file
.br
1) -sysdir command line parameter
.br
-2) LYX_DIR_10x environment variable
+2) LYX_DIR_11x environment variable
.br
3) Maybe <path of binary>/TOP_SRCDIR/lib
.br
.SH AUTHOR
Copyright
.Cr
-1995, 1996, 1997, 1998 by Matthias Ettrich (ettrich@informatik.uni-tuebingen.de)
+1995, 1996, 1997, 1998, 1999 by Matthias Ettrich (ettrich@informatik.uni-tuebingen.de)
and the rest of the \fBLyX Team\fR (See Credits under the Help menu
item).
-\1a
\ No newline at end of file
#endif
#include <fstream>
+using std::ifstream;
#include "chset.h"
#include "support/filetools.h"
if (!current_view->available())
return 0;
current_view->buffer()->makeLinuxDocFile(name, 0);
- BufferParams::PAPER_SIZE ps = current_view->buffer()->params.papersize;
+#ifdef WITH_WARNINGS
+#warning remove this once we have a proper geometry class
+#endif
+ BufferParams::PAPER_SIZE ps = static_cast<BufferParams::PAPER_SIZE>(current_view->buffer()->params.papersize);
switch (ps) {
case BufferParams::PAPER_A4PAPER: add_flags = "-p a4"; break;
case BufferParams::PAPER_USLETTER: add_flags = "-p letter"; break;
// Directories are searched in this order:
// 1) -sysdir command line parameter
- // 2) LYX_DIR_10x environment variable
+ // 2) LYX_DIR_11x environment variable
// 3) Maybe <path of binary>/TOP_SRCDIR/lib
// 4) <path of binary>/../share/<name of binary>/
// 4a) repeat 4 after following the Symlink if <path of
if (!system_lyxdir.empty())
searchpath= MakeAbsPath(system_lyxdir) + ';';
- // LYX_DIR_10x environment variable
- string lyxdir = GetEnvPath("LYX_DIR_10x");
+ // LYX_DIR_11x environment variable
+ string lyxdir = GetEnvPath("LYX_DIR_11x");
if (!lyxdir.empty()) {
- lyxerr[Debug::INIT] << "LYX_DIR_10x: " << lyxdir << endl;
+ lyxerr[Debug::INIT] << "LYX_DIR_11x: " << lyxdir << endl;
searchpath += lyxdir + ';';
}
// Warn if environment variable is set, but unusable
if (!lyxdir.empty()) {
if (system_lyxdir != NormalizePath(lyxdir)) {
- lyxerr <<_("LYX_DIR_10x environment variable no good.")
+ lyxerr <<_("LYX_DIR_11x environment variable no good.")
<< '\n'
<< _("System directory set to: ")
<< system_lyxdir << endl;
if (system_lyxdir.empty()) {
lyxerr <<_("LyX Warning! Couldn't determine system directory.")
<<_("Try the '-sysdir' command line parameter or")
- <<_("set the environment variable LYX_DIR_10x to the "
+ <<_("set the environment variable LYX_DIR_11x to the "
"LyX system directory")
<< _("containing the file `chkconfig.ltx'.") << endl;
if (!path_shown)