1 2005-04-22 Angus Leeming <leeming@lyx.org>
3 * package.C.in (get_binary_path): on prompting from Rob Bearman,
4 ensure that the name of the executable, as input at the command
5 line has a ".exe" suffix so that various file interogations
8 2005-04-22 Angus Leeming <leeming@lyx.org>
11 * forkedcall.h: remove pid_t definition to config.h.
13 2005-04-21 Angus Leeming <leeming@lyx.org>
16 * forkedcall.h: define pid_t for MSVC.
18 * forkedcall.C (kill): work around evil MSVC max macro.
20 2005-04-21 Angus Leeming <leeming@lyx.org>
22 * forkedcontr.C: add #include <csignal>.
24 * filetools.C (RunCommand): remove the signal blocking stuff
25 now that we no longer use a signal handler on unix.
27 2005-04-19 Angus Leeming <leeming@lyx.org>
29 * filetools.C: remove unnecessary #include of forkedcontr.h.
31 * forkedcall.C: protect system-specific headers with preprocessor
33 (running): don't call waitpid() on Windows.
34 (waitForChild): add Windows-specific code to wait for a child process
36 (generateChild): add Windows-specific code to spawn the child in the
39 * forkedcontr.[Ch]:Revert back to the LyX 1.3.x version of the code
40 to spawn a child process asynchronously. Do this because 'issues'
41 remain with the SIGCHLD handling code on *nix and because there's no
42 easy way to implement such a monitor on Windows. Explicit polling,
43 as in Lyx 1.3.x, is safe, robust and works on both platforms.
45 2005-04-19 Angus Leeming <leeming@lyx.org>
47 * package.C.in (get_temp_dir): call GetLongPathName on Windows.
49 2005-04-19 Angus Leeming <leeming@lyx.org>
51 * pch.h: protect unix-specific headers from breaking compilation
54 2005-04-17 Angus Leeming <leeming@lyx.org>
56 * filetools.C (MakeDisplayPath): invoke os::external_path before
59 * os_win32.C (external_path): convert '/' chars to '\'.
61 * filetools.[Ch] (latex_path): new function which modifies
62 an input path containing space and '~' characters into something that
65 2005-04-17 Angus Leeming <leeming@lyx.org>
67 * forkedcall.C (generateChild): do not strip quotes from args on
69 Wrap lyxerr output inside an if (lyxerr.debugging(Debug::FILES))
72 2005-03-23 Angus Leeming <leeming@lyx.org>
74 * Makefile.am (build_package): Solaris sed does not like
75 spaces bewteen the ;-delimited commands.
77 2005-02-25 Lars Gullik Bjonnes <larsbj@gullik.net>
79 * Makefile.am (CLEANFILES): clean generated files
81 2005-02-17 Angus Leeming <leeming@lyx.org>
83 * copy.C (copy): Pass the ios::in flag to the ifstream constructor.
84 Enables copying to work when the code is compiled with the gcc 2.95
87 2005-02-15 Angus Leeming <leeming@lyx.org>
89 * environment.C: add missing #include.
90 (setEnvPath): compare iterators rather than use tellp().
92 2005-02-15 Angus Leeming <leeming@lyx.org>
94 * environment.[Ch]: new files. Move the environment setter/getter
95 functions here from filetools.[Ch]. In the process:
96 rename GetEnv as getEnv.
97 rename putEnv as setEnv. Change the signature of the function
98 to take a pair of arguments (a name and a value) rather than the
99 existing coded "name=value" single argument. Merge the putenv.C
102 * lyxlib.h (putenv): remove declaration.
105 * Makefile.am: add environment.[Ch]. Remove putenv.C.
107 * filetools.[Ch]: remove environment setter/getter functions.
109 * os_os2.C (init): s/GetEnvPath/getEnvPath/. Left over from an
112 * package.C.in (get_home_dir, extract_env_var_dir):
113 * userinfo.C (user_email): s/GetEnv/getEnv/.
115 2005-02-03 Angus Leeming <leeming@lyx.org>
117 * forkedcall.C (running): call the lyx::kill wrapper function
118 rather than the system kill.
120 2005-02-02 Angus Leeming <leeming@lyx.org>
122 * forkedcall.C (generateChild): overhaul the code to split a string
123 into an argv array of words. Now respects simple quoting reasonably
126 2005-02-01 Angus Leeming <leeming@lyx.org>
128 * fs_extras.C: #include <windows.h>
130 2005-01-31 Angus Leeming <leeming@lyx.org>
132 * package.[Ch] (init_package, c-tor): define and use an enum to
133 specify explicitly the location of the top level build directory
134 when the executable is run in-place.
136 2005-01-31 Lars Gullik Bjonnes <larsbj@gullik.net>
138 * fs_extras.C: add changes from Asger's Win32 patch.
140 2005-01-31 Asger Ottar Alstrup <aalstrup@laerdal.dk>
143 * getcwd.C (l_getcwd):
145 * mkdir.C (mkdir): add Win32 specializations.
147 * os_win32.h: remove cruft.
149 2005-01-31 Lars Gullik Bjonnes <larsbj@gullik.net>
151 * Makefile.am (libsupport_la_SOURCES): remove rmdir.C
153 * rmdir.C: delete file
155 * lyxlib.h: remove rmdir decl
157 2005-01-31 Lars Gullik Bjonnes <larsbj@gullik.net>
159 * .cvsignore: add package.C
161 * FileInfo.C, FileInfo.h: delete files
163 * fs_extras.C, fs_extras.h: new files
165 * FileMonitor.C, filetools.C: rewrite to use boost.filesystem
167 * Makefile.am (libsupport_la_SOURCES: delete FileInfo.[Ch], add
170 * filetools.C: make destroydir return true if something was
171 deleted. adjust callers.
172 (IsFileWritable): replace with is_readonly in fs_extras, adjust
175 * package.C.in: rewrite to use boost.filesystem
177 2005-01-27 Lars Gullik Bjonnes <larsbj@gullik.net>
179 * tests: add some code for automatic regression testing, can be
180 improved or removed as we see fit
182 * lyxlib.h (atoi): delete func
184 * lstrings.[Ch] (strToInt): delete func
185 (strToUnsignedInt): delete func
186 (strToDbl): delete func
188 * Makefile.am: add subdir tests, delete atoi.C
190 * atoi.C: delete file
192 * convert.C: add specializations for converting to int, unsigned
193 int, double from string, and for converting to int and double from
196 * convert.h: remove commented code
198 2005-01-22 Angus Leeming <leeming@lyx.org>
200 * path.C (Path): revert the patch since the if statement has side
201 effects that are needed for the code to work :-(
203 2005-01-21 Angus Leeming <leeming@lyx.org>
205 * os_cygwin.C, os_win32.C: strip the Cygwin-specific stuff out of
206 os_win32.C and give it its own file.
208 * os.C: #include "os_cygwin.C" if building on Cygwin.
210 2005-01-20 Angus Leeming <leeming@lyx.org>
212 * lyxlib.h (float_equal): promote parameters to double.
214 * path.C (Path): silence MSVC warning about block of code that
217 2005-01-20 Asger Ottar Alstrup <aalstrup@laerdal.dk>
219 * FileInfo.h, chdir.C, forkedcall.C, forkedcontr.C, getcwd.C,
220 mkdir.C, os_defines.h, pch.h, rmdir.C, unlink.C:
221 use the HAVE_UNISTD_H preprocessor guard.
223 2005-01-20 Angus Leeming <leeming@lyx.org>
225 * filetools.[Ch] (LibScriptSearch): modify the code that replaces
226 the $$s placeholder with a path, so that it now inserts the path
227 of the lyx support directory, not the scripts subdirectory.
229 2005-01-19 Asger Ottar Alstrup <aalstrup@laerdal.dk>
231 * lyxsum.C, socktools.C, tempname.C, userinfo.C: use the
232 HAVE_UNISTD_H preprocessor guard.
234 2005-01-17 Angus Leeming <leeming@lyx.org>
236 * os_win32.C (init): Add Ruurd's original code to close the
237 console window that Windows opens for us, together with a note
238 explaining the alternative approach.
240 2005-01-17 Angus Leeming <leeming@lyx.org>
242 * package.C.in (get_binary_path): convert relative paths stored
243 in the PATH environment variable to absolute ones.
245 2005-01-16 Angus Leeming <leeming@lyx.org>
247 * filetools.[Ch] (prependEnvPath): prepend a list of paths to
248 that returned by the environment variable. Identical paths occurring
249 later in the list are removed.
251 2005-01-16 Angus Leeming <leeming@lyx.org>
253 * filetools.C (createLyXTmpDir): add some missing brackets to the
254 if-block. OS/2 users will be happier.
256 2005-01-02 Kayvan Sylvan <kayvan@sylvan.com>
258 * os_win32.C (external_path): Check the new cygwin_path_fix_ bool
259 before translating external paths to Win32 paths.
261 2005-01-13 Angus Leeming <leeming@lyx.org>
263 * os.h, os_os2.C, os_unix.C, os_win32.C (cygwin_path_fix): new
264 function flagging whether LyX should output native Win32 paths
265 or cygwin paths. Obviously operative only under Cygwin.
267 2005-01-13 Angus Leeming <leeming@lyx.org>
269 * package.C.in: use "%n$s" rather than "%n%" for n=1,2,3... when
270 calling bformat so that the substitutions work for the non
271 boost::format users too.
273 2005-01-12 Angus Leeming <leeming@lyx.org>
275 * filetools.[Ch] (setEnvPath): new function to create a PATH-style
276 string from a vector of paths and to use it to set an environment
278 (putEnv): resurrect this from the grave.
280 * os.h, os_os2.C, os_unix.C, os_win32.C (path_separator): new
281 function returning the character used to separate paths returned
282 by the PATH environment variable.
284 * os_win32.C: add #include "lstring.h" back in.
286 * package.C.in (package): comment out the ASSERT for now.
287 (check_env_var_dir): write one of the strings to be translated
288 (any one, doesn't matter) on a single line so that the
289 gettext search mechanism in po/Makefile.in.in will register
290 package.C.in as a file containing strings that need translation.
292 2005-01-10 Angus Leeming <leeming@lyx.org>
297 * os_win32.C (binpath, binname, homepath, setTmpDir, getTmpDir, warn):
298 removed. Remove also all code to set the associated data variables.
300 * package.{C.in,h}: new files to ascertain the paths to the
301 various directories used by LyX. Does nothing with these paths,
302 just determines the strings themselves.
304 * path_defines.{C.in,h}: removed.
306 * Makefile.am: remove path_defines.{C.in,h}. Add package.{C.in,h}.
308 * filetools.[Ch] (GetEnvPath): remove.
309 (getEnvPath): replacement. Returns a vector<string> of paths.
312 * tempname.C: use support/package.h to provide the paths to the
313 various directories used by LyX.
315 2005-01-07 Angus Leeming <leeming@lyx.org>
317 * convert.C (string>): add specialization for long.
319 2005-01-07 Lars Gullik Bjonnes <larsbj@gullik.net>
321 * convert.h: remove the specializations, don't included unneeded
323 * convert.C: add specialization for unsigned long
325 2005-01-06 Lars Gullik Bjonnes <larsbj@gullik.net>
327 * tostr.[Ch]: renamed to convert[ch]
329 2005-01-06 Lars Gullik Bjonnes <larsbj@gullik.net>
331 * lstrings.[Ch]: change bformat to be a template
333 * tostr.[Ch]: tostr -> convert, convert is a template
336 * filetools.C (createBufferTmpDir): tostr -> convert
338 2005-01-05 Angus Leeming <leeming@lyx.org>
340 * os_win32.C (external_path, internal_path): s/MAX_PATH/PATH_MAX/.
342 2005-01-04 Angus Leeming <leeming@lyx.org>
344 * os_win32.C (current_root): use _getdrive on Win32.
346 * FileInfo.C (FileInfo, newFile): strip the trailing '/' from
347 the stored file name as it breaks Window's version of stat().
348 (isLink): protect the code with #ifdef S_ISLNK.
349 (dostat): protect the code with #ifdef HAVE_LSTAT.
350 (typeIndicator): remove code testing the file's executable status.
352 * filetools.C (LyXReadLink): protect the code with
353 #ifdef HAVE_READLINK.
355 2005-01-01 Kayvan Sylvan <kayvan@sylvan.com>
357 * os_win32.C (internal_path): remove the call to MakeLatexName as
358 it is (1) unnecessary and (2) leads to an infinite loop as
359 MakeLatexName calls AddName which calls internal_path...
361 2004-12-19 Angus Leeming <leeming@lyx.org>
363 * path_defines.C.in (setLyxPaths): on a Windows build,
364 remove the ".exe" extension from the name of the LyX binary when
365 trying to ascertain the name of the LyX system directory.
366 (Usually, <path to binary>/../share/<name of binary>/).
368 * os.h, os_os2.C, os_unix.C, os_win32.C (slashify_path): remove.
370 * os_win32.C (init): ensure that the name of the lyx executable is
371 stored internally with a unix-style path.
373 * os_win32.C (internal_path, external_path): differentiate between
374 cygwin and windows builds.
376 * filetools.C (FileOpenSearch, GetEnvPath, createDirectory,
377 MakeAbsPath, AddName, MakeRelPath, ChangeExtension):
378 * filename.C (mangledFilename):
379 s/slashify_path/internal_path/.
381 2004-12-16 Angus Leeming <leeming@lyx.org>
383 * filename.C (mangledFilename): Given a Windows-style path, don't
384 forget to mangle the drive letter too when generating a unique
387 2004-12-16 Angus Leeming <leeming@lyx.org>
389 * mkdir.C: move the HAVE_MKDIR conditional code out of config.h
392 2004-12-15 Angus Leeming <leeming@lyx.org>
394 * FileInfo.[Ch] (getNumberOfLinks): removed.
396 2004-12-15 Angus Leeming <leeming@lyx.org>
398 * tempname.C: #include fcntl.h and sys/stat.h if creating a temp
399 file using mktemp and open.
401 2004-12-14 Angus Leeming <leeming@lyx.org>
403 * os.h, os_os2.C, os_unix.C, os_win32.C:
404 (binpath, binname, getTmpDir): return a const reference rather than
406 (homepath, nulldev): new functions returning the name of "HOME" and
407 the null device, respectively.
409 * filetools.C: (ExpandPath, MakeDisplayPath):
410 * path_defines.C.in (setLyxPaths): use os::homepath(), not
413 2004-12-14 Angus Leeming <leeming@lyx.org>
415 * os.h, os_{os2,unix,win32}.C (init): change interface to no longer
416 pass the addresses of the parameters received by main.
418 2004-12-14 Angus Leeming <leeming@lyx.org>
420 * copy.C (copy): open the ifstream with ios::binary.
422 2004-12-14 Angus Leeming <leeming@lyx.org>
424 * os.C: Add _WIN32 to the #define.
426 * systemcall.C (startscript): remove trailing '/n' from request to
427 start the command in a minimized window under DOS.
429 2004-12-14 Angus Leeming <leeming@lyx.org>
431 * Makefile.am (AM_CPPFLAGS): Remove trailing slash from -Ifoo/
432 to overcome bug in the MinGW port of g++ 3.4.2.
434 2004-11-26 Angus Leeming <leeming@lyx.org>
436 * globbing.[Ch] (glob): change API to:
437 1. Append matches to the input container.
438 2. Require a working_dir parameter. The function invokes chdir
439 internally (through use of Path).
441 2004-11-26 Angus Leeming <leeming@lyx.org>
443 * filefilterlist.C (convert_brace_glob): moved here from
446 * filefilterlist.[Ch]: clean-up FileFilterList API.
448 * globbing.[Ch] (convert_brace_glob): moved to filefilterlist.C.
449 (expand_globs): moved to xforms/FormFiledialog.C.
451 2004-11-25 Angus Leeming <leeming@lyx.org>
453 * filefilterlist.[Ch]:
454 * globbing.[Ch]: split FileFilterList into its own .[Ch] files.
456 * Makefile.am: add filefilterlist.[Ch].
458 2004-11-16 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
460 * textutils.h (isKommaChar): remove
462 2004-11-16 Lars Gullik Bjonnes <larsbj@gullik.net>
464 * forkedcontr.C (find_pid): simplify and also make pass concept
466 (handleCompletedProcesses): make sure that we do not slice the
467 object and satisfy concept checks.
469 2004-11-09 Georg Baum <Georg.Baum@post.rwth-aachen.de>
471 * filetools.[Ch] (getFormatFromContents): don't guess format from
472 extension, return string() instead of "user" if the format could
475 2004-11-07 Lars Gullik Bjonnes <larsbj@gullik.net>
477 * Make it clearer where include files are coming from.
479 2004-11-06 Lars Gullik Bjonnes <larsbj@gullik.net>
481 * translator.h: use bind, equal_to instead of equal_1st_in_pair
482 and equal_2nd_in_pair
484 * Makefile.am (libsupport_la_SOURCES): remove lyxfunctional.h
485 * lyxfunctional.h: delete file
487 * lyxfunctional.h: delete compare_memfun and helper classes
489 * forkedcontr.C (find_pid): use bind, equal_to instead of
492 * lyxfunctional.h: delete back_inserter_fun functions and helper
495 2004-11-04 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
497 * snprintf.[ch]: removed
499 * Makefile.am (libsupport_la_SOURCES): remove snprintf
501 2004-10-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
503 * filetools.[Ch] (getExtFromContents): rename to
504 getFormatFromContents and return always a format
506 2004-10-25 Angus Leeming <leeming@lyx.org>
508 * forkedcall.C (generateChild): strip quotes from each argument
511 2004-09-26 Lars Gullik Bjonnes <larsbj@gullik.net>
513 * pch.h: use proper signal include
515 * forkedcallqueue.C: remove unused include
517 * FileMonitor.h: Use the preferred calling for Boost.Signal
518 * forkedcall.h: ditto
520 * FileMonitor.C: use the new signal typedef
522 2004-09-26 Lars Gullik Bjonnes <larsbj@gullik.net>
524 * forkedcall.h: remove include of <boost/function/funtion0.hpp>
527 2004-09-10 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
529 * textutils.h (IsLetterCharOrDigit): remove
531 2004-09-10 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
533 * filetools.C (LibScriptSearch): quote the path of the script, in
534 case it contains spaces
536 2004-09-04 Lars Gullik Bjonnes <larsbj@gullik.net>
538 * tostr.C: reimplement using lexical_cast
540 2004-08-30 Lars Gullik Bjonnes <larsbj@gullik.net>
542 * pch.h: do not use include boost/format.hpp, multiple symbols
543 will result (gcc bug)
545 2004-08-15 Lars Gullik Bjonnes <larsbj@gullik.net>
549 * Makefile.am: support pch
551 2004-08-09 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
553 * globbing.C (FileFilterList): make sure that "All files (*)" is
554 always part of the filters list
556 2004-07-24 Lars Gullik Bjonnes <larsbj@gullik.net>
558 * tostr.C, lstrings.C, globbing.C, filetools.C: change
559 "support/std_sstream.h" to <sstream>
561 * Makefile.am (libsupport_la_SOURCES): delete std_sstream.h and
563 (std_sstream.h): delete file
564 (sstream.h): delete file
566 2004-06-29 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
568 * filetools.C (i18nLibFileSearch): honor case where LANGUAGE
569 specifies a list of locales (thanks to Pablo Saraxtaga for the
572 2004-05-04 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
574 * path_defines.C.in (setLyxPaths): make sure that LyX/Mac can find
575 its po files when moved around; set default user directory to
576 ~/Library/Preferences/LyX/ for LyX/Mac.
577 (lyx_localedir): return the value that may have been computed in
580 2004-05-27 Kayvan Sylvan <kayvan@sylvan.com>
582 * Makefile.am (libsupport_la_SOURCES): remove reference to
585 2004-05-20 Angus Leeming <leeming@lyx.org>
587 * debugstream.h: wrap the definition of debug_trait::DEBUG with
588 preprocessor guards that protect against a name clash with a
589 macro DEBUG. Such a macro is defined by the Qt library...
591 2004-04-27 Angus Leeming <leeming@lyx.org>
593 * path_defines.{h,C.in}: expose top_srcdir, renamed from
596 2004-04-05 Angus Leeming <leeming@lyx.org>
599 wrap #warning calls inside #ifdef WITH_WARNINGS blocks.
601 2004-04-05 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
603 * filetools.C (RunCommand): block SIGCHLD during popen/pclose
604 (actually Angus' fix).
606 2004-04-01 Georg Baum <Georg.Baum@post.rwth-aachen.de>
608 * filetools.C (DeleteAllFilesInDir): delete directories with
609 rmdir(), unlink() does not work
611 2004-03-27 Angus Leeming <leeming@lyx.org>
613 * forkedcontr.C (child_handler): squash warning about a
614 signed/unsigned comparison.
615 (handleCompletedProcesses): only output a warning about an error
616 waiting for the child if it is indeed an error ;-)
618 2004-03-26 Angus Leeming <leeming@lyx.org>
620 * forkedcall.[Ch] (run): new function, replacing runBlocking,
623 * forkedcall.C (generateChild): ensure that the code that splits
624 the command up into an array of words won't leak in the event of an
627 * forkedcontr.C: make it a little more robust.
629 2004-03-24 Angus Leeming <leeming@lyx.org>
631 * forkedcontr.[Ch]: get rid of the timer that we use to poll the list
632 of child proccesses and ascertain whether any have died. Instead use
633 the SIGCHLD signal emitted by the system to reap these zombies in the
634 maximally efficient manner. The subsequent emitting of the signal
635 associated with each child process *is* performed within the main
636 lyx event loop, thus ensuring that the code remains safe.
638 A detailed description of the design is to be found in forkedcontr.C.
640 2004-03-24 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
642 * filetools.C (i18nLibFileSearch): simplify the logic a bit
644 2004-03-23 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
646 * filetools.C (i18nLibFileSearch): fix the logic to match closely
649 2004-03-23 Angus Leeming <leeming@lyx.org>
651 * forkedcall.h (ForkedProcess, Forkedcall): change the signature of
652 clone to return a boost::shred_ptr rather than a std::auto_ptr.
654 * forkedcontr.[Ch]: store the forked calls as boost::shared_ptrs rather
657 2004-03-22 Angus Leeming <leeming@lyx.org>
659 * forkedcontr.[Ch] (childrenChanged, getPIDs, getCommand): remove
660 cruft left over from the removal of the Forks dialog.
662 2004-03-09 Georg Baum <Georg.Baum@post.rwth-aachen.de>
664 * filename.[Ch] (mangledFilename): make sure that mangled names are
667 2004-02-21 Georg Baum <Georg.Baum@post.rwth-aachen.de>
669 * filetools.[Ch] (CreateBufferTmpDir): rename to createBufferTmpDir,
670 remove pathfor argument
671 * filetools.[Ch] (CreateLyXTmpDir): rename to createLyXTmpDir, try
672 harder to create a usable temp dir
673 * filetools.C (CreateTmpDir): rename to createTmpDir
674 filetools.[Ch] (unzipFile): add argument for output filename
675 * filename.h: fix doxygen warning
677 2004-02-01 Lars Gullik Bjonnes <larsbj@gullik.net>
679 * lstrings.h (contains_functor): delete
680 (contains): change into template, simplify
682 * lstrings.C (contains): remove both functions
684 2004-01-31 Lars Gullik Bjonnes <larsbj@gullik.net>
686 * lyxalgo.h (eliminate_duplicates): reimplement with sort and the
689 * lstrings.h (contains_functor): inherit from
690 std::binary_function, remove typedefs.
692 2004-01-28 Lars Gullik Bjonnes <larsbj@gullik.net>
694 * globbing.C: add using statement for std::distance, remove std::
697 2004-01-08 Angus Leeming <leeming@lyx.org>
699 * globbing.[Ch]: add a new class FileFilterList to parse a Qt-style
700 list of available file filters and generate the corresponding vector.
702 2003-12-14 Ronald Florence <ron@18james.com>
704 * tostr.[hC]: added tostr(long unsigned int i).
706 * path_defines.C.in: determine system directory and set PATH for
707 relocatable LyX/Mac bundle.
709 2004-01-06 Angus Leeming <leeming@lyx.org>
711 * globbing.C (glob): compilation fix for cygwin.
713 2004-01-06 Lars Gullik Bjonnes <larsbj@gullik.net>
715 * Makefile.am (libsupport_la_SOURCES): remove BoostFormat.h and
717 * BoostFormat.h: delete file
718 * boost-inst.C: delete fil
720 * lstrings.C: include boost/format.hpp
722 2004-01-05 Angus Leeming <leeming@lyx.org>
724 * globbing.[Ch]: new files containing some globbing utilities.
726 2003-11-05 João Luis M. Assirati <assirati@fma.if.usp.br>
728 * putenv.C: allocate the string before putting it into the
733 2003-11-03 Lars Gullik Bjønnes <larsbj@gullik.net>
735 * tempname.C (tempName): use scoped_array for exception safety
737 * os_os2.C (init): use scoped_array for exception safety
739 * getcwd.C (getcwd): use scoped_array for exception safety
741 * forkedcontr.C (addCall): adjust
743 * forkedcall.h: make clone return a auto_ptr
745 2003-11-01 Lars Gullik Bjønnes <larsbj@gullik.net>
747 * debugstream.h: add a default constructor that does not setup a
750 2003-10-14 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
752 * socktools.C: honor CXX_GLOBAL_CSTD
754 2003-10-16 André Pönitz <poenitz@gmx.net>
756 * filetools.C (ReplaceEnvironmentPath): set up patterns just once
757 using static variables.
759 2003-10-13 João Luis Meloni Assirati <assirati@fma.if.usp.br>
761 * socktools.[Ch]: New files. Wrapper around socket system calls.
763 2003-10-13 Kayvan A. Sylvan <kayvan@sylvan.com>
765 * socktools.C (SUN_LEN): add this MACRO definition for platforms
766 that do not define it themselves.
768 2003-10-08 Angus Leeming <leeming@lyx.org>
770 * copied_ptr.h: get rid of the swap member function.
772 2003-10-08 Angus Leeming <leeming@lyx.org>
774 Fix doxygen warnings.
776 * debugstream.h: \file debugStream.h -> \file debugstream.h
778 * os.h: move comment so that doxygen is not confused.
780 2003-10-07 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
782 * Makefile.am: fix typo.
784 2003-10-06 Lars Gullik Bjønnes <larsbj@gullik.net>
786 * std_string.h: delete file
788 2003-10-06 Martin Vermeer <martin.vermeer@hut.fi>
790 * lstrings.C: Small fixes to build using STLport
792 2003-09-29 Angus Leeming <leeming@lyx.org>
794 * filetools.C (ReplaceEnvironmentPath): make it work for both
795 ${HOME}/foo and $HOME/foo.
797 2003-09-26 Lars Gullik Bjønnes <larsbj@gullik.net>
799 * debugstream.h: add file, updated version of the DebugStream
801 * DebugStream.C,DebugStream.h: delete files
803 2003-09-25 Angus Leeming <leeming@lyx.org>
805 * filetools.C (ReplaceEnvironmentPath): rewrite to use boost::regex.
806 * lstrings.[Ch]: (regexMatch): removed.
808 2003-09-25 Angus Leeming <leeming@lyx.org>
810 * translator.h (add): new member function.
812 2003-09-16 Angus Leeming <leeming@lyx.org>
814 * textutils.h: remove #include "paragraph.h". Remove functions
815 IsInsetChar and IsWordChar.
817 2003-09-15 Angus Leeming <leeming@lyx.org>
819 * copied_ptr.h: re-jig to something that resembles Herb Sutter's
820 HolderPtr --- see http://www.gotw.ca/gotw/062.htm. Also known in
821 his book as ValuePtr.
822 Use a memory_traits template parameter to create/destroy memory in a
825 2003-09-15 Lars Gullik Bjønnes <larsbj@gullik.net>
829 * filetools.C: Remove usage of STRCONV
831 * Makefile.am (libsupport_la_SOURCES): remove lyxstring.C and
834 * std_string.h: modify to always work with std::string, but if
835 with-included-string then use it through namespace lyx. Remove
838 * lyxstring.[Ch]: remove files
840 2003-09-15 Angus Leeming <leeming@lyx.org>
842 * translator.h: add #include <boost/assert.hpp>, so that the
843 template is self-contained.
845 2003-09-11 Angus Leeming <leeming@lyx.org>
848 * copied_ptr.h: added to the repository. Maybe temporarily.
850 2003-09-09 Lars Gullik Bjønnes <larsbj@lyx.org>
852 * Makefile.am (libsupport_la_SOURCES): remove LAssert.C and LAssert.h
854 * several files: change Assert to BOOST_ASSERT
857 * LAssert.h: remove files
859 2003-09-08 Angus Leeming <leeming@lyx.org>
862 * filetools.C: tell the world where to find author contact details.
864 2003-09-08 Angus Leeming <leeming@lyx.org>
870 * lyxsum.C: remove redundant using directives.
872 2003-09-05 Angus Leeming <leeming@lyx.org>
874 * lstrings.C: small bformat fix
876 2003-09-05 Angus Leeming <leeming@lyx.org>
878 * std_istream.h: new file Just renaming of LIstream.h
879 * std_ostream.h: new file Just renaming of LIstream.h
880 * std_sstream.h: new file Just renaming of Lsstream.h
881 * std_string.h: new file Just renaming of LString.h
883 2003-09-05 Angus Leeming <leeming@lyx.org>
887 ensure that the header file can be compiled stand-alone.
889 2003-09-04 Lars Gullik Bjønnes <larsbj@lyx.org>
891 * lstrings.[Ch] (bformat): add a variant taking two ints.
893 2003-09-04 Angus Leeming <leeming@lyx.org>
896 * filename.C: move #include "os.h" out of the header file.
898 2003-09-04 Angus Leeming <leeming@lyx.org>
900 * path.C (ctor, dtor): move out of line.
902 2003-09-03 Angus Leeming <leeming@lyx.org>
904 * filename.[Ch] (FileName): new c-tor takes abs_filename arg.
905 (mangledFilename): new function, returning a mangled version of the
906 absolute file name, suitable for use in the temp dir when, for example,
907 converting an image file to another format.
908 (isZipped, unzippedFilename): wrappers to global functions.
910 * filetools.[Ch] (copyFileToDir): removed.
911 (compare_timestamps): new function.
913 2003-09-03 Angus Leeming <leeming@lyx.org>
915 * translator.h: Assert is in namespace lyx::support...
917 2003-08-02 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
919 * Makefile.am: do not install path_defines.C in includes
920 (COMPRESSION): mention gzstream.h here
922 2003-08-01 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
924 * path_defines.C.in (setLyxPaths): re-introduce the code to check
925 whether lyx is run in place
926 (build_dir): renamed from build_lyxdir
927 (build_lyxdir): give this better semantics compatible with what
928 LibFileSearch expects.
930 2003-07-29 Angus Leeming <leeming@lyx.org>
932 * filename.[Ch] (relFilename, outputFilename): the 'path' arg
933 defaults to string() because MakeRelPath can accept that.
935 2003-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
937 * Makefile.am: conditionalize USE_COMPRESSION.
939 2003-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
941 * filetools.C (getExtFromContents): correct magic for gzip and
944 * path_defines.[Ch]: move lyx_localedir out of anon namespace
946 * gzstream.h: new fileq
948 * gzstream.C: new file
950 2003-07-27 Angus Leeming <leeming@lyx.org>
952 * path_defines.{h,C.in} (build_lyxdir, system_lyxdir,
953 user_lyxdir): are now functions, not global vars.
955 * Makefile.am: set build_lyxdir at make time.
957 2003-07-27 Angus Leeming <leeming@lyx.org>
959 * path_defines.{h,C.in}: new files. Store/set the various lyx
960 paths, lyx_dir, top_srcdir, localedir, system_lyxdir, build_lyxdir
963 * Makefile.am: add some magic to enable the user to set the path to
964 the system-level lyx support files, the top of the lyx build tree
965 and the system-level lyx locale directory at _make_ time rather
968 * .cvsignore: add path_defines.C.
970 2003-07-26 Angus Leeming <leeming@lyx.org>
972 * os.h: remove irrelevant discussion of system_tempdir.
974 2003-07-21 Angus Leeming <leeming@lyx.org>
976 * filename.[Ch]: new files implementing class FileName.
977 * Makefile.am: add filename.[Ch].
979 2003-07-18 Lars Gullik Bjønnes <larsbj@gullik.net>
981 * BoostFormat.h (boost): remove one extern template. Gcc 3.4. does
982 not allow it (at least not in this form.)
984 2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
986 * os_win32.C: put namespace os in lyx::support.
988 * lstrings.C (bformat): call Assert from correct namespace.
990 * introduce namespace lyx::support
992 2003-06-30 André Pönitz <poenitz@gmx.net>
995 * lstrings.C: re-enable --with-included-string
997 2003-06-28 Lars Gullik Bjønnes <larsbj@gullik.net>
999 * filetools.h: fix some \param issue
1001 * boost-inst.C: fix \file
1003 * LAssert.h: fix \file
1005 2003-06-20 Angus Leeming <leeming@lyx.org>
1007 * filetools.[Ch] (NormalizePath): also change /foo//bar ==> /foo/bar.
1009 2003-06-18 Angus Leeming <leeming@lyx.org>
1011 * many files: add the standard blurb, "This file is part of LyX" etc
1013 2003-06-17 Lars Gullik Bjønnes <larsbj@lyx.org>
1015 * limited_stack.h: make it have a const_iterator, add begin, and
1018 2003-06-10 Angus Leeming <leeming@lyx.org>
1020 * filetools.C (copyFileToDir): ensure that temp files have unique names.
1022 2003-06-04 André Pönitz <poenitz@gmx.net>
1024 * limited_stack.h (top): return reference instead of value
1026 2003-06-02 Angus Leeming <leeming@lyx.org>
1028 * filetools.[Ch] (copyFileToDir): new helper function.
1030 * os.h: remove trailing semi-colon from end of namespace os block.
1032 2003-06-01 Angus Leeming <leeming@lyx.org>
1034 * filetools.h (LibScriptSearch): give the function a meaningful
1035 description of what it now does.
1037 2003-05-30 Angus Leeming <leeming@lyx.org>
1039 * filetools.C (LibScriptSearch): make it search for "$$s/" and replace
1040 this with the path to the script. If the script is not found, the "$$s/"
1043 2003-05-22 Lars Gullik Bjønnes <larsbj@gullik.net>
1045 * lstrings.[Ch] (prefixIs,suffixIs,subst): remove variants taking
1048 2003-05-19 André Pönitz <poenitz@gmx.net>
1050 * lstrings.C: add missing implementation of three-arg bformat
1052 * lstrings.C: change rest of char * fmt -> string const & fmt
1055 2003-05-15 André Pönitz <poenitz@gmx.net>
1057 * lstrings.[Ch]: use string const & instead of char const * for format
1059 2003-05-12 André Pönitz <poenitz@gmx.net>
1061 * tostr.[Ch]: add long int overload
1063 2003-05-12 Alfredo Braunstein <abraunst@libero.it>
1065 * lstrings.[Ch]: compile fix
1067 2003-05-12 André Pönitz <poenitz@gmx.net>
1069 * lstrings.[Ch]: bformat() as wrapper around boost::format
1071 * lyxstring.h: enable templatized constructor
1073 2003-05-06 Lars Gullik Bjønnes <larsbj@gullik.net>
1075 * limited_stack.h: Change some comments, simplify a couple of
1078 2003-02-21 André Pönitz <poenitz@gmx.net>
1080 * limited_stack.h: change underlying container to deque to
1081 make this re-usable in mathed
1083 2003-04-08 John Levon <levon@movementarian.org>
1085 * filetools.C: fix MakeDisplayPath() to not
1088 2003-03-30 John Levon <levon@movementarian.org>
1092 * boost-inst.C: moved from src/
1094 2003-03-29 John Levon <levon@movementarian.org>
1097 * filetools.C: never call Alert directly from here
1099 2003-03-12 John Levon <levon@movementarian.org>
1101 * textutils.h: remove META_NEWLINE
1103 2003-02-27 Ling Li <ling@caltech.edu>
1105 * lyxalgo.h (eliminate_duplicates): re-written to avoid the initial
1108 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
1110 * forkedcontr.C (timer): remove bogus continue
1112 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
1114 * forkedcallqueue.[Ch]: added
1116 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
1118 * forkedcontr.C (timer): Start the loop afresh if an item is deleted.
1119 Emiting the signal can result in an arbitrary change to the list.
1121 2003-02-25 Angus Leeming <leeming@lyx.org>
1123 * forkedcontr.C (timer): Use a while loop rather than for; makes it
1124 easier to erase an element.
1126 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
1128 * forkedcontr.C (timer): don't start a running timer.
1130 2003-02-21 André Pönitz <poenitz@gmx.net>
1132 * filetools.C (PutEnv): removed (unused)
1134 2003-02-17 John Levon <levon@movementarian.org>
1137 * forkedcall.C: add running()
1139 2003-02-08 John Levon <levon@movementarian.org>
1143 * lyxtime.C: add typedef for time_t, add current_time
1149 2002-12-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1151 * filetools.C (getExtFromContents): remove detection of epsi
1153 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
1155 * several files: ws changes
1157 2002-11-27 Lars Gullik Bjønnes <larsbj@birdstep.com>
1159 * filetools.C (DirList): remove all ugly hacks and do it nice
1161 2002-11-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1163 * lyxsum.C: an ugly hack to compile with non-gnu linkers
1165 2002-11-12 Angus Leeming <aleem@pneumon.bg.ic.ac.uk>
1167 * lstrings.C (getVectorFromString): #if 0 -> #if 1 until Lars devises
1168 a solution that he likes and which actually works.
1170 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
1172 * lstrings.h (tostr): STRCONV
1174 * lstrings.C (regexMatch): STRCONV
1175 (getVectorFromString): STRCONV, manual copy into vector
1177 * filetools.C (GetFileContents): STRCONV
1179 * os.C: include config.h
1181 * lstrings.C (getVectorFromString): rewrite to use
1184 2002-10-31 Angus Leeming <leeming@lyx.org>
1186 * forkedcall.C (generateChild): clean it up further.
1188 2002-10-25 Angus Leeming <leeming@lyx.org>
1190 * forkedcall.[Ch]: split ForkedCall up into a base class ForkedProcess
1191 and a minimal ForkedCall daughter class.
1193 * forkedcontr.[Ch]: minimal changes reflecting the use of a
1194 ForkedProcess base class responsible for launching all child proceses.
1196 2002-09-25 Angus Leeming <leeming@lyx.org>
1199 * LOstream.h: doxygen fixes.
1201 2002-09-24 Angus Leeming <leeming@lyx.org>
1203 * most files: clean-up the license info.
1205 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
1207 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
1209 2002-09-16 Kayvan A. Sylvan <kayvan@sylvan.com>
1211 * os.h, os_os2.C, os_win32.C, os_unix.C: Added popen_read_mode(),
1212 since at least for Cygwin, the "rb" read_mode acceptable for
1213 fopen() is illegal for popen(), whose mode argument *must* be "r"
1216 * filetools.C (RunCommand): Uses os::popen_read_mode() instead
1219 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
1221 * Makefile.am (libsupport_la_SOURCES): delete smart_ptr.h and
1224 * smart_ptr.h: remove file
1227 2002-08-20 Lars Gullik Bjønnes <larsbj@gullik.net>
1229 * lyxfunctional.h: remove class_fun_t, void_class_fun_t,
1230 class_fun and void_class_fun
1232 2002-08-20 John Levon <levon@movementarian.org>
1237 2002-08-14 Lars Gullik Bjønnes <larsbj@gullik.net>
1239 * textutils.h: formatting.
1241 2002-08-08 John Levon <levon@movementarian.org>
1243 * limited_stack.h: default to 100 not 10
1245 2002-08-01 John Levon <levon@movementarian.org>
1247 * forkedcall.C: more details on error
1249 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
1251 * lstrings.[hC]: rename stip to rtrim and frontStrip to ltrim,
1252 also add a trim function that is the equiv of
1253 strip(frontStrip(...)), also reimplement the functions
1254 (improvements still possible.)
1256 * filetools.C: strip,frontStrip -> trim,ltrim,rtrim
1257 * forkedcall.C (generateChild): ditto
1261 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
1263 * filetools.C (GetEnvPath): modify because of strip changes
1264 (createDirectory): ditto
1265 (findtexfile): ditto
1266 * lstrings.[Ch] (isStrInt): ditto
1267 (isStrUnsignedInt): ditto
1269 (strToUnsignedInt): ditto
1271 (contains): removed unneeded version of contains
1272 (containsOnly): removed uneeded versions of containsOnly
1273 (strip, frontStrip): removed unneded versions, changed argument types.
1275 2002-07-22 Dekel Tsur <dekelts@tau.ac.il>
1277 * filetools.C (RunCommand): Made public
1279 2002-07-22 John Levon <moz@compsoc.man.ac.uk>
1281 * limited_stack.h: fix comment, remove un-needed header
1283 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1285 * lstrings.h: correct comments for token and tokenPos
1287 2002-07-20 Dekel Tsur <dekelts@tau.ac.il>
1289 * lyxstring.C (operator>>): replace code which works only with
1290 _some_ versions of GNU STL with generic one
1292 2002-07-18 Angus Leeming <leeming@lyx.org>
1294 * FileMonitor.[Ch]: new files. Monitor a file for any change and emit a
1295 signal should it do so.
1297 * Makefile.am: add FileMonitor.[Ch].
1299 2002-07-18 André Pönitz <poenitz@gmx.net>
1301 * filetools.C (LibScriptSearch): bug fix
1303 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1305 * filetools.C (LyXReadLink): add bool 'resolve' to return link
1306 contents as an absolute path
1308 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1310 * filetools.C (IsLyXFilename):
1311 (IsSGMLFilename): use ascii_lowercase instead of lowercase
1313 * lstrings.[Ch] (ascii_lowercase): new function
1315 2002-07-16 André Pönitz <poenitz@gmx.net>
1317 * FileInfo.Ch: remove unneeded code
1319 2002-06-20 Herbert Voss <voss@perce.de>
1321 * filetools.[C] (readExtFromContents): add support for
1322 (x)fig format images
1324 2002-06-26 André Pönitz <poenitz@gmx.net>
1326 * filetools.[Ch]: small whitespace, more compact 'return' statement
1328 2002-06-19 John Levon <moz@compsoc.man.ac.uk>
1330 * lyxalgo.h: add eliminate_duplicates
1332 2002-06-17 Herbert Voss <voss@perce.de>
1334 * filetools.[C]: (readBB_from_PSFile) add a helperfunc
1335 (readBB_lyxerrMessage) to get better lyxerr messages
1336 (getExtFromContents) test epsi files in the right way
1338 * DestroxLyXTmpDir.C: changed to true, to delete the
1339 temporary unzipped files, too.
1341 2002-06-10 Lars Gullik Bjønnes <larsbj@birdstep.com>
1343 * putenv.C (putenv): putenv should never be found in std::
1345 * kill.C (kill): kill should never be found in std::
1347 * filetools.C: pclose and popen should never be found in std::
1349 2002-06-07 Angus Leeming <leeming@lyx.org>
1351 Fixes needed to compile with Compaq cxx 6.5.
1352 * lyxfunctional.h: rename lyx::class_fun(C & c, void(C::*f)(A)) as
1353 lyx::void_class_fun to avoid compiler problems with Compaq cxx 6.5:
1354 more than one instance of overloaded function "lyx::class_fun" matches
1364 all c-library variables have been moved into namespace std.
1365 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
1367 * kill.C: rename signal.h as csignal.
1369 * putenv.C: rename stdlib.h as cstdlib
1371 2002-06-05 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1373 * lxtl.h: remove unused file
1375 2002-05-30 John Levon <moz@compsoc.man.ac.uk>
1382 * StrPool.C: remove unused files
1392 * types.h: document and small cleanups
1394 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
1396 * switch from SigC signals to boost::signals.
1398 2002-05-26 John Levon <moz@compsoc.man.ac.uk>
1401 * limited_stack.h: new template for limited-size
1404 2002-05-25 Lars Gullik Bjønnes <larsbj@birdstep.com>
1406 * filetools.C: do not include LSubstring.h
1408 * lstrings.C: change include order
1409 (regexMatch): use boost regex get rid of LRegex and LSubstring
1411 * Makefile.am (libsupport_la_SOURCES): delete regex and substring
1414 * LSubstring.h: remove file
1419 * LSubstring.C: ditto
1421 2002-05-24 Juergen Vigna <jug@sad.it>
1423 * lyxsum.C: include local includes first (self containment)
1425 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
1427 * forkedcall.h: use more specific smart_ptr header.
1429 * lyxsum.C: move some using declarations around.
1431 2002-05-03 Herbert Voss <voss@perce.de>
1433 * filetools.C (getExtFromContents): only print the first 60 chars of
1434 the scanned-string when debugging.
1436 2002-05-02 Lars Gullik Bjønnes <larsbj@birdstep.com>
1438 * lyxstring.C: close to typo fix.
1440 2002-05-02 Angus Leeming <a.leeming@ic.ac.uk>
1442 * filetools.C: add a using std::getline directive.
1444 2002-05-02 Lars Gullik Bjønnes <larsbj@birdstep.com>
1446 * lyxstring.C (operator>>): try a new version of the operator>>
1448 2002-04-14 Herbert Voss <voss@perce.de>
1450 * lstrings.[Ch]: move the getVectorFromString and the vice versa
1451 from frontends/controllers/helper_funcs for better use in other
1454 2002-04-15 Angus Leeming <a.leeming@ic.ac.uk>
1456 * tempname.C (make_tempfile): simplify the #ifdef block by using
1457 #if defined and re-write the #warning as a #error because it's terminal.
1459 2002-04-08 Herbert Voss <voss@perce.de>
1461 * filetools.C (getExtFromContents): get tgif run
1463 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
1465 * filetools.C (getExtFromContents): re-format a little and remove
1466 replicated "sgi" entry.
1468 2002-04-07 Herbert Voss <voss@perce.de>
1470 * filetools.[Ch]: add readBB_from_PSFile() to make bb available
1471 for the lyx-view in graphics (moved from ControlGraphics)
1473 2002-04-07 Herbert Voss <voss@perce.de>
1475 * filetools.C: fix bug for eps. scans now a whole line
1477 2002-04-06 Lars Gullik Bjønnes <larsbj@birdstep.com>
1479 * lyxstring.C (operator>>): use the better solution, this fixes a
1480 "not able to read '\0'" bug.
1482 2002-04-05 Lars Gullik Bjønnes <larsbj@birdstep.com>
1484 * translator.h: add missing typename
1486 2002-03-27 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1488 * filetools.C (LibScriptSearch): new command. Searches for scripts
1489 in lyx data directories.
1490 (LibScriptSearch): try to use split() correctly.
1492 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
1494 * most files: ws cleanup
1496 * Makefile.am: remove ld -r stuff
1498 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
1500 * Makefile.am (libsupport.la): special rules if partial linking
1502 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
1504 * forkedcontr.C: turn the timer off when their are no longer any
1505 child processes running.
1507 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
1509 * forkedcall.h: docy fix
1510 change SignalType second type to be const ref.
1512 * forkedcall.C: doxy fix
1514 2002-03-11 Kayvan A. Sylvan <kayvan@sylvan.com>
1516 * lyxsum.C: compilation fix
1518 2002-03-02 Herbert Voss <voss@perce.de>
1520 * filetools.C: fix bug for xbm format and added some more debug
1523 2002-03-02 Lars Gullik Bjønnes <larsbj@birdstep.com>
1525 * forkedcontr.h: make constructor public
1527 * types.h: remove layout_type
1529 2002-03-01 Angus Leeming <a.leeming@ic.ac.uk>
1531 * filetools.C (getExtFromContents): cleanup.
1533 * forkedcontr.h (d-tor): make it public for Dekel's crappy compiler.
1535 2002-02-27 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1537 * Makefile.am (SIGC_INCLUDES): add a -I directive for when
1538 building outside of source tree.
1540 2002-02-19 Angus Leeming <a.leeming@ic.ac.uk>
1543 * forkedcontr.[Ch]: new files. Asger's forked call controller is
1544 re-born, with a working timer and a modified interface. The
1545 startscript method is now passed a Signal rather than a pointer
1546 to a callback function. This enables us to connect to the method of
1547 a C++ class, if we so desire.
1549 * Makefile.am: add forkedcall.[Ch], forkedcontr.[Ch].
1551 2002-02-26 John Levon <moz@compsoc.man.ac.uk>
1556 * nt_defines.h: moved from src/
1558 2002-02-23 Herbert Voss <voss@perce.de>
1560 * filetools.C: added more graphic formats
1562 2002-02-18 Herbert Voss <voss@perce.de>
1564 * filetools.C: (getExtFromContents) return the fileextension
1565 if no format is detected.
1567 2002-02-18 Angus Leeming <a.leeming@ic.ac.uk>
1569 * syscall.[Ch]: renamed as systemcall.[Ch]. class Systemcalls renamed
1570 as class SystemCall because one Systemcall instance represents a
1571 single child process.
1574 * Makefile.am: associated changes.
1576 2002-02-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1578 * syscall.C (Systemcalls): include <cstdlib>
1580 2002-02-08 Herbert Voss <voss@perce.de>
1582 * filetools.C: (getExtFromContents) adding Grace-format
1585 2002-02-16 Angus Leeming <a.leeming@ic.ac.uk>
1588 * syssingleton.C: files removed.
1590 * syscall.[Ch]: remove the forked calls interface, as nothing, nowhere
1591 uses it. Strip down the Systemcalls interface to make it brutally
1592 obvious how unsophisticated it is.
1594 2002-02-08 Herbert Voss <voss@perce.de>
1596 * filetools.C: (getExtFromContents) adding TGIF-format
1597 and return type "user" when no type is detected
1599 2002-02-13 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1601 * textutils.h: remove IsLineSeparatorChar(char, Inset *)
1603 2002-02-10 Kayvan Sylvan <kayvan@sylvan.com>
1605 * os_win32.C: Add "using std::endl" to fix compilation for GCC 3.X.
1607 2002-02-08 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1609 * FileInfo.h: remove special cygwin code.
1611 * filetools.C (do_popen): use os::read_mode().
1613 * os_win32.C (read_mode):
1614 * os_os2.C (read_mode):
1615 * os_unix.C (read_mode): new method
1617 * filetools.C (do_popen): fix for cygwin compatibility (from Claus
1618 Hentschel). This code should maybe be moved to os:: class.
1620 2002-02-08 Herbert Voss <voss@perce.de>
1622 * filetools.C: (unzipFile) fix typo
1624 2002-02-06 Herbert Voss <voss@perce.de>
1626 * filetools.[Ch]: fix some bugs for detecting zipped files
1629 2002-02-04 Herbert Voss <voss@perce.de>
1631 * filetools.[Ch]: add ifZippedFile() for zipped
1634 2002-02-04 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1636 * filetools.C (FileOpenSearch): remove duplicated line, probably
1637 resulting from bad cut-and paste.
1639 2002-01-31 Herbert Voss <voss@perce.de>
1641 * filetools.[Ch]: add getExtFromContents(), which returns
1642 the type of the (graphic) file
1644 2002-01-30 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1646 * copy.C (copy): open file in binary mode (for cygwin)
1648 2002-01-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1650 * lyxsum.C: remove #warnings and replaced them with runtime debug
1653 2002-01-14 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1655 * lyxalgo.h: include <algorithm>
1657 2002-01-14 Angus Leeming <a.leeming@ic.ac.uk>
1659 * lyx_algo.h: add a standard-conforming count to namespace lyx.
1661 * lstrings.[Ch] (countChar): removed. Use lyx::count.
1663 2002-01-05 John Levon <moz@compsoc.man.ac.uk>
1665 * filetools.C: fix use of FileInfo
1668 * FileInfo.C: add Asserts and documentation
1670 2001-12-20 Kayvan A. Sylvan <kayvan@sylvan.com>
1672 * os_win32.C: compilation fixes
1674 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1676 * lstrings.h: do not include <cctype>
1678 2001-12-12 Ben Stanley <bds02@uow.edu.au>
1680 * lyxsum.C: portability fix for mmap patch
1682 2001-12-05 Lars Gullik Bjønnes <larsbj@birdstep.com>
1686 * lyxstring.C: change "while(" to "while ("
1688 2001-12-03 Ben Stanley <bds02@uow.edu.au>
1690 * lyxsum.C: Added mmap version of CRC and made it selected
1691 by default where available. Used process_block for crc for speedup.
1693 2001-12-01 John Levon <moz@compsoc.man.ac.uk>
1695 * filetools.C: more robust failure for DirList()
1697 2001-11-29 André Pönitz <poenitz@gmx.net>
1699 * types.h: introduce types for textclass numbers and layout numbers
1701 2001-11-28 André Pönitz <poenitz@gmx.net>
1703 * Makefile.am: put types.h in
1705 2001-11-26 André Pönitz <poenitz@gmx.net>
1707 * types.h: introduce types for paragraph positions and layout numbers
1709 2001-11-04 John Levon <moz@compsoc.man.ac.uk>
1711 * filetools.C: remove dead code
1713 * syscall.C: show prog in fail case
1715 2001-10-24 Andre Poenitz <poenitz@HTWM.De>
1717 * filetools.C: code style cleanup
1719 2001-10-23 Angus Leeming <a.leeming@ic.ac.uk>
1721 * os.h: remove spurious punctuation.
1723 2001-10-19 John Levon <moz@compsoc.man.ac.uk>
1726 * LAssert.C: use new emergencyCleanup()
1728 2001-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1730 * filetools.C (i18nLibFileSearch): check also LANGUAGE and LC_ALL,
1731 like GNU gettext does.
1733 2001-10-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1735 * filetools.C (AbsolutePath): Use os::is_absolute_path() (also in
1737 (findtexfile): oops! the change from last friday was wrong...
1739 * os_win32.C (is_absolute_path):
1740 * os_unix.C (is_absolute_path):
1741 * os_os2.C (is_absolute_path): new method
1743 2001-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1745 * filetools.C (findtexfile): apply os::internal_path to the result.
1747 2001-07-02 Claus Hentschel <claus.hentschel@mbau.fh-hannover.de>
1752 * os.h: add internal_path method, which converts a unix-type file
1753 name to the type known to the underlying file system (currently
1754 only useful on cygwin) [from Ruurd A. Reitsma and Claus Hentschel]
1756 2001-08-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
1758 * smart_ptr.h: new file
1760 * utility.h: new file
1762 2001-08-01 John Levon <moz@compsoc.man.ac.uk>
1765 * filetools.C (IsDirWriteable): fix this
1767 2001-07-26 Baruch Even <baruch@lyx.org>
1769 * lyxlib.h (float_equal): Added function to compare floats almost equal
1770 (see function comment).
1772 2001-07-13 Angus Leeming <a.leeming@ic.ac.uk>
1774 Consistent use of Lsstream.h:
1775 * filetools.C (GetFileContents): std::ostringstream -> ostringstream.
1777 2001-07-12 Lars Gullik Bjønnes <larsbj@birdstep.com>
1779 * translator.h: (*it). -> it->
1781 2001-06-26 The LyX Project <lyx@violet.home.sad.it>
1783 * filetools.C (DeleteAllFilesInDir): send debug output to
1784 Debug::FILES instewad of Debug::ANY.
1786 * DebugStream.h: remove gcc 2.8.x hack.
1788 2001-06-26 The LyX Project <jug@sad.it>
1791 * lstrings.C (escape): move method to escape non ascii characters
1792 from insets label and ref to here.
1794 2001-06-25 The LyX Project <jug@sad.it>
1796 * filetools.C (IsLyXFilename):
1797 (IsSGMLFilename): do case insensitive name matching
1799 2001-06-24 The LyX Project <jug@sad.it>
1801 * lstrings.C (compare_ascii_no_case): version of compare_no_case
1802 which only considers case of ascii characters
1804 * lyxstring.C (replace): added for compatibility with gcc 2.95.3+
1807 2001-06-23 The LyX Project <jug@sad.it>
1809 * textutils.h (IsPrintable): take into account unprintable spaces
1811 (IsDigit): new function
1812 (IsLetterCharOrDigit): use IsDigit
1814 2001-06-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1816 * filetools.C (findtexfile): strip final \r if necessary (for
1819 2001-06-19 Angus Leeming <a.leeming@ic.ac.uk>
1822 * StrPool.C: removed // -*- C++ -*- as first line.
1824 2001-06-01 Lars Gullik Bjønnes <larsbj@birdstep.com>
1826 * lyxsum.C (do_crc): switch to use boost::crc for generating the
1829 2001-06-01 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1834 * LSubstring.C: bring C functions in global namespace if
1837 * lstrings.h (compare): use the std:: version of str[n]cmp only
1840 2001-05-31 Lars Gullik Bjønnes <larsbj@birdstep.com>
1842 * syscontr.C: add std::
1844 * syscall.C: add std::
1846 * lstrings.h (compare): add std::
1848 * lstrings.C (prefixIs): add std::
1852 * LSubstring.C (LSubstring): add std::
1854 2001-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
1856 * lyxsum.C (sum): use istreambuf_iterator when available.
1858 2001-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
1860 * lyxsum.C (sum): don't use sstream anymore, use istream_iterator
1863 * lyxstring.C (operator): make const operator[] behave as
1866 2001-05-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1868 * Makefile.am (EXTRA_DIST): add the os_*.C files.
1870 2001-05-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1872 * filetools.C (MakeAbsPath): remove debugging statement
1874 2001-05-16 Ruurd Reitsma <r.a.reitsma@wbmt.tudelft.nl>
1876 * FileInfo.h: X_OK workaround for cygwin
1885 * filetools.h: Added os:: class.
1889 * tempname.C: OS/2 fixes
1891 2001-05-03 Lars Gullik Bjønnes <larsbj@birdstep.com>
1893 * textutils.h: remvoe !NEW_INSETS cruft
1895 2001-05-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1898 * atoi.C: add using directives when needed for C functions
1899 declared in std:: namespace.
1901 2001-04-25 Lars Gullik Bjønnes <larsbj@birdstep.com>
1903 * lstrings.C : add two helper structs, local_lowercase and
1905 (lowercase): change to use std::transform
1906 (uppercase): change to use std::transform
1908 2001-04-25 Allan Rae <rae@lyx.org>
1910 * lyxstring.C : Assert got moved and Lars missed a few.
1912 2001-04-24 Lars Gullik Bjønnes <larsbj@birdstep.com>
1914 * LAssert.h (Assert): put into namespace lyx
1916 * lyxfunctional.h: put into namespace lyx
1917 * translator.h: adjust
1919 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
1921 * lyxalgo.h: put into namespace lyx, add firster and copy_if
1923 * FileInfo.h: inherit privately from noncopyable
1926 2001-04-16 Allan Rae <rae@lyx.org>
1928 * tempname.C (make_tempfile): #warning triggers an error on Sun CC 6.0
1929 as an unrecognised preprocessor directive. So ensure they're wrapped.
1931 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1933 * several files: remove CXX_WORKING_NAMESPACES
1935 * FileInfo.h: noncopyable is in namespace boost
1938 2001-02-16 John Levon <moz@compsoc.man.ac.uk>
1940 * syscontr.h: fix header include
1942 2001-02-28 Baruch Even <baruch@ev-en.org>
1944 * filetools.C: Removed dependency on syscall.h
1947 * syscall.C: Minor cleanings before I start to touch this code.
1949 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1951 * filetools.C (CreateTmpDir): change umask to 0700.
1953 2001-02-27 José Matos <jamatos@fep.up.pt>
1955 * filetools.h (BasePath):
1956 * filetools.C (BasePath): removed since it is a duplicate of OnlyPath.
1958 * filetools.C (IsLyXFilename):
1959 * filetools.C (IsSGMLFilename): test if extension is suffix and not
1962 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
1966 * atoi.C: remove cruft
1968 2001-02-06 albert chin <china@thewrittenword.com>
1971 * fmt.C: use HAVE_DECL_SNPRINTF
1973 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
1975 * lyxstring.C: Fix some assertions.
1977 2001-01-23 Dekel Tsur <dekelts@tau.ac.il>
1979 * lstrings.C (strip): Add a fix for compilers with broken
1980 string::find_last_not_of.
1982 * filetools.C (AddPath): Simplify by using strip and frontStrip.
1984 2001-01-20 Dekel Tsur <dekelts@tau.ac.il>
1986 * lyxstring.C (rfind): Fix broken functions.
1987 (find): Few optimizations.