2004-05-04 Jean-Marc Lasgouttes * path_defines.C.in (setLyxPaths): make sure that LyX/Mac can find its po files when moved around; set default user directory to ~/Library/Preferences/LyX/ for LyX/Mac. (lyx_localedir): return the value that may have been computed in setLyXPaths 2004-05-27 Kayvan Sylvan * Makefile.am (libsupport_la_SOURCES): remove reference to nt_defines.h 2004-05-20 Angus Leeming * debugstream.h: wrap the definition of debug_trait::DEBUG with preprocessor guards that protect against a name clash with a macro DEBUG. Such a macro is defined by the Qt library... 2004-04-27 Angus Leeming * path_defines.{h,C.in}: expose top_srcdir, renamed from lyx_top_srcdir. 2004-04-05 Angus Leeming * filetools.C: wrap #warning calls inside #ifdef WITH_WARNINGS blocks. 2004-04-05 Jürgen Spitzmüller * filetools.C (RunCommand): block SIGCHLD during popen/pclose (actually Angus' fix). 2004-04-01 Georg Baum * filetools.C (DeleteAllFilesInDir): delete directories with rmdir(), unlink() does not work 2004-03-27 Angus Leeming * forkedcontr.C (child_handler): squash warning about a signed/unsigned comparison. (handleCompletedProcesses): only output a warning about an error waiting for the child if it is indeed an error ;-) 2004-03-26 Angus Leeming * forkedcall.[Ch] (run): new function, replacing runBlocking, runNonBlocking. * forkedcall.C (generateChild): ensure that the code that splits the command up into an array of words won't leak in the event of an exception. * forkedcontr.C: make it a little more robust. 2004-03-24 Angus Leeming * forkedcontr.[Ch]: get rid of the timer that we use to poll the list of child proccesses and ascertain whether any have died. Instead use the SIGCHLD signal emitted by the system to reap these zombies in the maximally efficient manner. The subsequent emitting of the signal associated with each child process *is* performed within the main lyx event loop, thus ensuring that the code remains safe. A detailed description of the design is to be found in forkedcontr.C. 2004-03-24 Jean-Marc Lasgouttes * filetools.C (i18nLibFileSearch): simplify the logic a bit 2004-03-23 Jean-Marc Lasgouttes * filetools.C (i18nLibFileSearch): fix the logic to match closely what gettext does 2004-03-23 Angus Leeming * forkedcall.h (ForkedProcess, Forkedcall): change the signature of clone to return a boost::shred_ptr rather than a std::auto_ptr. * forkedcontr.[Ch]: store the forked calls as boost::shared_ptrs rather than raw pointers. 2004-03-22 Angus Leeming * forkedcontr.[Ch] (childrenChanged, getPIDs, getCommand): remove cruft left over from the removal of the Forks dialog. 2004-03-09 Georg Baum * filename.[Ch] (mangledFilename): make sure that mangled names are unique 2004-02-21 Georg Baum * filetools.[Ch] (CreateBufferTmpDir): rename to createBufferTmpDir, remove pathfor argument * filetools.[Ch] (CreateLyXTmpDir): rename to createLyXTmpDir, try harder to create a usable temp dir * filetools.C (CreateTmpDir): rename to createTmpDir filetools.[Ch] (unzipFile): add argument for output filename * filename.h: fix doxygen warning 2004-02-01 Lars Gullik Bjonnes * lstrings.h (contains_functor): delete (contains): change into template, simplify * lstrings.C (contains): remove both functions 2004-01-31 Lars Gullik Bjonnes * lyxalgo.h (eliminate_duplicates): reimplement with sort and the unique-erase idom. * lstrings.h (contains_functor): inherit from std::binary_function, remove typedefs. 2004-01-28 Lars Gullik Bjonnes * globbing.C: add using statement for std::distance, remove std:: from string. 2004-01-08 Angus Leeming * globbing.[Ch]: add a new class FileFilterList to parse a Qt-style list of available file filters and generate the corresponding vector. 2003-12-14 Ronald Florence * tostr.[hC]: added tostr(long unsigned int i). * path_defines.C.in: determine system directory and set PATH for relocatable LyX/Mac bundle. 2004-01-06 Angus Leeming * globbing.C (glob): compilation fix for cygwin. 2004-01-06 Lars Gullik Bjonnes * Makefile.am (libsupport_la_SOURCES): remove BoostFormat.h and boost-inst.C * BoostFormat.h: delete file * boost-inst.C: delete fil * lstrings.C: include boost/format.hpp 2004-01-05 Angus Leeming * globbing.[Ch]: new files containing some globbing utilities. 2003-11-05 João Luis M. Assirati * putenv.C: allocate the string before putting it into the environment. * lyxlib.h: adjust. 2003-11-03 Lars Gullik Bjønnes * tempname.C (tempName): use scoped_array for exception safety * os_os2.C (init): use scoped_array for exception safety * getcwd.C (getcwd): use scoped_array for exception safety * forkedcontr.C (addCall): adjust * forkedcall.h: make clone return a auto_ptr 2003-11-01 Lars Gullik Bjønnes * debugstream.h: add a default constructor that does not setup a streambuf here. 2003-10-14 Jean-Marc Lasgouttes * socktools.C: honor CXX_GLOBAL_CSTD 2003-10-16 André Pönitz * filetools.C (ReplaceEnvironmentPath): set up patterns just once using static variables. 2003-10-13 João Luis Meloni Assirati * socktools.[Ch]: New files. Wrapper around socket system calls. 2003-10-13 Kayvan A. Sylvan * socktools.C (SUN_LEN): add this MACRO definition for platforms that do not define it themselves. 2003-10-08 Angus Leeming * copied_ptr.h: get rid of the swap member function. 2003-10-08 Angus Leeming Fix doxygen warnings. * debugstream.h: \file debugStream.h -> \file debugstream.h * os.h: move comment so that doxygen is not confused. 2003-10-07 Jürgen Spitzmüller * Makefile.am: fix typo. 2003-10-06 Lars Gullik Bjønnes * std_string.h: delete file 2003-10-06 Martin Vermeer * lstrings.C: Small fixes to build using STLport 2003-09-29 Angus Leeming * filetools.C (ReplaceEnvironmentPath): make it work for both ${HOME}/foo and $HOME/foo. 2003-09-26 Lars Gullik Bjønnes * debugstream.h: add file, updated version of the DebugStream * DebugStream.C,DebugStream.h: delete files 2003-09-25 Angus Leeming * filetools.C (ReplaceEnvironmentPath): rewrite to use boost::regex. * lstrings.[Ch]: (regexMatch): removed. 2003-09-25 Angus Leeming * translator.h (add): new member function. 2003-09-16 Angus Leeming * textutils.h: remove #include "paragraph.h". Remove functions IsInsetChar and IsWordChar. 2003-09-15 Angus Leeming * copied_ptr.h: re-jig to something that resembles Herb Sutter's HolderPtr --- see http://www.gotw.ca/gotw/062.htm. Also known in his book as ValuePtr. Use a memory_traits template parameter to create/destroy memory in a flexible manner. 2003-09-15 Lars Gullik Bjønnes * tostr.C: * lstrings.C: * filetools.C: Remove usage of STRCONV * Makefile.am (libsupport_la_SOURCES): remove lyxstring.C and lyxstring.h * std_string.h: modify to always work with std::string, but if with-included-string then use it through namespace lyx. Remove STRCONV. * lyxstring.[Ch]: remove files 2003-09-15 Angus Leeming * translator.h: add #include , so that the template is self-contained. 2003-09-11 Angus Leeming * cow_ptr.h: * copied_ptr.h: added to the repository. Maybe temporarily. 2003-09-09 Lars Gullik Bjønnes * Makefile.am (libsupport_la_SOURCES): remove LAssert.C and LAssert.h * several files: change Assert to BOOST_ASSERT * LAssert.C: * LAssert.h: remove files 2003-09-08 Angus Leeming * filename.C: * filetools.C: tell the world where to find author contact details. 2003-09-08 Angus Leeming * boost-inst.C: * filetools.C: * forkedcallqueue.C: * lstrings.C: * lyxsum.C: remove redundant using directives. 2003-09-05 Angus Leeming * lstrings.C: small bformat fix 2003-09-05 Angus Leeming * std_istream.h: new file Just renaming of LIstream.h * std_ostream.h: new file Just renaming of LIstream.h * std_sstream.h: new file Just renaming of Lsstream.h * std_string.h: new file Just renaming of LString.h 2003-09-05 Angus Leeming * lyxmanip.h: * textutils.h: ensure that the header file can be compiled stand-alone. 2003-09-04 Lars Gullik Bjønnes * lstrings.[Ch] (bformat): add a variant taking two ints. 2003-09-04 Angus Leeming * filetools.h: * filename.C: move #include "os.h" out of the header file. 2003-09-04 Angus Leeming * path.C (ctor, dtor): move out of line. 2003-09-03 Angus Leeming * filename.[Ch] (FileName): new c-tor takes abs_filename arg. (mangledFilename): new function, returning a mangled version of the absolute file name, suitable for use in the temp dir when, for example, converting an image file to another format. (isZipped, unzippedFilename): wrappers to global functions. * filetools.[Ch] (copyFileToDir): removed. (compare_timestamps): new function. 2003-09-03 Angus Leeming * translator.h: Assert is in namespace lyx::support... 2003-08-02 Jean-Marc Lasgouttes * Makefile.am: do not install path_defines.C in includes (COMPRESSION): mention gzstream.h here 2003-08-01 Jean-Marc Lasgouttes * path_defines.C.in (setLyxPaths): re-introduce the code to check whether lyx is run in place (build_dir): renamed from build_lyxdir (build_lyxdir): give this better semantics compatible with what LibFileSearch expects. 2003-07-29 Angus Leeming * filename.[Ch] (relFilename, outputFilename): the 'path' arg defaults to string() because MakeRelPath can accept that. 2003-07-29 Lars Gullik Bjønnes * Makefile.am: conditionalize USE_COMPRESSION. 2003-07-28 Lars Gullik Bjønnes * filetools.C (getExtFromContents): correct magic for gzip and compress. * path_defines.[Ch]: move lyx_localedir out of anon namespace * gzstream.h: new fileq * gzstream.C: new file 2003-07-27 Angus Leeming * path_defines.{h,C.in} (build_lyxdir, system_lyxdir, user_lyxdir): are now functions, not global vars. * Makefile.am: set build_lyxdir at make time. 2003-07-27 Angus Leeming * path_defines.{h,C.in}: new files. Store/set the various lyx paths, lyx_dir, top_srcdir, localedir, system_lyxdir, build_lyxdir user_lyxdir. * Makefile.am: add some magic to enable the user to set the path to the system-level lyx support files, the top of the lyx build tree and the system-level lyx locale directory at _make_ time rather than configure time. * .cvsignore: add path_defines.C. 2003-07-26 Angus Leeming * os.h: remove irrelevant discussion of system_tempdir. 2003-07-21 Angus Leeming * filename.[Ch]: new files implementing class FileName. * Makefile.am: add filename.[Ch]. 2003-07-18 Lars Gullik Bjønnes * BoostFormat.h (boost): remove one extern template. Gcc 3.4. does not allow it (at least not in this form.) 2003-07-01 Lars Gullik Bjønnes * os_win32.C: put namespace os in lyx::support. * lstrings.C (bformat): call Assert from correct namespace. * introduce namespace lyx::support 2003-06-30 André Pönitz * filetools.C: * lstrings.C: re-enable --with-included-string 2003-06-28 Lars Gullik Bjønnes * filetools.h: fix some \param issue * boost-inst.C: fix \file * LAssert.h: fix \file 2003-06-20 Angus Leeming * filetools.[Ch] (NormalizePath): also change /foo//bar ==> /foo/bar. 2003-06-18 Angus Leeming * many files: add the standard blurb, "This file is part of LyX" etc 2003-06-17 Lars Gullik Bjønnes * limited_stack.h: make it have a const_iterator, add begin, and end as interface. 2003-06-10 Angus Leeming * filetools.C (copyFileToDir): ensure that temp files have unique names. 2003-06-04 André Pönitz * limited_stack.h (top): return reference instead of value 2003-06-02 Angus Leeming * filetools.[Ch] (copyFileToDir): new helper function. * os.h: remove trailing semi-colon from end of namespace os block. 2003-06-01 Angus Leeming * filetools.h (LibScriptSearch): give the function a meaningful description of what it now does. 2003-05-30 Angus Leeming * filetools.C (LibScriptSearch): make it search for "$$s/" and replace this with the path to the script. If the script is not found, the "$$s/" string is removed. 2003-05-22 Lars Gullik Bjønnes * lstrings.[Ch] (prefixIs,suffixIs,subst): remove variants taking char const *. 2003-05-19 André Pönitz * lstrings.C: add missing implementation of three-arg bformat * lstrings.C: change rest of char * fmt -> string const & fmt 2003-05-15 André Pönitz * lstrings.[Ch]: use string const & instead of char const * for format 2003-05-12 André Pönitz * tostr.[Ch]: add long int overload 2003-05-12 Alfredo Braunstein * lstrings.[Ch]: compile fix 2003-05-12 André Pönitz * lstrings.[Ch]: bformat() as wrapper around boost::format * lyxstring.h: enable templatized constructor 2003-05-06 Lars Gullik Bjønnes * limited_stack.h: Change some comments, simplify a couple of class functions. 2003-02-21 André Pönitz * limited_stack.h: change underlying container to deque to make this re-usable in mathed 2003-04-08 John Levon * filetools.C: fix MakeDisplayPath() to not lie (bug 993) 2003-03-30 John Levon * Makefile.am: * BoostFormat.h: * boost-inst.C: moved from src/ 2003-03-29 John Levon * filetools.h: * filetools.C: never call Alert directly from here 2003-03-12 John Levon * textutils.h: remove META_NEWLINE 2003-02-27 Ling Li * lyxalgo.h (eliminate_duplicates): re-written to avoid the initial sort. 2003-02-25 Alfredo Braunstein * forkedcontr.C (timer): remove bogus continue 2003-02-25 Alfredo Braunstein * forkedcallqueue.[Ch]: added 2003-02-25 Alfredo Braunstein * forkedcontr.C (timer): Start the loop afresh if an item is deleted. Emiting the signal can result in an arbitrary change to the list. 2003-02-25 Angus Leeming * forkedcontr.C (timer): Use a while loop rather than for; makes it easier to erase an element. 2003-02-25 Alfredo Braunstein * forkedcontr.C (timer): don't start a running timer. 2003-02-21 André Pönitz * filetools.C (PutEnv): removed (unused) 2003-02-17 John Levon * forkedcall.h: * forkedcall.C: add running() 2003-02-08 John Levon * Makefile.am: * lyxtime.h: * lyxtime.C: add typedef for time_t, add current_time * Makefile.am: * userinfo.h: * userinfo.C: add 2002-12-04 Jean-Marc Lasgouttes * filetools.C (getExtFromContents): remove detection of epsi 2002-12-01 Lars Gullik Bjønnes * several files: ws changes 2002-11-27 Lars Gullik Bjønnes * filetools.C (DirList): remove all ugly hacks and do it nice 2002-11-13 Jean-Marc Lasgouttes * lyxsum.C: an ugly hack to compile with non-gnu linkers 2002-11-12 Angus Leeming * lstrings.C (getVectorFromString): #if 0 -> #if 1 until Lars devises a solution that he likes and which actually works. 2002-11-04 Lars Gullik Bjønnes * lstrings.h (tostr): STRCONV * lstrings.C (regexMatch): STRCONV (getVectorFromString): STRCONV, manual copy into vector * filetools.C (GetFileContents): STRCONV * os.C: include config.h * lstrings.C (getVectorFromString): rewrite to use boost::tokenizer 2002-10-31 Angus Leeming * forkedcall.C (generateChild): clean it up further. 2002-10-25 Angus Leeming * forkedcall.[Ch]: split ForkedCall up into a base class ForkedProcess and a minimal ForkedCall daughter class. * forkedcontr.[Ch]: minimal changes reflecting the use of a ForkedProcess base class responsible for launching all child proceses. 2002-09-25 Angus Leeming * LIstream.h: * LOstream.h: doxygen fixes. 2002-09-24 Angus Leeming * most files: clean-up the license info. 2002-09-24 Lars Gullik Bjønnes * Makefile.am (INCLUDES): loose SIGC_INCLUDES 2002-09-16 Kayvan A. Sylvan * os.h, os_os2.C, os_win32.C, os_unix.C: Added popen_read_mode(), since at least for Cygwin, the "rb" read_mode acceptable for fopen() is illegal for popen(), whose mode argument *must* be "r" or "w". * filetools.C (RunCommand): Uses os::popen_read_mode() instead of os::read_mode() 2002-08-20 Lars Gullik Bjønnes * Makefile.am (libsupport_la_SOURCES): delete smart_ptr.h and utility.h * smart_ptr.h: remove file * utility.h: ditto 2002-08-20 Lars Gullik Bjønnes * lyxfunctional.h: remove class_fun_t, void_class_fun_t, class_fun and void_class_fun 2002-08-20 John Levon * Makefile.am: * fmt.C: remove 2002-08-14 Lars Gullik Bjønnes * textutils.h: formatting. 2002-08-08 John Levon * limited_stack.h: default to 100 not 10 2002-08-01 John Levon * forkedcall.C: more details on error 2002-07-29 Lars Gullik Bjønnes * lstrings.[hC]: rename stip to rtrim and frontStrip to ltrim, also add a trim function that is the equiv of strip(frontStrip(...)), also reimplement the functions (improvements still possible.) * filetools.C: strip,frontStrip -> trim,ltrim,rtrim * forkedcall.C (generateChild): ditto * lstrings.C: ditto 2002-07-28 Lars Gullik Bjønnes * filetools.C (GetEnvPath): modify because of strip changes (createDirectory): ditto (findtexfile): ditto * lstrings.[Ch] (isStrInt): ditto (isStrUnsignedInt): ditto (strToInt): ditto (strToUnsignedInt): ditto (isStrDbl): ditto (contains): removed unneeded version of contains (containsOnly): removed uneeded versions of containsOnly (strip, frontStrip): removed unneded versions, changed argument types. 2002-07-22 Dekel Tsur * filetools.C (RunCommand): Made public 2002-07-22 John Levon * limited_stack.h: fix comment, remove un-needed header 2002-07-21 Jean-Marc Lasgouttes * lstrings.h: correct comments for token and tokenPos 2002-07-20 Dekel Tsur * lyxstring.C (operator>>): replace code which works only with _some_ versions of GNU STL with generic one 2002-07-18 Angus Leeming * FileMonitor.[Ch]: new files. Monitor a file for any change and emit a signal should it do so. * Makefile.am: add FileMonitor.[Ch]. 2002-07-18 André Pönitz * filetools.C (LibScriptSearch): bug fix 2002-07-17 Jean-Marc Lasgouttes * filetools.C (LyXReadLink): add bool 'resolve' to return link contents as an absolute path 2002-07-15 Jean-Marc Lasgouttes * filetools.C (IsLyXFilename): (IsSGMLFilename): use ascii_lowercase instead of lowercase * lstrings.[Ch] (ascii_lowercase): new function 2002-07-16 André Pönitz * FileInfo.Ch: remove unneeded code 2002-06-20 Herbert Voss * filetools.[C] (readExtFromContents): add support for (x)fig format images 2002-06-26 André Pönitz * filetools.[Ch]: small whitespace, more compact 'return' statement 2002-06-19 John Levon * lyxalgo.h: add eliminate_duplicates 2002-06-17 Herbert Voss * filetools.[C]: (readBB_from_PSFile) add a helperfunc (readBB_lyxerrMessage) to get better lyxerr messages (getExtFromContents) test epsi files in the right way * DestroxLyXTmpDir.C: changed to true, to delete the temporary unzipped files, too. 2002-06-10 Lars Gullik Bjønnes * putenv.C (putenv): putenv should never be found in std:: * kill.C (kill): kill should never be found in std:: * filetools.C: pclose and popen should never be found in std:: 2002-06-07 Angus Leeming Fixes needed to compile with Compaq cxx 6.5. * lyxfunctional.h: rename lyx::class_fun(C & c, void(C::*f)(A)) as lyx::void_class_fun to avoid compiler problems with Compaq cxx 6.5: more than one instance of overloaded function "lyx::class_fun" matches the argument list. * filetools.C: * kill.C: * lstrings.C: * putenv.C: * snprintf.h: * systemcall.C: * utility.h: all c-library variables have been moved into namespace std. Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block. * kill.C: rename signal.h as csignal. * putenv.C: rename stdlib.h as cstdlib 2002-06-05 Jean-Marc Lasgouttes * lxtl.h: remove unused file 2002-05-30 John Levon * Makefile.am: * date.C: * getUserName.C: * fileblocks.c: * StrPool.h: * StrPool.C: remove unused files * lyxalgo.h: * lyxlib.h: * mkdir.C: * path.h: * path.C: * systemcall.C: * textutils.h: * translator.h: * types.h: document and small cleanups 2002-05-29 Lars Gullik Bjønnes * switch from SigC signals to boost::signals. 2002-05-26 John Levon * Makefile.am: * limited_stack.h: new template for limited-size stacks 2002-05-25 Lars Gullik Bjønnes * filetools.C: do not include LSubstring.h * lstrings.C: change include order (regexMatch): use boost regex get rid of LRegex and LSubstring * Makefile.am (libsupport_la_SOURCES): delete regex and substring stuff. * LSubstring.h: remove file * regex.c: ditto * lyxregex.h: ditto * LRegex.C: ditto * LRegex.h: ditto * LSubstring.C: ditto 2002-05-24 Juergen Vigna * lyxsum.C: include local includes first (self containment) 2002-05-22 Lars Gullik Bjønnes * forkedcall.h: use more specific smart_ptr header. * lyxsum.C: move some using declarations around. 2002-05-03 Herbert Voss * filetools.C (getExtFromContents): only print the first 60 chars of the scanned-string when debugging. 2002-05-02 Lars Gullik Bjønnes * lyxstring.C: close to typo fix. 2002-05-02 Angus Leeming * filetools.C: add a using std::getline directive. 2002-05-02 Lars Gullik Bjønnes * lyxstring.C (operator>>): try a new version of the operator>> 2002-04-14 Herbert Voss * lstrings.[Ch]: move the getVectorFromString and the vice versa from frontends/controllers/helper_funcs for better use in other programs 2002-04-15 Angus Leeming * tempname.C (make_tempfile): simplify the #ifdef block by using #if defined and re-write the #warning as a #error because it's terminal. 2002-04-08 Herbert Voss * filetools.C (getExtFromContents): get tgif run 2002-04-08 Angus Leeming * filetools.C (getExtFromContents): re-format a little and remove replicated "sgi" entry. 2002-04-07 Herbert Voss * filetools.[Ch]: add readBB_from_PSFile() to make bb available for the lyx-view in graphics (moved from ControlGraphics) 2002-04-07 Herbert Voss * filetools.C: fix bug for eps. scans now a whole line 2002-04-06 Lars Gullik Bjønnes * lyxstring.C (operator>>): use the better solution, this fixes a "not able to read '\0'" bug. 2002-04-05 Lars Gullik Bjønnes * translator.h: add missing typename 2002-03-27 Jean-Marc Lasgouttes * filetools.C (LibScriptSearch): new command. Searches for scripts in lyx data directories. (LibScriptSearch): try to use split() correctly. 2002-03-21 Lars Gullik Bjønnes * most files: ws cleanup * Makefile.am: remove ld -r stuff 2002-03-20 Lars Gullik Bjønnes * Makefile.am (libsupport.la): special rules if partial linking 2002-03-14 Angus Leeming * forkedcontr.C: turn the timer off when their are no longer any child processes running. 2002-03-11 Lars Gullik Bjønnes * forkedcall.h: docy fix change SignalType second type to be const ref. * forkedcall.C: doxy fix 2002-03-11 Kayvan A. Sylvan * lyxsum.C: compilation fix 2002-03-02 Herbert Voss * filetools.C: fix bug for xbm format and added some more debug infos 2002-03-02 Lars Gullik Bjønnes * forkedcontr.h: make constructor public * types.h: remove layout_type 2002-03-01 Angus Leeming * filetools.C (getExtFromContents): cleanup. * forkedcontr.h (d-tor): make it public for Dekel's crappy compiler. 2002-02-27 Jean-Marc Lasgouttes * Makefile.am (SIGC_INCLUDES): add a -I directive for when building outside of source tree. 2002-02-19 Angus Leeming * forkedcall.[Ch]: * forkedcontr.[Ch]: new files. Asger's forked call controller is re-born, with a working timer and a modified interface. The startscript method is now passed a Signal rather than a pointer to a callback function. This enables us to connect to the method of a C++ class, if we so desire. * Makefile.am: add forkedcall.[Ch], forkedcontr.[Ch]. 2002-02-26 John Levon * Makefile.am: * os2_defines.h: * os2_errortable.h: * nt_defines.h: moved from src/ 2002-02-23 Herbert Voss * filetools.C: added more graphic formats 2002-02-18 Herbert Voss * filetools.C: (getExtFromContents) return the fileextension if no format is detected. 2002-02-18 Angus Leeming * syscall.[Ch]: renamed as systemcall.[Ch]. class Systemcalls renamed as class SystemCall because one Systemcall instance represents a single child process. * filetools.C: * Makefile.am: associated changes. 2002-02-18 Jean-Marc Lasgouttes * syscall.C (Systemcalls): include 2002-02-08 Herbert Voss * filetools.C: (getExtFromContents) adding Grace-format for filetypes 2002-02-16 Angus Leeming * syscontr.[Ch]: * syssingleton.C: files removed. * syscall.[Ch]: remove the forked calls interface, as nothing, nowhere uses it. Strip down the Systemcalls interface to make it brutally obvious how unsophisticated it is. 2002-02-08 Herbert Voss * filetools.C: (getExtFromContents) adding TGIF-format and return type "user" when no type is detected 2002-02-13 Jean-Marc Lasgouttes * textutils.h: remove IsLineSeparatorChar(char, Inset *) 2002-02-10 Kayvan Sylvan * os_win32.C: Add "using std::endl" to fix compilation for GCC 3.X. 2002-02-08 Jean-Marc Lasgouttes * FileInfo.h: remove special cygwin code. * filetools.C (do_popen): use os::read_mode(). * os_win32.C (read_mode): * os_os2.C (read_mode): * os_unix.C (read_mode): new method * filetools.C (do_popen): fix for cygwin compatibility (from Claus Hentschel). This code should maybe be moved to os:: class. 2002-02-08 Herbert Voss * filetools.C: (unzipFile) fix typo 2002-02-06 Herbert Voss * filetools.[Ch]: fix some bugs for detecting zipped files adding unzipFile() 2002-02-04 Herbert Voss * filetools.[Ch]: add ifZippedFile() for zipped graphic files 2002-02-04 Jean-Marc Lasgouttes * filetools.C (FileOpenSearch): remove duplicated line, probably resulting from bad cut-and paste. 2002-01-31 Herbert Voss * filetools.[Ch]: add getExtFromContents(), which returns the type of the (graphic) file 2002-01-30 Jean-Marc Lasgouttes * copy.C (copy): open file in binary mode (for cygwin) 2002-01-19 Jean-Marc Lasgouttes * lyxsum.C: remove #warnings and replaced them with runtime debug info. 2002-01-14 Jean-Marc Lasgouttes * lyxalgo.h: include 2002-01-14 Angus Leeming * lyx_algo.h: add a standard-conforming count to namespace lyx. * lstrings.[Ch] (countChar): removed. Use lyx::count. 2002-01-05 John Levon * filetools.C: fix use of FileInfo * FileInfo.h: * FileInfo.C: add Asserts and documentation 2001-12-20 Kayvan A. Sylvan * os_win32.C: compilation fixes 2001-12-19 Jean-Marc Lasgouttes * lstrings.h: do not include 2001-12-12 Ben Stanley * lyxsum.C: portability fix for mmap patch 2001-12-05 Lars Gullik Bjønnes * filetools.C: * lstrings.C: * lyxstring.C: change "while(" to "while (" 2001-12-03 Ben Stanley * lyxsum.C: Added mmap version of CRC and made it selected by default where available. Used process_block for crc for speedup. 2001-12-01 John Levon * filetools.C: more robust failure for DirList() 2001-11-29 André Pönitz * types.h: introduce types for textclass numbers and layout numbers 2001-11-28 André Pönitz * Makefile.am: put types.h in 2001-11-26 André Pönitz * types.h: introduce types for paragraph positions and layout numbers 2001-11-04 John Levon * filetools.C: remove dead code * syscall.C: show prog in fail case 2001-10-24 Andre Poenitz * filetools.C: code style cleanup 2001-10-23 Angus Leeming * os.h: remove spurious punctuation. 2001-10-19 John Levon * LAssert.h: * LAssert.C: use new emergencyCleanup() 2001-10-12 Jean-Marc Lasgouttes * filetools.C (i18nLibFileSearch): check also LANGUAGE and LC_ALL, like GNU gettext does. 2001-10-08 Jean-Marc Lasgouttes * filetools.C (AbsolutePath): Use os::is_absolute_path() (also in several methods) (findtexfile): oops! the change from last friday was wrong... * os_win32.C (is_absolute_path): * os_unix.C (is_absolute_path): * os_os2.C (is_absolute_path): new method 2001-10-05 Jean-Marc Lasgouttes * filetools.C (findtexfile): apply os::internal_path to the result. 2001-07-02 Claus Hentschel * os_win32.C: * os_unix.C: * os_os2.C: * os.h: add internal_path method, which converts a unix-type file name to the type known to the underlying file system (currently only useful on cygwin) [from Ruurd A. Reitsma and Claus Hentschel] 2001-08-18 Lars Gullik Bjønnes * smart_ptr.h: new file * utility.h: new file 2001-08-01 John Levon * filetools.h: * filetools.C (IsDirWriteable): fix this 2001-07-26 Baruch Even * lyxlib.h (float_equal): Added function to compare floats almost equal (see function comment). 2001-07-13 Angus Leeming Consistent use of Lsstream.h: * filetools.C (GetFileContents): std::ostringstream -> ostringstream. 2001-07-12 Lars Gullik Bjønnes * translator.h: (*it). -> it-> 2001-06-26 The LyX Project * filetools.C (DeleteAllFilesInDir): send debug output to Debug::FILES instewad of Debug::ANY. * DebugStream.h: remove gcc 2.8.x hack. 2001-06-26 The LyX Project * lstrings.h: * lstrings.C (escape): move method to escape non ascii characters from insets label and ref to here. 2001-06-25 The LyX Project * filetools.C (IsLyXFilename): (IsSGMLFilename): do case insensitive name matching 2001-06-24 The LyX Project * lstrings.C (compare_ascii_no_case): version of compare_no_case which only considers case of ascii characters * lyxstring.C (replace): added for compatibility with gcc 2.95.3+ sstream header. 2001-06-23 The LyX Project * textutils.h (IsPrintable): take into account unprintable spaces above 127. (IsDigit): new function (IsLetterCharOrDigit): use IsDigit 2001-06-20 Jean-Marc Lasgouttes * filetools.C (findtexfile): strip final \r if necessary (for cygwin) 2001-06-19 Angus Leeming * FileInfo.C: * StrPool.C: removed // -*- C++ -*- as first line. 2001-06-01 Lars Gullik Bjønnes * lyxsum.C (do_crc): switch to use boost::crc for generating the checksum. 2001-06-01 Jean-Marc Lasgouttes * lstrings.C: * syscall.C: * syscontr.C: * LSubstring.C: bring C functions in global namespace if necessary. * lstrings.h (compare): use the std:: version of str[n]cmp only when it exists. 2001-05-31 Lars Gullik Bjønnes * syscontr.C: add std:: * syscall.C: add std:: * lstrings.h (compare): add std:: * lstrings.C (prefixIs): add std:: (suffixIs): ditto (subst): ditto * LSubstring.C (LSubstring): add std:: 2001-05-30 Lars Gullik Bjønnes * lyxsum.C (sum): use istreambuf_iterator when available. 2001-05-29 Lars Gullik Bjønnes * lyxsum.C (sum): don't use sstream anymore, use istream_iterator directly instead. * lyxstring.C (operator): make const operator[] behave as non-const and at. 2001-05-22 Jean-Marc Lasgouttes * Makefile.am (EXTRA_DIST): add the os_*.C files. 2001-05-21 Jean-Marc Lasgouttes * filetools.C (MakeAbsPath): remove debugging statement 2001-05-16 Ruurd Reitsma * FileInfo.h: X_OK workaround for cygwin * Makefile.am: * os.C: * os.h: * os_os2.C: * os_unix.C: * os_win32.C: * filetools.C: * filetools.h: Added os:: class. * rename.C: * syscall.C: * tempname.C: OS/2 fixes 2001-05-03 Lars Gullik Bjønnes * textutils.h: remvoe !NEW_INSETS cruft 2001-05-02 Jean-Marc Lasgouttes * fmt.C: * atoi.C: add using directives when needed for C functions declared in std:: namespace. 2001-04-25 Lars Gullik Bjønnes * lstrings.C : add two helper structs, local_lowercase and local_uppercase. (lowercase): change to use std::transform (uppercase): change to use std::transform 2001-04-25 Allan Rae * lyxstring.C : Assert got moved and Lars missed a few. 2001-04-24 Lars Gullik Bjønnes * LAssert.h (Assert): put into namespace lyx * lyxfunctional.h: put into namespace lyx * translator.h: adjust 2001-04-17 Lars Gullik Bjønnes * lyxalgo.h: put into namespace lyx, add firster and copy_if * FileInfo.h: inherit privately from noncopyable * path.h: ditto 2001-04-16 Allan Rae * tempname.C (make_tempfile): #warning triggers an error on Sun CC 6.0 as an unrecognised preprocessor directive. So ensure they're wrapped. 2001-03-15 Lars Gullik Bjønnes * several files: remove CXX_WORKING_NAMESPACES * FileInfo.h: noncopyable is in namespace boost * path.h: ditto 2001-02-16 John Levon * syscontr.h: fix header include 2001-02-28 Baruch Even * filetools.C: Removed dependency on syscall.h * syscall.h: * syscall.C: Minor cleanings before I start to touch this code. 2001-02-27 Lars Gullik Bjønnes * filetools.C (CreateTmpDir): change umask to 0700. 2001-02-27 José Matos * filetools.h (BasePath): * filetools.C (BasePath): removed since it is a duplicate of OnlyPath. * filetools.C (IsLyXFilename): * filetools.C (IsSGMLFilename): test if extension is suffix and not only contained. 2001-02-14 Lars Gullik Bjønnes * fmt.C: * filetools.C: * atoi.C: remove cruft 2001-02-06 albert chin * snprintf.h: * fmt.C: use HAVE_DECL_SNPRINTF 2001-01-26 Dekel Tsur * lyxstring.C: Fix some assertions. 2001-01-23 Dekel Tsur * lstrings.C (strip): Add a fix for compilers with broken string::find_last_not_of. * filetools.C (AddPath): Simplify by using strip and frontStrip. 2001-01-20 Dekel Tsur * lyxstring.C (rfind): Fix broken functions. (find): Few optimizations.