From 69c0db99848a057d889089ad9b32522cae235985 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 6 Jan 2000 11:35:29 +0000 Subject: [PATCH] Add a bunch of using directives for dec cxx. Does not compile yet. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@404 a592a061-630c-0410-9148-cb99ea01b6c8 --- ChangeLog | 24 +++++++++++++++++++++--- NEWS | 23 +++++++++++++++++++++++ src/BufferView.C | 21 ++++++++++++--------- src/Spacing.h | 1 + src/bufferlist.C | 6 ++++++ src/insets/figinset.C | 1 + src/lyx_cb.C | 3 +++ src/lyxlex.C | 2 ++ src/lyxlex.h | 2 ++ src/support/filetools.C | 3 +++ src/support/lstrings.C | 2 ++ 11 files changed, 76 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index d31dc98696..66304236f1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,21 @@ +2000-01-06 Jean-Marc Lasgouttes + + + * src/buffer.C (pop_tag): fix a dubious for() loop initialization. + Did I get that right? + + * src/lyxlex.h: add a "using" directive or two. + * src/Spacing.h: ditto. + * src/insets/figinset.C: ditto. + * src/support/filetools.C: ditto. + * src/support/lstrings.C: ditto. + * src/BufferView.C: ditto. + * src/bufferlist.C: ditto. + * src/lyx_cb.C: ditto. + * src/lyxlex.C: ditto. + + * NEWS: add some changes for 1.1.4. + 2000-01-06 Lars Gullik Bjønnes * src/BufferView.C: first go at a TextCache to speed up switching @@ -202,7 +220,7 @@ defined. * src/bmtable.c: new file, a C'ified copy of bmtable.C, this is - compiled by a C compilator not C++. + compiled by a C compiler not C++. * src/layout.h (LyXTextClass): added typedef for const_iterator (LyXTextClassList): added typedef for const_iterator + member @@ -310,8 +328,8 @@ ENABLE_ASSERTIONS * src/support/lyxstring.h: ditto - * src/Bullet.[Ch]: replace DEBUG_AS_DEFAULT by - ENABLE_ASSERTIONS. Use LAssert.h instead of plain assert(). + * src/Bullet.[Ch]: replace DEBUG_AS_DEFAULT by ENABLE_ASSERTIONS. + Use LAssert.h instead of plain assert(). * src/support/lstrings.h: add LAssert.h, in case it is needed. diff --git a/NEWS b/NEWS index 4da608952b..76b2a17cc9 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,26 @@ +What's new in LyX version 1.1.4? +-------------------------------- + +More internals have been rethought. In particular, most of the file IO +routines of LyX have been rewritten to use real C++ streams. Many +changes have also been done to help compile LyX with Sun CC 5.0 and +SGI STL 3.2. + +In the user-visible department, we find: + +- new command line option -x (or --execute) and -e (or --export). Now + direct conversion from .lyx to .tex (.dvi, .ps, ...) is possible + ('lyx file.lyx --export latex') Unfortunately, X is still needed and + the GUI pops up during the process... + +- better placement of accents for characters that LyX draws by itself; + +- improved translations, in particular in finnish (overhauled UI + translation), dutch (tutorial and examples), german + +And of course, a lot of old bugs have been replaced by new ones ;) + + What's new in LyX version 1.1.3? -------------------------------- diff --git a/src/BufferView.C b/src/BufferView.C index 96b13d6251..a4e9c6abd3 100644 --- a/src/BufferView.C +++ b/src/BufferView.C @@ -12,6 +12,8 @@ #include #include +using std::for_each; + #include #include @@ -119,10 +121,11 @@ BufferView::~BufferView() // Among others this mean: // - When a document is closed all trace of it must be removed from // the TextCache. -// Senarios: -// I belive there are only three possible senarios where the two first +// Scenarios: +// I believe there are only three possible scenarios where the two first // are also covered by the third. -// - The simplest senario is what we have now, a single BufferView only. +// - The simplest scenario is what we have now, a single +// BufferView only. // o Opening // Nothing to do with the TextCache is done when opening a file. // o Switching @@ -130,12 +133,12 @@ BufferView::~BufferView() // * A's text is cached in TextCache. // * We make a search for a text in TextCache that fits B // (same buffer and same width). -// o Horisontal resize -// If the BufferView's width (LyXView) is horisontaly changed all -// the entries in the TextCache is deleted. (This causes +// o Horizontal resize +// If the BufferView's width (LyXView) is horizontally changed all +// the entries in the TextCache are deleted. (This causes // reformat of all loaded documents when next viewed) // o Close -// When a buffer is closed we don't have to do anything, becuase +// When a buffer is closed we don't have to do anything, because // to close a single buffer it is required to only exist in the // BufferView and not in the TextCache. Upon LFUN_QUIT we // don't really care since everything is deleted anyway. @@ -150,7 +153,7 @@ BufferView::~BufferView() // * If B is viewed in another BufferView we make a copy of its // text and use that, else we search in TextCache for a match. // (same buffer same width) -// o Horisontal resize +// o Horizontal resize // If the BufferView's width (LyXView) is horisontaly changed all // the entries in the TextCache is deleted. (This causes // reformat of all loaded documents when next viewed) @@ -163,7 +166,7 @@ BufferView::~BufferView() // Nothing to do with the TextCache is done when opening a file. // o Switching // We switch from buffer A to buffer B. -// o Horisontal resize +// o Horisontal rezize // o Close typedef vector TextCache; diff --git a/src/Spacing.h b/src/Spacing.h index bf593a19f5..56b4c2fd73 100644 --- a/src/Spacing.h +++ b/src/Spacing.h @@ -17,6 +17,7 @@ #else #include #endif +using std::istringstream; #include "support/LOstream.h" diff --git a/src/bufferlist.C b/src/bufferlist.C index cc9098ce4b..5619f096a9 100644 --- a/src/bufferlist.C +++ b/src/bufferlist.C @@ -17,6 +17,12 @@ #endif #include + +#include +using std::ifstream; +using std::ofstream; +using std::ios; + #include #include #include "bufferlist.h" diff --git a/src/insets/figinset.C b/src/insets/figinset.C index dcc77e1532..41f482b301 100644 --- a/src/insets/figinset.C +++ b/src/insets/figinset.C @@ -41,6 +41,7 @@ extern long int background_pixels; #include #include using std::ofstream; +using std::ifstream; #include "figinset.h" #include "lyx.h" diff --git a/src/lyx_cb.C b/src/lyx_cb.C index 263f6707ea..3becbb871d 100644 --- a/src/lyx_cb.C +++ b/src/lyx_cb.C @@ -16,6 +16,9 @@ #include #include +#include +using std::ifstream; + #include "LString.h" #include "support/lstrings.h" #include "lyx_main.h" diff --git a/src/lyxlex.C b/src/lyxlex.C index bb55e8b971..4e3618d8a9 100644 --- a/src/lyxlex.C +++ b/src/lyxlex.C @@ -16,6 +16,8 @@ #include "debug.h" #include "support/filetools.h" +using std::ios; + LyXLex::LyXLex(keyword_item * tab, int num) : is(&fb__), table(tab), no_items(num) { diff --git a/src/lyxlex.h b/src/lyxlex.h index 74a8054d9c..215bde91c6 100644 --- a/src/lyxlex.h +++ b/src/lyxlex.h @@ -12,6 +12,8 @@ #endif #include +using std::filebuf; + #include "LString.h" /// diff --git a/src/support/filetools.C b/src/support/filetools.C index 53120ecd86..34d1aac5a6 100644 --- a/src/support/filetools.C +++ b/src/support/filetools.C @@ -18,6 +18,9 @@ #include #include +using std::fstream; +using std::ios; + #include using std::make_pair; using std::pair; diff --git a/src/support/lstrings.C b/src/support/lstrings.C index 27f398dd4a..09cdb6a28b 100644 --- a/src/support/lstrings.C +++ b/src/support/lstrings.C @@ -1,6 +1,7 @@ #include #include + #ifdef __GLIBCPP__ #include #else @@ -13,6 +14,7 @@ #else #include #endif +using std::ostringstream; #include "LString.h" #include "lstrings.h"