1 2006-03-07 Georg Baum <Georg.Baum@post.rwth-aachen.de>
3 * debugstream.h: fix nullstream.hpp location for boost 1.33.0
6 2006-03-05 Lars Gullik Bjønnes <larsbj@lyx.org>
8 * filetools.C (NormalizePath): Change to use boost::filesystem and
9 alter regex usage in preparation for boost 1.33.1.
11 2006-02-12 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
13 * package.C.in (relative_system_support_dir): fix for win32 and
16 2005-11-02 Angus Leeming <leeming@lyx.org>
18 * path.C: trivial fix to a MSVS warning.
20 2005-10-12 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
22 * package.C.in (get_default_user_support_dir): do not play tricks
25 2005-09-30 Angus Leeming <leeming@lyx.org>
27 * os_win32.h: new file, providing a public and portable interface
28 to the SHGetFolderPath function for older flavours of Windows.
29 * os_win32.C: tighten up code. Define the ShGetFolder class. Make
30 use of Microsoft's NewAPIs.h if available to provide us with
31 runtime support for Windows 95.
32 (internal_path): always pass the path through GetLongPathName.
34 * package.C.in: move lots of stuff out and into os_win32.C.
36 2005-09-29 Angus Leeming <leeming@lyx.org>
38 * Makefile.am: use the Windows-friendly LYX_ABS_INSTALLED_LOCALEDIR
39 et al rather than the unix-centric $(localedir) when compiling
42 2005-09-10 Angus Leeming <leeming@lyx.org>
44 * Makefile.am (EXTRA_DIST): add os_cygwin.C to the distribution.
46 2005-08-31 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
48 * filetools.C (MakeDisplayPath): fix bug when HOME is empty.
50 * lstrings.C (subst): the string to be replaced should not be empty.
52 2005-07-17 Michael Schmitt <michael.schmitt@teststep.org>
55 * package.h: change environment variable to LYX_USERDIR_14x
57 2005-07-14 Angus Leeming <leeming@lyx.org>
59 * filename.[Ch] (mangledFilename): add an optional "dir" parameter
60 that is used to help determine the length of the mangled file
61 name. Do this because MiKTeX's YAP (version 2.4.1803) will crash
62 if the string referencing the file name in the .dvi file is "too
64 http://sourceforge.net/tracker/index.php?func=detail&aid=1238065&group_id=10783&atid=110783
66 2005-07-10 Georg Baum <Georg.Baum@post.rwth-aachen.de>
68 * filetools.[Ch] (latex_path): convert boolean exclude_extension
69 argument to an enum and add argument to replace dots
71 2005-07-08 Georg Baum <Georg.Baum@post.rwth-aachen.de>
73 * filetools.[Ch] (latex_path): add exclude_extension argument
75 2005-07-05 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
77 * lyxtime.[Ch]: two new functions formatted_time, which return
78 the strftime-formatted localized date/time.
80 2005-06-24 Georg Baum <Georg.Baum@post.rwth-aachen.de>
82 * FileName.C (mangledFilename): replace spaces with _
84 2005-06-21 Georg Baum <Georg.Baum@post.rwth-aachen.de>
86 * filetools.C (latex_path): protect " with \string since it may be
89 2005-05-07 Rob Bearman <robbear@hyperfine.com>
91 * fs_extras.C (copy_file): noclobber and CopyFile's bFailIfExists
92 are the same as each other.
94 2005-05-03 Angus Leeming <leeming@lyx.org>
96 * filetools.C (RunCommand): protect calls to popen() and pclose()
97 with preprocessor guards.
99 * tempname.C: protect calls to close(), getpid() and open()
100 with preprocessor guards.
102 2005-05-02 Angus Leeming <leeming@lyx.org>
104 * socktools.C: make compilation dependent on HAVE_FCNTL rather
107 2005-05-02 Angus Leeming <leeming@lyx.org>
109 * socktool.C (listen, accept): provide stub versions for Windows.
111 * os_win32.h: removed.
113 2005-04-29 Angus Leeming <leeming@lyx.org>
115 * os_win32.C (init): Merge changes from Asger's win32_kludge.diff
116 file, primarily checking that GetConsoleTitle succeeded.
118 2005-04-25 Angus Leeming <leeming@lyx.org>
132 include <config.h> in .C files, not .h ones.
134 protect headers inside preprocessor guards.
136 2005-04-25 Angus Leeming <leeming@lyx.org>
138 * globbing.[Ch]: removed to frontends/xforms.
140 * Makefile.am: associated change.
142 2005-04-24 Angus Leeming <leeming@lyx.org>
144 * userinfo.C (user_name): add Windows-specific code.
146 2005-04-22 Angus Leeming <leeming@lyx.org>
148 * package.C.in (get_binary_path): on prompting from Rob Bearman,
149 ensure that the name of the executable, as input at the command
150 line has a ".exe" suffix so that various file interogations
153 2005-04-22 Angus Leeming <leeming@lyx.org>
156 * forkedcall.h: remove pid_t definition to config.h.
158 2005-04-21 Angus Leeming <leeming@lyx.org>
161 * forkedcall.h: define pid_t for MSVC.
163 * forkedcall.C (kill): work around evil MSVC max macro.
165 2005-04-21 Angus Leeming <leeming@lyx.org>
167 * forkedcontr.C: add #include <csignal>.
169 * filetools.C (RunCommand): remove the signal blocking stuff
170 now that we no longer use a signal handler on unix.
172 2005-04-19 Angus Leeming <leeming@lyx.org>
174 * filetools.C: remove unnecessary #include of forkedcontr.h.
176 * forkedcall.C: protect system-specific headers with preprocessor
178 (running): don't call waitpid() on Windows.
179 (waitForChild): add Windows-specific code to wait for a child process
181 (generateChild): add Windows-specific code to spawn the child in the
184 * forkedcontr.[Ch]:Revert back to the LyX 1.3.x version of the code
185 to spawn a child process asynchronously. Do this because 'issues'
186 remain with the SIGCHLD handling code on *nix and because there's no
187 easy way to implement such a monitor on Windows. Explicit polling,
188 as in Lyx 1.3.x, is safe, robust and works on both platforms.
190 2005-04-19 Angus Leeming <leeming@lyx.org>
192 * package.C.in (get_temp_dir): call GetLongPathName on Windows.
194 2005-04-19 Angus Leeming <leeming@lyx.org>
196 * pch.h: protect unix-specific headers from breaking compilation
199 2005-04-17 Angus Leeming <leeming@lyx.org>
201 * filetools.C (MakeDisplayPath): invoke os::external_path before
204 * os_win32.C (external_path): convert '/' chars to '\'.
206 * filetools.[Ch] (latex_path): new function which modifies
207 an input path containing space and '~' characters into something that
208 LaTeX can understand.
210 2005-04-17 Angus Leeming <leeming@lyx.org>
212 * forkedcall.C (generateChild): do not strip quotes from args on
214 Wrap lyxerr output inside an if (lyxerr.debugging(Debug::FILES))
217 2005-03-23 Angus Leeming <leeming@lyx.org>
219 * Makefile.am (build_package): Solaris sed does not like
220 spaces bewteen the ;-delimited commands.
222 2005-02-25 Lars Gullik Bjønnes <larsbj@gullik.net>
224 * Makefile.am (CLEANFILES): clean generated files
226 2005-02-17 Angus Leeming <leeming@lyx.org>
228 * copy.C (copy): Pass the ios::in flag to the ifstream constructor.
229 Enables copying to work when the code is compiled with the gcc 2.95
232 2005-02-15 Angus Leeming <leeming@lyx.org>
234 * environment.C: add missing #include.
235 (setEnvPath): compare iterators rather than use tellp().
237 2005-02-15 Angus Leeming <leeming@lyx.org>
239 * environment.[Ch]: new files. Move the environment setter/getter
240 functions here from filetools.[Ch]. In the process:
241 rename GetEnv as getEnv.
242 rename putEnv as setEnv. Change the signature of the function
243 to take a pair of arguments (a name and a value) rather than the
244 existing coded "name=value" single argument. Merge the putenv.C
247 * lyxlib.h (putenv): remove declaration.
250 * Makefile.am: add environment.[Ch]. Remove putenv.C.
252 * filetools.[Ch]: remove environment setter/getter functions.
254 * os_os2.C (init): s/GetEnvPath/getEnvPath/. Left over from an
257 * package.C.in (get_home_dir, extract_env_var_dir):
258 * userinfo.C (user_email): s/GetEnv/getEnv/.
260 2005-02-03 Angus Leeming <leeming@lyx.org>
262 * forkedcall.C (running): call the lyx::kill wrapper function
263 rather than the system kill.
265 2005-02-02 Angus Leeming <leeming@lyx.org>
267 * forkedcall.C (generateChild): overhaul the code to split a string
268 into an argv array of words. Now respects simple quoting reasonably
271 2005-02-01 Angus Leeming <leeming@lyx.org>
273 * fs_extras.C: #include <windows.h>
275 2005-01-31 Angus Leeming <leeming@lyx.org>
277 * package.[Ch] (init_package, c-tor): define and use an enum to
278 specify explicitly the location of the top level build directory
279 when the executable is run in-place.
281 2005-01-31 Lars Gullik Bjønnes <larsbj@gullik.net>
283 * fs_extras.C: add changes from Asger's Win32 patch.
285 2005-01-31 Asger Ottar Alstrup <aalstrup@laerdal.dk>
288 * getcwd.C (l_getcwd):
290 * mkdir.C (mkdir): add Win32 specializations.
292 * os_win32.h: remove cruft.
294 2005-01-31 Lars Gullik Bjønnes <larsbj@gullik.net>
296 * Makefile.am (libsupport_la_SOURCES): remove rmdir.C
298 * rmdir.C: delete file
300 * lyxlib.h: remove rmdir decl
302 2005-01-31 Lars Gullik Bjønnes <larsbj@gullik.net>
304 * .cvsignore: add package.C
306 * FileInfo.C, FileInfo.h: delete files
308 * fs_extras.C, fs_extras.h: new files
310 * FileMonitor.C, filetools.C: rewrite to use boost.filesystem
312 * Makefile.am (libsupport_la_SOURCES: delete FileInfo.[Ch], add
315 * filetools.C: make destroydir return true if something was
316 deleted. adjust callers.
317 (IsFileWritable): replace with is_readonly in fs_extras, adjust
320 * package.C.in: rewrite to use boost.filesystem
322 2005-01-27 Lars Gullik Bjønnes <larsbj@gullik.net>
324 * tests: add some code for automatic regression testing, can be
325 improved or removed as we see fit
327 * lyxlib.h (atoi): delete func
329 * lstrings.[Ch] (strToInt): delete func
330 (strToUnsignedInt): delete func
331 (strToDbl): delete func
333 * Makefile.am: add subdir tests, delete atoi.C
335 * atoi.C: delete file
337 * convert.C: add specializations for converting to int, unsigned
338 int, double from string, and for converting to int and double from
341 * convert.h: remove commented code
343 2005-01-22 Angus Leeming <leeming@lyx.org>
345 * path.C (Path): revert the patch since the if statement has side
346 effects that are needed for the code to work :-(
348 2005-01-21 Angus Leeming <leeming@lyx.org>
350 * os_cygwin.C, os_win32.C: strip the Cygwin-specific stuff out of
351 os_win32.C and give it its own file.
353 * os.C: #include "os_cygwin.C" if building on Cygwin.
355 2005-01-20 Angus Leeming <leeming@lyx.org>
357 * lyxlib.h (float_equal): promote parameters to double.
359 * path.C (Path): silence MSVC warning about block of code that
362 2005-01-20 Asger Ottar Alstrup <aalstrup@laerdal.dk>
364 * FileInfo.h, chdir.C, forkedcall.C, forkedcontr.C, getcwd.C,
365 mkdir.C, os_defines.h, pch.h, rmdir.C, unlink.C:
366 use the HAVE_UNISTD_H preprocessor guard.
368 2005-01-20 Angus Leeming <leeming@lyx.org>
370 * filetools.[Ch] (LibScriptSearch): modify the code that replaces
371 the $$s placeholder with a path, so that it now inserts the path
372 of the lyx support directory, not the scripts subdirectory.
374 2005-01-19 Asger Ottar Alstrup <aalstrup@laerdal.dk>
376 * lyxsum.C, socktools.C, tempname.C, userinfo.C: use the
377 HAVE_UNISTD_H preprocessor guard.
379 2005-01-17 Angus Leeming <leeming@lyx.org>
381 * os_win32.C (init): Add Ruurd's original code to close the
382 console window that Windows opens for us, together with a note
383 explaining the alternative approach.
385 2005-01-17 Angus Leeming <leeming@lyx.org>
387 * package.C.in (get_binary_path): convert relative paths stored
388 in the PATH environment variable to absolute ones.
390 2005-01-16 Angus Leeming <leeming@lyx.org>
392 * filetools.[Ch] (prependEnvPath): prepend a list of paths to
393 that returned by the environment variable. Identical paths occurring
394 later in the list are removed.
396 2005-01-16 Angus Leeming <leeming@lyx.org>
398 * filetools.C (createLyXTmpDir): add some missing brackets to the
399 if-block. OS/2 users will be happier.
401 2005-01-02 Kayvan Sylvan <kayvan@sylvan.com>
403 * os_win32.C (external_path): Check the new cygwin_path_fix_ bool
404 before translating external paths to Win32 paths.
406 2005-01-13 Angus Leeming <leeming@lyx.org>
408 * os.h, os_os2.C, os_unix.C, os_win32.C (cygwin_path_fix): new
409 function flagging whether LyX should output native Win32 paths
410 or cygwin paths. Obviously operative only under Cygwin.
412 2005-01-13 Angus Leeming <leeming@lyx.org>
414 * package.C.in: use "%n$s" rather than "%n%" for n=1,2,3... when
415 calling bformat so that the substitutions work for the non
416 boost::format users too.
418 2005-01-12 Angus Leeming <leeming@lyx.org>
420 * filetools.[Ch] (setEnvPath): new function to create a PATH-style
421 string from a vector of paths and to use it to set an environment
423 (putEnv): resurrect this from the grave.
425 * os.h, os_os2.C, os_unix.C, os_win32.C (path_separator): new
426 function returning the character used to separate paths returned
427 by the PATH environment variable.
429 * os_win32.C: add #include "lstring.h" back in.
431 * package.C.in (package): comment out the ASSERT for now.
432 (check_env_var_dir): write one of the strings to be translated
433 (any one, doesn't matter) on a single line so that the
434 gettext search mechanism in po/Makefile.in.in will register
435 package.C.in as a file containing strings that need translation.
437 2005-01-10 Angus Leeming <leeming@lyx.org>
442 * os_win32.C (binpath, binname, homepath, setTmpDir, getTmpDir, warn):
443 removed. Remove also all code to set the associated data variables.
445 * package.{C.in,h}: new files to ascertain the paths to the
446 various directories used by LyX. Does nothing with these paths,
447 just determines the strings themselves.
449 * path_defines.{C.in,h}: removed.
451 * Makefile.am: remove path_defines.{C.in,h}. Add package.{C.in,h}.
453 * filetools.[Ch] (GetEnvPath): remove.
454 (getEnvPath): replacement. Returns a vector<string> of paths.
457 * tempname.C: use support/package.h to provide the paths to the
458 various directories used by LyX.
460 2005-01-07 Angus Leeming <leeming@lyx.org>
462 * convert.C (string>): add specialization for long.
464 2005-01-07 Lars Gullik Bjønnes <larsbj@gullik.net>
466 * convert.h: remove the specializations, don't included unneeded
468 * convert.C: add specialization for unsigned long
470 2005-01-06 Lars Gullik Bjønnes <larsbj@gullik.net>
472 * tostr.[Ch]: renamed to convert[ch]
474 2005-01-06 Lars Gullik Bjønnes <larsbj@gullik.net>
476 * lstrings.[Ch]: change bformat to be a template
478 * tostr.[Ch]: tostr -> convert, convert is a template
481 * filetools.C (createBufferTmpDir): tostr -> convert
483 2005-01-05 Angus Leeming <leeming@lyx.org>
485 * os_win32.C (external_path, internal_path): s/MAX_PATH/PATH_MAX/.
487 2005-01-04 Angus Leeming <leeming@lyx.org>
489 * os_win32.C (current_root): use _getdrive on Win32.
491 * FileInfo.C (FileInfo, newFile): strip the trailing '/' from
492 the stored file name as it breaks Window's version of stat().
493 (isLink): protect the code with #ifdef S_ISLNK.
494 (dostat): protect the code with #ifdef HAVE_LSTAT.
495 (typeIndicator): remove code testing the file's executable status.
497 * filetools.C (LyXReadLink): protect the code with
498 #ifdef HAVE_READLINK.
500 2005-01-01 Kayvan Sylvan <kayvan@sylvan.com>
502 * os_win32.C (internal_path): remove the call to MakeLatexName as
503 it is (1) unnecessary and (2) leads to an infinite loop as
504 MakeLatexName calls AddName which calls internal_path...
506 2004-12-19 Angus Leeming <leeming@lyx.org>
508 * path_defines.C.in (setLyxPaths): on a Windows build,
509 remove the ".exe" extension from the name of the LyX binary when
510 trying to ascertain the name of the LyX system directory.
511 (Usually, <path to binary>/../share/<name of binary>/).
513 * os.h, os_os2.C, os_unix.C, os_win32.C (slashify_path): remove.
515 * os_win32.C (init): ensure that the name of the lyx executable is
516 stored internally with a unix-style path.
518 * os_win32.C (internal_path, external_path): differentiate between
519 cygwin and windows builds.
521 * filetools.C (FileOpenSearch, GetEnvPath, createDirectory,
522 MakeAbsPath, AddName, MakeRelPath, ChangeExtension):
523 * filename.C (mangledFilename):
524 s/slashify_path/internal_path/.
526 2004-12-16 Angus Leeming <leeming@lyx.org>
528 * filename.C (mangledFilename): Given a Windows-style path, don't
529 forget to mangle the drive letter too when generating a unique
532 2004-12-16 Angus Leeming <leeming@lyx.org>
534 * mkdir.C: move the HAVE_MKDIR conditional code out of config.h
537 2004-12-15 Angus Leeming <leeming@lyx.org>
539 * FileInfo.[Ch] (getNumberOfLinks): removed.
541 2004-12-15 Angus Leeming <leeming@lyx.org>
543 * tempname.C: #include fcntl.h and sys/stat.h if creating a temp
544 file using mktemp and open.
546 2004-12-14 Angus Leeming <leeming@lyx.org>
548 * os.h, os_os2.C, os_unix.C, os_win32.C:
549 (binpath, binname, getTmpDir): return a const reference rather than
551 (homepath, nulldev): new functions returning the name of "HOME" and
552 the null device, respectively.
554 * filetools.C: (ExpandPath, MakeDisplayPath):
555 * path_defines.C.in (setLyxPaths): use os::homepath(), not
558 2004-12-14 Angus Leeming <leeming@lyx.org>
560 * os.h, os_{os2,unix,win32}.C (init): change interface to no longer
561 pass the addresses of the parameters received by main.
563 2004-12-14 Angus Leeming <leeming@lyx.org>
565 * copy.C (copy): open the ifstream with ios::binary.
567 2004-12-14 Angus Leeming <leeming@lyx.org>
569 * os.C: Add _WIN32 to the #define.
571 * systemcall.C (startscript): remove trailing '/n' from request to
572 start the command in a minimized window under DOS.
574 2004-12-14 Angus Leeming <leeming@lyx.org>
576 * Makefile.am (AM_CPPFLAGS): Remove trailing slash from -Ifoo/
577 to overcome bug in the MinGW port of g++ 3.4.2.
579 2004-11-26 Angus Leeming <leeming@lyx.org>
581 * globbing.[Ch] (glob): change API to:
582 1. Append matches to the input container.
583 2. Require a working_dir parameter. The function invokes chdir
584 internally (through use of Path).
586 2004-11-26 Angus Leeming <leeming@lyx.org>
588 * filefilterlist.C (convert_brace_glob): moved here from
591 * filefilterlist.[Ch]: clean-up FileFilterList API.
593 * globbing.[Ch] (convert_brace_glob): moved to filefilterlist.C.
594 (expand_globs): moved to xforms/FormFiledialog.C.
596 2004-11-25 Angus Leeming <leeming@lyx.org>
598 * filefilterlist.[Ch]:
599 * globbing.[Ch]: split FileFilterList into its own .[Ch] files.
601 * Makefile.am: add filefilterlist.[Ch].
603 2004-11-16 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
605 * textutils.h (isKommaChar): remove
607 2004-11-16 Lars Gullik Bjønnes <larsbj@gullik.net>
609 * forkedcontr.C (find_pid): simplify and also make pass concept
611 (handleCompletedProcesses): make sure that we do not slice the
612 object and satisfy concept checks.
614 2004-11-09 Georg Baum <Georg.Baum@post.rwth-aachen.de>
616 * filetools.[Ch] (getFormatFromContents): don't guess format from
617 extension, return string() instead of "user" if the format could
620 2004-11-07 Lars Gullik Bjønnes <larsbj@gullik.net>
622 * Make it clearer where include files are coming from.
624 2004-11-06 Lars Gullik Bjønnes <larsbj@gullik.net>
626 * translator.h: use bind, equal_to instead of equal_1st_in_pair
627 and equal_2nd_in_pair
629 * Makefile.am (libsupport_la_SOURCES): remove lyxfunctional.h
630 * lyxfunctional.h: delete file
632 * lyxfunctional.h: delete compare_memfun and helper classes
634 * forkedcontr.C (find_pid): use bind, equal_to instead of
637 * lyxfunctional.h: delete back_inserter_fun functions and helper
640 2004-11-04 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
642 * snprintf.[ch]: removed
644 * Makefile.am (libsupport_la_SOURCES): remove snprintf
646 2004-10-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
648 * filetools.[Ch] (getExtFromContents): rename to
649 getFormatFromContents and return always a format
651 2004-10-25 Angus Leeming <leeming@lyx.org>
653 * forkedcall.C (generateChild): strip quotes from each argument
656 2004-09-26 Lars Gullik Bjønnes <larsbj@gullik.net>
658 * pch.h: use proper signal include
660 * forkedcallqueue.C: remove unused include
662 * FileMonitor.h: Use the preferred calling for Boost.Signal
663 * forkedcall.h: ditto
665 * FileMonitor.C: use the new signal typedef
667 2004-09-26 Lars Gullik Bjønnes <larsbj@gullik.net>
669 * forkedcall.h: remove include of <boost/function/funtion0.hpp>
672 2004-09-10 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
674 * textutils.h (IsLetterCharOrDigit): remove
676 2004-09-10 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
678 * filetools.C (LibScriptSearch): quote the path of the script, in
679 case it contains spaces
681 2004-09-04 Lars Gullik Bjønnes <larsbj@gullik.net>
683 * tostr.C: reimplement using lexical_cast
685 2004-08-30 Lars Gullik Bjønnes <larsbj@gullik.net>
687 * pch.h: do not use include boost/format.hpp, multiple symbols
688 will result (gcc bug)
690 2004-08-15 Lars Gullik Bjønnes <larsbj@gullik.net>
694 * Makefile.am: support pch
696 2004-08-09 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
698 * globbing.C (FileFilterList): make sure that "All files (*)" is
699 always part of the filters list
701 2004-07-24 Lars Gullik Bjønnes <larsbj@gullik.net>
703 * tostr.C, lstrings.C, globbing.C, filetools.C: change
704 "support/std_sstream.h" to <sstream>
706 * Makefile.am (libsupport_la_SOURCES): delete std_sstream.h and
708 (std_sstream.h): delete file
709 (sstream.h): delete file
711 2004-06-29 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
713 * filetools.C (i18nLibFileSearch): honor case where LANGUAGE
714 specifies a list of locales (thanks to Pablo Saraxtaga for the
717 2004-05-04 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
719 * path_defines.C.in (setLyxPaths): make sure that LyX/Mac can find
720 its po files when moved around; set default user directory to
721 ~/Library/Preferences/LyX/ for LyX/Mac.
722 (lyx_localedir): return the value that may have been computed in
725 2004-05-27 Kayvan Sylvan <kayvan@sylvan.com>
727 * Makefile.am (libsupport_la_SOURCES): remove reference to
730 2004-05-20 Angus Leeming <leeming@lyx.org>
732 * debugstream.h: wrap the definition of debug_trait::DEBUG with
733 preprocessor guards that protect against a name clash with a
734 macro DEBUG. Such a macro is defined by the Qt library...
736 2004-04-27 Angus Leeming <leeming@lyx.org>
738 * path_defines.{h,C.in}: expose top_srcdir, renamed from
741 2004-04-05 Angus Leeming <leeming@lyx.org>
744 wrap #warning calls inside #ifdef WITH_WARNINGS blocks.
746 2004-04-05 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
748 * filetools.C (RunCommand): block SIGCHLD during popen/pclose
749 (actually Angus' fix).
751 2004-04-01 Georg Baum <Georg.Baum@post.rwth-aachen.de>
753 * filetools.C (DeleteAllFilesInDir): delete directories with
754 rmdir(), unlink() does not work
756 2004-03-27 Angus Leeming <leeming@lyx.org>
758 * forkedcontr.C (child_handler): squash warning about a
759 signed/unsigned comparison.
760 (handleCompletedProcesses): only output a warning about an error
761 waiting for the child if it is indeed an error ;-)
763 2004-03-26 Angus Leeming <leeming@lyx.org>
765 * forkedcall.[Ch] (run): new function, replacing runBlocking,
768 * forkedcall.C (generateChild): ensure that the code that splits
769 the command up into an array of words won't leak in the event of an
772 * forkedcontr.C: make it a little more robust.
774 2004-03-24 Angus Leeming <leeming@lyx.org>
776 * forkedcontr.[Ch]: get rid of the timer that we use to poll the list
777 of child proccesses and ascertain whether any have died. Instead use
778 the SIGCHLD signal emitted by the system to reap these zombies in the
779 maximally efficient manner. The subsequent emitting of the signal
780 associated with each child process *is* performed within the main
781 lyx event loop, thus ensuring that the code remains safe.
783 A detailed description of the design is to be found in forkedcontr.C.
785 2004-03-24 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
787 * filetools.C (i18nLibFileSearch): simplify the logic a bit
789 2004-03-23 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
791 * filetools.C (i18nLibFileSearch): fix the logic to match closely
794 2004-03-23 Angus Leeming <leeming@lyx.org>
796 * forkedcall.h (ForkedProcess, Forkedcall): change the signature of
797 clone to return a boost::shred_ptr rather than a std::auto_ptr.
799 * forkedcontr.[Ch]: store the forked calls as boost::shared_ptrs rather
802 2004-03-22 Angus Leeming <leeming@lyx.org>
804 * forkedcontr.[Ch] (childrenChanged, getPIDs, getCommand): remove
805 cruft left over from the removal of the Forks dialog.
807 2004-03-09 Georg Baum <Georg.Baum@post.rwth-aachen.de>
809 * filename.[Ch] (mangledFilename): make sure that mangled names are
812 2004-02-21 Georg Baum <Georg.Baum@post.rwth-aachen.de>
814 * filetools.[Ch] (CreateBufferTmpDir): rename to createBufferTmpDir,
815 remove pathfor argument
816 * filetools.[Ch] (CreateLyXTmpDir): rename to createLyXTmpDir, try
817 harder to create a usable temp dir
818 * filetools.C (CreateTmpDir): rename to createTmpDir
819 filetools.[Ch] (unzipFile): add argument for output filename
820 * filename.h: fix doxygen warning
822 2004-02-01 Lars Gullik Bjønnes <larsbj@gullik.net>
824 * lstrings.h (contains_functor): delete
825 (contains): change into template, simplify
827 * lstrings.C (contains): remove both functions
829 2004-01-31 Lars Gullik Bjønnes <larsbj@gullik.net>
831 * lyxalgo.h (eliminate_duplicates): reimplement with sort and the
834 * lstrings.h (contains_functor): inherit from
835 std::binary_function, remove typedefs.
837 2004-01-28 Lars Gullik Bjønnes <larsbj@gullik.net>
839 * globbing.C: add using statement for std::distance, remove std::
842 2004-01-08 Angus Leeming <leeming@lyx.org>
844 * globbing.[Ch]: add a new class FileFilterList to parse a Qt-style
845 list of available file filters and generate the corresponding vector.
847 2003-12-14 Ronald Florence <ron@18james.com>
849 * tostr.[hC]: added tostr(long unsigned int i).
851 * path_defines.C.in: determine system directory and set PATH for
852 relocatable LyX/Mac bundle.
854 2004-01-06 Angus Leeming <leeming@lyx.org>
856 * globbing.C (glob): compilation fix for cygwin.
858 2004-01-06 Lars Gullik Bjønnes <larsbj@gullik.net>
860 * Makefile.am (libsupport_la_SOURCES): remove BoostFormat.h and
862 * BoostFormat.h: delete file
863 * boost-inst.C: delete fil
865 * lstrings.C: include boost/format.hpp
867 2004-01-05 Angus Leeming <leeming@lyx.org>
869 * globbing.[Ch]: new files containing some globbing utilities.
871 2003-11-05 João Luis M. Assirati <assirati@fma.if.usp.br>
873 * putenv.C: allocate the string before putting it into the
878 2003-11-03 Lars Gullik Bjønnes <larsbj@gullik.net>
880 * tempname.C (tempName): use scoped_array for exception safety
882 * os_os2.C (init): use scoped_array for exception safety
884 * getcwd.C (getcwd): use scoped_array for exception safety
886 * forkedcontr.C (addCall): adjust
888 * forkedcall.h: make clone return a auto_ptr
890 2003-11-01 Lars Gullik Bjønnes <larsbj@gullik.net>
892 * debugstream.h: add a default constructor that does not setup a
895 2003-10-14 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
897 * socktools.C: honor CXX_GLOBAL_CSTD
899 2003-10-16 André Pönitz <poenitz@gmx.net>
901 * filetools.C (ReplaceEnvironmentPath): set up patterns just once
902 using static variables.
904 2003-10-13 João Luis Meloni Assirati <assirati@fma.if.usp.br>
906 * socktools.[Ch]: New files. Wrapper around socket system calls.
908 2003-10-13 Kayvan A. Sylvan <kayvan@sylvan.com>
910 * socktools.C (SUN_LEN): add this MACRO definition for platforms
911 that do not define it themselves.
913 2003-10-08 Angus Leeming <leeming@lyx.org>
915 * copied_ptr.h: get rid of the swap member function.
917 2003-10-08 Angus Leeming <leeming@lyx.org>
919 Fix doxygen warnings.
921 * debugstream.h: \file debugStream.h -> \file debugstream.h
923 * os.h: move comment so that doxygen is not confused.
925 2003-10-07 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
927 * Makefile.am: fix typo.
929 2003-10-06 Lars Gullik Bjønnes <larsbj@gullik.net>
931 * std_string.h: delete file
933 2003-10-06 Martin Vermeer <martin.vermeer@hut.fi>
935 * lstrings.C: Small fixes to build using STLport
937 2003-09-29 Angus Leeming <leeming@lyx.org>
939 * filetools.C (ReplaceEnvironmentPath): make it work for both
940 ${HOME}/foo and $HOME/foo.
942 2003-09-26 Lars Gullik Bjønnes <larsbj@gullik.net>
944 * debugstream.h: add file, updated version of the DebugStream
946 * DebugStream.C,DebugStream.h: delete files
948 2003-09-25 Angus Leeming <leeming@lyx.org>
950 * filetools.C (ReplaceEnvironmentPath): rewrite to use boost::regex.
951 * lstrings.[Ch]: (regexMatch): removed.
953 2003-09-25 Angus Leeming <leeming@lyx.org>
955 * translator.h (add): new member function.
957 2003-09-16 Angus Leeming <leeming@lyx.org>
959 * textutils.h: remove #include "paragraph.h". Remove functions
960 IsInsetChar and IsWordChar.
962 2003-09-15 Angus Leeming <leeming@lyx.org>
964 * copied_ptr.h: re-jig to something that resembles Herb Sutter's
965 HolderPtr --- see http://www.gotw.ca/gotw/062.htm. Also known in
966 his book as ValuePtr.
967 Use a memory_traits template parameter to create/destroy memory in a
970 2003-09-15 Lars Gullik Bjønnes <larsbj@gullik.net>
974 * filetools.C: Remove usage of STRCONV
976 * Makefile.am (libsupport_la_SOURCES): remove lyxstring.C and
979 * std_string.h: modify to always work with std::string, but if
980 with-included-string then use it through namespace lyx. Remove
983 * lyxstring.[Ch]: remove files
985 2003-09-15 Angus Leeming <leeming@lyx.org>
987 * translator.h: add #include <boost/assert.hpp>, so that the
988 template is self-contained.
990 2003-09-11 Angus Leeming <leeming@lyx.org>
993 * copied_ptr.h: added to the repository. Maybe temporarily.
995 2003-09-09 Lars Gullik Bjønnes <larsbj@lyx.org>
997 * Makefile.am (libsupport_la_SOURCES): remove LAssert.C and LAssert.h
999 * several files: change Assert to BOOST_ASSERT
1002 * LAssert.h: remove files
1004 2003-09-08 Angus Leeming <leeming@lyx.org>
1007 * filetools.C: tell the world where to find author contact details.
1009 2003-09-08 Angus Leeming <leeming@lyx.org>
1013 * forkedcallqueue.C:
1015 * lyxsum.C: remove redundant using directives.
1017 2003-09-05 Angus Leeming <leeming@lyx.org>
1019 * lstrings.C: small bformat fix
1021 2003-09-05 Angus Leeming <leeming@lyx.org>
1023 * std_istream.h: new file Just renaming of LIstream.h
1024 * std_ostream.h: new file Just renaming of LIstream.h
1025 * std_sstream.h: new file Just renaming of Lsstream.h
1026 * std_string.h: new file Just renaming of LString.h
1028 2003-09-05 Angus Leeming <leeming@lyx.org>
1032 ensure that the header file can be compiled stand-alone.
1034 2003-09-04 Lars Gullik Bjønnes <larsbj@lyx.org>
1036 * lstrings.[Ch] (bformat): add a variant taking two ints.
1038 2003-09-04 Angus Leeming <leeming@lyx.org>
1041 * filename.C: move #include "os.h" out of the header file.
1043 2003-09-04 Angus Leeming <leeming@lyx.org>
1045 * path.C (ctor, dtor): move out of line.
1047 2003-09-03 Angus Leeming <leeming@lyx.org>
1049 * filename.[Ch] (FileName): new c-tor takes abs_filename arg.
1050 (mangledFilename): new function, returning a mangled version of the
1051 absolute file name, suitable for use in the temp dir when, for example,
1052 converting an image file to another format.
1053 (isZipped, unzippedFilename): wrappers to global functions.
1055 * filetools.[Ch] (copyFileToDir): removed.
1056 (compare_timestamps): new function.
1058 2003-09-03 Angus Leeming <leeming@lyx.org>
1060 * translator.h: Assert is in namespace lyx::support...
1062 2003-08-02 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1064 * Makefile.am: do not install path_defines.C in includes
1065 (COMPRESSION): mention gzstream.h here
1067 2003-08-01 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
1069 * path_defines.C.in (setLyxPaths): re-introduce the code to check
1070 whether lyx is run in place
1071 (build_dir): renamed from build_lyxdir
1072 (build_lyxdir): give this better semantics compatible with what
1073 LibFileSearch expects.
1075 2003-07-29 Angus Leeming <leeming@lyx.org>
1077 * filename.[Ch] (relFilename, outputFilename): the 'path' arg
1078 defaults to string() because MakeRelPath can accept that.
1080 2003-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
1082 * Makefile.am: conditionalize USE_COMPRESSION.
1084 2003-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
1086 * filetools.C (getExtFromContents): correct magic for gzip and
1089 * path_defines.[Ch]: move lyx_localedir out of anon namespace
1091 * gzstream.h: new fileq
1093 * gzstream.C: new file
1095 2003-07-27 Angus Leeming <leeming@lyx.org>
1097 * path_defines.{h,C.in} (build_lyxdir, system_lyxdir,
1098 user_lyxdir): are now functions, not global vars.
1100 * Makefile.am: set build_lyxdir at make time.
1102 2003-07-27 Angus Leeming <leeming@lyx.org>
1104 * path_defines.{h,C.in}: new files. Store/set the various lyx
1105 paths, lyx_dir, top_srcdir, localedir, system_lyxdir, build_lyxdir
1108 * Makefile.am: add some magic to enable the user to set the path to
1109 the system-level lyx support files, the top of the lyx build tree
1110 and the system-level lyx locale directory at _make_ time rather
1111 than configure time.
1113 * .cvsignore: add path_defines.C.
1115 2003-07-26 Angus Leeming <leeming@lyx.org>
1117 * os.h: remove irrelevant discussion of system_tempdir.
1119 2003-07-21 Angus Leeming <leeming@lyx.org>
1121 * filename.[Ch]: new files implementing class FileName.
1122 * Makefile.am: add filename.[Ch].
1124 2003-07-18 Lars Gullik Bjønnes <larsbj@gullik.net>
1126 * BoostFormat.h (boost): remove one extern template. Gcc 3.4. does
1127 not allow it (at least not in this form.)
1129 2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
1131 * os_win32.C: put namespace os in lyx::support.
1133 * lstrings.C (bformat): call Assert from correct namespace.
1135 * introduce namespace lyx::support
1137 2003-06-30 André Pönitz <poenitz@gmx.net>
1140 * lstrings.C: re-enable --with-included-string
1142 2003-06-28 Lars Gullik Bjønnes <larsbj@gullik.net>
1144 * filetools.h: fix some \param issue
1146 * boost-inst.C: fix \file
1148 * LAssert.h: fix \file
1150 2003-06-20 Angus Leeming <leeming@lyx.org>
1152 * filetools.[Ch] (NormalizePath): also change /foo//bar ==> /foo/bar.
1154 2003-06-18 Angus Leeming <leeming@lyx.org>
1156 * many files: add the standard blurb, "This file is part of LyX" etc
1158 2003-06-17 Lars Gullik Bjønnes <larsbj@lyx.org>
1160 * limited_stack.h: make it have a const_iterator, add begin, and
1163 2003-06-10 Angus Leeming <leeming@lyx.org>
1165 * filetools.C (copyFileToDir): ensure that temp files have unique names.
1167 2003-06-04 André Pönitz <poenitz@gmx.net>
1169 * limited_stack.h (top): return reference instead of value
1171 2003-06-02 Angus Leeming <leeming@lyx.org>
1173 * filetools.[Ch] (copyFileToDir): new helper function.
1175 * os.h: remove trailing semi-colon from end of namespace os block.
1177 2003-06-01 Angus Leeming <leeming@lyx.org>
1179 * filetools.h (LibScriptSearch): give the function a meaningful
1180 description of what it now does.
1182 2003-05-30 Angus Leeming <leeming@lyx.org>
1184 * filetools.C (LibScriptSearch): make it search for "$$s/" and replace
1185 this with the path to the script. If the script is not found, the "$$s/"
1188 2003-05-22 Lars Gullik Bjønnes <larsbj@gullik.net>
1190 * lstrings.[Ch] (prefixIs,suffixIs,subst): remove variants taking
1193 2003-05-19 André Pönitz <poenitz@gmx.net>
1195 * lstrings.C: add missing implementation of three-arg bformat
1197 * lstrings.C: change rest of char * fmt -> string const & fmt
1200 2003-05-15 André Pönitz <poenitz@gmx.net>
1202 * lstrings.[Ch]: use string const & instead of char const * for format
1204 2003-05-12 André Pönitz <poenitz@gmx.net>
1206 * tostr.[Ch]: add long int overload
1208 2003-05-12 Alfredo Braunstein <abraunst@libero.it>
1210 * lstrings.[Ch]: compile fix
1212 2003-05-12 André Pönitz <poenitz@gmx.net>
1214 * lstrings.[Ch]: bformat() as wrapper around boost::format
1216 * lyxstring.h: enable templatized constructor
1218 2003-05-06 Lars Gullik Bjønnes <larsbj@gullik.net>
1220 * limited_stack.h: Change some comments, simplify a couple of
1223 2003-02-21 André Pönitz <poenitz@gmx.net>
1225 * limited_stack.h: change underlying container to deque to
1226 make this re-usable in mathed
1228 2003-04-08 John Levon <levon@movementarian.org>
1230 * filetools.C: fix MakeDisplayPath() to not
1233 2003-03-30 John Levon <levon@movementarian.org>
1237 * boost-inst.C: moved from src/
1239 2003-03-29 John Levon <levon@movementarian.org>
1242 * filetools.C: never call Alert directly from here
1244 2003-03-12 John Levon <levon@movementarian.org>
1246 * textutils.h: remove META_NEWLINE
1248 2003-02-27 Ling Li <ling@caltech.edu>
1250 * lyxalgo.h (eliminate_duplicates): re-written to avoid the initial
1253 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
1255 * forkedcontr.C (timer): remove bogus continue
1257 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
1259 * forkedcallqueue.[Ch]: added
1261 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
1263 * forkedcontr.C (timer): Start the loop afresh if an item is deleted.
1264 Emiting the signal can result in an arbitrary change to the list.
1266 2003-02-25 Angus Leeming <leeming@lyx.org>
1268 * forkedcontr.C (timer): Use a while loop rather than for; makes it
1269 easier to erase an element.
1271 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
1273 * forkedcontr.C (timer): don't start a running timer.
1275 2003-02-21 André Pönitz <poenitz@gmx.net>
1277 * filetools.C (PutEnv): removed (unused)
1279 2003-02-17 John Levon <levon@movementarian.org>
1282 * forkedcall.C: add running()
1284 2003-02-08 John Levon <levon@movementarian.org>
1288 * lyxtime.C: add typedef for time_t, add current_time
1294 2002-12-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1296 * filetools.C (getExtFromContents): remove detection of epsi
1298 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
1300 * several files: ws changes
1302 2002-11-27 Lars Gullik Bjønnes <larsbj@birdstep.com>
1304 * filetools.C (DirList): remove all ugly hacks and do it nice
1306 2002-11-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1308 * lyxsum.C: an ugly hack to compile with non-gnu linkers
1310 2002-11-12 Angus Leeming <aleem@pneumon.bg.ic.ac.uk>
1312 * lstrings.C (getVectorFromString): #if 0 -> #if 1 until Lars devises
1313 a solution that he likes and which actually works.
1315 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
1317 * lstrings.h (tostr): STRCONV
1319 * lstrings.C (regexMatch): STRCONV
1320 (getVectorFromString): STRCONV, manual copy into vector
1322 * filetools.C (GetFileContents): STRCONV
1324 * os.C: include config.h
1326 * lstrings.C (getVectorFromString): rewrite to use
1329 2002-10-31 Angus Leeming <leeming@lyx.org>
1331 * forkedcall.C (generateChild): clean it up further.
1333 2002-10-25 Angus Leeming <leeming@lyx.org>
1335 * forkedcall.[Ch]: split ForkedCall up into a base class ForkedProcess
1336 and a minimal ForkedCall daughter class.
1338 * forkedcontr.[Ch]: minimal changes reflecting the use of a
1339 ForkedProcess base class responsible for launching all child proceses.
1341 2002-09-25 Angus Leeming <leeming@lyx.org>
1344 * LOstream.h: doxygen fixes.
1346 2002-09-24 Angus Leeming <leeming@lyx.org>
1348 * most files: clean-up the license info.
1350 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
1352 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
1354 2002-09-16 Kayvan A. Sylvan <kayvan@sylvan.com>
1356 * os.h, os_os2.C, os_win32.C, os_unix.C: Added popen_read_mode(),
1357 since at least for Cygwin, the "rb" read_mode acceptable for
1358 fopen() is illegal for popen(), whose mode argument *must* be "r"
1361 * filetools.C (RunCommand): Uses os::popen_read_mode() instead
1364 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
1366 * Makefile.am (libsupport_la_SOURCES): delete smart_ptr.h and
1369 * smart_ptr.h: remove file
1372 2002-08-20 Lars Gullik Bjønnes <larsbj@gullik.net>
1374 * lyxfunctional.h: remove class_fun_t, void_class_fun_t,
1375 class_fun and void_class_fun
1377 2002-08-20 John Levon <levon@movementarian.org>
1382 2002-08-14 Lars Gullik Bjønnes <larsbj@gullik.net>
1384 * textutils.h: formatting.
1386 2002-08-08 John Levon <levon@movementarian.org>
1388 * limited_stack.h: default to 100 not 10
1390 2002-08-01 John Levon <levon@movementarian.org>
1392 * forkedcall.C: more details on error
1394 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
1396 * lstrings.[hC]: rename stip to rtrim and frontStrip to ltrim,
1397 also add a trim function that is the equiv of
1398 strip(frontStrip(...)), also reimplement the functions
1399 (improvements still possible.)
1401 * filetools.C: strip,frontStrip -> trim,ltrim,rtrim
1402 * forkedcall.C (generateChild): ditto
1406 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
1408 * filetools.C (GetEnvPath): modify because of strip changes
1409 (createDirectory): ditto
1410 (findtexfile): ditto
1411 * lstrings.[Ch] (isStrInt): ditto
1412 (isStrUnsignedInt): ditto
1414 (strToUnsignedInt): ditto
1416 (contains): removed unneeded version of contains
1417 (containsOnly): removed uneeded versions of containsOnly
1418 (strip, frontStrip): removed unneded versions, changed argument types.
1420 2002-07-22 Dekel Tsur <dekelts@tau.ac.il>
1422 * filetools.C (RunCommand): Made public
1424 2002-07-22 John Levon <moz@compsoc.man.ac.uk>
1426 * limited_stack.h: fix comment, remove un-needed header
1428 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1430 * lstrings.h: correct comments for token and tokenPos
1432 2002-07-20 Dekel Tsur <dekelts@tau.ac.il>
1434 * lyxstring.C (operator>>): replace code which works only with
1435 _some_ versions of GNU STL with generic one
1437 2002-07-18 Angus Leeming <leeming@lyx.org>
1439 * FileMonitor.[Ch]: new files. Monitor a file for any change and emit a
1440 signal should it do so.
1442 * Makefile.am: add FileMonitor.[Ch].
1444 2002-07-18 André Pönitz <poenitz@gmx.net>
1446 * filetools.C (LibScriptSearch): bug fix
1448 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1450 * filetools.C (LyXReadLink): add bool 'resolve' to return link
1451 contents as an absolute path
1453 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1455 * filetools.C (IsLyXFilename):
1456 (IsSGMLFilename): use ascii_lowercase instead of lowercase
1458 * lstrings.[Ch] (ascii_lowercase): new function
1460 2002-07-16 André Pönitz <poenitz@gmx.net>
1462 * FileInfo.Ch: remove unneeded code
1464 2002-06-20 Herbert Voss <voss@perce.de>
1466 * filetools.[C] (readExtFromContents): add support for
1467 (x)fig format images
1469 2002-06-26 André Pönitz <poenitz@gmx.net>
1471 * filetools.[Ch]: small whitespace, more compact 'return' statement
1473 2002-06-19 John Levon <moz@compsoc.man.ac.uk>
1475 * lyxalgo.h: add eliminate_duplicates
1477 2002-06-17 Herbert Voss <voss@perce.de>
1479 * filetools.[C]: (readBB_from_PSFile) add a helperfunc
1480 (readBB_lyxerrMessage) to get better lyxerr messages
1481 (getExtFromContents) test epsi files in the right way
1483 * DestroxLyXTmpDir.C: changed to true, to delete the
1484 temporary unzipped files, too.
1486 2002-06-10 Lars Gullik Bjønnes <larsbj@birdstep.com>
1488 * putenv.C (putenv): putenv should never be found in std::
1490 * kill.C (kill): kill should never be found in std::
1492 * filetools.C: pclose and popen should never be found in std::
1494 2002-06-07 Angus Leeming <leeming@lyx.org>
1496 Fixes needed to compile with Compaq cxx 6.5.
1497 * lyxfunctional.h: rename lyx::class_fun(C & c, void(C::*f)(A)) as
1498 lyx::void_class_fun to avoid compiler problems with Compaq cxx 6.5:
1499 more than one instance of overloaded function "lyx::class_fun" matches
1509 all c-library variables have been moved into namespace std.
1510 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
1512 * kill.C: rename signal.h as csignal.
1514 * putenv.C: rename stdlib.h as cstdlib
1516 2002-06-05 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1518 * lxtl.h: remove unused file
1520 2002-05-30 John Levon <moz@compsoc.man.ac.uk>
1527 * StrPool.C: remove unused files
1537 * types.h: document and small cleanups
1539 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
1541 * switch from SigC signals to boost::signals.
1543 2002-05-26 John Levon <moz@compsoc.man.ac.uk>
1546 * limited_stack.h: new template for limited-size
1549 2002-05-25 Lars Gullik Bjønnes <larsbj@birdstep.com>
1551 * filetools.C: do not include LSubstring.h
1553 * lstrings.C: change include order
1554 (regexMatch): use boost regex get rid of LRegex and LSubstring
1556 * Makefile.am (libsupport_la_SOURCES): delete regex and substring
1559 * LSubstring.h: remove file
1564 * LSubstring.C: ditto
1566 2002-05-24 Juergen Vigna <jug@sad.it>
1568 * lyxsum.C: include local includes first (self containment)
1570 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
1572 * forkedcall.h: use more specific smart_ptr header.
1574 * lyxsum.C: move some using declarations around.
1576 2002-05-03 Herbert Voss <voss@perce.de>
1578 * filetools.C (getExtFromContents): only print the first 60 chars of
1579 the scanned-string when debugging.
1581 2002-05-02 Lars Gullik Bjønnes <larsbj@birdstep.com>
1583 * lyxstring.C: close to typo fix.
1585 2002-05-02 Angus Leeming <a.leeming@ic.ac.uk>
1587 * filetools.C: add a using std::getline directive.
1589 2002-05-02 Lars Gullik Bjønnes <larsbj@birdstep.com>
1591 * lyxstring.C (operator>>): try a new version of the operator>>
1593 2002-04-14 Herbert Voss <voss@perce.de>
1595 * lstrings.[Ch]: move the getVectorFromString and the vice versa
1596 from frontends/controllers/helper_funcs for better use in other
1599 2002-04-15 Angus Leeming <a.leeming@ic.ac.uk>
1601 * tempname.C (make_tempfile): simplify the #ifdef block by using
1602 #if defined and re-write the #warning as a #error because it's terminal.
1604 2002-04-08 Herbert Voss <voss@perce.de>
1606 * filetools.C (getExtFromContents): get tgif run
1608 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
1610 * filetools.C (getExtFromContents): re-format a little and remove
1611 replicated "sgi" entry.
1613 2002-04-07 Herbert Voss <voss@perce.de>
1615 * filetools.[Ch]: add readBB_from_PSFile() to make bb available
1616 for the lyx-view in graphics (moved from ControlGraphics)
1618 2002-04-07 Herbert Voss <voss@perce.de>
1620 * filetools.C: fix bug for eps. scans now a whole line
1622 2002-04-06 Lars Gullik Bjønnes <larsbj@birdstep.com>
1624 * lyxstring.C (operator>>): use the better solution, this fixes a
1625 "not able to read '\0'" bug.
1627 2002-04-05 Lars Gullik Bjønnes <larsbj@birdstep.com>
1629 * translator.h: add missing typename
1631 2002-03-27 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1633 * filetools.C (LibScriptSearch): new command. Searches for scripts
1634 in lyx data directories.
1635 (LibScriptSearch): try to use split() correctly.
1637 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
1639 * most files: ws cleanup
1641 * Makefile.am: remove ld -r stuff
1643 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
1645 * Makefile.am (libsupport.la): special rules if partial linking
1647 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
1649 * forkedcontr.C: turn the timer off when their are no longer any
1650 child processes running.
1652 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
1654 * forkedcall.h: docy fix
1655 change SignalType second type to be const ref.
1657 * forkedcall.C: doxy fix
1659 2002-03-11 Kayvan A. Sylvan <kayvan@sylvan.com>
1661 * lyxsum.C: compilation fix
1663 2002-03-02 Herbert Voss <voss@perce.de>
1665 * filetools.C: fix bug for xbm format and added some more debug
1668 2002-03-02 Lars Gullik Bjønnes <larsbj@birdstep.com>
1670 * forkedcontr.h: make constructor public
1672 * types.h: remove layout_type
1674 2002-03-01 Angus Leeming <a.leeming@ic.ac.uk>
1676 * filetools.C (getExtFromContents): cleanup.
1678 * forkedcontr.h (d-tor): make it public for Dekel's crappy compiler.
1680 2002-02-27 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1682 * Makefile.am (SIGC_INCLUDES): add a -I directive for when
1683 building outside of source tree.
1685 2002-02-19 Angus Leeming <a.leeming@ic.ac.uk>
1688 * forkedcontr.[Ch]: new files. Asger's forked call controller is
1689 re-born, with a working timer and a modified interface. The
1690 startscript method is now passed a Signal rather than a pointer
1691 to a callback function. This enables us to connect to the method of
1692 a C++ class, if we so desire.
1694 * Makefile.am: add forkedcall.[Ch], forkedcontr.[Ch].
1696 2002-02-26 John Levon <moz@compsoc.man.ac.uk>
1701 * nt_defines.h: moved from src/
1703 2002-02-23 Herbert Voss <voss@perce.de>
1705 * filetools.C: added more graphic formats
1707 2002-02-18 Herbert Voss <voss@perce.de>
1709 * filetools.C: (getExtFromContents) return the fileextension
1710 if no format is detected.
1712 2002-02-18 Angus Leeming <a.leeming@ic.ac.uk>
1714 * syscall.[Ch]: renamed as systemcall.[Ch]. class Systemcalls renamed
1715 as class SystemCall because one Systemcall instance represents a
1716 single child process.
1719 * Makefile.am: associated changes.
1721 2002-02-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1723 * syscall.C (Systemcalls): include <cstdlib>
1725 2002-02-08 Herbert Voss <voss@perce.de>
1727 * filetools.C: (getExtFromContents) adding Grace-format
1730 2002-02-16 Angus Leeming <a.leeming@ic.ac.uk>
1733 * syssingleton.C: files removed.
1735 * syscall.[Ch]: remove the forked calls interface, as nothing, nowhere
1736 uses it. Strip down the Systemcalls interface to make it brutally
1737 obvious how unsophisticated it is.
1739 2002-02-08 Herbert Voss <voss@perce.de>
1741 * filetools.C: (getExtFromContents) adding TGIF-format
1742 and return type "user" when no type is detected
1744 2002-02-13 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1746 * textutils.h: remove IsLineSeparatorChar(char, Inset *)
1748 2002-02-10 Kayvan Sylvan <kayvan@sylvan.com>
1750 * os_win32.C: Add "using std::endl" to fix compilation for GCC 3.X.
1752 2002-02-08 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1754 * FileInfo.h: remove special cygwin code.
1756 * filetools.C (do_popen): use os::read_mode().
1758 * os_win32.C (read_mode):
1759 * os_os2.C (read_mode):
1760 * os_unix.C (read_mode): new method
1762 * filetools.C (do_popen): fix for cygwin compatibility (from Claus
1763 Hentschel). This code should maybe be moved to os:: class.
1765 2002-02-08 Herbert Voss <voss@perce.de>
1767 * filetools.C: (unzipFile) fix typo
1769 2002-02-06 Herbert Voss <voss@perce.de>
1771 * filetools.[Ch]: fix some bugs for detecting zipped files
1774 2002-02-04 Herbert Voss <voss@perce.de>
1776 * filetools.[Ch]: add ifZippedFile() for zipped
1779 2002-02-04 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1781 * filetools.C (FileOpenSearch): remove duplicated line, probably
1782 resulting from bad cut-and paste.
1784 2002-01-31 Herbert Voss <voss@perce.de>
1786 * filetools.[Ch]: add getExtFromContents(), which returns
1787 the type of the (graphic) file
1789 2002-01-30 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1791 * copy.C (copy): open file in binary mode (for cygwin)
1793 2002-01-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1795 * lyxsum.C: remove #warnings and replaced them with runtime debug
1798 2002-01-14 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1800 * lyxalgo.h: include <algorithm>
1802 2002-01-14 Angus Leeming <a.leeming@ic.ac.uk>
1804 * lyx_algo.h: add a standard-conforming count to namespace lyx.
1806 * lstrings.[Ch] (countChar): removed. Use lyx::count.
1808 2002-01-05 John Levon <moz@compsoc.man.ac.uk>
1810 * filetools.C: fix use of FileInfo
1813 * FileInfo.C: add Asserts and documentation
1815 2001-12-20 Kayvan A. Sylvan <kayvan@sylvan.com>
1817 * os_win32.C: compilation fixes
1819 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1821 * lstrings.h: do not include <cctype>
1823 2001-12-12 Ben Stanley <bds02@uow.edu.au>
1825 * lyxsum.C: portability fix for mmap patch
1827 2001-12-05 Lars Gullik Bjønnes <larsbj@birdstep.com>
1831 * lyxstring.C: change "while(" to "while ("
1833 2001-12-03 Ben Stanley <bds02@uow.edu.au>
1835 * lyxsum.C: Added mmap version of CRC and made it selected
1836 by default where available. Used process_block for crc for speedup.
1838 2001-12-01 John Levon <moz@compsoc.man.ac.uk>
1840 * filetools.C: more robust failure for DirList()
1842 2001-11-29 André Pönitz <poenitz@gmx.net>
1844 * types.h: introduce types for textclass numbers and layout numbers
1846 2001-11-28 André Pönitz <poenitz@gmx.net>
1848 * Makefile.am: put types.h in
1850 2001-11-26 André Pönitz <poenitz@gmx.net>
1852 * types.h: introduce types for paragraph positions and layout numbers
1854 2001-11-04 John Levon <moz@compsoc.man.ac.uk>
1856 * filetools.C: remove dead code
1858 * syscall.C: show prog in fail case
1860 2001-10-24 Andre Poenitz <poenitz@HTWM.De>
1862 * filetools.C: code style cleanup
1864 2001-10-23 Angus Leeming <a.leeming@ic.ac.uk>
1866 * os.h: remove spurious punctuation.
1868 2001-10-19 John Levon <moz@compsoc.man.ac.uk>
1871 * LAssert.C: use new emergencyCleanup()
1873 2001-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1875 * filetools.C (i18nLibFileSearch): check also LANGUAGE and LC_ALL,
1876 like GNU gettext does.
1878 2001-10-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1880 * filetools.C (AbsolutePath): Use os::is_absolute_path() (also in
1882 (findtexfile): oops! the change from last friday was wrong...
1884 * os_win32.C (is_absolute_path):
1885 * os_unix.C (is_absolute_path):
1886 * os_os2.C (is_absolute_path): new method
1888 2001-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1890 * filetools.C (findtexfile): apply os::internal_path to the result.
1892 2001-07-02 Claus Hentschel <claus.hentschel@mbau.fh-hannover.de>
1897 * os.h: add internal_path method, which converts a unix-type file
1898 name to the type known to the underlying file system (currently
1899 only useful on cygwin) [from Ruurd A. Reitsma and Claus Hentschel]
1901 2001-08-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
1903 * smart_ptr.h: new file
1905 * utility.h: new file
1907 2001-08-01 John Levon <moz@compsoc.man.ac.uk>
1910 * filetools.C (IsDirWriteable): fix this
1912 2001-07-26 Baruch Even <baruch@lyx.org>
1914 * lyxlib.h (float_equal): Added function to compare floats almost equal
1915 (see function comment).
1917 2001-07-13 Angus Leeming <a.leeming@ic.ac.uk>
1919 Consistent use of Lsstream.h:
1920 * filetools.C (GetFileContents): std::ostringstream -> ostringstream.
1922 2001-07-12 Lars Gullik Bjønnes <larsbj@birdstep.com>
1924 * translator.h: (*it). -> it->
1926 2001-06-26 The LyX Project <lyx@violet.home.sad.it>
1928 * filetools.C (DeleteAllFilesInDir): send debug output to
1929 Debug::FILES instewad of Debug::ANY.
1931 * DebugStream.h: remove gcc 2.8.x hack.
1933 2001-06-26 The LyX Project <jug@sad.it>
1936 * lstrings.C (escape): move method to escape non ascii characters
1937 from insets label and ref to here.
1939 2001-06-25 The LyX Project <jug@sad.it>
1941 * filetools.C (IsLyXFilename):
1942 (IsSGMLFilename): do case insensitive name matching
1944 2001-06-24 The LyX Project <jug@sad.it>
1946 * lstrings.C (compare_ascii_no_case): version of compare_no_case
1947 which only considers case of ascii characters
1949 * lyxstring.C (replace): added for compatibility with gcc 2.95.3+
1952 2001-06-23 The LyX Project <jug@sad.it>
1954 * textutils.h (IsPrintable): take into account unprintable spaces
1956 (IsDigit): new function
1957 (IsLetterCharOrDigit): use IsDigit
1959 2001-06-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1961 * filetools.C (findtexfile): strip final \r if necessary (for
1964 2001-06-19 Angus Leeming <a.leeming@ic.ac.uk>
1967 * StrPool.C: removed // -*- C++ -*- as first line.
1969 2001-06-01 Lars Gullik Bjønnes <larsbj@birdstep.com>
1971 * lyxsum.C (do_crc): switch to use boost::crc for generating the
1974 2001-06-01 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1979 * LSubstring.C: bring C functions in global namespace if
1982 * lstrings.h (compare): use the std:: version of str[n]cmp only
1985 2001-05-31 Lars Gullik Bjønnes <larsbj@birdstep.com>
1987 * syscontr.C: add std::
1989 * syscall.C: add std::
1991 * lstrings.h (compare): add std::
1993 * lstrings.C (prefixIs): add std::
1997 * LSubstring.C (LSubstring): add std::
1999 2001-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
2001 * lyxsum.C (sum): use istreambuf_iterator when available.
2003 2001-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
2005 * lyxsum.C (sum): don't use sstream anymore, use istream_iterator
2008 * lyxstring.C (operator): make const operator[] behave as
2011 2001-05-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2013 * Makefile.am (EXTRA_DIST): add the os_*.C files.
2015 2001-05-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2017 * filetools.C (MakeAbsPath): remove debugging statement
2019 2001-05-16 Ruurd Reitsma <r.a.reitsma@wbmt.tudelft.nl>
2021 * FileInfo.h: X_OK workaround for cygwin
2030 * filetools.h: Added os:: class.
2034 * tempname.C: OS/2 fixes
2036 2001-05-03 Lars Gullik Bjønnes <larsbj@birdstep.com>
2038 * textutils.h: remvoe !NEW_INSETS cruft
2040 2001-05-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2043 * atoi.C: add using directives when needed for C functions
2044 declared in std:: namespace.
2046 2001-04-25 Lars Gullik Bjønnes <larsbj@birdstep.com>
2048 * lstrings.C : add two helper structs, local_lowercase and
2050 (lowercase): change to use std::transform
2051 (uppercase): change to use std::transform
2053 2001-04-25 Allan Rae <rae@lyx.org>
2055 * lyxstring.C : Assert got moved and Lars missed a few.
2057 2001-04-24 Lars Gullik Bjønnes <larsbj@birdstep.com>
2059 * LAssert.h (Assert): put into namespace lyx
2061 * lyxfunctional.h: put into namespace lyx
2062 * translator.h: adjust
2064 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
2066 * lyxalgo.h: put into namespace lyx, add firster and copy_if
2068 * FileInfo.h: inherit privately from noncopyable
2071 2001-04-16 Allan Rae <rae@lyx.org>
2073 * tempname.C (make_tempfile): #warning triggers an error on Sun CC 6.0
2074 as an unrecognised preprocessor directive. So ensure they're wrapped.
2076 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
2078 * several files: remove CXX_WORKING_NAMESPACES
2080 * FileInfo.h: noncopyable is in namespace boost
2083 2001-02-16 John Levon <moz@compsoc.man.ac.uk>
2085 * syscontr.h: fix header include
2087 2001-02-28 Baruch Even <baruch@ev-en.org>
2089 * filetools.C: Removed dependency on syscall.h
2092 * syscall.C: Minor cleanings before I start to touch this code.
2094 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
2096 * filetools.C (CreateTmpDir): change umask to 0700.
2098 2001-02-27 José Matos <jamatos@fep.up.pt>
2100 * filetools.h (BasePath):
2101 * filetools.C (BasePath): removed since it is a duplicate of OnlyPath.
2103 * filetools.C (IsLyXFilename):
2104 * filetools.C (IsSGMLFilename): test if extension is suffix and not
2107 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
2111 * atoi.C: remove cruft
2113 2001-02-06 albert chin <china@thewrittenword.com>
2116 * fmt.C: use HAVE_DECL_SNPRINTF
2118 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
2120 * lyxstring.C: Fix some assertions.
2122 2001-01-23 Dekel Tsur <dekelts@tau.ac.il>
2124 * lstrings.C (strip): Add a fix for compilers with broken
2125 string::find_last_not_of.
2127 * filetools.C (AddPath): Simplify by using strip and frontStrip.
2129 2001-01-20 Dekel Tsur <dekelts@tau.ac.il>
2131 * lyxstring.C (rfind): Fix broken functions.
2132 (find): Few optimizations.