1 2005-04-21 Angus Leeming <leeming@lyx.org>
3 * forkedcontr.C: add #include <csignal>.
5 * filetools.C (RunCommand): remove the signal blocking stuff
6 now that we no longer use a signal handler on unix.
8 2005-04-19 Angus Leeming <leeming@lyx.org>
10 * filetools.C: remove unnecessary #include of forkedcontr.h.
12 * forkedcall.C: protect system-specific headers with preprocessor
14 (running): don't call waitpid() on Windows.
15 (waitForChild): add Windows-specific code to wait for a child process
17 (generateChild): add Windows-specific code to spawn the child in the
20 * forkedcontr.[Ch]:Revert back to the LyX 1.3.x version of the code
21 to spawn a child process asynchronously. Do this because 'issues'
22 remain with the SIGCHLD handling code on *nix and because there's no
23 easy way to implement such a monitor on Windows. Explicit polling,
24 as in Lyx 1.3.x, is safe, robust and works on both platforms.
26 2005-04-19 Angus Leeming <leeming@lyx.org>
28 * package.C.in (get_temp_dir): call GetLongPathName on Windows.
30 2005-04-19 Angus Leeming <leeming@lyx.org>
32 * pch.h: protect unix-specific headers from breaking compilation
35 2005-04-17 Angus Leeming <leeming@lyx.org>
37 * filetools.C (MakeDisplayPath): invoke os::external_path before
40 * os_win32.C (external_path): convert '/' chars to '\'.
42 * filetools.[Ch] (latex_path): new function which modifies
43 an input path containing space and '~' characters into something that
46 2005-04-17 Angus Leeming <leeming@lyx.org>
48 * forkedcall.C (generateChild): do not strip quotes from args on
50 Wrap lyxerr output inside an if (lyxerr.debugging(Debug::FILES))
53 2005-03-23 Angus Leeming <leeming@lyx.org>
55 * Makefile.am (build_package): Solaris sed does not like
56 spaces bewteen the ;-delimited commands.
58 2005-02-25 Lars Gullik Bjonnes <larsbj@gullik.net>
60 * Makefile.am (CLEANFILES): clean generated files
62 2005-02-17 Angus Leeming <leeming@lyx.org>
64 * copy.C (copy): Pass the ios::in flag to the ifstream constructor.
65 Enables copying to work when the code is compiled with the gcc 2.95
68 2005-02-15 Angus Leeming <leeming@lyx.org>
70 * environment.C: add missing #include.
71 (setEnvPath): compare iterators rather than use tellp().
73 2005-02-15 Angus Leeming <leeming@lyx.org>
75 * environment.[Ch]: new files. Move the environment setter/getter
76 functions here from filetools.[Ch]. In the process:
77 rename GetEnv as getEnv.
78 rename putEnv as setEnv. Change the signature of the function
79 to take a pair of arguments (a name and a value) rather than the
80 existing coded "name=value" single argument. Merge the putenv.C
83 * lyxlib.h (putenv): remove declaration.
86 * Makefile.am: add environment.[Ch]. Remove putenv.C.
88 * filetools.[Ch]: remove environment setter/getter functions.
90 * os_os2.C (init): s/GetEnvPath/getEnvPath/. Left over from an
93 * package.C.in (get_home_dir, extract_env_var_dir):
94 * userinfo.C (user_email): s/GetEnv/getEnv/.
96 2005-02-03 Angus Leeming <leeming@lyx.org>
98 * forkedcall.C (running): call the lyx::kill wrapper function
99 rather than the system kill.
101 2005-02-02 Angus Leeming <leeming@lyx.org>
103 * forkedcall.C (generateChild): overhaul the code to split a string
104 into an argv array of words. Now respects simple quoting reasonably
107 2005-02-01 Angus Leeming <leeming@lyx.org>
109 * fs_extras.C: #include <windows.h>
111 2005-01-31 Angus Leeming <leeming@lyx.org>
113 * package.[Ch] (init_package, c-tor): define and use an enum to
114 specify explicitly the location of the top level build directory
115 when the executable is run in-place.
117 2005-01-31 Lars Gullik Bjonnes <larsbj@gullik.net>
119 * fs_extras.C: add changes from Asger's Win32 patch.
121 2005-01-31 Asger Ottar Alstrup <aalstrup@laerdal.dk>
124 * getcwd.C (l_getcwd):
126 * mkdir.C (mkdir): add Win32 specializations.
128 * os_win32.h: remove cruft.
130 2005-01-31 Lars Gullik Bjonnes <larsbj@gullik.net>
132 * Makefile.am (libsupport_la_SOURCES): remove rmdir.C
134 * rmdir.C: delete file
136 * lyxlib.h: remove rmdir decl
138 2005-01-31 Lars Gullik Bjonnes <larsbj@gullik.net>
140 * .cvsignore: add package.C
142 * FileInfo.C, FileInfo.h: delete files
144 * fs_extras.C, fs_extras.h: new files
146 * FileMonitor.C, filetools.C: rewrite to use boost.filesystem
148 * Makefile.am (libsupport_la_SOURCES: delete FileInfo.[Ch], add
151 * filetools.C: make destroydir return true if something was
152 deleted. adjust callers.
153 (IsFileWritable): replace with is_readonly in fs_extras, adjust
156 * package.C.in: rewrite to use boost.filesystem
158 2005-01-27 Lars Gullik Bjonnes <larsbj@gullik.net>
160 * tests: add some code for automatic regression testing, can be
161 improved or removed as we see fit
163 * lyxlib.h (atoi): delete func
165 * lstrings.[Ch] (strToInt): delete func
166 (strToUnsignedInt): delete func
167 (strToDbl): delete func
169 * Makefile.am: add subdir tests, delete atoi.C
171 * atoi.C: delete file
173 * convert.C: add specializations for converting to int, unsigned
174 int, double from string, and for converting to int and double from
177 * convert.h: remove commented code
179 2005-01-22 Angus Leeming <leeming@lyx.org>
181 * path.C (Path): revert the patch since the if statement has side
182 effects that are needed for the code to work :-(
184 2005-01-21 Angus Leeming <leeming@lyx.org>
186 * os_cygwin.C, os_win32.C: strip the Cygwin-specific stuff out of
187 os_win32.C and give it its own file.
189 * os.C: #include "os_cygwin.C" if building on Cygwin.
191 2005-01-20 Angus Leeming <leeming@lyx.org>
193 * lyxlib.h (float_equal): promote parameters to double.
195 * path.C (Path): silence MSVC warning about block of code that
198 2005-01-20 Asger Ottar Alstrup <aalstrup@laerdal.dk>
200 * FileInfo.h, chdir.C, forkedcall.C, forkedcontr.C, getcwd.C,
201 mkdir.C, os_defines.h, pch.h, rmdir.C, unlink.C:
202 use the HAVE_UNISTD_H preprocessor guard.
204 2005-01-20 Angus Leeming <leeming@lyx.org>
206 * filetools.[Ch] (LibScriptSearch): modify the code that replaces
207 the $$s placeholder with a path, so that it now inserts the path
208 of the lyx support directory, not the scripts subdirectory.
210 2005-01-19 Asger Ottar Alstrup <aalstrup@laerdal.dk>
212 * lyxsum.C, socktools.C, tempname.C, userinfo.C: use the
213 HAVE_UNISTD_H preprocessor guard.
215 2005-01-17 Angus Leeming <leeming@lyx.org>
217 * os_win32.C (init): Add Ruurd's original code to close the
218 console window that Windows opens for us, together with a note
219 explaining the alternative approach.
221 2005-01-17 Angus Leeming <leeming@lyx.org>
223 * package.C.in (get_binary_path): convert relative paths stored
224 in the PATH environment variable to absolute ones.
226 2005-01-16 Angus Leeming <leeming@lyx.org>
228 * filetools.[Ch] (prependEnvPath): prepend a list of paths to
229 that returned by the environment variable. Identical paths occurring
230 later in the list are removed.
232 2005-01-16 Angus Leeming <leeming@lyx.org>
234 * filetools.C (createLyXTmpDir): add some missing brackets to the
235 if-block. OS/2 users will be happier.
237 2005-01-02 Kayvan Sylvan <kayvan@sylvan.com>
239 * os_win32.C (external_path): Check the new cygwin_path_fix_ bool
240 before translating external paths to Win32 paths.
242 2005-01-13 Angus Leeming <leeming@lyx.org>
244 * os.h, os_os2.C, os_unix.C, os_win32.C (cygwin_path_fix): new
245 function flagging whether LyX should output native Win32 paths
246 or cygwin paths. Obviously operative only under Cygwin.
248 2005-01-13 Angus Leeming <leeming@lyx.org>
250 * package.C.in: use "%n$s" rather than "%n%" for n=1,2,3... when
251 calling bformat so that the substitutions work for the non
252 boost::format users too.
254 2005-01-12 Angus Leeming <leeming@lyx.org>
256 * filetools.[Ch] (setEnvPath): new function to create a PATH-style
257 string from a vector of paths and to use it to set an environment
259 (putEnv): resurrect this from the grave.
261 * os.h, os_os2.C, os_unix.C, os_win32.C (path_separator): new
262 function returning the character used to separate paths returned
263 by the PATH environment variable.
265 * os_win32.C: add #include "lstring.h" back in.
267 * package.C.in (package): comment out the ASSERT for now.
268 (check_env_var_dir): write one of the strings to be translated
269 (any one, doesn't matter) on a single line so that the
270 gettext search mechanism in po/Makefile.in.in will register
271 package.C.in as a file containing strings that need translation.
273 2005-01-10 Angus Leeming <leeming@lyx.org>
278 * os_win32.C (binpath, binname, homepath, setTmpDir, getTmpDir, warn):
279 removed. Remove also all code to set the associated data variables.
281 * package.{C.in,h}: new files to ascertain the paths to the
282 various directories used by LyX. Does nothing with these paths,
283 just determines the strings themselves.
285 * path_defines.{C.in,h}: removed.
287 * Makefile.am: remove path_defines.{C.in,h}. Add package.{C.in,h}.
289 * filetools.[Ch] (GetEnvPath): remove.
290 (getEnvPath): replacement. Returns a vector<string> of paths.
293 * tempname.C: use support/package.h to provide the paths to the
294 various directories used by LyX.
296 2005-01-07 Angus Leeming <leeming@lyx.org>
298 * convert.C (string>): add specialization for long.
300 2005-01-07 Lars Gullik Bjonnes <larsbj@gullik.net>
302 * convert.h: remove the specializations, don't included unneeded
304 * convert.C: add specialization for unsigned long
306 2005-01-06 Lars Gullik Bjonnes <larsbj@gullik.net>
308 * tostr.[Ch]: renamed to convert[ch]
310 2005-01-06 Lars Gullik Bjonnes <larsbj@gullik.net>
312 * lstrings.[Ch]: change bformat to be a template
314 * tostr.[Ch]: tostr -> convert, convert is a template
317 * filetools.C (createBufferTmpDir): tostr -> convert
319 2005-01-05 Angus Leeming <leeming@lyx.org>
321 * os_win32.C (external_path, internal_path): s/MAX_PATH/PATH_MAX/.
323 2005-01-04 Angus Leeming <leeming@lyx.org>
325 * os_win32.C (current_root): use _getdrive on Win32.
327 * FileInfo.C (FileInfo, newFile): strip the trailing '/' from
328 the stored file name as it breaks Window's version of stat().
329 (isLink): protect the code with #ifdef S_ISLNK.
330 (dostat): protect the code with #ifdef HAVE_LSTAT.
331 (typeIndicator): remove code testing the file's executable status.
333 * filetools.C (LyXReadLink): protect the code with
334 #ifdef HAVE_READLINK.
336 2005-01-01 Kayvan Sylvan <kayvan@sylvan.com>
338 * os_win32.C (internal_path): remove the call to MakeLatexName as
339 it is (1) unnecessary and (2) leads to an infinite loop as
340 MakeLatexName calls AddName which calls internal_path...
342 2004-12-19 Angus Leeming <leeming@lyx.org>
344 * path_defines.C.in (setLyxPaths): on a Windows build,
345 remove the ".exe" extension from the name of the LyX binary when
346 trying to ascertain the name of the LyX system directory.
347 (Usually, <path to binary>/../share/<name of binary>/).
349 * os.h, os_os2.C, os_unix.C, os_win32.C (slashify_path): remove.
351 * os_win32.C (init): ensure that the name of the lyx executable is
352 stored internally with a unix-style path.
354 * os_win32.C (internal_path, external_path): differentiate between
355 cygwin and windows builds.
357 * filetools.C (FileOpenSearch, GetEnvPath, createDirectory,
358 MakeAbsPath, AddName, MakeRelPath, ChangeExtension):
359 * filename.C (mangledFilename):
360 s/slashify_path/internal_path/.
362 2004-12-16 Angus Leeming <leeming@lyx.org>
364 * filename.C (mangledFilename): Given a Windows-style path, don't
365 forget to mangle the drive letter too when generating a unique
368 2004-12-16 Angus Leeming <leeming@lyx.org>
370 * mkdir.C: move the HAVE_MKDIR conditional code out of config.h
373 2004-12-15 Angus Leeming <leeming@lyx.org>
375 * FileInfo.[Ch] (getNumberOfLinks): removed.
377 2004-12-15 Angus Leeming <leeming@lyx.org>
379 * tempname.C: #include fcntl.h and sys/stat.h if creating a temp
380 file using mktemp and open.
382 2004-12-14 Angus Leeming <leeming@lyx.org>
384 * os.h, os_os2.C, os_unix.C, os_win32.C:
385 (binpath, binname, getTmpDir): return a const reference rather than
387 (homepath, nulldev): new functions returning the name of "HOME" and
388 the null device, respectively.
390 * filetools.C: (ExpandPath, MakeDisplayPath):
391 * path_defines.C.in (setLyxPaths): use os::homepath(), not
394 2004-12-14 Angus Leeming <leeming@lyx.org>
396 * os.h, os_{os2,unix,win32}.C (init): change interface to no longer
397 pass the addresses of the parameters received by main.
399 2004-12-14 Angus Leeming <leeming@lyx.org>
401 * copy.C (copy): open the ifstream with ios::binary.
403 2004-12-14 Angus Leeming <leeming@lyx.org>
405 * os.C: Add _WIN32 to the #define.
407 * systemcall.C (startscript): remove trailing '/n' from request to
408 start the command in a minimized window under DOS.
410 2004-12-14 Angus Leeming <leeming@lyx.org>
412 * Makefile.am (AM_CPPFLAGS): Remove trailing slash from -Ifoo/
413 to overcome bug in the MinGW port of g++ 3.4.2.
415 2004-11-26 Angus Leeming <leeming@lyx.org>
417 * globbing.[Ch] (glob): change API to:
418 1. Append matches to the input container.
419 2. Require a working_dir parameter. The function invokes chdir
420 internally (through use of Path).
422 2004-11-26 Angus Leeming <leeming@lyx.org>
424 * filefilterlist.C (convert_brace_glob): moved here from
427 * filefilterlist.[Ch]: clean-up FileFilterList API.
429 * globbing.[Ch] (convert_brace_glob): moved to filefilterlist.C.
430 (expand_globs): moved to xforms/FormFiledialog.C.
432 2004-11-25 Angus Leeming <leeming@lyx.org>
434 * filefilterlist.[Ch]:
435 * globbing.[Ch]: split FileFilterList into its own .[Ch] files.
437 * Makefile.am: add filefilterlist.[Ch].
439 2004-11-16 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
441 * textutils.h (isKommaChar): remove
443 2004-11-16 Lars Gullik Bjonnes <larsbj@gullik.net>
445 * forkedcontr.C (find_pid): simplify and also make pass concept
447 (handleCompletedProcesses): make sure that we do not slice the
448 object and satisfy concept checks.
450 2004-11-09 Georg Baum <Georg.Baum@post.rwth-aachen.de>
452 * filetools.[Ch] (getFormatFromContents): don't guess format from
453 extension, return string() instead of "user" if the format could
456 2004-11-07 Lars Gullik Bjonnes <larsbj@gullik.net>
458 * Make it clearer where include files are coming from.
460 2004-11-06 Lars Gullik Bjonnes <larsbj@gullik.net>
462 * translator.h: use bind, equal_to instead of equal_1st_in_pair
463 and equal_2nd_in_pair
465 * Makefile.am (libsupport_la_SOURCES): remove lyxfunctional.h
466 * lyxfunctional.h: delete file
468 * lyxfunctional.h: delete compare_memfun and helper classes
470 * forkedcontr.C (find_pid): use bind, equal_to instead of
473 * lyxfunctional.h: delete back_inserter_fun functions and helper
476 2004-11-04 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
478 * snprintf.[ch]: removed
480 * Makefile.am (libsupport_la_SOURCES): remove snprintf
482 2004-10-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
484 * filetools.[Ch] (getExtFromContents): rename to
485 getFormatFromContents and return always a format
487 2004-10-25 Angus Leeming <leeming@lyx.org>
489 * forkedcall.C (generateChild): strip quotes from each argument
492 2004-09-26 Lars Gullik Bjonnes <larsbj@gullik.net>
494 * pch.h: use proper signal include
496 * forkedcallqueue.C: remove unused include
498 * FileMonitor.h: Use the preferred calling for Boost.Signal
499 * forkedcall.h: ditto
501 * FileMonitor.C: use the new signal typedef
503 2004-09-26 Lars Gullik Bjonnes <larsbj@gullik.net>
505 * forkedcall.h: remove include of <boost/function/funtion0.hpp>
508 2004-09-10 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
510 * textutils.h (IsLetterCharOrDigit): remove
512 2004-09-10 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
514 * filetools.C (LibScriptSearch): quote the path of the script, in
515 case it contains spaces
517 2004-09-04 Lars Gullik Bjonnes <larsbj@gullik.net>
519 * tostr.C: reimplement using lexical_cast
521 2004-08-30 Lars Gullik Bjonnes <larsbj@gullik.net>
523 * pch.h: do not use include boost/format.hpp, multiple symbols
524 will result (gcc bug)
526 2004-08-15 Lars Gullik Bjonnes <larsbj@gullik.net>
530 * Makefile.am: support pch
532 2004-08-09 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
534 * globbing.C (FileFilterList): make sure that "All files (*)" is
535 always part of the filters list
537 2004-07-24 Lars Gullik Bjonnes <larsbj@gullik.net>
539 * tostr.C, lstrings.C, globbing.C, filetools.C: change
540 "support/std_sstream.h" to <sstream>
542 * Makefile.am (libsupport_la_SOURCES): delete std_sstream.h and
544 (std_sstream.h): delete file
545 (sstream.h): delete file
547 2004-06-29 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
549 * filetools.C (i18nLibFileSearch): honor case where LANGUAGE
550 specifies a list of locales (thanks to Pablo Saraxtaga for the
553 2004-05-04 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
555 * path_defines.C.in (setLyxPaths): make sure that LyX/Mac can find
556 its po files when moved around; set default user directory to
557 ~/Library/Preferences/LyX/ for LyX/Mac.
558 (lyx_localedir): return the value that may have been computed in
561 2004-05-27 Kayvan Sylvan <kayvan@sylvan.com>
563 * Makefile.am (libsupport_la_SOURCES): remove reference to
566 2004-05-20 Angus Leeming <leeming@lyx.org>
568 * debugstream.h: wrap the definition of debug_trait::DEBUG with
569 preprocessor guards that protect against a name clash with a
570 macro DEBUG. Such a macro is defined by the Qt library...
572 2004-04-27 Angus Leeming <leeming@lyx.org>
574 * path_defines.{h,C.in}: expose top_srcdir, renamed from
577 2004-04-05 Angus Leeming <leeming@lyx.org>
580 wrap #warning calls inside #ifdef WITH_WARNINGS blocks.
582 2004-04-05 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
584 * filetools.C (RunCommand): block SIGCHLD during popen/pclose
585 (actually Angus' fix).
587 2004-04-01 Georg Baum <Georg.Baum@post.rwth-aachen.de>
589 * filetools.C (DeleteAllFilesInDir): delete directories with
590 rmdir(), unlink() does not work
592 2004-03-27 Angus Leeming <leeming@lyx.org>
594 * forkedcontr.C (child_handler): squash warning about a
595 signed/unsigned comparison.
596 (handleCompletedProcesses): only output a warning about an error
597 waiting for the child if it is indeed an error ;-)
599 2004-03-26 Angus Leeming <leeming@lyx.org>
601 * forkedcall.[Ch] (run): new function, replacing runBlocking,
604 * forkedcall.C (generateChild): ensure that the code that splits
605 the command up into an array of words won't leak in the event of an
608 * forkedcontr.C: make it a little more robust.
610 2004-03-24 Angus Leeming <leeming@lyx.org>
612 * forkedcontr.[Ch]: get rid of the timer that we use to poll the list
613 of child proccesses and ascertain whether any have died. Instead use
614 the SIGCHLD signal emitted by the system to reap these zombies in the
615 maximally efficient manner. The subsequent emitting of the signal
616 associated with each child process *is* performed within the main
617 lyx event loop, thus ensuring that the code remains safe.
619 A detailed description of the design is to be found in forkedcontr.C.
621 2004-03-24 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
623 * filetools.C (i18nLibFileSearch): simplify the logic a bit
625 2004-03-23 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
627 * filetools.C (i18nLibFileSearch): fix the logic to match closely
630 2004-03-23 Angus Leeming <leeming@lyx.org>
632 * forkedcall.h (ForkedProcess, Forkedcall): change the signature of
633 clone to return a boost::shred_ptr rather than a std::auto_ptr.
635 * forkedcontr.[Ch]: store the forked calls as boost::shared_ptrs rather
638 2004-03-22 Angus Leeming <leeming@lyx.org>
640 * forkedcontr.[Ch] (childrenChanged, getPIDs, getCommand): remove
641 cruft left over from the removal of the Forks dialog.
643 2004-03-09 Georg Baum <Georg.Baum@post.rwth-aachen.de>
645 * filename.[Ch] (mangledFilename): make sure that mangled names are
648 2004-02-21 Georg Baum <Georg.Baum@post.rwth-aachen.de>
650 * filetools.[Ch] (CreateBufferTmpDir): rename to createBufferTmpDir,
651 remove pathfor argument
652 * filetools.[Ch] (CreateLyXTmpDir): rename to createLyXTmpDir, try
653 harder to create a usable temp dir
654 * filetools.C (CreateTmpDir): rename to createTmpDir
655 filetools.[Ch] (unzipFile): add argument for output filename
656 * filename.h: fix doxygen warning
658 2004-02-01 Lars Gullik Bjonnes <larsbj@gullik.net>
660 * lstrings.h (contains_functor): delete
661 (contains): change into template, simplify
663 * lstrings.C (contains): remove both functions
665 2004-01-31 Lars Gullik Bjonnes <larsbj@gullik.net>
667 * lyxalgo.h (eliminate_duplicates): reimplement with sort and the
670 * lstrings.h (contains_functor): inherit from
671 std::binary_function, remove typedefs.
673 2004-01-28 Lars Gullik Bjonnes <larsbj@gullik.net>
675 * globbing.C: add using statement for std::distance, remove std::
678 2004-01-08 Angus Leeming <leeming@lyx.org>
680 * globbing.[Ch]: add a new class FileFilterList to parse a Qt-style
681 list of available file filters and generate the corresponding vector.
683 2003-12-14 Ronald Florence <ron@18james.com>
685 * tostr.[hC]: added tostr(long unsigned int i).
687 * path_defines.C.in: determine system directory and set PATH for
688 relocatable LyX/Mac bundle.
690 2004-01-06 Angus Leeming <leeming@lyx.org>
692 * globbing.C (glob): compilation fix for cygwin.
694 2004-01-06 Lars Gullik Bjonnes <larsbj@gullik.net>
696 * Makefile.am (libsupport_la_SOURCES): remove BoostFormat.h and
698 * BoostFormat.h: delete file
699 * boost-inst.C: delete fil
701 * lstrings.C: include boost/format.hpp
703 2004-01-05 Angus Leeming <leeming@lyx.org>
705 * globbing.[Ch]: new files containing some globbing utilities.
707 2003-11-05 João Luis M. Assirati <assirati@fma.if.usp.br>
709 * putenv.C: allocate the string before putting it into the
714 2003-11-03 Lars Gullik Bjønnes <larsbj@gullik.net>
716 * tempname.C (tempName): use scoped_array for exception safety
718 * os_os2.C (init): use scoped_array for exception safety
720 * getcwd.C (getcwd): use scoped_array for exception safety
722 * forkedcontr.C (addCall): adjust
724 * forkedcall.h: make clone return a auto_ptr
726 2003-11-01 Lars Gullik Bjønnes <larsbj@gullik.net>
728 * debugstream.h: add a default constructor that does not setup a
731 2003-10-14 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
733 * socktools.C: honor CXX_GLOBAL_CSTD
735 2003-10-16 André Pönitz <poenitz@gmx.net>
737 * filetools.C (ReplaceEnvironmentPath): set up patterns just once
738 using static variables.
740 2003-10-13 João Luis Meloni Assirati <assirati@fma.if.usp.br>
742 * socktools.[Ch]: New files. Wrapper around socket system calls.
744 2003-10-13 Kayvan A. Sylvan <kayvan@sylvan.com>
746 * socktools.C (SUN_LEN): add this MACRO definition for platforms
747 that do not define it themselves.
749 2003-10-08 Angus Leeming <leeming@lyx.org>
751 * copied_ptr.h: get rid of the swap member function.
753 2003-10-08 Angus Leeming <leeming@lyx.org>
755 Fix doxygen warnings.
757 * debugstream.h: \file debugStream.h -> \file debugstream.h
759 * os.h: move comment so that doxygen is not confused.
761 2003-10-07 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
763 * Makefile.am: fix typo.
765 2003-10-06 Lars Gullik Bjønnes <larsbj@gullik.net>
767 * std_string.h: delete file
769 2003-10-06 Martin Vermeer <martin.vermeer@hut.fi>
771 * lstrings.C: Small fixes to build using STLport
773 2003-09-29 Angus Leeming <leeming@lyx.org>
775 * filetools.C (ReplaceEnvironmentPath): make it work for both
776 ${HOME}/foo and $HOME/foo.
778 2003-09-26 Lars Gullik Bjønnes <larsbj@gullik.net>
780 * debugstream.h: add file, updated version of the DebugStream
782 * DebugStream.C,DebugStream.h: delete files
784 2003-09-25 Angus Leeming <leeming@lyx.org>
786 * filetools.C (ReplaceEnvironmentPath): rewrite to use boost::regex.
787 * lstrings.[Ch]: (regexMatch): removed.
789 2003-09-25 Angus Leeming <leeming@lyx.org>
791 * translator.h (add): new member function.
793 2003-09-16 Angus Leeming <leeming@lyx.org>
795 * textutils.h: remove #include "paragraph.h". Remove functions
796 IsInsetChar and IsWordChar.
798 2003-09-15 Angus Leeming <leeming@lyx.org>
800 * copied_ptr.h: re-jig to something that resembles Herb Sutter's
801 HolderPtr --- see http://www.gotw.ca/gotw/062.htm. Also known in
802 his book as ValuePtr.
803 Use a memory_traits template parameter to create/destroy memory in a
806 2003-09-15 Lars Gullik Bjønnes <larsbj@gullik.net>
810 * filetools.C: Remove usage of STRCONV
812 * Makefile.am (libsupport_la_SOURCES): remove lyxstring.C and
815 * std_string.h: modify to always work with std::string, but if
816 with-included-string then use it through namespace lyx. Remove
819 * lyxstring.[Ch]: remove files
821 2003-09-15 Angus Leeming <leeming@lyx.org>
823 * translator.h: add #include <boost/assert.hpp>, so that the
824 template is self-contained.
826 2003-09-11 Angus Leeming <leeming@lyx.org>
829 * copied_ptr.h: added to the repository. Maybe temporarily.
831 2003-09-09 Lars Gullik Bjønnes <larsbj@lyx.org>
833 * Makefile.am (libsupport_la_SOURCES): remove LAssert.C and LAssert.h
835 * several files: change Assert to BOOST_ASSERT
838 * LAssert.h: remove files
840 2003-09-08 Angus Leeming <leeming@lyx.org>
843 * filetools.C: tell the world where to find author contact details.
845 2003-09-08 Angus Leeming <leeming@lyx.org>
851 * lyxsum.C: remove redundant using directives.
853 2003-09-05 Angus Leeming <leeming@lyx.org>
855 * lstrings.C: small bformat fix
857 2003-09-05 Angus Leeming <leeming@lyx.org>
859 * std_istream.h: new file Just renaming of LIstream.h
860 * std_ostream.h: new file Just renaming of LIstream.h
861 * std_sstream.h: new file Just renaming of Lsstream.h
862 * std_string.h: new file Just renaming of LString.h
864 2003-09-05 Angus Leeming <leeming@lyx.org>
868 ensure that the header file can be compiled stand-alone.
870 2003-09-04 Lars Gullik Bjønnes <larsbj@lyx.org>
872 * lstrings.[Ch] (bformat): add a variant taking two ints.
874 2003-09-04 Angus Leeming <leeming@lyx.org>
877 * filename.C: move #include "os.h" out of the header file.
879 2003-09-04 Angus Leeming <leeming@lyx.org>
881 * path.C (ctor, dtor): move out of line.
883 2003-09-03 Angus Leeming <leeming@lyx.org>
885 * filename.[Ch] (FileName): new c-tor takes abs_filename arg.
886 (mangledFilename): new function, returning a mangled version of the
887 absolute file name, suitable for use in the temp dir when, for example,
888 converting an image file to another format.
889 (isZipped, unzippedFilename): wrappers to global functions.
891 * filetools.[Ch] (copyFileToDir): removed.
892 (compare_timestamps): new function.
894 2003-09-03 Angus Leeming <leeming@lyx.org>
896 * translator.h: Assert is in namespace lyx::support...
898 2003-08-02 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
900 * Makefile.am: do not install path_defines.C in includes
901 (COMPRESSION): mention gzstream.h here
903 2003-08-01 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
905 * path_defines.C.in (setLyxPaths): re-introduce the code to check
906 whether lyx is run in place
907 (build_dir): renamed from build_lyxdir
908 (build_lyxdir): give this better semantics compatible with what
909 LibFileSearch expects.
911 2003-07-29 Angus Leeming <leeming@lyx.org>
913 * filename.[Ch] (relFilename, outputFilename): the 'path' arg
914 defaults to string() because MakeRelPath can accept that.
916 2003-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
918 * Makefile.am: conditionalize USE_COMPRESSION.
920 2003-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
922 * filetools.C (getExtFromContents): correct magic for gzip and
925 * path_defines.[Ch]: move lyx_localedir out of anon namespace
927 * gzstream.h: new fileq
929 * gzstream.C: new file
931 2003-07-27 Angus Leeming <leeming@lyx.org>
933 * path_defines.{h,C.in} (build_lyxdir, system_lyxdir,
934 user_lyxdir): are now functions, not global vars.
936 * Makefile.am: set build_lyxdir at make time.
938 2003-07-27 Angus Leeming <leeming@lyx.org>
940 * path_defines.{h,C.in}: new files. Store/set the various lyx
941 paths, lyx_dir, top_srcdir, localedir, system_lyxdir, build_lyxdir
944 * Makefile.am: add some magic to enable the user to set the path to
945 the system-level lyx support files, the top of the lyx build tree
946 and the system-level lyx locale directory at _make_ time rather
949 * .cvsignore: add path_defines.C.
951 2003-07-26 Angus Leeming <leeming@lyx.org>
953 * os.h: remove irrelevant discussion of system_tempdir.
955 2003-07-21 Angus Leeming <leeming@lyx.org>
957 * filename.[Ch]: new files implementing class FileName.
958 * Makefile.am: add filename.[Ch].
960 2003-07-18 Lars Gullik Bjønnes <larsbj@gullik.net>
962 * BoostFormat.h (boost): remove one extern template. Gcc 3.4. does
963 not allow it (at least not in this form.)
965 2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
967 * os_win32.C: put namespace os in lyx::support.
969 * lstrings.C (bformat): call Assert from correct namespace.
971 * introduce namespace lyx::support
973 2003-06-30 André Pönitz <poenitz@gmx.net>
976 * lstrings.C: re-enable --with-included-string
978 2003-06-28 Lars Gullik Bjønnes <larsbj@gullik.net>
980 * filetools.h: fix some \param issue
982 * boost-inst.C: fix \file
984 * LAssert.h: fix \file
986 2003-06-20 Angus Leeming <leeming@lyx.org>
988 * filetools.[Ch] (NormalizePath): also change /foo//bar ==> /foo/bar.
990 2003-06-18 Angus Leeming <leeming@lyx.org>
992 * many files: add the standard blurb, "This file is part of LyX" etc
994 2003-06-17 Lars Gullik Bjønnes <larsbj@lyx.org>
996 * limited_stack.h: make it have a const_iterator, add begin, and
999 2003-06-10 Angus Leeming <leeming@lyx.org>
1001 * filetools.C (copyFileToDir): ensure that temp files have unique names.
1003 2003-06-04 André Pönitz <poenitz@gmx.net>
1005 * limited_stack.h (top): return reference instead of value
1007 2003-06-02 Angus Leeming <leeming@lyx.org>
1009 * filetools.[Ch] (copyFileToDir): new helper function.
1011 * os.h: remove trailing semi-colon from end of namespace os block.
1013 2003-06-01 Angus Leeming <leeming@lyx.org>
1015 * filetools.h (LibScriptSearch): give the function a meaningful
1016 description of what it now does.
1018 2003-05-30 Angus Leeming <leeming@lyx.org>
1020 * filetools.C (LibScriptSearch): make it search for "$$s/" and replace
1021 this with the path to the script. If the script is not found, the "$$s/"
1024 2003-05-22 Lars Gullik Bjønnes <larsbj@gullik.net>
1026 * lstrings.[Ch] (prefixIs,suffixIs,subst): remove variants taking
1029 2003-05-19 André Pönitz <poenitz@gmx.net>
1031 * lstrings.C: add missing implementation of three-arg bformat
1033 * lstrings.C: change rest of char * fmt -> string const & fmt
1036 2003-05-15 André Pönitz <poenitz@gmx.net>
1038 * lstrings.[Ch]: use string const & instead of char const * for format
1040 2003-05-12 André Pönitz <poenitz@gmx.net>
1042 * tostr.[Ch]: add long int overload
1044 2003-05-12 Alfredo Braunstein <abraunst@libero.it>
1046 * lstrings.[Ch]: compile fix
1048 2003-05-12 André Pönitz <poenitz@gmx.net>
1050 * lstrings.[Ch]: bformat() as wrapper around boost::format
1052 * lyxstring.h: enable templatized constructor
1054 2003-05-06 Lars Gullik Bjønnes <larsbj@gullik.net>
1056 * limited_stack.h: Change some comments, simplify a couple of
1059 2003-02-21 André Pönitz <poenitz@gmx.net>
1061 * limited_stack.h: change underlying container to deque to
1062 make this re-usable in mathed
1064 2003-04-08 John Levon <levon@movementarian.org>
1066 * filetools.C: fix MakeDisplayPath() to not
1069 2003-03-30 John Levon <levon@movementarian.org>
1073 * boost-inst.C: moved from src/
1075 2003-03-29 John Levon <levon@movementarian.org>
1078 * filetools.C: never call Alert directly from here
1080 2003-03-12 John Levon <levon@movementarian.org>
1082 * textutils.h: remove META_NEWLINE
1084 2003-02-27 Ling Li <ling@caltech.edu>
1086 * lyxalgo.h (eliminate_duplicates): re-written to avoid the initial
1089 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
1091 * forkedcontr.C (timer): remove bogus continue
1093 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
1095 * forkedcallqueue.[Ch]: added
1097 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
1099 * forkedcontr.C (timer): Start the loop afresh if an item is deleted.
1100 Emiting the signal can result in an arbitrary change to the list.
1102 2003-02-25 Angus Leeming <leeming@lyx.org>
1104 * forkedcontr.C (timer): Use a while loop rather than for; makes it
1105 easier to erase an element.
1107 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
1109 * forkedcontr.C (timer): don't start a running timer.
1111 2003-02-21 André Pönitz <poenitz@gmx.net>
1113 * filetools.C (PutEnv): removed (unused)
1115 2003-02-17 John Levon <levon@movementarian.org>
1118 * forkedcall.C: add running()
1120 2003-02-08 John Levon <levon@movementarian.org>
1124 * lyxtime.C: add typedef for time_t, add current_time
1130 2002-12-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1132 * filetools.C (getExtFromContents): remove detection of epsi
1134 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
1136 * several files: ws changes
1138 2002-11-27 Lars Gullik Bjønnes <larsbj@birdstep.com>
1140 * filetools.C (DirList): remove all ugly hacks and do it nice
1142 2002-11-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1144 * lyxsum.C: an ugly hack to compile with non-gnu linkers
1146 2002-11-12 Angus Leeming <aleem@pneumon.bg.ic.ac.uk>
1148 * lstrings.C (getVectorFromString): #if 0 -> #if 1 until Lars devises
1149 a solution that he likes and which actually works.
1151 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
1153 * lstrings.h (tostr): STRCONV
1155 * lstrings.C (regexMatch): STRCONV
1156 (getVectorFromString): STRCONV, manual copy into vector
1158 * filetools.C (GetFileContents): STRCONV
1160 * os.C: include config.h
1162 * lstrings.C (getVectorFromString): rewrite to use
1165 2002-10-31 Angus Leeming <leeming@lyx.org>
1167 * forkedcall.C (generateChild): clean it up further.
1169 2002-10-25 Angus Leeming <leeming@lyx.org>
1171 * forkedcall.[Ch]: split ForkedCall up into a base class ForkedProcess
1172 and a minimal ForkedCall daughter class.
1174 * forkedcontr.[Ch]: minimal changes reflecting the use of a
1175 ForkedProcess base class responsible for launching all child proceses.
1177 2002-09-25 Angus Leeming <leeming@lyx.org>
1180 * LOstream.h: doxygen fixes.
1182 2002-09-24 Angus Leeming <leeming@lyx.org>
1184 * most files: clean-up the license info.
1186 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
1188 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
1190 2002-09-16 Kayvan A. Sylvan <kayvan@sylvan.com>
1192 * os.h, os_os2.C, os_win32.C, os_unix.C: Added popen_read_mode(),
1193 since at least for Cygwin, the "rb" read_mode acceptable for
1194 fopen() is illegal for popen(), whose mode argument *must* be "r"
1197 * filetools.C (RunCommand): Uses os::popen_read_mode() instead
1200 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
1202 * Makefile.am (libsupport_la_SOURCES): delete smart_ptr.h and
1205 * smart_ptr.h: remove file
1208 2002-08-20 Lars Gullik Bjønnes <larsbj@gullik.net>
1210 * lyxfunctional.h: remove class_fun_t, void_class_fun_t,
1211 class_fun and void_class_fun
1213 2002-08-20 John Levon <levon@movementarian.org>
1218 2002-08-14 Lars Gullik Bjønnes <larsbj@gullik.net>
1220 * textutils.h: formatting.
1222 2002-08-08 John Levon <levon@movementarian.org>
1224 * limited_stack.h: default to 100 not 10
1226 2002-08-01 John Levon <levon@movementarian.org>
1228 * forkedcall.C: more details on error
1230 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
1232 * lstrings.[hC]: rename stip to rtrim and frontStrip to ltrim,
1233 also add a trim function that is the equiv of
1234 strip(frontStrip(...)), also reimplement the functions
1235 (improvements still possible.)
1237 * filetools.C: strip,frontStrip -> trim,ltrim,rtrim
1238 * forkedcall.C (generateChild): ditto
1242 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
1244 * filetools.C (GetEnvPath): modify because of strip changes
1245 (createDirectory): ditto
1246 (findtexfile): ditto
1247 * lstrings.[Ch] (isStrInt): ditto
1248 (isStrUnsignedInt): ditto
1250 (strToUnsignedInt): ditto
1252 (contains): removed unneeded version of contains
1253 (containsOnly): removed uneeded versions of containsOnly
1254 (strip, frontStrip): removed unneded versions, changed argument types.
1256 2002-07-22 Dekel Tsur <dekelts@tau.ac.il>
1258 * filetools.C (RunCommand): Made public
1260 2002-07-22 John Levon <moz@compsoc.man.ac.uk>
1262 * limited_stack.h: fix comment, remove un-needed header
1264 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1266 * lstrings.h: correct comments for token and tokenPos
1268 2002-07-20 Dekel Tsur <dekelts@tau.ac.il>
1270 * lyxstring.C (operator>>): replace code which works only with
1271 _some_ versions of GNU STL with generic one
1273 2002-07-18 Angus Leeming <leeming@lyx.org>
1275 * FileMonitor.[Ch]: new files. Monitor a file for any change and emit a
1276 signal should it do so.
1278 * Makefile.am: add FileMonitor.[Ch].
1280 2002-07-18 André Pönitz <poenitz@gmx.net>
1282 * filetools.C (LibScriptSearch): bug fix
1284 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1286 * filetools.C (LyXReadLink): add bool 'resolve' to return link
1287 contents as an absolute path
1289 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1291 * filetools.C (IsLyXFilename):
1292 (IsSGMLFilename): use ascii_lowercase instead of lowercase
1294 * lstrings.[Ch] (ascii_lowercase): new function
1296 2002-07-16 André Pönitz <poenitz@gmx.net>
1298 * FileInfo.Ch: remove unneeded code
1300 2002-06-20 Herbert Voss <voss@perce.de>
1302 * filetools.[C] (readExtFromContents): add support for
1303 (x)fig format images
1305 2002-06-26 André Pönitz <poenitz@gmx.net>
1307 * filetools.[Ch]: small whitespace, more compact 'return' statement
1309 2002-06-19 John Levon <moz@compsoc.man.ac.uk>
1311 * lyxalgo.h: add eliminate_duplicates
1313 2002-06-17 Herbert Voss <voss@perce.de>
1315 * filetools.[C]: (readBB_from_PSFile) add a helperfunc
1316 (readBB_lyxerrMessage) to get better lyxerr messages
1317 (getExtFromContents) test epsi files in the right way
1319 * DestroxLyXTmpDir.C: changed to true, to delete the
1320 temporary unzipped files, too.
1322 2002-06-10 Lars Gullik Bjønnes <larsbj@birdstep.com>
1324 * putenv.C (putenv): putenv should never be found in std::
1326 * kill.C (kill): kill should never be found in std::
1328 * filetools.C: pclose and popen should never be found in std::
1330 2002-06-07 Angus Leeming <leeming@lyx.org>
1332 Fixes needed to compile with Compaq cxx 6.5.
1333 * lyxfunctional.h: rename lyx::class_fun(C & c, void(C::*f)(A)) as
1334 lyx::void_class_fun to avoid compiler problems with Compaq cxx 6.5:
1335 more than one instance of overloaded function "lyx::class_fun" matches
1345 all c-library variables have been moved into namespace std.
1346 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
1348 * kill.C: rename signal.h as csignal.
1350 * putenv.C: rename stdlib.h as cstdlib
1352 2002-06-05 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1354 * lxtl.h: remove unused file
1356 2002-05-30 John Levon <moz@compsoc.man.ac.uk>
1363 * StrPool.C: remove unused files
1373 * types.h: document and small cleanups
1375 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
1377 * switch from SigC signals to boost::signals.
1379 2002-05-26 John Levon <moz@compsoc.man.ac.uk>
1382 * limited_stack.h: new template for limited-size
1385 2002-05-25 Lars Gullik Bjønnes <larsbj@birdstep.com>
1387 * filetools.C: do not include LSubstring.h
1389 * lstrings.C: change include order
1390 (regexMatch): use boost regex get rid of LRegex and LSubstring
1392 * Makefile.am (libsupport_la_SOURCES): delete regex and substring
1395 * LSubstring.h: remove file
1400 * LSubstring.C: ditto
1402 2002-05-24 Juergen Vigna <jug@sad.it>
1404 * lyxsum.C: include local includes first (self containment)
1406 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
1408 * forkedcall.h: use more specific smart_ptr header.
1410 * lyxsum.C: move some using declarations around.
1412 2002-05-03 Herbert Voss <voss@perce.de>
1414 * filetools.C (getExtFromContents): only print the first 60 chars of
1415 the scanned-string when debugging.
1417 2002-05-02 Lars Gullik Bjønnes <larsbj@birdstep.com>
1419 * lyxstring.C: close to typo fix.
1421 2002-05-02 Angus Leeming <a.leeming@ic.ac.uk>
1423 * filetools.C: add a using std::getline directive.
1425 2002-05-02 Lars Gullik Bjønnes <larsbj@birdstep.com>
1427 * lyxstring.C (operator>>): try a new version of the operator>>
1429 2002-04-14 Herbert Voss <voss@perce.de>
1431 * lstrings.[Ch]: move the getVectorFromString and the vice versa
1432 from frontends/controllers/helper_funcs for better use in other
1435 2002-04-15 Angus Leeming <a.leeming@ic.ac.uk>
1437 * tempname.C (make_tempfile): simplify the #ifdef block by using
1438 #if defined and re-write the #warning as a #error because it's terminal.
1440 2002-04-08 Herbert Voss <voss@perce.de>
1442 * filetools.C (getExtFromContents): get tgif run
1444 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
1446 * filetools.C (getExtFromContents): re-format a little and remove
1447 replicated "sgi" entry.
1449 2002-04-07 Herbert Voss <voss@perce.de>
1451 * filetools.[Ch]: add readBB_from_PSFile() to make bb available
1452 for the lyx-view in graphics (moved from ControlGraphics)
1454 2002-04-07 Herbert Voss <voss@perce.de>
1456 * filetools.C: fix bug for eps. scans now a whole line
1458 2002-04-06 Lars Gullik Bjønnes <larsbj@birdstep.com>
1460 * lyxstring.C (operator>>): use the better solution, this fixes a
1461 "not able to read '\0'" bug.
1463 2002-04-05 Lars Gullik Bjønnes <larsbj@birdstep.com>
1465 * translator.h: add missing typename
1467 2002-03-27 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1469 * filetools.C (LibScriptSearch): new command. Searches for scripts
1470 in lyx data directories.
1471 (LibScriptSearch): try to use split() correctly.
1473 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
1475 * most files: ws cleanup
1477 * Makefile.am: remove ld -r stuff
1479 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
1481 * Makefile.am (libsupport.la): special rules if partial linking
1483 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
1485 * forkedcontr.C: turn the timer off when their are no longer any
1486 child processes running.
1488 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
1490 * forkedcall.h: docy fix
1491 change SignalType second type to be const ref.
1493 * forkedcall.C: doxy fix
1495 2002-03-11 Kayvan A. Sylvan <kayvan@sylvan.com>
1497 * lyxsum.C: compilation fix
1499 2002-03-02 Herbert Voss <voss@perce.de>
1501 * filetools.C: fix bug for xbm format and added some more debug
1504 2002-03-02 Lars Gullik Bjønnes <larsbj@birdstep.com>
1506 * forkedcontr.h: make constructor public
1508 * types.h: remove layout_type
1510 2002-03-01 Angus Leeming <a.leeming@ic.ac.uk>
1512 * filetools.C (getExtFromContents): cleanup.
1514 * forkedcontr.h (d-tor): make it public for Dekel's crappy compiler.
1516 2002-02-27 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1518 * Makefile.am (SIGC_INCLUDES): add a -I directive for when
1519 building outside of source tree.
1521 2002-02-19 Angus Leeming <a.leeming@ic.ac.uk>
1524 * forkedcontr.[Ch]: new files. Asger's forked call controller is
1525 re-born, with a working timer and a modified interface. The
1526 startscript method is now passed a Signal rather than a pointer
1527 to a callback function. This enables us to connect to the method of
1528 a C++ class, if we so desire.
1530 * Makefile.am: add forkedcall.[Ch], forkedcontr.[Ch].
1532 2002-02-26 John Levon <moz@compsoc.man.ac.uk>
1537 * nt_defines.h: moved from src/
1539 2002-02-23 Herbert Voss <voss@perce.de>
1541 * filetools.C: added more graphic formats
1543 2002-02-18 Herbert Voss <voss@perce.de>
1545 * filetools.C: (getExtFromContents) return the fileextension
1546 if no format is detected.
1548 2002-02-18 Angus Leeming <a.leeming@ic.ac.uk>
1550 * syscall.[Ch]: renamed as systemcall.[Ch]. class Systemcalls renamed
1551 as class SystemCall because one Systemcall instance represents a
1552 single child process.
1555 * Makefile.am: associated changes.
1557 2002-02-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1559 * syscall.C (Systemcalls): include <cstdlib>
1561 2002-02-08 Herbert Voss <voss@perce.de>
1563 * filetools.C: (getExtFromContents) adding Grace-format
1566 2002-02-16 Angus Leeming <a.leeming@ic.ac.uk>
1569 * syssingleton.C: files removed.
1571 * syscall.[Ch]: remove the forked calls interface, as nothing, nowhere
1572 uses it. Strip down the Systemcalls interface to make it brutally
1573 obvious how unsophisticated it is.
1575 2002-02-08 Herbert Voss <voss@perce.de>
1577 * filetools.C: (getExtFromContents) adding TGIF-format
1578 and return type "user" when no type is detected
1580 2002-02-13 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1582 * textutils.h: remove IsLineSeparatorChar(char, Inset *)
1584 2002-02-10 Kayvan Sylvan <kayvan@sylvan.com>
1586 * os_win32.C: Add "using std::endl" to fix compilation for GCC 3.X.
1588 2002-02-08 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1590 * FileInfo.h: remove special cygwin code.
1592 * filetools.C (do_popen): use os::read_mode().
1594 * os_win32.C (read_mode):
1595 * os_os2.C (read_mode):
1596 * os_unix.C (read_mode): new method
1598 * filetools.C (do_popen): fix for cygwin compatibility (from Claus
1599 Hentschel). This code should maybe be moved to os:: class.
1601 2002-02-08 Herbert Voss <voss@perce.de>
1603 * filetools.C: (unzipFile) fix typo
1605 2002-02-06 Herbert Voss <voss@perce.de>
1607 * filetools.[Ch]: fix some bugs for detecting zipped files
1610 2002-02-04 Herbert Voss <voss@perce.de>
1612 * filetools.[Ch]: add ifZippedFile() for zipped
1615 2002-02-04 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1617 * filetools.C (FileOpenSearch): remove duplicated line, probably
1618 resulting from bad cut-and paste.
1620 2002-01-31 Herbert Voss <voss@perce.de>
1622 * filetools.[Ch]: add getExtFromContents(), which returns
1623 the type of the (graphic) file
1625 2002-01-30 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1627 * copy.C (copy): open file in binary mode (for cygwin)
1629 2002-01-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1631 * lyxsum.C: remove #warnings and replaced them with runtime debug
1634 2002-01-14 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1636 * lyxalgo.h: include <algorithm>
1638 2002-01-14 Angus Leeming <a.leeming@ic.ac.uk>
1640 * lyx_algo.h: add a standard-conforming count to namespace lyx.
1642 * lstrings.[Ch] (countChar): removed. Use lyx::count.
1644 2002-01-05 John Levon <moz@compsoc.man.ac.uk>
1646 * filetools.C: fix use of FileInfo
1649 * FileInfo.C: add Asserts and documentation
1651 2001-12-20 Kayvan A. Sylvan <kayvan@sylvan.com>
1653 * os_win32.C: compilation fixes
1655 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1657 * lstrings.h: do not include <cctype>
1659 2001-12-12 Ben Stanley <bds02@uow.edu.au>
1661 * lyxsum.C: portability fix for mmap patch
1663 2001-12-05 Lars Gullik Bjønnes <larsbj@birdstep.com>
1667 * lyxstring.C: change "while(" to "while ("
1669 2001-12-03 Ben Stanley <bds02@uow.edu.au>
1671 * lyxsum.C: Added mmap version of CRC and made it selected
1672 by default where available. Used process_block for crc for speedup.
1674 2001-12-01 John Levon <moz@compsoc.man.ac.uk>
1676 * filetools.C: more robust failure for DirList()
1678 2001-11-29 André Pönitz <poenitz@gmx.net>
1680 * types.h: introduce types for textclass numbers and layout numbers
1682 2001-11-28 André Pönitz <poenitz@gmx.net>
1684 * Makefile.am: put types.h in
1686 2001-11-26 André Pönitz <poenitz@gmx.net>
1688 * types.h: introduce types for paragraph positions and layout numbers
1690 2001-11-04 John Levon <moz@compsoc.man.ac.uk>
1692 * filetools.C: remove dead code
1694 * syscall.C: show prog in fail case
1696 2001-10-24 Andre Poenitz <poenitz@HTWM.De>
1698 * filetools.C: code style cleanup
1700 2001-10-23 Angus Leeming <a.leeming@ic.ac.uk>
1702 * os.h: remove spurious punctuation.
1704 2001-10-19 John Levon <moz@compsoc.man.ac.uk>
1707 * LAssert.C: use new emergencyCleanup()
1709 2001-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1711 * filetools.C (i18nLibFileSearch): check also LANGUAGE and LC_ALL,
1712 like GNU gettext does.
1714 2001-10-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1716 * filetools.C (AbsolutePath): Use os::is_absolute_path() (also in
1718 (findtexfile): oops! the change from last friday was wrong...
1720 * os_win32.C (is_absolute_path):
1721 * os_unix.C (is_absolute_path):
1722 * os_os2.C (is_absolute_path): new method
1724 2001-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1726 * filetools.C (findtexfile): apply os::internal_path to the result.
1728 2001-07-02 Claus Hentschel <claus.hentschel@mbau.fh-hannover.de>
1733 * os.h: add internal_path method, which converts a unix-type file
1734 name to the type known to the underlying file system (currently
1735 only useful on cygwin) [from Ruurd A. Reitsma and Claus Hentschel]
1737 2001-08-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
1739 * smart_ptr.h: new file
1741 * utility.h: new file
1743 2001-08-01 John Levon <moz@compsoc.man.ac.uk>
1746 * filetools.C (IsDirWriteable): fix this
1748 2001-07-26 Baruch Even <baruch@lyx.org>
1750 * lyxlib.h (float_equal): Added function to compare floats almost equal
1751 (see function comment).
1753 2001-07-13 Angus Leeming <a.leeming@ic.ac.uk>
1755 Consistent use of Lsstream.h:
1756 * filetools.C (GetFileContents): std::ostringstream -> ostringstream.
1758 2001-07-12 Lars Gullik Bjønnes <larsbj@birdstep.com>
1760 * translator.h: (*it). -> it->
1762 2001-06-26 The LyX Project <lyx@violet.home.sad.it>
1764 * filetools.C (DeleteAllFilesInDir): send debug output to
1765 Debug::FILES instewad of Debug::ANY.
1767 * DebugStream.h: remove gcc 2.8.x hack.
1769 2001-06-26 The LyX Project <jug@sad.it>
1772 * lstrings.C (escape): move method to escape non ascii characters
1773 from insets label and ref to here.
1775 2001-06-25 The LyX Project <jug@sad.it>
1777 * filetools.C (IsLyXFilename):
1778 (IsSGMLFilename): do case insensitive name matching
1780 2001-06-24 The LyX Project <jug@sad.it>
1782 * lstrings.C (compare_ascii_no_case): version of compare_no_case
1783 which only considers case of ascii characters
1785 * lyxstring.C (replace): added for compatibility with gcc 2.95.3+
1788 2001-06-23 The LyX Project <jug@sad.it>
1790 * textutils.h (IsPrintable): take into account unprintable spaces
1792 (IsDigit): new function
1793 (IsLetterCharOrDigit): use IsDigit
1795 2001-06-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1797 * filetools.C (findtexfile): strip final \r if necessary (for
1800 2001-06-19 Angus Leeming <a.leeming@ic.ac.uk>
1803 * StrPool.C: removed // -*- C++ -*- as first line.
1805 2001-06-01 Lars Gullik Bjønnes <larsbj@birdstep.com>
1807 * lyxsum.C (do_crc): switch to use boost::crc for generating the
1810 2001-06-01 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1815 * LSubstring.C: bring C functions in global namespace if
1818 * lstrings.h (compare): use the std:: version of str[n]cmp only
1821 2001-05-31 Lars Gullik Bjønnes <larsbj@birdstep.com>
1823 * syscontr.C: add std::
1825 * syscall.C: add std::
1827 * lstrings.h (compare): add std::
1829 * lstrings.C (prefixIs): add std::
1833 * LSubstring.C (LSubstring): add std::
1835 2001-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
1837 * lyxsum.C (sum): use istreambuf_iterator when available.
1839 2001-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
1841 * lyxsum.C (sum): don't use sstream anymore, use istream_iterator
1844 * lyxstring.C (operator): make const operator[] behave as
1847 2001-05-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1849 * Makefile.am (EXTRA_DIST): add the os_*.C files.
1851 2001-05-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1853 * filetools.C (MakeAbsPath): remove debugging statement
1855 2001-05-16 Ruurd Reitsma <r.a.reitsma@wbmt.tudelft.nl>
1857 * FileInfo.h: X_OK workaround for cygwin
1866 * filetools.h: Added os:: class.
1870 * tempname.C: OS/2 fixes
1872 2001-05-03 Lars Gullik Bjønnes <larsbj@birdstep.com>
1874 * textutils.h: remvoe !NEW_INSETS cruft
1876 2001-05-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1879 * atoi.C: add using directives when needed for C functions
1880 declared in std:: namespace.
1882 2001-04-25 Lars Gullik Bjønnes <larsbj@birdstep.com>
1884 * lstrings.C : add two helper structs, local_lowercase and
1886 (lowercase): change to use std::transform
1887 (uppercase): change to use std::transform
1889 2001-04-25 Allan Rae <rae@lyx.org>
1891 * lyxstring.C : Assert got moved and Lars missed a few.
1893 2001-04-24 Lars Gullik Bjønnes <larsbj@birdstep.com>
1895 * LAssert.h (Assert): put into namespace lyx
1897 * lyxfunctional.h: put into namespace lyx
1898 * translator.h: adjust
1900 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
1902 * lyxalgo.h: put into namespace lyx, add firster and copy_if
1904 * FileInfo.h: inherit privately from noncopyable
1907 2001-04-16 Allan Rae <rae@lyx.org>
1909 * tempname.C (make_tempfile): #warning triggers an error on Sun CC 6.0
1910 as an unrecognised preprocessor directive. So ensure they're wrapped.
1912 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1914 * several files: remove CXX_WORKING_NAMESPACES
1916 * FileInfo.h: noncopyable is in namespace boost
1919 2001-02-16 John Levon <moz@compsoc.man.ac.uk>
1921 * syscontr.h: fix header include
1923 2001-02-28 Baruch Even <baruch@ev-en.org>
1925 * filetools.C: Removed dependency on syscall.h
1928 * syscall.C: Minor cleanings before I start to touch this code.
1930 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1932 * filetools.C (CreateTmpDir): change umask to 0700.
1934 2001-02-27 José Matos <jamatos@fep.up.pt>
1936 * filetools.h (BasePath):
1937 * filetools.C (BasePath): removed since it is a duplicate of OnlyPath.
1939 * filetools.C (IsLyXFilename):
1940 * filetools.C (IsSGMLFilename): test if extension is suffix and not
1943 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
1947 * atoi.C: remove cruft
1949 2001-02-06 albert chin <china@thewrittenword.com>
1952 * fmt.C: use HAVE_DECL_SNPRINTF
1954 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
1956 * lyxstring.C: Fix some assertions.
1958 2001-01-23 Dekel Tsur <dekelts@tau.ac.il>
1960 * lstrings.C (strip): Add a fix for compilers with broken
1961 string::find_last_not_of.
1963 * filetools.C (AddPath): Simplify by using strip and frontStrip.
1965 2001-01-20 Dekel Tsur <dekelts@tau.ac.il>
1967 * lyxstring.C (rfind): Fix broken functions.
1968 (find): Few optimizations.