extern string current_layout;
+#ifndef CXX_GLOBAL_CSTD
+using std::tm;
+using std::localtime;
+using std::time;
+using std::setlocale;
+using std::strftime;
+#endif
+
using std::vector;
using std::find_if;
using std::find;
+2002-06-07 Angus Leeming <leeming@lyx.org>
+
+ Fixes needed to compile with Compaq cxx 6.5.
+ * BufferView_pimpl.C:
+ * DepTable.C:
+ * buffer.C:
+ * converter.C:
+ * encoding.C:
+ * lyx_gui.C:
+ * lyx_main.C:
+ * lyxtextclasslist.C:
+ * minibuffer.C:
+ * sp_spell.C:
+ * tabular_funcs.C:
+ * vc-backend.C:
+ all c-library variables have been moved into namespace std. Wrap
+ using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
+
+ * lyxlength.C:
+ * tabular-old.C:
+ * tabular.C:
+ Add a using std::abs declaration.
+
+ * kbmap.h (modifier_pair):
+ * paragraph.h (InsetTable, InsetList):
+ * lyxfont.h (FontBits):
+ type definition made public.
+
+ * bufferlist.C (emergencyWriteAll): the compiler complains that
+ there is more than one possible lyx::class_fun template to choose from.
+ I re-named the void specialisation as lyx::void_class_fun.
+
+ * lyxfont.C (FontBits' operator==, operator!=): taken out of class.
+
+ * tabular_funcs.C: lstrings.h must come before tabular_funcs.h or
+ the compiler is is unable to find tostr in write_attribute.
+
2002-06-06 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* buffer.C (sgmlError): hide #warning
#include <fstream>
#include <ctime>
+#ifndef CXX_GLOBAL_CSTD
+using std::time;
+#endif
+
using std::make_pair;
using std::ofstream;
using std::ifstream;
#include <locale>
#endif
+#ifndef CXX_GLOBAL_CSTD
+using std::pow;
+#endif
using std::ostream;
using std::ofstream;
void BufferList::emergencyWriteAll()
{
for_each(bstore.begin(), bstore.end(),
- lyx::class_fun(*this, &BufferList::emergencyWrite));
+ lyx::void_class_fun(*this, &BufferList::emergencyWrite));
}
#include "support/path.h"
#include "support/systemcall.h"
+#ifndef CXX_GLOBAL_CSTD
+using std::isdigit;
+#endif
+
using std::vector;
using std::queue;
using std::endl;
#include "encoding.h"
#include "debug.h"
+#ifndef CXX_GLOBAL_CSTD
+using std::strtol;
+#endif
+
using std::endl;
Encodings encodings;
#include <cerrno>
+#ifndef CXX_GLOBAL_CSTD
+using std::strerror;
+#endif
+
using std::endl;
using std::pair;
using std::make_pair;
+2002-06-07 Angus Leeming <leeming@lyx.org>
+
+ Fixes needed to compile with Compaq cxx 6.5.
+ * Alert.C: all c-library variables have been moved into namespace std.
+ Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
+
+ * Toolbar.h (Pimpl): type definition made public.
+
2002-05-31 John Levon <moz@compsoc.man.ac.uk>
* Alert.h: better variable name
/// Erase the layout list
void clearLayoutList();
-private:
+ /// Compaq cxx 6.5 requires this to be public
struct Pimpl;
+private:
///
friend struct Toolbar::Pimpl;
///
+2002-06-07 Angus Leeming <leeming@lyx.org>
+
+ Fixes needed to compile with Compaq cxx 6.5.
+ * ControlDialog.tmpl: I have had to prefix base class methods with
+ Base:: Wierd!
+
+ * ControlInset.tmpl: #include a couple of headers.
+
2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
* switch from SigC signals to boost::signals
#include "ControlDialog.h"
#include "ButtonControllerBase.h"
#include "ControlConnections.h"
-#include "LyXView.h"
+#include "frontends/LyXView.h"
#include "BufferView.h"
#include "ViewBase.h"
#include "debug.h"
template <class Base>
void ControlDialog<Base>::show()
{
- if (isBufferDependent() && !lv_.view()->available())
+ if (Base::isBufferDependent() && !Base::lv_.view()->available())
return;
- connect();
+ Base::connect();
setParams();
- if (emergency_exit_) {
+ if (Base::emergency_exit_) {
hide();
return;
}
if (!dialog_built_) {
- view().build();
+ Base::view().build();
dialog_built_ = true;
}
- bc().readOnly(isReadonly());
- view().show();
+ Base::bc().readOnly(Base::isReadonly());
+ Base::view().show();
}
template <class Base>
void ControlDialog<Base>::update()
{
- if (isBufferDependent() && !lv_.view()->available())
+ if (Base::isBufferDependent() && !Base::lv_.view()->available())
return;
setParams();
- if (emergency_exit_) {
+ if (Base::emergency_exit_) {
hide();
return;
}
- bc().readOnly(isReadonly());
- view().update();
+ Base::bc().readOnly(Base::isReadonly());
+ Base::view().update();
}
template <class Base>
void ControlDialog<Base>::hide()
{
- emergency_exit_ = false;
+ Base::emergency_exit_ = false;
clearParams();
- disconnect();
- view().hide();
+ Base::disconnect();
+ Base::view().hide();
}
*/
#include "ControlInset.h"
+#include "ViewBase.h"
+#include "buffer.h"
#include "debug.h"
-
+#include "frontends/LyXView.h"
#include "support/LAssert.h"
-
+#include <boost/bind.hpp>
template <class Inset, class Params>
ControlInset<Inset, Params>::ControlInset(LyXView & lv, Dialogs & d)
+2002-06-07 Angus Leeming <leeming@lyx.org>
+
+ Fixes needed to compile with Compaq cxx 6.5.
+ * ColorHandler.C:
+ * DropDown.C:
+ * FormThesaurus.C:
+ all c-library variables have been moved into namespace std.
+ Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
+
+ * XFormsView.C: add a using std::abs directive.
+
+ * FormBase.h (FormCB::controller): I have had to prefix base class
+ methods with Base:: Wierd!
+
2002-06-04 John Levon <moz@compsoc.man.ac.uk>
* xformsGImage.h: an xforms build fix
#include <cmath> // floor
#include FORMS_H_LOCATION
+#ifndef CXX_GLOBAL_CSTD
+using std::floor;
+#endif
+
using std::max;
using std::min;
#include <cmath>
+#ifndef CXX_GLOBAL_CSTD
+using std::pow;
+#endif
+
using std::endl;
#include <cctype>
+#ifndef CXX_GLOBAL_CSTD
+using std::isprint;
+#endif
+
using std::vector;
template <class Controller, class Base>
Controller & FormCB<Controller, Base>::controller() const
{
- return static_cast<Controller &>(controller_);
- //return dynamic_cast<Controller &>(controller_);
+ return static_cast<Controller &>(ViewBase::controller_);
+ //return dynamic_cast<Controller &>(ViewBase::controller_);
}
#include "form_thesaurus.h"
#include "debug.h"
+#ifndef CXX_GLOBAL_CSTD
+using std::isupper;
+using std::islower;
+#endif
using std::vector;
#include <boost/bind.hpp>
+using std::abs;
using std::endl;
//extern void AutoSave(BufferView *);
+2002-06-07 Angus Leeming <leeming@lyx.org>
+
+ Fixes needed to compile with Compaq cxx 6.5.
+ * GraphicsConverter.h: forward declare class ConvProcess.
+
+ * GraphicsImageXPM.C:
+ all c-library variables have been moved into namespace std.
+ Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
+
2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
* GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
namespace grfx {
+class ConvProcess;
+
class GConverter : boost::noncopyable {
public:
#include <cmath> // cos, sin
#include <cstdlib> // malloc, free
+#ifndef CXX_GLOBAL_CSTD
+using std::cos;
+using std::sin;
+using std::malloc;
+using std::strcpy;
+using std::strlen;
+#endif
+
namespace grfx {
/// Access to this class is through this static method.
+2002-06-07 Angus Leeming <leeming@lyx.org>
+
+ Fixes needed to compile with Compaq cxx 6.5.
+ * insetexternal.C:
+ all c-library variables have been moved into namespace std.
+ Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
+
2002-06-05 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* insetinclude.C (uniqueID):
#include <utility>
+#ifndef CXX_GLOBAL_CSTD
+using std::difftime;
+#endif
+
using std::ostream;
using std::endl;
/// return the ISO value of a keysym
static char getiso(unsigned int i);
-private:
typedef std::pair<key_modifier::state, key_modifier::state> modifier_pair;
-
+
+private:
///
struct kb_key {
/// Keysym
#include <cstdlib>
#include <fcntl.h>
+#ifndef CXX_GLOBAL_CSTD
+using std::exit;
+#endif
+
using std::endl;
extern LyXServer * lyxserver;
using std::endl;
#ifndef CXX_GLOBAL_CSTD
+using std::exit;
using std::signal;
+using std::system;
#endif
extern void LoadLyXFile(string const &);
IGNORE };
-bool LyXFont::FontBits::operator==(LyXFont::FontBits const & fb1) const
-{
- return fb1.family == family &&
- fb1.series == series &&
- fb1.shape == shape &&
- fb1.size == size &&
- fb1.color == color &&
- fb1.emph == emph &&
- fb1.underbar == underbar &&
- fb1.noun == noun &&
- fb1.number == number;
-}
-
-
-bool LyXFont::FontBits::operator!=(LyXFont::FontBits const & fb1) const
-{
- return !(fb1 == *this);
+bool operator==(LyXFont::FontBits const & lhs,
+ LyXFont::FontBits const & rhs)
+{
+ return lhs.family == rhs.family &&
+ lhs.series == rhs.series &&
+ lhs.shape == rhs.shape &&
+ lhs.size == rhs.size &&
+ lhs.color == rhs.color &&
+ lhs.emph == rhs.emph &&
+ lhs.underbar == rhs.underbar &&
+ lhs.noun == rhs.noun &&
+ lhs.number == rhs.number;
}
/// Converts logical attributes to concrete shape attribute
LyXFont::FONT_SHAPE realShape() const;
-private:
- ///
+
+ /** Compaq cxx 6.5 requires that the definition be public so that
+ it can compile operator==()
+ */
struct FontBits {
- ///
- bool operator==(FontBits const & fb1) const;
- ///
- bool operator!=(FontBits const & fb1) const;
///
FONT_FAMILY family;
///
///
FONT_MISC_STATE number;
};
+private:
///
FontBits bits;
///
std::ostream & operator<<(std::ostream &, LyXFont::FONT_MISC_STATE);
+bool operator==(LyXFont::FontBits const & lhs, LyXFont::FontBits const & rhs);
+
+inline
+bool operator!=(LyXFont::FontBits const & lhs, LyXFont::FontBits const & rhs)
+{
+ return !(lhs == rhs);
+}
+
///
inline
bool operator==(LyXFont const & font1, LyXFont const & font2)
{
return !(font1 == font2);
}
+
+
#endif
#include <cstdlib>
+using std::abs;
LyXLength::LyXLength()
: val_(0), unit_(LyXLength::PT)
#include <utility>
+#ifndef CXX_GLOBAL_CSTD
+using std::exit;
+#endif
+
using lyx::textclass_type;
using std::pair;
using std::make_pair;
#include <cctype>
+#ifndef CXX_GLOBAL_CSTD
+using std::isprint;
+#endif
+
using std::vector;
using std::back_inserter;
using std::find;
private:
///
string layout_;
+public:
+ /** Both these definitions must be made public to keep Compaq cxx 6.5
+ * happy.
+ */
///
struct InsetTable {
///
///
typedef std::vector<InsetTable> InsetList;
+private:
///
InsetList insetlist;
public:
#include "encoding.h"
#include "sp_ispell.h"
+#ifndef CXX_GLOBAL_CSTD
+using std::fdopen;
+using std::strcpy;
+using std::strlen;
+using std::strpbrk;
+using std::strstr;
+#endif
+
using std::endl;
namespace {
+2002-06-07 Angus Leeming <leeming@lyx.org>
+
+ 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 <lasgouttes@freesurf.fr>
* lxtl.h: remove unused file
#include <config.h>
-#include <cctype>
-
-#include <utility>
-#include <fstream>
-
-#include "Lsstream.h"
-
#ifdef __GNUG__
#pragma implementation "filetools.h"
#endif
-#include <cstdlib>
-#include <cstdio>
-#include <fcntl.h>
-#include <cerrno>
#include "debug.h"
#include "support/lstrings.h"
#include "support/systemcall.h"
#include "lyxlib.h"
#include "os.h"
+#include "Lsstream.h"
+
+#include <cctype>
+#include <cstdlib>
+#include <cstdio>
+#include <fcntl.h>
+#include <cerrno>
+
+#include <utility>
+#include <fstream>
+
+
// Which part of this is still necessary? (JMarc).
#if HAVE_DIRENT_H
# include <dirent.h>
# endif
#endif
+#ifndef CXX_GLOBAL_CSTD
+using std::fgetc;
+using std::isalpha;
+using std::isalnum;
+using std::pclose;
+using std::popen;
+#endif
+
using std::make_pair;
using std::pair;
using std::endl;
#include <config.h>
#include <sys/types.h>
-#include <signal.h>
+#include <csignal>
#include "lyxlib.h"
+#ifndef CXX_GLOBAL_CSTD
+using std::kill;
+#endif
+
int lyx::kill(int pid, int sig)
{
return ::kill(pid, sig);
using std::vector;
#ifndef CXX_GLOBAL_CSTD
+using std::atof;
+using std::isdigit;
+using std::strlen;
using std::tolower;
using std::toupper;
-using std::strlen;
#endif
template <class C, class A> void_class_fun_t<C, A>
-class_fun(C & c, void(C::*f)(A))
+void_class_fun(C & c, void(C::*f)(A))
{
return void_class_fun_t<C, A>(c, f);
}
#include <config.h>
-#include <stdlib.h>
+#include <cstdlib>
+
+#ifndef CXX_GLOBAL_CSTD
+using std::putenv;
+#endif
#include "lyxlib.h"
int lyx::putenv(char const * str)
extern "C" {
#endif
+#ifndef CXX_GLOBAL_CSTD
+using std::size_t;
+using std::va_list;
+#endif
+
#if defined(HAVE_DECL_SNPRINTF) || defined(HAVE_DECL_VSNPRINTF)
#include <stdio.h>
#endif
#include <cstdlib>
+#ifndef CXX_GLOBAL_CSTD
+using std::system;
+#endif
// Reuse of instance
int Systemcall::startscript(Starttype how, string const & what)
//#include <cstddef> // for size_t
//#include <utility> // for std::pair
+#ifndef CXX_GLOBAL_CSTD
+using std::free;
+#endif
+
namespace lyx
{
// checked_delete() and checked_array_delete() -----------------------------//
{
BOOST_STATIC_ASSERT( sizeof(T) != 0 ); // assert type complete at point
// of instantiation
- free(x);
+ ::free(x);
}
} // namespace boost
#include "support/lstrings.h"
#include "support/textutils.h"
+using std::abs;
using std::istream;
using std::getline;
using std::endl;
#include <algorithm>
#include <cstdlib>
+using std::abs;
using std::ostream;
using std::istream;
using std::getline;
#include "tabular_funcs.h"
-#include "support/lstrings.h"
#include "support/LIstream.h"
+#ifndef CXX_GLOBAL_CSTD
+using std::strlen;
+#endif
+
using std::istream;
using std::getline;
#include "LString.h"
#include "tabular.h"
+#include "support/lstrings.h" // for tostr
#include <iosfwd>
#include <fstream>
+#ifndef CXX_GLOBAL_CSTD
+using std::asctime;
+using std::gmtime;
+#endif
+
using std::endl;
using std::ifstream;
using std::getline;