1 2002-09-16 Kayvan A. Sylvan <kayvan@sylvan.com>
3 * os.h, os_os2.C, os_win32.C, os_unix.C: Added popen_read_mode(),
4 since at least for Cygwin, the "rb" read_mode acceptable for
5 fopen() is illegal for popen(), whose mode argument *must* be "r"
8 * filetools.C (RunCommand): Uses os::popen_read_mode() instead
11 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
13 * Makefile.am (libsupport_la_SOURCES): delete smart_ptr.h and
16 * smart_ptr.h: remove file
19 2002-08-20 Lars Gullik Bjønnes <larsbj@gullik.net>
21 * lyxfunctional.h: remove class_fun_t, void_class_fun_t,
22 class_fun and void_class_fun
24 2002-08-20 John Levon <levon@movementarian.org>
29 2002-08-14 Lars Gullik Bjønnes <larsbj@gullik.net>
31 * textutils.h: formatting.
33 2002-08-08 John Levon <levon@movementarian.org>
35 * limited_stack.h: default to 100 not 10
37 2002-08-01 John Levon <levon@movementarian.org>
39 * forkedcall.C: more details on error
41 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
43 * lstrings.[hC]: rename stip to rtrim and frontStrip to ltrim,
44 also add a trim function that is the equiv of
45 strip(frontStrip(...)), also reimplement the functions
46 (improvements still possible.)
48 * filetools.C: strip,frontStrip -> trim,ltrim,rtrim
49 * forkedcall.C (generateChild): ditto
53 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
55 * filetools.C (GetEnvPath): modify because of strip changes
56 (createDirectory): ditto
58 * lstrings.[Ch] (isStrInt): ditto
59 (isStrUnsignedInt): ditto
61 (strToUnsignedInt): ditto
63 (contains): removed unneeded version of contains
64 (containsOnly): removed uneeded versions of containsOnly
65 (strip, frontStrip): removed unneded versions, changed argument types.
67 2002-07-22 Dekel Tsur <dekelts@tau.ac.il>
69 * filetools.C (RunCommand): Made public
71 2002-07-22 John Levon <moz@compsoc.man.ac.uk>
73 * limited_stack.h: fix comment, remove un-needed header
75 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
77 * lstrings.h: correct comments for token and tokenPos
79 2002-07-20 Dekel Tsur <dekelts@tau.ac.il>
81 * lyxstring.C (operator>>): replace code which works only with
82 _some_ versions of GNU STL with generic one
84 2002-07-18 Angus Leeming <leeming@lyx.org>
86 * FileMonitor.[Ch]: new files. Monitor a file for any change and emit a
87 signal should it do so.
89 * Makefile.am: add FileMonitor.[Ch].
91 2002-07-18 André Pönitz <poenitz@gmx.net>
93 * filetools.C (LibScriptSearch): bug fix
95 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
97 * filetools.C (LyXReadLink): add bool 'resolve' to return link
98 contents as an absolute path
100 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
102 * filetools.C (IsLyXFilename):
103 (IsSGMLFilename): use ascii_lowercase instead of lowercase
105 * lstrings.[Ch] (ascii_lowercase): new function
107 2002-07-16 André Pönitz <poenitz@gmx.net>
109 * FileInfo.Ch: remove unneeded code
111 2002-06-20 Herbert Voss <voss@perce.de>
113 * filetools.[C] (readExtFromContents): add support for
116 2002-06-26 André Pönitz <poenitz@gmx.net>
118 * filetools.[Ch]: small whitespace, more compact 'return' statement
120 2002-06-19 John Levon <moz@compsoc.man.ac.uk>
122 * lyxalgo.h: add eliminate_duplicates
124 2002-06-17 Herbert Voss <voss@perce.de>
126 * filetools.[C]: (readBB_from_PSFile) add a helperfunc
127 (readBB_lyxerrMessage) to get better lyxerr messages
128 (getExtFromContents) test epsi files in the right way
130 * DestroxLyXTmpDir.C: changed to true, to delete the
131 temporary unzipped files, too.
133 2002-06-10 Lars Gullik Bjønnes <larsbj@birdstep.com>
135 * putenv.C (putenv): putenv should never be found in std::
137 * kill.C (kill): kill should never be found in std::
139 * filetools.C: pclose and popen should never be found in std::
141 2002-06-07 Angus Leeming <leeming@lyx.org>
143 Fixes needed to compile with Compaq cxx 6.5.
144 * lyxfunctional.h: rename lyx::class_fun(C & c, void(C::*f)(A)) as
145 lyx::void_class_fun to avoid compiler problems with Compaq cxx 6.5:
146 more than one instance of overloaded function "lyx::class_fun" matches
156 all c-library variables have been moved into namespace std.
157 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
159 * kill.C: rename signal.h as csignal.
161 * putenv.C: rename stdlib.h as cstdlib
163 2002-06-05 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
165 * lxtl.h: remove unused file
167 2002-05-30 John Levon <moz@compsoc.man.ac.uk>
174 * StrPool.C: remove unused files
184 * types.h: document and small cleanups
186 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
188 * switch from SigC signals to boost::signals.
190 2002-05-26 John Levon <moz@compsoc.man.ac.uk>
193 * limited_stack.h: new template for limited-size
196 2002-05-25 Lars Gullik Bjønnes <larsbj@birdstep.com>
198 * filetools.C: do not include LSubstring.h
200 * lstrings.C: change include order
201 (regexMatch): use boost regex get rid of LRegex and LSubstring
203 * Makefile.am (libsupport_la_SOURCES): delete regex and substring
206 * LSubstring.h: remove file
211 * LSubstring.C: ditto
213 2002-05-24 Juergen Vigna <jug@sad.it>
215 * lyxsum.C: include local includes first (self containment)
217 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
219 * forkedcall.h: use more specific smart_ptr header.
221 * lyxsum.C: move some using declarations around.
223 2002-05-03 Herbert Voss <voss@perce.de>
225 * filetools.C (getExtFromContents): only print the first 60 chars of
226 the scanned-string when debugging.
228 2002-05-02 Lars Gullik Bjønnes <larsbj@birdstep.com>
230 * lyxstring.C: close to typo fix.
232 2002-05-02 Angus Leeming <a.leeming@ic.ac.uk>
234 * filetools.C: add a using std::getline directive.
236 2002-05-02 Lars Gullik Bjønnes <larsbj@birdstep.com>
238 * lyxstring.C (operator>>): try a new version of the operator>>
240 2002-04-14 Herbert Voss <voss@perce.de>
242 * lstrings.[Ch]: move the getVectorFromString and the vice versa
243 from frontends/controllers/helper_funcs for better use in other
246 2002-04-15 Angus Leeming <a.leeming@ic.ac.uk>
248 * tempname.C (make_tempfile): simplify the #ifdef block by using
249 #if defined and re-write the #warning as a #error because it's terminal.
251 2002-04-08 Herbert Voss <voss@perce.de>
253 * filetools.C (getExtFromContents): get tgif run
255 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
257 * filetools.C (getExtFromContents): re-format a little and remove
258 replicated "sgi" entry.
260 2002-04-07 Herbert Voss <voss@perce.de>
262 * filetools.[Ch]: add readBB_from_PSFile() to make bb available
263 for the lyx-view in graphics (moved from ControlGraphics)
265 2002-04-07 Herbert Voss <voss@perce.de>
267 * filetools.C: fix bug for eps. scans now a whole line
269 2002-04-06 Lars Gullik Bjønnes <larsbj@birdstep.com>
271 * lyxstring.C (operator>>): use the better solution, this fixes a
272 "not able to read '\0'" bug.
274 2002-04-05 Lars Gullik Bjønnes <larsbj@birdstep.com>
276 * translator.h: add missing typename
278 2002-03-27 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
280 * filetools.C (LibScriptSearch): new command. Searches for scripts
281 in lyx data directories.
282 (LibScriptSearch): try to use split() correctly.
284 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
286 * most files: ws cleanup
288 * Makefile.am: remove ld -r stuff
290 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
292 * Makefile.am (libsupport.la): special rules if partial linking
294 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
296 * forkedcontr.C: turn the timer off when their are no longer any
297 child processes running.
299 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
301 * forkedcall.h: docy fix
302 change SignalType second type to be const ref.
304 * forkedcall.C: doxy fix
306 2002-03-11 Kayvan A. Sylvan <kayvan@sylvan.com>
308 * lyxsum.C: compilation fix
310 2002-03-02 Herbert Voss <voss@perce.de>
312 * filetools.C: fix bug for xbm format and added some more debug
315 2002-03-02 Lars Gullik Bjønnes <larsbj@birdstep.com>
317 * forkedcontr.h: make constructor public
319 * types.h: remove layout_type
321 2002-03-01 Angus Leeming <a.leeming@ic.ac.uk>
323 * filetools.C (getExtFromContents): cleanup.
325 * forkedcontr.h (d-tor): make it public for Dekel's crappy compiler.
327 2002-02-27 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
329 * Makefile.am (SIGC_INCLUDES): add a -I directive for when
330 building outside of source tree.
332 2002-02-19 Angus Leeming <a.leeming@ic.ac.uk>
335 * forkedcontr.[Ch]: new files. Asger's forked call controller is
336 re-born, with a working timer and a modified interface. The
337 startscript method is now passed a Signal rather than a pointer
338 to a callback function. This enables us to connect to the method of
339 a C++ class, if we so desire.
341 * Makefile.am: add forkedcall.[Ch], forkedcontr.[Ch].
343 2002-02-26 John Levon <moz@compsoc.man.ac.uk>
348 * nt_defines.h: moved from src/
350 2002-02-23 Herbert Voss <voss@perce.de>
352 * filetools.C: added more graphic formats
354 2002-02-18 Herbert Voss <voss@perce.de>
356 * filetools.C: (getExtFromContents) return the fileextension
357 if no format is detected.
359 2002-02-18 Angus Leeming <a.leeming@ic.ac.uk>
361 * syscall.[Ch]: renamed as systemcall.[Ch]. class Systemcalls renamed
362 as class SystemCall because one Systemcall instance represents a
363 single child process.
366 * Makefile.am: associated changes.
368 2002-02-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
370 * syscall.C (Systemcalls): include <cstdlib>
372 2002-02-08 Herbert Voss <voss@perce.de>
374 * filetools.C: (getExtFromContents) adding Grace-format
377 2002-02-16 Angus Leeming <a.leeming@ic.ac.uk>
380 * syssingleton.C: files removed.
382 * syscall.[Ch]: remove the forked calls interface, as nothing, nowhere
383 uses it. Strip down the Systemcalls interface to make it brutally
384 obvious how unsophisticated it is.
386 2002-02-08 Herbert Voss <voss@perce.de>
388 * filetools.C: (getExtFromContents) adding TGIF-format
389 and return type "user" when no type is detected
391 2002-02-13 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
393 * textutils.h: remove IsLineSeparatorChar(char, Inset *)
395 2002-02-10 Kayvan Sylvan <kayvan@sylvan.com>
397 * os_win32.C: Add "using std::endl" to fix compilation for GCC 3.X.
399 2002-02-08 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
401 * FileInfo.h: remove special cygwin code.
403 * filetools.C (do_popen): use os::read_mode().
405 * os_win32.C (read_mode):
406 * os_os2.C (read_mode):
407 * os_unix.C (read_mode): new method
409 * filetools.C (do_popen): fix for cygwin compatibility (from Claus
410 Hentschel). This code should maybe be moved to os:: class.
412 2002-02-08 Herbert Voss <voss@perce.de>
414 * filetools.C: (unzipFile) fix typo
416 2002-02-06 Herbert Voss <voss@perce.de>
418 * filetools.[Ch]: fix some bugs for detecting zipped files
421 2002-02-04 Herbert Voss <voss@perce.de>
423 * filetools.[Ch]: add ifZippedFile() for zipped
426 2002-02-04 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
428 * filetools.C (FileOpenSearch): remove duplicated line, probably
429 resulting from bad cut-and paste.
431 2002-01-31 Herbert Voss <voss@perce.de>
433 * filetools.[Ch]: add getExtFromContents(), which returns
434 the type of the (graphic) file
436 2002-01-30 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
438 * copy.C (copy): open file in binary mode (for cygwin)
440 2002-01-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
442 * lyxsum.C: remove #warnings and replaced them with runtime debug
445 2002-01-14 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
447 * lyxalgo.h: include <algorithm>
449 2002-01-14 Angus Leeming <a.leeming@ic.ac.uk>
451 * lyx_algo.h: add a standard-conforming count to namespace lyx.
453 * lstrings.[Ch] (countChar): removed. Use lyx::count.
455 2002-01-05 John Levon <moz@compsoc.man.ac.uk>
457 * filetools.C: fix use of FileInfo
460 * FileInfo.C: add Asserts and documentation
462 2001-12-20 Kayvan A. Sylvan <kayvan@sylvan.com>
464 * os_win32.C: compilation fixes
466 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
468 * lstrings.h: do not include <cctype>
470 2001-12-12 Ben Stanley <bds02@uow.edu.au>
472 * lyxsum.C: portability fix for mmap patch
474 2001-12-05 Lars Gullik Bjønnes <larsbj@birdstep.com>
478 * lyxstring.C: change "while(" to "while ("
480 2001-12-03 Ben Stanley <bds02@uow.edu.au>
482 * lyxsum.C: Added mmap version of CRC and made it selected
483 by default where available. Used process_block for crc for speedup.
485 2001-12-01 John Levon <moz@compsoc.man.ac.uk>
487 * filetools.C: more robust failure for DirList()
489 2001-11-29 André Pönitz <poenitz@gmx.net>
491 * types.h: introduce types for textclass numbers and layout numbers
493 2001-11-28 André Pönitz <poenitz@gmx.net>
495 * Makefile.am: put types.h in
497 2001-11-26 André Pönitz <poenitz@gmx.net>
499 * types.h: introduce types for paragraph positions and layout numbers
501 2001-11-04 John Levon <moz@compsoc.man.ac.uk>
503 * filetools.C: remove dead code
505 * syscall.C: show prog in fail case
507 2001-10-24 Andre Poenitz <poenitz@HTWM.De>
509 * filetools.C: code style cleanup
511 2001-10-23 Angus Leeming <a.leeming@ic.ac.uk>
513 * os.h: remove spurious punctuation.
515 2001-10-19 John Levon <moz@compsoc.man.ac.uk>
518 * LAssert.C: use new emergencyCleanup()
520 2001-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
522 * filetools.C (i18nLibFileSearch): check also LANGUAGE and LC_ALL,
523 like GNU gettext does.
525 2001-10-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
527 * filetools.C (AbsolutePath): Use os::is_absolute_path() (also in
529 (findtexfile): oops! the change from last friday was wrong...
531 * os_win32.C (is_absolute_path):
532 * os_unix.C (is_absolute_path):
533 * os_os2.C (is_absolute_path): new method
535 2001-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
537 * filetools.C (findtexfile): apply os::internal_path to the result.
539 2001-07-02 Claus Hentschel <claus.hentschel@mbau.fh-hannover.de>
544 * os.h: add internal_path method, which converts a unix-type file
545 name to the type known to the underlying file system (currently
546 only useful on cygwin) [from Ruurd A. Reitsma and Claus Hentschel]
548 2001-08-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
550 * smart_ptr.h: new file
552 * utility.h: new file
554 2001-08-01 John Levon <moz@compsoc.man.ac.uk>
557 * filetools.C (IsDirWriteable): fix this
559 2001-07-26 Baruch Even <baruch@lyx.org>
561 * lyxlib.h (float_equal): Added function to compare floats almost equal
562 (see function comment).
564 2001-07-13 Angus Leeming <a.leeming@ic.ac.uk>
566 Consistent use of Lsstream.h:
567 * filetools.C (GetFileContents): std::ostringstream -> ostringstream.
569 2001-07-12 Lars Gullik Bjønnes <larsbj@birdstep.com>
571 * translator.h: (*it). -> it->
573 2001-06-26 The LyX Project <lyx@violet.home.sad.it>
575 * filetools.C (DeleteAllFilesInDir): send debug output to
576 Debug::FILES instewad of Debug::ANY.
578 * DebugStream.h: remove gcc 2.8.x hack.
580 2001-06-26 The LyX Project <jug@sad.it>
583 * lstrings.C (escape): move method to escape non ascii characters
584 from insets label and ref to here.
586 2001-06-25 The LyX Project <jug@sad.it>
588 * filetools.C (IsLyXFilename):
589 (IsSGMLFilename): do case insensitive name matching
591 2001-06-24 The LyX Project <jug@sad.it>
593 * lstrings.C (compare_ascii_no_case): version of compare_no_case
594 which only considers case of ascii characters
596 * lyxstring.C (replace): added for compatibility with gcc 2.95.3+
599 2001-06-23 The LyX Project <jug@sad.it>
601 * textutils.h (IsPrintable): take into account unprintable spaces
603 (IsDigit): new function
604 (IsLetterCharOrDigit): use IsDigit
606 2001-06-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
608 * filetools.C (findtexfile): strip final \r if necessary (for
611 2001-06-19 Angus Leeming <a.leeming@ic.ac.uk>
614 * StrPool.C: removed // -*- C++ -*- as first line.
616 2001-06-01 Lars Gullik Bjønnes <larsbj@birdstep.com>
618 * lyxsum.C (do_crc): switch to use boost::crc for generating the
621 2001-06-01 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
626 * LSubstring.C: bring C functions in global namespace if
629 * lstrings.h (compare): use the std:: version of str[n]cmp only
632 2001-05-31 Lars Gullik Bjønnes <larsbj@birdstep.com>
634 * syscontr.C: add std::
636 * syscall.C: add std::
638 * lstrings.h (compare): add std::
640 * lstrings.C (prefixIs): add std::
644 * LSubstring.C (LSubstring): add std::
646 2001-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
648 * lyxsum.C (sum): use istreambuf_iterator when available.
650 2001-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
652 * lyxsum.C (sum): don't use sstream anymore, use istream_iterator
655 * lyxstring.C (operator): make const operator[] behave as
658 2001-05-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
660 * Makefile.am (EXTRA_DIST): add the os_*.C files.
662 2001-05-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
664 * filetools.C (MakeAbsPath): remove debugging statement
666 2001-05-16 Ruurd Reitsma <r.a.reitsma@wbmt.tudelft.nl>
668 * FileInfo.h: X_OK workaround for cygwin
677 * filetools.h: Added os:: class.
681 * tempname.C: OS/2 fixes
683 2001-05-03 Lars Gullik Bjønnes <larsbj@birdstep.com>
685 * textutils.h: remvoe !NEW_INSETS cruft
687 2001-05-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
690 * atoi.C: add using directives when needed for C functions
691 declared in std:: namespace.
693 2001-04-25 Lars Gullik Bjønnes <larsbj@birdstep.com>
695 * lstrings.C : add two helper structs, local_lowercase and
697 (lowercase): change to use std::transform
698 (uppercase): change to use std::transform
700 2001-04-25 Allan Rae <rae@lyx.org>
702 * lyxstring.C : Assert got moved and Lars missed a few.
704 2001-04-24 Lars Gullik Bjønnes <larsbj@birdstep.com>
706 * LAssert.h (Assert): put into namespace lyx
708 * lyxfunctional.h: put into namespace lyx
709 * translator.h: adjust
711 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
713 * lyxalgo.h: put into namespace lyx, add firster and copy_if
715 * FileInfo.h: inherit privately from noncopyable
718 2001-04-16 Allan Rae <rae@lyx.org>
720 * tempname.C (make_tempfile): #warning triggers an error on Sun CC 6.0
721 as an unrecognised preprocessor directive. So ensure they're wrapped.
723 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
725 * several files: remove CXX_WORKING_NAMESPACES
727 * FileInfo.h: noncopyable is in namespace boost
730 2001-02-16 John Levon <moz@compsoc.man.ac.uk>
732 * syscontr.h: fix header include
734 2001-02-28 Baruch Even <baruch@ev-en.org>
736 * filetools.C: Removed dependency on syscall.h
739 * syscall.C: Minor cleanings before I start to touch this code.
741 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
743 * filetools.C (CreateTmpDir): change umask to 0700.
745 2001-02-27 José Matos <jamatos@fep.up.pt>
747 * filetools.h (BasePath):
748 * filetools.C (BasePath): removed since it is a duplicate of OnlyPath.
750 * filetools.C (IsLyXFilename):
751 * filetools.C (IsSGMLFilename): test if extension is suffix and not
754 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
758 * atoi.C: remove cruft
760 2001-02-06 albert chin <china@thewrittenword.com>
763 * fmt.C: use HAVE_DECL_SNPRINTF
765 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
767 * lyxstring.C: Fix some assertions.
769 2001-01-23 Dekel Tsur <dekelts@tau.ac.il>
771 * lstrings.C (strip): Add a fix for compilers with broken
772 string::find_last_not_of.
774 * filetools.C (AddPath): Simplify by using strip and frontStrip.
776 2001-01-20 Dekel Tsur <dekelts@tau.ac.il>
778 * lyxstring.C (rfind): Fix broken functions.
779 (find): Few optimizations.