1 2002-08-20 Lars Gullik Bjønnes <larsbj@gullik.net>
3 * lyxfunctional.h: remove class_fun_t, void_class_fun_t,
4 class_fun and void_class_fun
6 2002-08-20 John Levon <levon@movementarian.org>
11 2002-08-14 Lars Gullik Bjønnes <larsbj@gullik.net>
13 * textutils.h: formatting.
15 2002-08-08 John Levon <levon@movementarian.org>
17 * limited_stack.h: default to 100 not 10
19 2002-08-01 John Levon <levon@movementarian.org>
21 * forkedcall.C: more details on error
23 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
25 * lstrings.[hC]: rename stip to rtrim and frontStrip to ltrim,
26 also add a trim function that is the equiv of
27 strip(frontStrip(...)), also reimplement the functions
28 (improvements still possible.)
30 * filetools.C: strip,frontStrip -> trim,ltrim,rtrim
31 * forkedcall.C (generateChild): ditto
35 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
37 * filetools.C (GetEnvPath): modify because of strip changes
38 (createDirectory): ditto
40 * lstrings.[Ch] (isStrInt): ditto
41 (isStrUnsignedInt): ditto
43 (strToUnsignedInt): ditto
45 (contains): removed unneeded version of contains
46 (containsOnly): removed uneeded versions of containsOnly
47 (strip, frontStrip): removed unneded versions, changed argument types.
49 2002-07-22 Dekel Tsur <dekelts@tau.ac.il>
51 * filetools.C (RunCommand): Made public
53 2002-07-22 John Levon <moz@compsoc.man.ac.uk>
55 * limited_stack.h: fix comment, remove un-needed header
57 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
59 * lstrings.h: correct comments for token and tokenPos
61 2002-07-20 Dekel Tsur <dekelts@tau.ac.il>
63 * lyxstring.C (operator>>): replace code which works only with
64 _some_ versions of GNU STL with generic one
66 2002-07-18 Angus Leeming <leeming@lyx.org>
68 * FileMonitor.[Ch]: new files. Monitor a file for any change and emit a
69 signal should it do so.
71 * Makefile.am: add FileMonitor.[Ch].
73 2002-07-18 André Pönitz <poenitz@gmx.net>
75 * filetools.C (LibScriptSearch): bug fix
77 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
79 * filetools.C (LyXReadLink): add bool 'resolve' to return link
80 contents as an absolute path
82 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
84 * filetools.C (IsLyXFilename):
85 (IsSGMLFilename): use ascii_lowercase instead of lowercase
87 * lstrings.[Ch] (ascii_lowercase): new function
89 2002-07-16 André Pönitz <poenitz@gmx.net>
91 * FileInfo.Ch: remove unneeded code
93 2002-06-20 Herbert Voss <voss@perce.de>
95 * filetools.[C] (readExtFromContents): add support for
98 2002-06-26 André Pönitz <poenitz@gmx.net>
100 * filetools.[Ch]: small whitespace, more compact 'return' statement
102 2002-06-19 John Levon <moz@compsoc.man.ac.uk>
104 * lyxalgo.h: add eliminate_duplicates
106 2002-06-17 Herbert Voss <voss@perce.de>
108 * filetools.[C]: (readBB_from_PSFile) add a helperfunc
109 (readBB_lyxerrMessage) to get better lyxerr messages
110 (getExtFromContents) test epsi files in the right way
112 * DestroxLyXTmpDir.C: changed to true, to delete the
113 temporary unzipped files, too.
115 2002-06-10 Lars Gullik Bjønnes <larsbj@birdstep.com>
117 * putenv.C (putenv): putenv should never be found in std::
119 * kill.C (kill): kill should never be found in std::
121 * filetools.C: pclose and popen should never be found in std::
123 2002-06-07 Angus Leeming <leeming@lyx.org>
125 Fixes needed to compile with Compaq cxx 6.5.
126 * lyxfunctional.h: rename lyx::class_fun(C & c, void(C::*f)(A)) as
127 lyx::void_class_fun to avoid compiler problems with Compaq cxx 6.5:
128 more than one instance of overloaded function "lyx::class_fun" matches
138 all c-library variables have been moved into namespace std.
139 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
141 * kill.C: rename signal.h as csignal.
143 * putenv.C: rename stdlib.h as cstdlib
145 2002-06-05 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
147 * lxtl.h: remove unused file
149 2002-05-30 John Levon <moz@compsoc.man.ac.uk>
156 * StrPool.C: remove unused files
166 * types.h: document and small cleanups
168 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
170 * switch from SigC signals to boost::signals.
172 2002-05-26 John Levon <moz@compsoc.man.ac.uk>
175 * limited_stack.h: new template for limited-size
178 2002-05-25 Lars Gullik Bjønnes <larsbj@birdstep.com>
180 * filetools.C: do not include LSubstring.h
182 * lstrings.C: change include order
183 (regexMatch): use boost regex get rid of LRegex and LSubstring
185 * Makefile.am (libsupport_la_SOURCES): delete regex and substring
188 * LSubstring.h: remove file
193 * LSubstring.C: ditto
195 2002-05-24 Juergen Vigna <jug@sad.it>
197 * lyxsum.C: include local includes first (self containment)
199 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
201 * forkedcall.h: use more specific smart_ptr header.
203 * lyxsum.C: move some using declarations around.
205 2002-05-03 Herbert Voss <voss@perce.de>
207 * filetools.C (getExtFromContents): only print the first 60 chars of
208 the scanned-string when debugging.
210 2002-05-02 Lars Gullik Bjønnes <larsbj@birdstep.com>
212 * lyxstring.C: close to typo fix.
214 2002-05-02 Angus Leeming <a.leeming@ic.ac.uk>
216 * filetools.C: add a using std::getline directive.
218 2002-05-02 Lars Gullik Bjønnes <larsbj@birdstep.com>
220 * lyxstring.C (operator>>): try a new version of the operator>>
222 2002-04-14 Herbert Voss <voss@perce.de>
224 * lstrings.[Ch]: move the getVectorFromString and the vice versa
225 from frontends/controllers/helper_funcs for better use in other
228 2002-04-15 Angus Leeming <a.leeming@ic.ac.uk>
230 * tempname.C (make_tempfile): simplify the #ifdef block by using
231 #if defined and re-write the #warning as a #error because it's terminal.
233 2002-04-08 Herbert Voss <voss@perce.de>
235 * filetools.C (getExtFromContents): get tgif run
237 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
239 * filetools.C (getExtFromContents): re-format a little and remove
240 replicated "sgi" entry.
242 2002-04-07 Herbert Voss <voss@perce.de>
244 * filetools.[Ch]: add readBB_from_PSFile() to make bb available
245 for the lyx-view in graphics (moved from ControlGraphics)
247 2002-04-07 Herbert Voss <voss@perce.de>
249 * filetools.C: fix bug for eps. scans now a whole line
251 2002-04-06 Lars Gullik Bjønnes <larsbj@birdstep.com>
253 * lyxstring.C (operator>>): use the better solution, this fixes a
254 "not able to read '\0'" bug.
256 2002-04-05 Lars Gullik Bjønnes <larsbj@birdstep.com>
258 * translator.h: add missing typename
260 2002-03-27 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
262 * filetools.C (LibScriptSearch): new command. Searches for scripts
263 in lyx data directories.
264 (LibScriptSearch): try to use split() correctly.
266 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
268 * most files: ws cleanup
270 * Makefile.am: remove ld -r stuff
272 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
274 * Makefile.am (libsupport.la): special rules if partial linking
276 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
278 * forkedcontr.C: turn the timer off when their are no longer any
279 child processes running.
281 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
283 * forkedcall.h: docy fix
284 change SignalType second type to be const ref.
286 * forkedcall.C: doxy fix
288 2002-03-11 Kayvan A. Sylvan <kayvan@sylvan.com>
290 * lyxsum.C: compilation fix
292 2002-03-02 Herbert Voss <voss@perce.de>
294 * filetools.C: fix bug for xbm format and added some more debug
297 2002-03-02 Lars Gullik Bjønnes <larsbj@birdstep.com>
299 * forkedcontr.h: make constructor public
301 * types.h: remove layout_type
303 2002-03-01 Angus Leeming <a.leeming@ic.ac.uk>
305 * filetools.C (getExtFromContents): cleanup.
307 * forkedcontr.h (d-tor): make it public for Dekel's crappy compiler.
309 2002-02-27 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
311 * Makefile.am (SIGC_INCLUDES): add a -I directive for when
312 building outside of source tree.
314 2002-02-19 Angus Leeming <a.leeming@ic.ac.uk>
317 * forkedcontr.[Ch]: new files. Asger's forked call controller is
318 re-born, with a working timer and a modified interface. The
319 startscript method is now passed a Signal rather than a pointer
320 to a callback function. This enables us to connect to the method of
321 a C++ class, if we so desire.
323 * Makefile.am: add forkedcall.[Ch], forkedcontr.[Ch].
325 2002-02-26 John Levon <moz@compsoc.man.ac.uk>
330 * nt_defines.h: moved from src/
332 2002-02-23 Herbert Voss <voss@perce.de>
334 * filetools.C: added more graphic formats
336 2002-02-18 Herbert Voss <voss@perce.de>
338 * filetools.C: (getExtFromContents) return the fileextension
339 if no format is detected.
341 2002-02-18 Angus Leeming <a.leeming@ic.ac.uk>
343 * syscall.[Ch]: renamed as systemcall.[Ch]. class Systemcalls renamed
344 as class SystemCall because one Systemcall instance represents a
345 single child process.
348 * Makefile.am: associated changes.
350 2002-02-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
352 * syscall.C (Systemcalls): include <cstdlib>
354 2002-02-08 Herbert Voss <voss@perce.de>
356 * filetools.C: (getExtFromContents) adding Grace-format
359 2002-02-16 Angus Leeming <a.leeming@ic.ac.uk>
362 * syssingleton.C: files removed.
364 * syscall.[Ch]: remove the forked calls interface, as nothing, nowhere
365 uses it. Strip down the Systemcalls interface to make it brutally
366 obvious how unsophisticated it is.
368 2002-02-08 Herbert Voss <voss@perce.de>
370 * filetools.C: (getExtFromContents) adding TGIF-format
371 and return type "user" when no type is detected
373 2002-02-13 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
375 * textutils.h: remove IsLineSeparatorChar(char, Inset *)
377 2002-02-10 Kayvan Sylvan <kayvan@sylvan.com>
379 * os_win32.C: Add "using std::endl" to fix compilation for GCC 3.X.
381 2002-02-08 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
383 * FileInfo.h: remove special cygwin code.
385 * filetools.C (do_popen): use os::read_mode().
387 * os_win32.C (read_mode):
388 * os_os2.C (read_mode):
389 * os_unix.C (read_mode): new method
391 * filetools.C (do_popen): fix for cygwin compatibility (from Claus
392 Hentschel). This code should maybe be moved to os:: class.
394 2002-02-08 Herbert Voss <voss@perce.de>
396 * filetools.C: (unzipFile) fix typo
398 2002-02-06 Herbert Voss <voss@perce.de>
400 * filetools.[Ch]: fix some bugs for detecting zipped files
403 2002-02-04 Herbert Voss <voss@perce.de>
405 * filetools.[Ch]: add ifZippedFile() for zipped
408 2002-02-04 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
410 * filetools.C (FileOpenSearch): remove duplicated line, probably
411 resulting from bad cut-and paste.
413 2002-01-31 Herbert Voss <voss@perce.de>
415 * filetools.[Ch]: add getExtFromContents(), which returns
416 the type of the (graphic) file
418 2002-01-30 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
420 * copy.C (copy): open file in binary mode (for cygwin)
422 2002-01-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
424 * lyxsum.C: remove #warnings and replaced them with runtime debug
427 2002-01-14 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
429 * lyxalgo.h: include <algorithm>
431 2002-01-14 Angus Leeming <a.leeming@ic.ac.uk>
433 * lyx_algo.h: add a standard-conforming count to namespace lyx.
435 * lstrings.[Ch] (countChar): removed. Use lyx::count.
437 2002-01-05 John Levon <moz@compsoc.man.ac.uk>
439 * filetools.C: fix use of FileInfo
442 * FileInfo.C: add Asserts and documentation
444 2001-12-20 Kayvan A. Sylvan <kayvan@sylvan.com>
446 * os_win32.C: compilation fixes
448 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
450 * lstrings.h: do not include <cctype>
452 2001-12-12 Ben Stanley <bds02@uow.edu.au>
454 * lyxsum.C: portability fix for mmap patch
456 2001-12-05 Lars Gullik Bjønnes <larsbj@birdstep.com>
460 * lyxstring.C: change "while(" to "while ("
462 2001-12-03 Ben Stanley <bds02@uow.edu.au>
464 * lyxsum.C: Added mmap version of CRC and made it selected
465 by default where available. Used process_block for crc for speedup.
467 2001-12-01 John Levon <moz@compsoc.man.ac.uk>
469 * filetools.C: more robust failure for DirList()
471 2001-11-29 André Pönitz <poenitz@gmx.net>
473 * types.h: introduce types for textclass numbers and layout numbers
475 2001-11-28 André Pönitz <poenitz@gmx.net>
477 * Makefile.am: put types.h in
479 2001-11-26 André Pönitz <poenitz@gmx.net>
481 * types.h: introduce types for paragraph positions and layout numbers
483 2001-11-04 John Levon <moz@compsoc.man.ac.uk>
485 * filetools.C: remove dead code
487 * syscall.C: show prog in fail case
489 2001-10-24 Andre Poenitz <poenitz@HTWM.De>
491 * filetools.C: code style cleanup
493 2001-10-23 Angus Leeming <a.leeming@ic.ac.uk>
495 * os.h: remove spurious punctuation.
497 2001-10-19 John Levon <moz@compsoc.man.ac.uk>
500 * LAssert.C: use new emergencyCleanup()
502 2001-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
504 * filetools.C (i18nLibFileSearch): check also LANGUAGE and LC_ALL,
505 like GNU gettext does.
507 2001-10-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
509 * filetools.C (AbsolutePath): Use os::is_absolute_path() (also in
511 (findtexfile): oops! the change from last friday was wrong...
513 * os_win32.C (is_absolute_path):
514 * os_unix.C (is_absolute_path):
515 * os_os2.C (is_absolute_path): new method
517 2001-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
519 * filetools.C (findtexfile): apply os::internal_path to the result.
521 2001-07-02 Claus Hentschel <claus.hentschel@mbau.fh-hannover.de>
526 * os.h: add internal_path method, which converts a unix-type file
527 name to the type known to the underlying file system (currently
528 only useful on cygwin) [from Ruurd A. Reitsma and Claus Hentschel]
530 2001-08-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
532 * smart_ptr.h: new file
534 * utility.h: new file
536 2001-08-01 John Levon <moz@compsoc.man.ac.uk>
539 * filetools.C (IsDirWriteable): fix this
541 2001-07-26 Baruch Even <baruch@lyx.org>
543 * lyxlib.h (float_equal): Added function to compare floats almost equal
544 (see function comment).
546 2001-07-13 Angus Leeming <a.leeming@ic.ac.uk>
548 Consistent use of Lsstream.h:
549 * filetools.C (GetFileContents): std::ostringstream -> ostringstream.
551 2001-07-12 Lars Gullik Bjønnes <larsbj@birdstep.com>
553 * translator.h: (*it). -> it->
555 2001-06-26 The LyX Project <lyx@violet.home.sad.it>
557 * filetools.C (DeleteAllFilesInDir): send debug output to
558 Debug::FILES instewad of Debug::ANY.
560 * DebugStream.h: remove gcc 2.8.x hack.
562 2001-06-26 The LyX Project <jug@sad.it>
565 * lstrings.C (escape): move method to escape non ascii characters
566 from insets label and ref to here.
568 2001-06-25 The LyX Project <jug@sad.it>
570 * filetools.C (IsLyXFilename):
571 (IsSGMLFilename): do case insensitive name matching
573 2001-06-24 The LyX Project <jug@sad.it>
575 * lstrings.C (compare_ascii_no_case): version of compare_no_case
576 which only considers case of ascii characters
578 * lyxstring.C (replace): added for compatibility with gcc 2.95.3+
581 2001-06-23 The LyX Project <jug@sad.it>
583 * textutils.h (IsPrintable): take into account unprintable spaces
585 (IsDigit): new function
586 (IsLetterCharOrDigit): use IsDigit
588 2001-06-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
590 * filetools.C (findtexfile): strip final \r if necessary (for
593 2001-06-19 Angus Leeming <a.leeming@ic.ac.uk>
596 * StrPool.C: removed // -*- C++ -*- as first line.
598 2001-06-01 Lars Gullik Bjønnes <larsbj@birdstep.com>
600 * lyxsum.C (do_crc): switch to use boost::crc for generating the
603 2001-06-01 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
608 * LSubstring.C: bring C functions in global namespace if
611 * lstrings.h (compare): use the std:: version of str[n]cmp only
614 2001-05-31 Lars Gullik Bjønnes <larsbj@birdstep.com>
616 * syscontr.C: add std::
618 * syscall.C: add std::
620 * lstrings.h (compare): add std::
622 * lstrings.C (prefixIs): add std::
626 * LSubstring.C (LSubstring): add std::
628 2001-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
630 * lyxsum.C (sum): use istreambuf_iterator when available.
632 2001-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
634 * lyxsum.C (sum): don't use sstream anymore, use istream_iterator
637 * lyxstring.C (operator): make const operator[] behave as
640 2001-05-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
642 * Makefile.am (EXTRA_DIST): add the os_*.C files.
644 2001-05-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
646 * filetools.C (MakeAbsPath): remove debugging statement
648 2001-05-16 Ruurd Reitsma <r.a.reitsma@wbmt.tudelft.nl>
650 * FileInfo.h: X_OK workaround for cygwin
659 * filetools.h: Added os:: class.
663 * tempname.C: OS/2 fixes
665 2001-05-03 Lars Gullik Bjønnes <larsbj@birdstep.com>
667 * textutils.h: remvoe !NEW_INSETS cruft
669 2001-05-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
672 * atoi.C: add using directives when needed for C functions
673 declared in std:: namespace.
675 2001-04-25 Lars Gullik Bjønnes <larsbj@birdstep.com>
677 * lstrings.C : add two helper structs, local_lowercase and
679 (lowercase): change to use std::transform
680 (uppercase): change to use std::transform
682 2001-04-25 Allan Rae <rae@lyx.org>
684 * lyxstring.C : Assert got moved and Lars missed a few.
686 2001-04-24 Lars Gullik Bjønnes <larsbj@birdstep.com>
688 * LAssert.h (Assert): put into namespace lyx
690 * lyxfunctional.h: put into namespace lyx
691 * translator.h: adjust
693 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
695 * lyxalgo.h: put into namespace lyx, add firster and copy_if
697 * FileInfo.h: inherit privately from noncopyable
700 2001-04-16 Allan Rae <rae@lyx.org>
702 * tempname.C (make_tempfile): #warning triggers an error on Sun CC 6.0
703 as an unrecognised preprocessor directive. So ensure they're wrapped.
705 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
707 * several files: remove CXX_WORKING_NAMESPACES
709 * FileInfo.h: noncopyable is in namespace boost
712 2001-02-16 John Levon <moz@compsoc.man.ac.uk>
714 * syscontr.h: fix header include
716 2001-02-28 Baruch Even <baruch@ev-en.org>
718 * filetools.C: Removed dependency on syscall.h
721 * syscall.C: Minor cleanings before I start to touch this code.
723 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
725 * filetools.C (CreateTmpDir): change umask to 0700.
727 2001-02-27 José Matos <jamatos@fep.up.pt>
729 * filetools.h (BasePath):
730 * filetools.C (BasePath): removed since it is a duplicate of OnlyPath.
732 * filetools.C (IsLyXFilename):
733 * filetools.C (IsSGMLFilename): test if extension is suffix and not
736 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
740 * atoi.C: remove cruft
742 2001-02-06 albert chin <china@thewrittenword.com>
745 * fmt.C: use HAVE_DECL_SNPRINTF
747 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
749 * lyxstring.C: Fix some assertions.
751 2001-01-23 Dekel Tsur <dekelts@tau.ac.il>
753 * lstrings.C (strip): Add a fix for compilers with broken
754 string::find_last_not_of.
756 * filetools.C (AddPath): Simplify by using strip and frontStrip.
758 2001-01-20 Dekel Tsur <dekelts@tau.ac.il>
760 * lyxstring.C (rfind): Fix broken functions.
761 (find): Few optimizations.