1 2005-04-24 Angus Leeming <leeming@lyx.org>
3 * userinfo.C (user_name): add Windows-specific code.
5 2005-04-22 Angus Leeming <leeming@lyx.org>
7 * package.C.in (get_binary_path): on prompting from Rob Bearman,
8 ensure that the name of the executable, as input at the command
9 line has a ".exe" suffix so that various file interogations
12 2005-04-22 Angus Leeming <leeming@lyx.org>
15 * forkedcall.h: remove pid_t definition to config.h.
17 2005-04-21 Angus Leeming <leeming@lyx.org>
20 * forkedcall.h: define pid_t for MSVC.
22 * forkedcall.C (kill): work around evil MSVC max macro.
24 2005-04-21 Angus Leeming <leeming@lyx.org>
26 * forkedcontr.C: add #include <csignal>.
28 * filetools.C (RunCommand): remove the signal blocking stuff
29 now that we no longer use a signal handler on unix.
31 2005-04-19 Angus Leeming <leeming@lyx.org>
33 * filetools.C: remove unnecessary #include of forkedcontr.h.
35 * forkedcall.C: protect system-specific headers with preprocessor
37 (running): don't call waitpid() on Windows.
38 (waitForChild): add Windows-specific code to wait for a child process
40 (generateChild): add Windows-specific code to spawn the child in the
43 * forkedcontr.[Ch]:Revert back to the LyX 1.3.x version of the code
44 to spawn a child process asynchronously. Do this because 'issues'
45 remain with the SIGCHLD handling code on *nix and because there's no
46 easy way to implement such a monitor on Windows. Explicit polling,
47 as in Lyx 1.3.x, is safe, robust and works on both platforms.
49 2005-04-19 Angus Leeming <leeming@lyx.org>
51 * package.C.in (get_temp_dir): call GetLongPathName on Windows.
53 2005-04-19 Angus Leeming <leeming@lyx.org>
55 * pch.h: protect unix-specific headers from breaking compilation
58 2005-04-17 Angus Leeming <leeming@lyx.org>
60 * filetools.C (MakeDisplayPath): invoke os::external_path before
63 * os_win32.C (external_path): convert '/' chars to '\'.
65 * filetools.[Ch] (latex_path): new function which modifies
66 an input path containing space and '~' characters into something that
69 2005-04-17 Angus Leeming <leeming@lyx.org>
71 * forkedcall.C (generateChild): do not strip quotes from args on
73 Wrap lyxerr output inside an if (lyxerr.debugging(Debug::FILES))
76 2005-03-23 Angus Leeming <leeming@lyx.org>
78 * Makefile.am (build_package): Solaris sed does not like
79 spaces bewteen the ;-delimited commands.
81 2005-02-25 Lars Gullik Bjonnes <larsbj@gullik.net>
83 * Makefile.am (CLEANFILES): clean generated files
85 2005-02-17 Angus Leeming <leeming@lyx.org>
87 * copy.C (copy): Pass the ios::in flag to the ifstream constructor.
88 Enables copying to work when the code is compiled with the gcc 2.95
91 2005-02-15 Angus Leeming <leeming@lyx.org>
93 * environment.C: add missing #include.
94 (setEnvPath): compare iterators rather than use tellp().
96 2005-02-15 Angus Leeming <leeming@lyx.org>
98 * environment.[Ch]: new files. Move the environment setter/getter
99 functions here from filetools.[Ch]. In the process:
100 rename GetEnv as getEnv.
101 rename putEnv as setEnv. Change the signature of the function
102 to take a pair of arguments (a name and a value) rather than the
103 existing coded "name=value" single argument. Merge the putenv.C
106 * lyxlib.h (putenv): remove declaration.
109 * Makefile.am: add environment.[Ch]. Remove putenv.C.
111 * filetools.[Ch]: remove environment setter/getter functions.
113 * os_os2.C (init): s/GetEnvPath/getEnvPath/. Left over from an
116 * package.C.in (get_home_dir, extract_env_var_dir):
117 * userinfo.C (user_email): s/GetEnv/getEnv/.
119 2005-02-03 Angus Leeming <leeming@lyx.org>
121 * forkedcall.C (running): call the lyx::kill wrapper function
122 rather than the system kill.
124 2005-02-02 Angus Leeming <leeming@lyx.org>
126 * forkedcall.C (generateChild): overhaul the code to split a string
127 into an argv array of words. Now respects simple quoting reasonably
130 2005-02-01 Angus Leeming <leeming@lyx.org>
132 * fs_extras.C: #include <windows.h>
134 2005-01-31 Angus Leeming <leeming@lyx.org>
136 * package.[Ch] (init_package, c-tor): define and use an enum to
137 specify explicitly the location of the top level build directory
138 when the executable is run in-place.
140 2005-01-31 Lars Gullik Bjonnes <larsbj@gullik.net>
142 * fs_extras.C: add changes from Asger's Win32 patch.
144 2005-01-31 Asger Ottar Alstrup <aalstrup@laerdal.dk>
147 * getcwd.C (l_getcwd):
149 * mkdir.C (mkdir): add Win32 specializations.
151 * os_win32.h: remove cruft.
153 2005-01-31 Lars Gullik Bjonnes <larsbj@gullik.net>
155 * Makefile.am (libsupport_la_SOURCES): remove rmdir.C
157 * rmdir.C: delete file
159 * lyxlib.h: remove rmdir decl
161 2005-01-31 Lars Gullik Bjonnes <larsbj@gullik.net>
163 * .cvsignore: add package.C
165 * FileInfo.C, FileInfo.h: delete files
167 * fs_extras.C, fs_extras.h: new files
169 * FileMonitor.C, filetools.C: rewrite to use boost.filesystem
171 * Makefile.am (libsupport_la_SOURCES: delete FileInfo.[Ch], add
174 * filetools.C: make destroydir return true if something was
175 deleted. adjust callers.
176 (IsFileWritable): replace with is_readonly in fs_extras, adjust
179 * package.C.in: rewrite to use boost.filesystem
181 2005-01-27 Lars Gullik Bjonnes <larsbj@gullik.net>
183 * tests: add some code for automatic regression testing, can be
184 improved or removed as we see fit
186 * lyxlib.h (atoi): delete func
188 * lstrings.[Ch] (strToInt): delete func
189 (strToUnsignedInt): delete func
190 (strToDbl): delete func
192 * Makefile.am: add subdir tests, delete atoi.C
194 * atoi.C: delete file
196 * convert.C: add specializations for converting to int, unsigned
197 int, double from string, and for converting to int and double from
200 * convert.h: remove commented code
202 2005-01-22 Angus Leeming <leeming@lyx.org>
204 * path.C (Path): revert the patch since the if statement has side
205 effects that are needed for the code to work :-(
207 2005-01-21 Angus Leeming <leeming@lyx.org>
209 * os_cygwin.C, os_win32.C: strip the Cygwin-specific stuff out of
210 os_win32.C and give it its own file.
212 * os.C: #include "os_cygwin.C" if building on Cygwin.
214 2005-01-20 Angus Leeming <leeming@lyx.org>
216 * lyxlib.h (float_equal): promote parameters to double.
218 * path.C (Path): silence MSVC warning about block of code that
221 2005-01-20 Asger Ottar Alstrup <aalstrup@laerdal.dk>
223 * FileInfo.h, chdir.C, forkedcall.C, forkedcontr.C, getcwd.C,
224 mkdir.C, os_defines.h, pch.h, rmdir.C, unlink.C:
225 use the HAVE_UNISTD_H preprocessor guard.
227 2005-01-20 Angus Leeming <leeming@lyx.org>
229 * filetools.[Ch] (LibScriptSearch): modify the code that replaces
230 the $$s placeholder with a path, so that it now inserts the path
231 of the lyx support directory, not the scripts subdirectory.
233 2005-01-19 Asger Ottar Alstrup <aalstrup@laerdal.dk>
235 * lyxsum.C, socktools.C, tempname.C, userinfo.C: use the
236 HAVE_UNISTD_H preprocessor guard.
238 2005-01-17 Angus Leeming <leeming@lyx.org>
240 * os_win32.C (init): Add Ruurd's original code to close the
241 console window that Windows opens for us, together with a note
242 explaining the alternative approach.
244 2005-01-17 Angus Leeming <leeming@lyx.org>
246 * package.C.in (get_binary_path): convert relative paths stored
247 in the PATH environment variable to absolute ones.
249 2005-01-16 Angus Leeming <leeming@lyx.org>
251 * filetools.[Ch] (prependEnvPath): prepend a list of paths to
252 that returned by the environment variable. Identical paths occurring
253 later in the list are removed.
255 2005-01-16 Angus Leeming <leeming@lyx.org>
257 * filetools.C (createLyXTmpDir): add some missing brackets to the
258 if-block. OS/2 users will be happier.
260 2005-01-02 Kayvan Sylvan <kayvan@sylvan.com>
262 * os_win32.C (external_path): Check the new cygwin_path_fix_ bool
263 before translating external paths to Win32 paths.
265 2005-01-13 Angus Leeming <leeming@lyx.org>
267 * os.h, os_os2.C, os_unix.C, os_win32.C (cygwin_path_fix): new
268 function flagging whether LyX should output native Win32 paths
269 or cygwin paths. Obviously operative only under Cygwin.
271 2005-01-13 Angus Leeming <leeming@lyx.org>
273 * package.C.in: use "%n$s" rather than "%n%" for n=1,2,3... when
274 calling bformat so that the substitutions work for the non
275 boost::format users too.
277 2005-01-12 Angus Leeming <leeming@lyx.org>
279 * filetools.[Ch] (setEnvPath): new function to create a PATH-style
280 string from a vector of paths and to use it to set an environment
282 (putEnv): resurrect this from the grave.
284 * os.h, os_os2.C, os_unix.C, os_win32.C (path_separator): new
285 function returning the character used to separate paths returned
286 by the PATH environment variable.
288 * os_win32.C: add #include "lstring.h" back in.
290 * package.C.in (package): comment out the ASSERT for now.
291 (check_env_var_dir): write one of the strings to be translated
292 (any one, doesn't matter) on a single line so that the
293 gettext search mechanism in po/Makefile.in.in will register
294 package.C.in as a file containing strings that need translation.
296 2005-01-10 Angus Leeming <leeming@lyx.org>
301 * os_win32.C (binpath, binname, homepath, setTmpDir, getTmpDir, warn):
302 removed. Remove also all code to set the associated data variables.
304 * package.{C.in,h}: new files to ascertain the paths to the
305 various directories used by LyX. Does nothing with these paths,
306 just determines the strings themselves.
308 * path_defines.{C.in,h}: removed.
310 * Makefile.am: remove path_defines.{C.in,h}. Add package.{C.in,h}.
312 * filetools.[Ch] (GetEnvPath): remove.
313 (getEnvPath): replacement. Returns a vector<string> of paths.
316 * tempname.C: use support/package.h to provide the paths to the
317 various directories used by LyX.
319 2005-01-07 Angus Leeming <leeming@lyx.org>
321 * convert.C (string>): add specialization for long.
323 2005-01-07 Lars Gullik Bjonnes <larsbj@gullik.net>
325 * convert.h: remove the specializations, don't included unneeded
327 * convert.C: add specialization for unsigned long
329 2005-01-06 Lars Gullik Bjonnes <larsbj@gullik.net>
331 * tostr.[Ch]: renamed to convert[ch]
333 2005-01-06 Lars Gullik Bjonnes <larsbj@gullik.net>
335 * lstrings.[Ch]: change bformat to be a template
337 * tostr.[Ch]: tostr -> convert, convert is a template
340 * filetools.C (createBufferTmpDir): tostr -> convert
342 2005-01-05 Angus Leeming <leeming@lyx.org>
344 * os_win32.C (external_path, internal_path): s/MAX_PATH/PATH_MAX/.
346 2005-01-04 Angus Leeming <leeming@lyx.org>
348 * os_win32.C (current_root): use _getdrive on Win32.
350 * FileInfo.C (FileInfo, newFile): strip the trailing '/' from
351 the stored file name as it breaks Window's version of stat().
352 (isLink): protect the code with #ifdef S_ISLNK.
353 (dostat): protect the code with #ifdef HAVE_LSTAT.
354 (typeIndicator): remove code testing the file's executable status.
356 * filetools.C (LyXReadLink): protect the code with
357 #ifdef HAVE_READLINK.
359 2005-01-01 Kayvan Sylvan <kayvan@sylvan.com>
361 * os_win32.C (internal_path): remove the call to MakeLatexName as
362 it is (1) unnecessary and (2) leads to an infinite loop as
363 MakeLatexName calls AddName which calls internal_path...
365 2004-12-19 Angus Leeming <leeming@lyx.org>
367 * path_defines.C.in (setLyxPaths): on a Windows build,
368 remove the ".exe" extension from the name of the LyX binary when
369 trying to ascertain the name of the LyX system directory.
370 (Usually, <path to binary>/../share/<name of binary>/).
372 * os.h, os_os2.C, os_unix.C, os_win32.C (slashify_path): remove.
374 * os_win32.C (init): ensure that the name of the lyx executable is
375 stored internally with a unix-style path.
377 * os_win32.C (internal_path, external_path): differentiate between
378 cygwin and windows builds.
380 * filetools.C (FileOpenSearch, GetEnvPath, createDirectory,
381 MakeAbsPath, AddName, MakeRelPath, ChangeExtension):
382 * filename.C (mangledFilename):
383 s/slashify_path/internal_path/.
385 2004-12-16 Angus Leeming <leeming@lyx.org>
387 * filename.C (mangledFilename): Given a Windows-style path, don't
388 forget to mangle the drive letter too when generating a unique
391 2004-12-16 Angus Leeming <leeming@lyx.org>
393 * mkdir.C: move the HAVE_MKDIR conditional code out of config.h
396 2004-12-15 Angus Leeming <leeming@lyx.org>
398 * FileInfo.[Ch] (getNumberOfLinks): removed.
400 2004-12-15 Angus Leeming <leeming@lyx.org>
402 * tempname.C: #include fcntl.h and sys/stat.h if creating a temp
403 file using mktemp and open.
405 2004-12-14 Angus Leeming <leeming@lyx.org>
407 * os.h, os_os2.C, os_unix.C, os_win32.C:
408 (binpath, binname, getTmpDir): return a const reference rather than
410 (homepath, nulldev): new functions returning the name of "HOME" and
411 the null device, respectively.
413 * filetools.C: (ExpandPath, MakeDisplayPath):
414 * path_defines.C.in (setLyxPaths): use os::homepath(), not
417 2004-12-14 Angus Leeming <leeming@lyx.org>
419 * os.h, os_{os2,unix,win32}.C (init): change interface to no longer
420 pass the addresses of the parameters received by main.
422 2004-12-14 Angus Leeming <leeming@lyx.org>
424 * copy.C (copy): open the ifstream with ios::binary.
426 2004-12-14 Angus Leeming <leeming@lyx.org>
428 * os.C: Add _WIN32 to the #define.
430 * systemcall.C (startscript): remove trailing '/n' from request to
431 start the command in a minimized window under DOS.
433 2004-12-14 Angus Leeming <leeming@lyx.org>
435 * Makefile.am (AM_CPPFLAGS): Remove trailing slash from -Ifoo/
436 to overcome bug in the MinGW port of g++ 3.4.2.
438 2004-11-26 Angus Leeming <leeming@lyx.org>
440 * globbing.[Ch] (glob): change API to:
441 1. Append matches to the input container.
442 2. Require a working_dir parameter. The function invokes chdir
443 internally (through use of Path).
445 2004-11-26 Angus Leeming <leeming@lyx.org>
447 * filefilterlist.C (convert_brace_glob): moved here from
450 * filefilterlist.[Ch]: clean-up FileFilterList API.
452 * globbing.[Ch] (convert_brace_glob): moved to filefilterlist.C.
453 (expand_globs): moved to xforms/FormFiledialog.C.
455 2004-11-25 Angus Leeming <leeming@lyx.org>
457 * filefilterlist.[Ch]:
458 * globbing.[Ch]: split FileFilterList into its own .[Ch] files.
460 * Makefile.am: add filefilterlist.[Ch].
462 2004-11-16 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
464 * textutils.h (isKommaChar): remove
466 2004-11-16 Lars Gullik Bjonnes <larsbj@gullik.net>
468 * forkedcontr.C (find_pid): simplify and also make pass concept
470 (handleCompletedProcesses): make sure that we do not slice the
471 object and satisfy concept checks.
473 2004-11-09 Georg Baum <Georg.Baum@post.rwth-aachen.de>
475 * filetools.[Ch] (getFormatFromContents): don't guess format from
476 extension, return string() instead of "user" if the format could
479 2004-11-07 Lars Gullik Bjonnes <larsbj@gullik.net>
481 * Make it clearer where include files are coming from.
483 2004-11-06 Lars Gullik Bjonnes <larsbj@gullik.net>
485 * translator.h: use bind, equal_to instead of equal_1st_in_pair
486 and equal_2nd_in_pair
488 * Makefile.am (libsupport_la_SOURCES): remove lyxfunctional.h
489 * lyxfunctional.h: delete file
491 * lyxfunctional.h: delete compare_memfun and helper classes
493 * forkedcontr.C (find_pid): use bind, equal_to instead of
496 * lyxfunctional.h: delete back_inserter_fun functions and helper
499 2004-11-04 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
501 * snprintf.[ch]: removed
503 * Makefile.am (libsupport_la_SOURCES): remove snprintf
505 2004-10-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
507 * filetools.[Ch] (getExtFromContents): rename to
508 getFormatFromContents and return always a format
510 2004-10-25 Angus Leeming <leeming@lyx.org>
512 * forkedcall.C (generateChild): strip quotes from each argument
515 2004-09-26 Lars Gullik Bjonnes <larsbj@gullik.net>
517 * pch.h: use proper signal include
519 * forkedcallqueue.C: remove unused include
521 * FileMonitor.h: Use the preferred calling for Boost.Signal
522 * forkedcall.h: ditto
524 * FileMonitor.C: use the new signal typedef
526 2004-09-26 Lars Gullik Bjonnes <larsbj@gullik.net>
528 * forkedcall.h: remove include of <boost/function/funtion0.hpp>
531 2004-09-10 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
533 * textutils.h (IsLetterCharOrDigit): remove
535 2004-09-10 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
537 * filetools.C (LibScriptSearch): quote the path of the script, in
538 case it contains spaces
540 2004-09-04 Lars Gullik Bjonnes <larsbj@gullik.net>
542 * tostr.C: reimplement using lexical_cast
544 2004-08-30 Lars Gullik Bjonnes <larsbj@gullik.net>
546 * pch.h: do not use include boost/format.hpp, multiple symbols
547 will result (gcc bug)
549 2004-08-15 Lars Gullik Bjonnes <larsbj@gullik.net>
553 * Makefile.am: support pch
555 2004-08-09 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
557 * globbing.C (FileFilterList): make sure that "All files (*)" is
558 always part of the filters list
560 2004-07-24 Lars Gullik Bjonnes <larsbj@gullik.net>
562 * tostr.C, lstrings.C, globbing.C, filetools.C: change
563 "support/std_sstream.h" to <sstream>
565 * Makefile.am (libsupport_la_SOURCES): delete std_sstream.h and
567 (std_sstream.h): delete file
568 (sstream.h): delete file
570 2004-06-29 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
572 * filetools.C (i18nLibFileSearch): honor case where LANGUAGE
573 specifies a list of locales (thanks to Pablo Saraxtaga for the
576 2004-05-04 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
578 * path_defines.C.in (setLyxPaths): make sure that LyX/Mac can find
579 its po files when moved around; set default user directory to
580 ~/Library/Preferences/LyX/ for LyX/Mac.
581 (lyx_localedir): return the value that may have been computed in
584 2004-05-27 Kayvan Sylvan <kayvan@sylvan.com>
586 * Makefile.am (libsupport_la_SOURCES): remove reference to
589 2004-05-20 Angus Leeming <leeming@lyx.org>
591 * debugstream.h: wrap the definition of debug_trait::DEBUG with
592 preprocessor guards that protect against a name clash with a
593 macro DEBUG. Such a macro is defined by the Qt library...
595 2004-04-27 Angus Leeming <leeming@lyx.org>
597 * path_defines.{h,C.in}: expose top_srcdir, renamed from
600 2004-04-05 Angus Leeming <leeming@lyx.org>
603 wrap #warning calls inside #ifdef WITH_WARNINGS blocks.
605 2004-04-05 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
607 * filetools.C (RunCommand): block SIGCHLD during popen/pclose
608 (actually Angus' fix).
610 2004-04-01 Georg Baum <Georg.Baum@post.rwth-aachen.de>
612 * filetools.C (DeleteAllFilesInDir): delete directories with
613 rmdir(), unlink() does not work
615 2004-03-27 Angus Leeming <leeming@lyx.org>
617 * forkedcontr.C (child_handler): squash warning about a
618 signed/unsigned comparison.
619 (handleCompletedProcesses): only output a warning about an error
620 waiting for the child if it is indeed an error ;-)
622 2004-03-26 Angus Leeming <leeming@lyx.org>
624 * forkedcall.[Ch] (run): new function, replacing runBlocking,
627 * forkedcall.C (generateChild): ensure that the code that splits
628 the command up into an array of words won't leak in the event of an
631 * forkedcontr.C: make it a little more robust.
633 2004-03-24 Angus Leeming <leeming@lyx.org>
635 * forkedcontr.[Ch]: get rid of the timer that we use to poll the list
636 of child proccesses and ascertain whether any have died. Instead use
637 the SIGCHLD signal emitted by the system to reap these zombies in the
638 maximally efficient manner. The subsequent emitting of the signal
639 associated with each child process *is* performed within the main
640 lyx event loop, thus ensuring that the code remains safe.
642 A detailed description of the design is to be found in forkedcontr.C.
644 2004-03-24 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
646 * filetools.C (i18nLibFileSearch): simplify the logic a bit
648 2004-03-23 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
650 * filetools.C (i18nLibFileSearch): fix the logic to match closely
653 2004-03-23 Angus Leeming <leeming@lyx.org>
655 * forkedcall.h (ForkedProcess, Forkedcall): change the signature of
656 clone to return a boost::shred_ptr rather than a std::auto_ptr.
658 * forkedcontr.[Ch]: store the forked calls as boost::shared_ptrs rather
661 2004-03-22 Angus Leeming <leeming@lyx.org>
663 * forkedcontr.[Ch] (childrenChanged, getPIDs, getCommand): remove
664 cruft left over from the removal of the Forks dialog.
666 2004-03-09 Georg Baum <Georg.Baum@post.rwth-aachen.de>
668 * filename.[Ch] (mangledFilename): make sure that mangled names are
671 2004-02-21 Georg Baum <Georg.Baum@post.rwth-aachen.de>
673 * filetools.[Ch] (CreateBufferTmpDir): rename to createBufferTmpDir,
674 remove pathfor argument
675 * filetools.[Ch] (CreateLyXTmpDir): rename to createLyXTmpDir, try
676 harder to create a usable temp dir
677 * filetools.C (CreateTmpDir): rename to createTmpDir
678 filetools.[Ch] (unzipFile): add argument for output filename
679 * filename.h: fix doxygen warning
681 2004-02-01 Lars Gullik Bjonnes <larsbj@gullik.net>
683 * lstrings.h (contains_functor): delete
684 (contains): change into template, simplify
686 * lstrings.C (contains): remove both functions
688 2004-01-31 Lars Gullik Bjonnes <larsbj@gullik.net>
690 * lyxalgo.h (eliminate_duplicates): reimplement with sort and the
693 * lstrings.h (contains_functor): inherit from
694 std::binary_function, remove typedefs.
696 2004-01-28 Lars Gullik Bjonnes <larsbj@gullik.net>
698 * globbing.C: add using statement for std::distance, remove std::
701 2004-01-08 Angus Leeming <leeming@lyx.org>
703 * globbing.[Ch]: add a new class FileFilterList to parse a Qt-style
704 list of available file filters and generate the corresponding vector.
706 2003-12-14 Ronald Florence <ron@18james.com>
708 * tostr.[hC]: added tostr(long unsigned int i).
710 * path_defines.C.in: determine system directory and set PATH for
711 relocatable LyX/Mac bundle.
713 2004-01-06 Angus Leeming <leeming@lyx.org>
715 * globbing.C (glob): compilation fix for cygwin.
717 2004-01-06 Lars Gullik Bjonnes <larsbj@gullik.net>
719 * Makefile.am (libsupport_la_SOURCES): remove BoostFormat.h and
721 * BoostFormat.h: delete file
722 * boost-inst.C: delete fil
724 * lstrings.C: include boost/format.hpp
726 2004-01-05 Angus Leeming <leeming@lyx.org>
728 * globbing.[Ch]: new files containing some globbing utilities.
730 2003-11-05 João Luis M. Assirati <assirati@fma.if.usp.br>
732 * putenv.C: allocate the string before putting it into the
737 2003-11-03 Lars Gullik Bjønnes <larsbj@gullik.net>
739 * tempname.C (tempName): use scoped_array for exception safety
741 * os_os2.C (init): use scoped_array for exception safety
743 * getcwd.C (getcwd): use scoped_array for exception safety
745 * forkedcontr.C (addCall): adjust
747 * forkedcall.h: make clone return a auto_ptr
749 2003-11-01 Lars Gullik Bjønnes <larsbj@gullik.net>
751 * debugstream.h: add a default constructor that does not setup a
754 2003-10-14 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
756 * socktools.C: honor CXX_GLOBAL_CSTD
758 2003-10-16 André Pönitz <poenitz@gmx.net>
760 * filetools.C (ReplaceEnvironmentPath): set up patterns just once
761 using static variables.
763 2003-10-13 João Luis Meloni Assirati <assirati@fma.if.usp.br>
765 * socktools.[Ch]: New files. Wrapper around socket system calls.
767 2003-10-13 Kayvan A. Sylvan <kayvan@sylvan.com>
769 * socktools.C (SUN_LEN): add this MACRO definition for platforms
770 that do not define it themselves.
772 2003-10-08 Angus Leeming <leeming@lyx.org>
774 * copied_ptr.h: get rid of the swap member function.
776 2003-10-08 Angus Leeming <leeming@lyx.org>
778 Fix doxygen warnings.
780 * debugstream.h: \file debugStream.h -> \file debugstream.h
782 * os.h: move comment so that doxygen is not confused.
784 2003-10-07 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
786 * Makefile.am: fix typo.
788 2003-10-06 Lars Gullik Bjønnes <larsbj@gullik.net>
790 * std_string.h: delete file
792 2003-10-06 Martin Vermeer <martin.vermeer@hut.fi>
794 * lstrings.C: Small fixes to build using STLport
796 2003-09-29 Angus Leeming <leeming@lyx.org>
798 * filetools.C (ReplaceEnvironmentPath): make it work for both
799 ${HOME}/foo and $HOME/foo.
801 2003-09-26 Lars Gullik Bjønnes <larsbj@gullik.net>
803 * debugstream.h: add file, updated version of the DebugStream
805 * DebugStream.C,DebugStream.h: delete files
807 2003-09-25 Angus Leeming <leeming@lyx.org>
809 * filetools.C (ReplaceEnvironmentPath): rewrite to use boost::regex.
810 * lstrings.[Ch]: (regexMatch): removed.
812 2003-09-25 Angus Leeming <leeming@lyx.org>
814 * translator.h (add): new member function.
816 2003-09-16 Angus Leeming <leeming@lyx.org>
818 * textutils.h: remove #include "paragraph.h". Remove functions
819 IsInsetChar and IsWordChar.
821 2003-09-15 Angus Leeming <leeming@lyx.org>
823 * copied_ptr.h: re-jig to something that resembles Herb Sutter's
824 HolderPtr --- see http://www.gotw.ca/gotw/062.htm. Also known in
825 his book as ValuePtr.
826 Use a memory_traits template parameter to create/destroy memory in a
829 2003-09-15 Lars Gullik Bjønnes <larsbj@gullik.net>
833 * filetools.C: Remove usage of STRCONV
835 * Makefile.am (libsupport_la_SOURCES): remove lyxstring.C and
838 * std_string.h: modify to always work with std::string, but if
839 with-included-string then use it through namespace lyx. Remove
842 * lyxstring.[Ch]: remove files
844 2003-09-15 Angus Leeming <leeming@lyx.org>
846 * translator.h: add #include <boost/assert.hpp>, so that the
847 template is self-contained.
849 2003-09-11 Angus Leeming <leeming@lyx.org>
852 * copied_ptr.h: added to the repository. Maybe temporarily.
854 2003-09-09 Lars Gullik Bjønnes <larsbj@lyx.org>
856 * Makefile.am (libsupport_la_SOURCES): remove LAssert.C and LAssert.h
858 * several files: change Assert to BOOST_ASSERT
861 * LAssert.h: remove files
863 2003-09-08 Angus Leeming <leeming@lyx.org>
866 * filetools.C: tell the world where to find author contact details.
868 2003-09-08 Angus Leeming <leeming@lyx.org>
874 * lyxsum.C: remove redundant using directives.
876 2003-09-05 Angus Leeming <leeming@lyx.org>
878 * lstrings.C: small bformat fix
880 2003-09-05 Angus Leeming <leeming@lyx.org>
882 * std_istream.h: new file Just renaming of LIstream.h
883 * std_ostream.h: new file Just renaming of LIstream.h
884 * std_sstream.h: new file Just renaming of Lsstream.h
885 * std_string.h: new file Just renaming of LString.h
887 2003-09-05 Angus Leeming <leeming@lyx.org>
891 ensure that the header file can be compiled stand-alone.
893 2003-09-04 Lars Gullik Bjønnes <larsbj@lyx.org>
895 * lstrings.[Ch] (bformat): add a variant taking two ints.
897 2003-09-04 Angus Leeming <leeming@lyx.org>
900 * filename.C: move #include "os.h" out of the header file.
902 2003-09-04 Angus Leeming <leeming@lyx.org>
904 * path.C (ctor, dtor): move out of line.
906 2003-09-03 Angus Leeming <leeming@lyx.org>
908 * filename.[Ch] (FileName): new c-tor takes abs_filename arg.
909 (mangledFilename): new function, returning a mangled version of the
910 absolute file name, suitable for use in the temp dir when, for example,
911 converting an image file to another format.
912 (isZipped, unzippedFilename): wrappers to global functions.
914 * filetools.[Ch] (copyFileToDir): removed.
915 (compare_timestamps): new function.
917 2003-09-03 Angus Leeming <leeming@lyx.org>
919 * translator.h: Assert is in namespace lyx::support...
921 2003-08-02 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
923 * Makefile.am: do not install path_defines.C in includes
924 (COMPRESSION): mention gzstream.h here
926 2003-08-01 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
928 * path_defines.C.in (setLyxPaths): re-introduce the code to check
929 whether lyx is run in place
930 (build_dir): renamed from build_lyxdir
931 (build_lyxdir): give this better semantics compatible with what
932 LibFileSearch expects.
934 2003-07-29 Angus Leeming <leeming@lyx.org>
936 * filename.[Ch] (relFilename, outputFilename): the 'path' arg
937 defaults to string() because MakeRelPath can accept that.
939 2003-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
941 * Makefile.am: conditionalize USE_COMPRESSION.
943 2003-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
945 * filetools.C (getExtFromContents): correct magic for gzip and
948 * path_defines.[Ch]: move lyx_localedir out of anon namespace
950 * gzstream.h: new fileq
952 * gzstream.C: new file
954 2003-07-27 Angus Leeming <leeming@lyx.org>
956 * path_defines.{h,C.in} (build_lyxdir, system_lyxdir,
957 user_lyxdir): are now functions, not global vars.
959 * Makefile.am: set build_lyxdir at make time.
961 2003-07-27 Angus Leeming <leeming@lyx.org>
963 * path_defines.{h,C.in}: new files. Store/set the various lyx
964 paths, lyx_dir, top_srcdir, localedir, system_lyxdir, build_lyxdir
967 * Makefile.am: add some magic to enable the user to set the path to
968 the system-level lyx support files, the top of the lyx build tree
969 and the system-level lyx locale directory at _make_ time rather
972 * .cvsignore: add path_defines.C.
974 2003-07-26 Angus Leeming <leeming@lyx.org>
976 * os.h: remove irrelevant discussion of system_tempdir.
978 2003-07-21 Angus Leeming <leeming@lyx.org>
980 * filename.[Ch]: new files implementing class FileName.
981 * Makefile.am: add filename.[Ch].
983 2003-07-18 Lars Gullik Bjønnes <larsbj@gullik.net>
985 * BoostFormat.h (boost): remove one extern template. Gcc 3.4. does
986 not allow it (at least not in this form.)
988 2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
990 * os_win32.C: put namespace os in lyx::support.
992 * lstrings.C (bformat): call Assert from correct namespace.
994 * introduce namespace lyx::support
996 2003-06-30 André Pönitz <poenitz@gmx.net>
999 * lstrings.C: re-enable --with-included-string
1001 2003-06-28 Lars Gullik Bjønnes <larsbj@gullik.net>
1003 * filetools.h: fix some \param issue
1005 * boost-inst.C: fix \file
1007 * LAssert.h: fix \file
1009 2003-06-20 Angus Leeming <leeming@lyx.org>
1011 * filetools.[Ch] (NormalizePath): also change /foo//bar ==> /foo/bar.
1013 2003-06-18 Angus Leeming <leeming@lyx.org>
1015 * many files: add the standard blurb, "This file is part of LyX" etc
1017 2003-06-17 Lars Gullik Bjønnes <larsbj@lyx.org>
1019 * limited_stack.h: make it have a const_iterator, add begin, and
1022 2003-06-10 Angus Leeming <leeming@lyx.org>
1024 * filetools.C (copyFileToDir): ensure that temp files have unique names.
1026 2003-06-04 André Pönitz <poenitz@gmx.net>
1028 * limited_stack.h (top): return reference instead of value
1030 2003-06-02 Angus Leeming <leeming@lyx.org>
1032 * filetools.[Ch] (copyFileToDir): new helper function.
1034 * os.h: remove trailing semi-colon from end of namespace os block.
1036 2003-06-01 Angus Leeming <leeming@lyx.org>
1038 * filetools.h (LibScriptSearch): give the function a meaningful
1039 description of what it now does.
1041 2003-05-30 Angus Leeming <leeming@lyx.org>
1043 * filetools.C (LibScriptSearch): make it search for "$$s/" and replace
1044 this with the path to the script. If the script is not found, the "$$s/"
1047 2003-05-22 Lars Gullik Bjønnes <larsbj@gullik.net>
1049 * lstrings.[Ch] (prefixIs,suffixIs,subst): remove variants taking
1052 2003-05-19 André Pönitz <poenitz@gmx.net>
1054 * lstrings.C: add missing implementation of three-arg bformat
1056 * lstrings.C: change rest of char * fmt -> string const & fmt
1059 2003-05-15 André Pönitz <poenitz@gmx.net>
1061 * lstrings.[Ch]: use string const & instead of char const * for format
1063 2003-05-12 André Pönitz <poenitz@gmx.net>
1065 * tostr.[Ch]: add long int overload
1067 2003-05-12 Alfredo Braunstein <abraunst@libero.it>
1069 * lstrings.[Ch]: compile fix
1071 2003-05-12 André Pönitz <poenitz@gmx.net>
1073 * lstrings.[Ch]: bformat() as wrapper around boost::format
1075 * lyxstring.h: enable templatized constructor
1077 2003-05-06 Lars Gullik Bjønnes <larsbj@gullik.net>
1079 * limited_stack.h: Change some comments, simplify a couple of
1082 2003-02-21 André Pönitz <poenitz@gmx.net>
1084 * limited_stack.h: change underlying container to deque to
1085 make this re-usable in mathed
1087 2003-04-08 John Levon <levon@movementarian.org>
1089 * filetools.C: fix MakeDisplayPath() to not
1092 2003-03-30 John Levon <levon@movementarian.org>
1096 * boost-inst.C: moved from src/
1098 2003-03-29 John Levon <levon@movementarian.org>
1101 * filetools.C: never call Alert directly from here
1103 2003-03-12 John Levon <levon@movementarian.org>
1105 * textutils.h: remove META_NEWLINE
1107 2003-02-27 Ling Li <ling@caltech.edu>
1109 * lyxalgo.h (eliminate_duplicates): re-written to avoid the initial
1112 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
1114 * forkedcontr.C (timer): remove bogus continue
1116 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
1118 * forkedcallqueue.[Ch]: added
1120 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
1122 * forkedcontr.C (timer): Start the loop afresh if an item is deleted.
1123 Emiting the signal can result in an arbitrary change to the list.
1125 2003-02-25 Angus Leeming <leeming@lyx.org>
1127 * forkedcontr.C (timer): Use a while loop rather than for; makes it
1128 easier to erase an element.
1130 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
1132 * forkedcontr.C (timer): don't start a running timer.
1134 2003-02-21 André Pönitz <poenitz@gmx.net>
1136 * filetools.C (PutEnv): removed (unused)
1138 2003-02-17 John Levon <levon@movementarian.org>
1141 * forkedcall.C: add running()
1143 2003-02-08 John Levon <levon@movementarian.org>
1147 * lyxtime.C: add typedef for time_t, add current_time
1153 2002-12-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1155 * filetools.C (getExtFromContents): remove detection of epsi
1157 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
1159 * several files: ws changes
1161 2002-11-27 Lars Gullik Bjønnes <larsbj@birdstep.com>
1163 * filetools.C (DirList): remove all ugly hacks and do it nice
1165 2002-11-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1167 * lyxsum.C: an ugly hack to compile with non-gnu linkers
1169 2002-11-12 Angus Leeming <aleem@pneumon.bg.ic.ac.uk>
1171 * lstrings.C (getVectorFromString): #if 0 -> #if 1 until Lars devises
1172 a solution that he likes and which actually works.
1174 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
1176 * lstrings.h (tostr): STRCONV
1178 * lstrings.C (regexMatch): STRCONV
1179 (getVectorFromString): STRCONV, manual copy into vector
1181 * filetools.C (GetFileContents): STRCONV
1183 * os.C: include config.h
1185 * lstrings.C (getVectorFromString): rewrite to use
1188 2002-10-31 Angus Leeming <leeming@lyx.org>
1190 * forkedcall.C (generateChild): clean it up further.
1192 2002-10-25 Angus Leeming <leeming@lyx.org>
1194 * forkedcall.[Ch]: split ForkedCall up into a base class ForkedProcess
1195 and a minimal ForkedCall daughter class.
1197 * forkedcontr.[Ch]: minimal changes reflecting the use of a
1198 ForkedProcess base class responsible for launching all child proceses.
1200 2002-09-25 Angus Leeming <leeming@lyx.org>
1203 * LOstream.h: doxygen fixes.
1205 2002-09-24 Angus Leeming <leeming@lyx.org>
1207 * most files: clean-up the license info.
1209 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
1211 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
1213 2002-09-16 Kayvan A. Sylvan <kayvan@sylvan.com>
1215 * os.h, os_os2.C, os_win32.C, os_unix.C: Added popen_read_mode(),
1216 since at least for Cygwin, the "rb" read_mode acceptable for
1217 fopen() is illegal for popen(), whose mode argument *must* be "r"
1220 * filetools.C (RunCommand): Uses os::popen_read_mode() instead
1223 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
1225 * Makefile.am (libsupport_la_SOURCES): delete smart_ptr.h and
1228 * smart_ptr.h: remove file
1231 2002-08-20 Lars Gullik Bjønnes <larsbj@gullik.net>
1233 * lyxfunctional.h: remove class_fun_t, void_class_fun_t,
1234 class_fun and void_class_fun
1236 2002-08-20 John Levon <levon@movementarian.org>
1241 2002-08-14 Lars Gullik Bjønnes <larsbj@gullik.net>
1243 * textutils.h: formatting.
1245 2002-08-08 John Levon <levon@movementarian.org>
1247 * limited_stack.h: default to 100 not 10
1249 2002-08-01 John Levon <levon@movementarian.org>
1251 * forkedcall.C: more details on error
1253 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
1255 * lstrings.[hC]: rename stip to rtrim and frontStrip to ltrim,
1256 also add a trim function that is the equiv of
1257 strip(frontStrip(...)), also reimplement the functions
1258 (improvements still possible.)
1260 * filetools.C: strip,frontStrip -> trim,ltrim,rtrim
1261 * forkedcall.C (generateChild): ditto
1265 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
1267 * filetools.C (GetEnvPath): modify because of strip changes
1268 (createDirectory): ditto
1269 (findtexfile): ditto
1270 * lstrings.[Ch] (isStrInt): ditto
1271 (isStrUnsignedInt): ditto
1273 (strToUnsignedInt): ditto
1275 (contains): removed unneeded version of contains
1276 (containsOnly): removed uneeded versions of containsOnly
1277 (strip, frontStrip): removed unneded versions, changed argument types.
1279 2002-07-22 Dekel Tsur <dekelts@tau.ac.il>
1281 * filetools.C (RunCommand): Made public
1283 2002-07-22 John Levon <moz@compsoc.man.ac.uk>
1285 * limited_stack.h: fix comment, remove un-needed header
1287 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1289 * lstrings.h: correct comments for token and tokenPos
1291 2002-07-20 Dekel Tsur <dekelts@tau.ac.il>
1293 * lyxstring.C (operator>>): replace code which works only with
1294 _some_ versions of GNU STL with generic one
1296 2002-07-18 Angus Leeming <leeming@lyx.org>
1298 * FileMonitor.[Ch]: new files. Monitor a file for any change and emit a
1299 signal should it do so.
1301 * Makefile.am: add FileMonitor.[Ch].
1303 2002-07-18 André Pönitz <poenitz@gmx.net>
1305 * filetools.C (LibScriptSearch): bug fix
1307 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1309 * filetools.C (LyXReadLink): add bool 'resolve' to return link
1310 contents as an absolute path
1312 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1314 * filetools.C (IsLyXFilename):
1315 (IsSGMLFilename): use ascii_lowercase instead of lowercase
1317 * lstrings.[Ch] (ascii_lowercase): new function
1319 2002-07-16 André Pönitz <poenitz@gmx.net>
1321 * FileInfo.Ch: remove unneeded code
1323 2002-06-20 Herbert Voss <voss@perce.de>
1325 * filetools.[C] (readExtFromContents): add support for
1326 (x)fig format images
1328 2002-06-26 André Pönitz <poenitz@gmx.net>
1330 * filetools.[Ch]: small whitespace, more compact 'return' statement
1332 2002-06-19 John Levon <moz@compsoc.man.ac.uk>
1334 * lyxalgo.h: add eliminate_duplicates
1336 2002-06-17 Herbert Voss <voss@perce.de>
1338 * filetools.[C]: (readBB_from_PSFile) add a helperfunc
1339 (readBB_lyxerrMessage) to get better lyxerr messages
1340 (getExtFromContents) test epsi files in the right way
1342 * DestroxLyXTmpDir.C: changed to true, to delete the
1343 temporary unzipped files, too.
1345 2002-06-10 Lars Gullik Bjønnes <larsbj@birdstep.com>
1347 * putenv.C (putenv): putenv should never be found in std::
1349 * kill.C (kill): kill should never be found in std::
1351 * filetools.C: pclose and popen should never be found in std::
1353 2002-06-07 Angus Leeming <leeming@lyx.org>
1355 Fixes needed to compile with Compaq cxx 6.5.
1356 * lyxfunctional.h: rename lyx::class_fun(C & c, void(C::*f)(A)) as
1357 lyx::void_class_fun to avoid compiler problems with Compaq cxx 6.5:
1358 more than one instance of overloaded function "lyx::class_fun" matches
1368 all c-library variables have been moved into namespace std.
1369 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
1371 * kill.C: rename signal.h as csignal.
1373 * putenv.C: rename stdlib.h as cstdlib
1375 2002-06-05 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1377 * lxtl.h: remove unused file
1379 2002-05-30 John Levon <moz@compsoc.man.ac.uk>
1386 * StrPool.C: remove unused files
1396 * types.h: document and small cleanups
1398 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
1400 * switch from SigC signals to boost::signals.
1402 2002-05-26 John Levon <moz@compsoc.man.ac.uk>
1405 * limited_stack.h: new template for limited-size
1408 2002-05-25 Lars Gullik Bjønnes <larsbj@birdstep.com>
1410 * filetools.C: do not include LSubstring.h
1412 * lstrings.C: change include order
1413 (regexMatch): use boost regex get rid of LRegex and LSubstring
1415 * Makefile.am (libsupport_la_SOURCES): delete regex and substring
1418 * LSubstring.h: remove file
1423 * LSubstring.C: ditto
1425 2002-05-24 Juergen Vigna <jug@sad.it>
1427 * lyxsum.C: include local includes first (self containment)
1429 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
1431 * forkedcall.h: use more specific smart_ptr header.
1433 * lyxsum.C: move some using declarations around.
1435 2002-05-03 Herbert Voss <voss@perce.de>
1437 * filetools.C (getExtFromContents): only print the first 60 chars of
1438 the scanned-string when debugging.
1440 2002-05-02 Lars Gullik Bjønnes <larsbj@birdstep.com>
1442 * lyxstring.C: close to typo fix.
1444 2002-05-02 Angus Leeming <a.leeming@ic.ac.uk>
1446 * filetools.C: add a using std::getline directive.
1448 2002-05-02 Lars Gullik Bjønnes <larsbj@birdstep.com>
1450 * lyxstring.C (operator>>): try a new version of the operator>>
1452 2002-04-14 Herbert Voss <voss@perce.de>
1454 * lstrings.[Ch]: move the getVectorFromString and the vice versa
1455 from frontends/controllers/helper_funcs for better use in other
1458 2002-04-15 Angus Leeming <a.leeming@ic.ac.uk>
1460 * tempname.C (make_tempfile): simplify the #ifdef block by using
1461 #if defined and re-write the #warning as a #error because it's terminal.
1463 2002-04-08 Herbert Voss <voss@perce.de>
1465 * filetools.C (getExtFromContents): get tgif run
1467 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
1469 * filetools.C (getExtFromContents): re-format a little and remove
1470 replicated "sgi" entry.
1472 2002-04-07 Herbert Voss <voss@perce.de>
1474 * filetools.[Ch]: add readBB_from_PSFile() to make bb available
1475 for the lyx-view in graphics (moved from ControlGraphics)
1477 2002-04-07 Herbert Voss <voss@perce.de>
1479 * filetools.C: fix bug for eps. scans now a whole line
1481 2002-04-06 Lars Gullik Bjønnes <larsbj@birdstep.com>
1483 * lyxstring.C (operator>>): use the better solution, this fixes a
1484 "not able to read '\0'" bug.
1486 2002-04-05 Lars Gullik Bjønnes <larsbj@birdstep.com>
1488 * translator.h: add missing typename
1490 2002-03-27 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1492 * filetools.C (LibScriptSearch): new command. Searches for scripts
1493 in lyx data directories.
1494 (LibScriptSearch): try to use split() correctly.
1496 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
1498 * most files: ws cleanup
1500 * Makefile.am: remove ld -r stuff
1502 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
1504 * Makefile.am (libsupport.la): special rules if partial linking
1506 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
1508 * forkedcontr.C: turn the timer off when their are no longer any
1509 child processes running.
1511 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
1513 * forkedcall.h: docy fix
1514 change SignalType second type to be const ref.
1516 * forkedcall.C: doxy fix
1518 2002-03-11 Kayvan A. Sylvan <kayvan@sylvan.com>
1520 * lyxsum.C: compilation fix
1522 2002-03-02 Herbert Voss <voss@perce.de>
1524 * filetools.C: fix bug for xbm format and added some more debug
1527 2002-03-02 Lars Gullik Bjønnes <larsbj@birdstep.com>
1529 * forkedcontr.h: make constructor public
1531 * types.h: remove layout_type
1533 2002-03-01 Angus Leeming <a.leeming@ic.ac.uk>
1535 * filetools.C (getExtFromContents): cleanup.
1537 * forkedcontr.h (d-tor): make it public for Dekel's crappy compiler.
1539 2002-02-27 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1541 * Makefile.am (SIGC_INCLUDES): add a -I directive for when
1542 building outside of source tree.
1544 2002-02-19 Angus Leeming <a.leeming@ic.ac.uk>
1547 * forkedcontr.[Ch]: new files. Asger's forked call controller is
1548 re-born, with a working timer and a modified interface. The
1549 startscript method is now passed a Signal rather than a pointer
1550 to a callback function. This enables us to connect to the method of
1551 a C++ class, if we so desire.
1553 * Makefile.am: add forkedcall.[Ch], forkedcontr.[Ch].
1555 2002-02-26 John Levon <moz@compsoc.man.ac.uk>
1560 * nt_defines.h: moved from src/
1562 2002-02-23 Herbert Voss <voss@perce.de>
1564 * filetools.C: added more graphic formats
1566 2002-02-18 Herbert Voss <voss@perce.de>
1568 * filetools.C: (getExtFromContents) return the fileextension
1569 if no format is detected.
1571 2002-02-18 Angus Leeming <a.leeming@ic.ac.uk>
1573 * syscall.[Ch]: renamed as systemcall.[Ch]. class Systemcalls renamed
1574 as class SystemCall because one Systemcall instance represents a
1575 single child process.
1578 * Makefile.am: associated changes.
1580 2002-02-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1582 * syscall.C (Systemcalls): include <cstdlib>
1584 2002-02-08 Herbert Voss <voss@perce.de>
1586 * filetools.C: (getExtFromContents) adding Grace-format
1589 2002-02-16 Angus Leeming <a.leeming@ic.ac.uk>
1592 * syssingleton.C: files removed.
1594 * syscall.[Ch]: remove the forked calls interface, as nothing, nowhere
1595 uses it. Strip down the Systemcalls interface to make it brutally
1596 obvious how unsophisticated it is.
1598 2002-02-08 Herbert Voss <voss@perce.de>
1600 * filetools.C: (getExtFromContents) adding TGIF-format
1601 and return type "user" when no type is detected
1603 2002-02-13 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1605 * textutils.h: remove IsLineSeparatorChar(char, Inset *)
1607 2002-02-10 Kayvan Sylvan <kayvan@sylvan.com>
1609 * os_win32.C: Add "using std::endl" to fix compilation for GCC 3.X.
1611 2002-02-08 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1613 * FileInfo.h: remove special cygwin code.
1615 * filetools.C (do_popen): use os::read_mode().
1617 * os_win32.C (read_mode):
1618 * os_os2.C (read_mode):
1619 * os_unix.C (read_mode): new method
1621 * filetools.C (do_popen): fix for cygwin compatibility (from Claus
1622 Hentschel). This code should maybe be moved to os:: class.
1624 2002-02-08 Herbert Voss <voss@perce.de>
1626 * filetools.C: (unzipFile) fix typo
1628 2002-02-06 Herbert Voss <voss@perce.de>
1630 * filetools.[Ch]: fix some bugs for detecting zipped files
1633 2002-02-04 Herbert Voss <voss@perce.de>
1635 * filetools.[Ch]: add ifZippedFile() for zipped
1638 2002-02-04 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1640 * filetools.C (FileOpenSearch): remove duplicated line, probably
1641 resulting from bad cut-and paste.
1643 2002-01-31 Herbert Voss <voss@perce.de>
1645 * filetools.[Ch]: add getExtFromContents(), which returns
1646 the type of the (graphic) file
1648 2002-01-30 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1650 * copy.C (copy): open file in binary mode (for cygwin)
1652 2002-01-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1654 * lyxsum.C: remove #warnings and replaced them with runtime debug
1657 2002-01-14 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1659 * lyxalgo.h: include <algorithm>
1661 2002-01-14 Angus Leeming <a.leeming@ic.ac.uk>
1663 * lyx_algo.h: add a standard-conforming count to namespace lyx.
1665 * lstrings.[Ch] (countChar): removed. Use lyx::count.
1667 2002-01-05 John Levon <moz@compsoc.man.ac.uk>
1669 * filetools.C: fix use of FileInfo
1672 * FileInfo.C: add Asserts and documentation
1674 2001-12-20 Kayvan A. Sylvan <kayvan@sylvan.com>
1676 * os_win32.C: compilation fixes
1678 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1680 * lstrings.h: do not include <cctype>
1682 2001-12-12 Ben Stanley <bds02@uow.edu.au>
1684 * lyxsum.C: portability fix for mmap patch
1686 2001-12-05 Lars Gullik Bjønnes <larsbj@birdstep.com>
1690 * lyxstring.C: change "while(" to "while ("
1692 2001-12-03 Ben Stanley <bds02@uow.edu.au>
1694 * lyxsum.C: Added mmap version of CRC and made it selected
1695 by default where available. Used process_block for crc for speedup.
1697 2001-12-01 John Levon <moz@compsoc.man.ac.uk>
1699 * filetools.C: more robust failure for DirList()
1701 2001-11-29 André Pönitz <poenitz@gmx.net>
1703 * types.h: introduce types for textclass numbers and layout numbers
1705 2001-11-28 André Pönitz <poenitz@gmx.net>
1707 * Makefile.am: put types.h in
1709 2001-11-26 André Pönitz <poenitz@gmx.net>
1711 * types.h: introduce types for paragraph positions and layout numbers
1713 2001-11-04 John Levon <moz@compsoc.man.ac.uk>
1715 * filetools.C: remove dead code
1717 * syscall.C: show prog in fail case
1719 2001-10-24 Andre Poenitz <poenitz@HTWM.De>
1721 * filetools.C: code style cleanup
1723 2001-10-23 Angus Leeming <a.leeming@ic.ac.uk>
1725 * os.h: remove spurious punctuation.
1727 2001-10-19 John Levon <moz@compsoc.man.ac.uk>
1730 * LAssert.C: use new emergencyCleanup()
1732 2001-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1734 * filetools.C (i18nLibFileSearch): check also LANGUAGE and LC_ALL,
1735 like GNU gettext does.
1737 2001-10-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1739 * filetools.C (AbsolutePath): Use os::is_absolute_path() (also in
1741 (findtexfile): oops! the change from last friday was wrong...
1743 * os_win32.C (is_absolute_path):
1744 * os_unix.C (is_absolute_path):
1745 * os_os2.C (is_absolute_path): new method
1747 2001-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1749 * filetools.C (findtexfile): apply os::internal_path to the result.
1751 2001-07-02 Claus Hentschel <claus.hentschel@mbau.fh-hannover.de>
1756 * os.h: add internal_path method, which converts a unix-type file
1757 name to the type known to the underlying file system (currently
1758 only useful on cygwin) [from Ruurd A. Reitsma and Claus Hentschel]
1760 2001-08-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
1762 * smart_ptr.h: new file
1764 * utility.h: new file
1766 2001-08-01 John Levon <moz@compsoc.man.ac.uk>
1769 * filetools.C (IsDirWriteable): fix this
1771 2001-07-26 Baruch Even <baruch@lyx.org>
1773 * lyxlib.h (float_equal): Added function to compare floats almost equal
1774 (see function comment).
1776 2001-07-13 Angus Leeming <a.leeming@ic.ac.uk>
1778 Consistent use of Lsstream.h:
1779 * filetools.C (GetFileContents): std::ostringstream -> ostringstream.
1781 2001-07-12 Lars Gullik Bjønnes <larsbj@birdstep.com>
1783 * translator.h: (*it). -> it->
1785 2001-06-26 The LyX Project <lyx@violet.home.sad.it>
1787 * filetools.C (DeleteAllFilesInDir): send debug output to
1788 Debug::FILES instewad of Debug::ANY.
1790 * DebugStream.h: remove gcc 2.8.x hack.
1792 2001-06-26 The LyX Project <jug@sad.it>
1795 * lstrings.C (escape): move method to escape non ascii characters
1796 from insets label and ref to here.
1798 2001-06-25 The LyX Project <jug@sad.it>
1800 * filetools.C (IsLyXFilename):
1801 (IsSGMLFilename): do case insensitive name matching
1803 2001-06-24 The LyX Project <jug@sad.it>
1805 * lstrings.C (compare_ascii_no_case): version of compare_no_case
1806 which only considers case of ascii characters
1808 * lyxstring.C (replace): added for compatibility with gcc 2.95.3+
1811 2001-06-23 The LyX Project <jug@sad.it>
1813 * textutils.h (IsPrintable): take into account unprintable spaces
1815 (IsDigit): new function
1816 (IsLetterCharOrDigit): use IsDigit
1818 2001-06-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1820 * filetools.C (findtexfile): strip final \r if necessary (for
1823 2001-06-19 Angus Leeming <a.leeming@ic.ac.uk>
1826 * StrPool.C: removed // -*- C++ -*- as first line.
1828 2001-06-01 Lars Gullik Bjønnes <larsbj@birdstep.com>
1830 * lyxsum.C (do_crc): switch to use boost::crc for generating the
1833 2001-06-01 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1838 * LSubstring.C: bring C functions in global namespace if
1841 * lstrings.h (compare): use the std:: version of str[n]cmp only
1844 2001-05-31 Lars Gullik Bjønnes <larsbj@birdstep.com>
1846 * syscontr.C: add std::
1848 * syscall.C: add std::
1850 * lstrings.h (compare): add std::
1852 * lstrings.C (prefixIs): add std::
1856 * LSubstring.C (LSubstring): add std::
1858 2001-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
1860 * lyxsum.C (sum): use istreambuf_iterator when available.
1862 2001-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
1864 * lyxsum.C (sum): don't use sstream anymore, use istream_iterator
1867 * lyxstring.C (operator): make const operator[] behave as
1870 2001-05-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1872 * Makefile.am (EXTRA_DIST): add the os_*.C files.
1874 2001-05-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1876 * filetools.C (MakeAbsPath): remove debugging statement
1878 2001-05-16 Ruurd Reitsma <r.a.reitsma@wbmt.tudelft.nl>
1880 * FileInfo.h: X_OK workaround for cygwin
1889 * filetools.h: Added os:: class.
1893 * tempname.C: OS/2 fixes
1895 2001-05-03 Lars Gullik Bjønnes <larsbj@birdstep.com>
1897 * textutils.h: remvoe !NEW_INSETS cruft
1899 2001-05-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1902 * atoi.C: add using directives when needed for C functions
1903 declared in std:: namespace.
1905 2001-04-25 Lars Gullik Bjønnes <larsbj@birdstep.com>
1907 * lstrings.C : add two helper structs, local_lowercase and
1909 (lowercase): change to use std::transform
1910 (uppercase): change to use std::transform
1912 2001-04-25 Allan Rae <rae@lyx.org>
1914 * lyxstring.C : Assert got moved and Lars missed a few.
1916 2001-04-24 Lars Gullik Bjønnes <larsbj@birdstep.com>
1918 * LAssert.h (Assert): put into namespace lyx
1920 * lyxfunctional.h: put into namespace lyx
1921 * translator.h: adjust
1923 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
1925 * lyxalgo.h: put into namespace lyx, add firster and copy_if
1927 * FileInfo.h: inherit privately from noncopyable
1930 2001-04-16 Allan Rae <rae@lyx.org>
1932 * tempname.C (make_tempfile): #warning triggers an error on Sun CC 6.0
1933 as an unrecognised preprocessor directive. So ensure they're wrapped.
1935 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1937 * several files: remove CXX_WORKING_NAMESPACES
1939 * FileInfo.h: noncopyable is in namespace boost
1942 2001-02-16 John Levon <moz@compsoc.man.ac.uk>
1944 * syscontr.h: fix header include
1946 2001-02-28 Baruch Even <baruch@ev-en.org>
1948 * filetools.C: Removed dependency on syscall.h
1951 * syscall.C: Minor cleanings before I start to touch this code.
1953 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1955 * filetools.C (CreateTmpDir): change umask to 0700.
1957 2001-02-27 José Matos <jamatos@fep.up.pt>
1959 * filetools.h (BasePath):
1960 * filetools.C (BasePath): removed since it is a duplicate of OnlyPath.
1962 * filetools.C (IsLyXFilename):
1963 * filetools.C (IsSGMLFilename): test if extension is suffix and not
1966 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
1970 * atoi.C: remove cruft
1972 2001-02-06 albert chin <china@thewrittenword.com>
1975 * fmt.C: use HAVE_DECL_SNPRINTF
1977 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
1979 * lyxstring.C: Fix some assertions.
1981 2001-01-23 Dekel Tsur <dekelts@tau.ac.il>
1983 * lstrings.C (strip): Add a fix for compilers with broken
1984 string::find_last_not_of.
1986 * filetools.C (AddPath): Simplify by using strip and frontStrip.
1988 2001-01-20 Dekel Tsur <dekelts@tau.ac.il>
1990 * lyxstring.C (rfind): Fix broken functions.
1991 (find): Few optimizations.