+2002-09-24 Angus Leeming <leeming@lyx.org>
+
+ * most files: clean-up the license info.
+
2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
* Makefile.am (INCLUDES): loose SIGC_INCLUDES
-/* This file is part of
- * ======================================================
+/**
+ * \file FileInfo.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * LyX, The Document Processor
+ * \author Lars Gullik Bjønnes
*
- * Copyright 1995 Matthias Ettrich
- * Copyright 1995-2001 The LyX Team.
- *
- * ====================================================== */
+ * Full author contact details are available in file CREDITS
+ */
#include <config.h>
void setSticky(mode_t i, char * str)
{
#ifdef S_ISUID
- if (i & S_ISUID)
+ if (i & S_ISUID)
str[3] = (str[3] == 'x') ? 's' : 'S';
#endif
#ifdef S_ISGID
str[6] = (str[6] == 'x') ? 's' : 'S';
#endif
#ifdef S_ISVTX
- if (i & S_ISVTX)
+ if (i & S_ISVTX)
str[9] = (str[9] == 'x') ? 's' : 'S';
#endif
}
// -*- C++ -*-
-/* This file is part of
- * ======================================================
+/**
+ * \file FileInfo.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * LyX, The Document Processor
+ * \author Lars Gullik Bjønnes
*
- * Copyright 1995 Matthias Ettrich
- * Copyright 1995-2001 The LyX Team.
- *
- * ====================================================== */
+ * Full author contact details are available in file CREDITS
+ */
#ifndef FILE_INFO_H
#define FILE_INFO_H
-/*
+/**
* \file FileMonitor.C
- * Copyright 2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * \author Angus Leeming <leeming@lyx.org>
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
bool const monitor = pimpl_->timer_.running();
if (monitor)
stop();
-
+
pimpl_->filename_ = file_with_path;
if (monitor)
// -*- C++ -*-
-/*
+/**
* \file FileMonitor.h
- * Copyright 2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * \author Angus Leeming <leeming@lyx.org>
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS
*
* FileMonitor monitors a file and informs a listener when that file has
* changed.
-/* This file is part of
- * ======================================================
+/**
+ * \file LAssert.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * LyX, The Document Processor
+ * \author Lars Gullik Bjønnes
*
- * Copyright 1995 Matthias Ettrich
- * Copyright 1995-2001 The LyX Team.
- *
- * ====================================================== */
+ * Full author contact details are available in file CREDITS
+ */
#include <config.h>
// -*- C++ -*-
-/* This file is part of
- * ======================================================
- *
- * LyX, The Document Processor
- *
- * Copyright 1995 Matthias Ettrich
- * Copyright 1995-2001 The LyX Team.
- *
- * ====================================================== */
-
+/**
+ * \file LIStream.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ */
#ifndef LISTREAM_H
#define LISTREAM_H
// -*- C++ -*-
-/* This file is part of
- * ======================================================
- *
- * LyX, The Document Processor
- *
- * Copyright 1995 Matthias Ettrich
- * Copyright 1995-2001 The LyX Team.
- *
- * ====================================================== */
-
+/**
+ * \file LOStream.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ */
#ifndef LOSTREAM_H
#define LOSTREAM_H
-/*
- filetools.C (former paths.C) - part of LyX project
- General path-mangling functions
- Copyright 1996 Ivan Schreter
- Parts Copyright 1996 Dirk Niggemann
- Parts Copyright 1985, 1990, 1993 Free Software Foundation, Inc.
- Parts Copyright 1996 Asger Alstrup
-
- See also filetools.h.
-
- lyx-filetool.C : tools functions for file/path handling
- this file is part of LyX, the High Level Word Processor
- Copyright 1995-1996, Matthias Ettrich and the LyX Team
-
-*/
+/**
+ * \file filetools.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * parts Copyright 1985, 1990, 1993 Free Software Foundation, Inc.
+ *
+ * \author Ivan Schreter
+ * \author Dirk Niggemann
+ * \author Asger Alstrup
+ * \author Lars Gullik Bjønnes
+ * \author Jean-Marc Lasgouttes
+ *
+ * Full author contact details are available in file CREDITS
+ *
+ * General path-mangling functions
+ */
#include <config.h>
// -*- C++-*-
-/* lyx-filetool.h : tools functions for file/path handling
- this file is part of LyX, the High Level Word Processor
- Copyright 1995-2001, Matthias Ettrich and the LyX Team
-*/
+/**
+ * \file filetools.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ */
#ifndef LYX_FILETOOL_H
#define LYX_FILETOOL_H
/**
* \file forkedcall.C
- * Copyright 2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
* \author Asger Alstrup
*
* Interface cleaned up by
- * \author Angus Leeming <a.leeming@ic.ac.uk>
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS
*
* An instance of Class Forkedcall represents a single child process.
*
// -*- C++ -*-
/**
* \file forkedcall.h
- * Copyright 2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
* \author Asger Alstrup
*
* Interface cleaned up by
- * \author Angus Leeming <a.leeming@ic.ac.uk>
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS
*
* An instance of Class Forkedcall represents a single child process.
*
/**
* \file forkedcontr.C
- * Copyright 2001 The LyX Team
- * Read COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
* \author Asger Alstrup Nielsen
* \author Angus Leeming
*
+ * Full author contact details are available in file CREDITS
+ *
* A class for the control of child processes launched using
* fork() and execvp().
*/
// -*- C++ -*-
/**
* \file forkedcontr.h
- * Copyright 2001 The LyX Team
- * Read COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
* \author Asger Alstrup Nielsen
* \author Angus Leeming
*
+ * Full author contact details are available in file CREDITS
+ *
* A class for the control of child processes launched using
* fork() and execvp().
*/
// -*- C++ -*-
/**
* \file limited_stack.h
- * Copyright 2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * \author John Levon <moz@compsoc.man.ac.uk>
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef LIMITED_STACK_H
typedef std::list<T> container_type;
typedef typename container_type::value_type value_type;
typedef typename container_type::size_type size_type;
-
+
/// limit is the maximum size of the stack
limited_stack(size_type limit = 100) {
limit_ = limit;
void pop() {
c_.pop_front();
}
-
+
/// return true if the stack is empty
bool empty() const {
return c_.size() == 0;
c_.pop_back();
}
}
-
+
/// push an item on to the stack, deleting the
/// bottom item on overflow.
void push(value_type const & v) {
c_.push_front(v);
if (c_.size() > limit_) {
- c_.pop_back();
+ c_.pop_back();
}
}
-
+
private:
/// internal contents
container_type c_;
// make pointer type an error.
template <typename T>
class limited_stack<T*>;
-
+
#endif // LIMITED_STACK_H
-/* This file is part of
- * ======================================================
+/**
+ * \file lstrings.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * LyX, The Document Processor
+ * \author Lars Gullik Bjønnes
+ * \author Jean-Marc Lasgouttes
*
- * Copyright 1995 Matthias Ettrich
- * Copyright 1995-2001 The LyX Team.
- *
- * ====================================================== */
+ * Full author contact details are available in file CREDITS
+ */
#include <config.h>
// -*- C++ -*-
-
-/** String helper functions.
- \file lstrings.h
- This is a collection of string helper functions that works
- together with string (and later also with STL String. Some of these
- would certainly benefit from a rewrite/optimization.
- \author Lars Gullik Bjønnes
- \author Jean-Marc Lasgouttes
-*/
+/**
+ * \file lstrings.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Lars Gullik Bjønnes
+ * \author Jean-Marc Lasgouttes
+ *
+ * Full author contact details are available in file CREDITS
+ *
+ * A collection of string helper functions that works with string.
+ * Some of these would certainly benefit from a rewrite/optimization.
+ */
#ifndef LSTRINGS_H
#define LSTRINGS_H
// -*- C++ -*-
/**
* \file lyxalgo.h
- * Copyright 1995-2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * A variety of useful templates.
+ * \author Lars Gullik Bjønnes
+ *
+ * Full author contact details are available in file CREDITS
*
- * \author unknown
+ * A variety of useful templates.
*/
#ifndef LYX_ALGO_H
// -*- C++ -*-
/**
* \file lyxlib.h
- * Copyright 1995-2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
* A selection of useful system functions made
* handy for C++ usage.
*
- * \author unknown
+ * \author Lars Gullik Bjønnes
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef LYX_LIB_H
-/* This file is part of
- * ======================================================
+/**
+ * \file lyxstring.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * LyX, The Document Processor
+ * \author Lars Gullik Bjønnes
*
- * Copyright 1995 Matthias Ettrich
- * Copyright 1995-2000 The LyX Team.
- *
- * ====================================================== */
+ * Full author contact details are available in file CREDITS
+ */
#ifdef HAVE_CONFIG_H
#include <config.h>
if (isspace(c)) {
if (!skipspace) {
is.putback(c);
- break;
+ break;
}
} else {
s += c;
// -*- C++ -*-
-/* This file is part of
- * ======================================================
+/**
+ * \file lyxstring.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * LyX, The Document Processor
+ * \author Lars Gullik Bjønnes
*
- * Copyright 1995 Matthias Ettrich
- * Copyright 1995-2000 The LyX Team.
- *
- * ====================================================== */
+ * Full author contact details are available in file CREDITS
+ */
// This one is heavily based on the string class in The C++
// Programming Language by Bjarne Stroustrup
-/* This file is part of
- * ======================================================
+/**
+ * \file lyxsum.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * LyX, The Document Processor
- * Copyright 2001 The LyX Team.
+ * \author Lars Gullik Bjønnes
*
- * ======================================================
+ * Full author contact details are available in file CREDITS
*/
-
#include <config.h>
#include "support/lyxlib.h"
-/* -*- C++ -*- */
-/* This file is part of
- * ======================================================
+// -*- C++ -*-
+/**
+ * \file nt_defines.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * LyX, the High Level Word Processor
- *
- * Copyright 1995 Matthias Ettrich
- * Copyright 1995-1998 The LyX Team.
- *
- * ======================================================
- A few prototypes and definitions needed for Windows NT */
-
-/* Hacks to get LyX running under Win-NT w. Cygnus b19 (steven@cs.uu.nl) */
+ * Prototypes and definitions needed for Windows NT.
+ */
#ifndef NT_DEFINES_H
#define NT_DEFINES_H
-
-#endif /* NT_DEFINES_H */
+#endif // NT_DEFINES_H
/* -*- C++ -*- */
-/* This file is part of
-* ======================================================
-*
-* LyX, The Document Processor
-*
-* Copyright 1995 Matthias Ettrich
-* Copyright 1995-2001 The LyX Team.
-*
-* ======================================================
- A few prototypes and definitions needed for OS/2 */
+/**
+ * \file os2_defines.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * Prototypes and definitions needed for OS/2.
+ */
#ifndef OS2_DEFINES_H
#define OS2_DEFINES_H
/* -*- C++ -*- */
-/* This file is part of
-* ======================================================
-*
-* LyX, The Document Processor
-*
-* Copyright 1995 Matthias Ettrich
-* Copyright 1995-2001 The LyX Team.
-*
-* ======================================================
- A table for translating OS/2 API return code into errno.
- Copied from emx library source. */
+/**
+ * \file os2_errortable.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * A table for translating OS/2 API return code into errno.
+ * Copied from emx library source.
+ */
#ifndef OS2_ERRORTABLE_H
#define OS2_ERRORTABLE_H
/**
* \file path.C
- * Copyright 1995-2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * \author unknown
+ * \author Lars Gullik Bjønnes
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
// throw logical_error();
return 0;
}
-
+
if (lyx::chdir(pushedDir_)) {
// should throw an exception
// throw DirChangeError();
}
popped_ = true;
-
+
return 0;
}
// -*- C++ -*-
/**
* \file path.h
- * Copyright 1995-2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * \author unknown
+ * \author Lars Gullik Bjønnes
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef PATH_H
Path(string const & path)
: popped_(false)
{
- if (!path.empty()) {
+ if (!path.empty()) {
pushedDir_ = lyx::getcwd();
if (pushedDir_.empty() || lyx::chdir(path))
/* FIXME: throw */;
popped_ = true;
}
}
-
+
/// set cwd to the previous value if needed
~Path()
{
if (!popped_) pop();
}
-
+
/// set cwd to the previous value if needed
int pop();
private:
/**
* \file systemcall.C
- * Copyright 2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
* \author Asger Alstrup
*
* Interface cleaned up by
- * \author Angus Leeming <a.leeming@ic.ac.uk>
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
// -*- C++ -*-
/**
* \file systemcall.h
- * Copyright 2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
* \author Asger Alstrup
*
* Interface cleaned up by
- * \author Angus Leeming <a.leeming@ic.ac.uk>
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef SYSTEMCALL_H
#pragma interface
#endif
-/**
+/**
* An instance of Class Systemcall represents a single child process.
*
* Class Systemcall uses system() to launch the child process.
Wait, //< wait for completion before returning from startscript()
DontWait //< don't wait for completion
};
-
+
/** Start child process.
* The string "what" contains a commandline with arguments separated
* by spaces.
// -*- C++ -*-
/**
* \file textutils.h
- * Copyright 1995-2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * \author unknown
+ * \author Matthias Ettrich
+ * \author Lars Gullik Bjønnes
+ *
+ * Full author contact details are available in file CREDITS
*/
// FIXME: I can think of a better name for this file ...
// -*- C++ -*-
/**
* \file translator.h
- * Copyright 1995-2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * \author Baruch Even <baruch@lyx.org>
+ * \author Baruch Even
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef TRANSLATOR_H
/**
* \file types.h
- * Copyright 2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
* Provide a set of typedefs for commonly used things like sizes and
* indices wile trying to stay compatible with types used
* by the standard containers.
*
* \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef LYX_TYPES_H