small stuff

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4359 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2002-06-10 21:04:06 +00:00
parent 0a9ac30a97
commit bb7b14ae8b
5 changed files with 45 additions and 43 deletions

View File

@ -1,3 +1,9 @@
2002-06-10 Lars Gullik Bjønnes <larsbj@birdstep.com>
* sp_spell.C: fdopen is not part of the C++ standard.
* paragraph.C (InsetIterator): use >= instead of ==
2002-06-07 Angus Leeming <leeming@lyx.org>
Fixes needed to compile with Compaq cxx 6.5.
@ -20,7 +26,7 @@
* tabular-old.C:
* tabular.C:
Add a using std::abs declaration.
* kbmap.h (modifier_pair):
* paragraph.h (InsetTable, InsetList):
* lyxfont.h (FontBits):
@ -42,8 +48,8 @@
2002-06-05 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* xtl/*: get rid of xtl, which is not in use anyway
* LyXAction.C (init):
* LyXAction.C (init):
* commandtags.h: remove BUFFER_PRINT and BUFFER_PARAMS_GET, which
were unimplemented xtl experimentation
@ -54,11 +60,11 @@
2002-06-03 John Levon <moz@compsoc.man.ac.uk>
* converter.C: constify a bit
2002-06-02 John Levon <moz@compsoc.man.ac.uk>
* lyx_gui.C: check xforms version correctly
2002-04-30 Herbert Voss <voss@lyx.org>
* buffer.C (parseSingleLyXformat2Token): fix bug with ignored
@ -68,42 +74,42 @@
* lyxvc.C: fix bug 416 (make sure buffer is saved before
attempt to register it with a VCS)
2002-05-30 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* lyx_main.C (init): honor variables LYX_DIR_13x and
LYX_USERDIR_13x
LYX_USERDIR_13x
2002-05-30 John Levon <moz@compsoc.man.ac.uk>
* buffer.h:
* buffer.h:
* buffer.C:
* lyx_main.C: fix a crash on bad command line,
and give a useful exit status on error
* lyxfunc.C (doImport): allow -i lyx to work
2002-03-30 André Pönitz <poenitz@gmx.net>
* lyxfunc.C: mathed font changes
* lyxfunc.C: mathed font changes
2002-05-30 John Levon <moz@compsoc.man.ac.uk>
* LaTeX.C:
* LaTeX.C:
* importer.h:
* importer.C:
* lyx_sty.h:
* lyx_sty.C:
* lyxlex.C:
* lyxrow.h:
* lyxtext.h:
* paragraph.h:
* paragraph.C:
* lyx_sty.C:
* lyxlex.C:
* lyxrow.h:
* lyxtext.h:
* paragraph.h:
* paragraph.C:
* texrow.h:
* texrow.C:
* texrow.C:
* text.C:
* trans_mgr.h: srcdocs, and some minor cleanups
2002-05-29 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* paragraph_pimpl.C (isTextAt): rewrite to be much faster (do not

View File

@ -20,14 +20,14 @@
#include "LString.h"
#include "undo.h"
#include "support/limited_stack.h"
#include "lyxvc.h"
#include "bufferparams.h"
#include "texrow.h"
#include "paragraph.h"
#include <boost/shared_ptr.hpp>
class BufferView;
class LyXRC;
class TeXErrors;
@ -302,10 +302,10 @@ public:
/// Does this mean that this is buffer local?
limited_stack<boost::shared_ptr<Undo> > undostack;
/// Does this mean that this is buffer local?
/// Does this mean that this is buffer local?
limited_stack<boost::shared_ptr<Undo> > redostack;
///
BufferParams params;

View File

@ -231,11 +231,11 @@ void Paragraph::writeFile(Buffer const * buf, ostream & os,
// Noindent?
if (params().noindent())
os << "\\noindent ";
// Do we have a manual left indent?
if (!params().leftIndent().zero())
os << "\\leftindent " << params().leftIndent().asString() << " ";
// Alignment?
if (params().align() != LYX_ALIGN_LAYOUT) {
int h = 0;
@ -892,7 +892,7 @@ void Paragraph::breakParagraph(BufferParams const & bparams,
}
bool isempty = (textclasslist[bparams.textclass][layout()].keepempty &&
!size());
!size());
if (!isempty && (size() > pos || !size() || flag == 2)) {
tmp->layout(layout());
tmp->params().align(params().align());
@ -1220,7 +1220,7 @@ Paragraph::InsetIterator(pos_type pos)
InsetList::iterator it = insetlist.begin();
InsetList::iterator end = insetlist.end();
for (; it != end; ++it) {
if (it->pos == pos)
if (it->pos >= pos)
break;
}
@ -1704,7 +1704,7 @@ bool Paragraph::simpleTeXOnePar(Buffer const * buf,
}
if (moving_arg)
os << "\\protect ";
os << "\\\\\n";
}
texrow.newline();
@ -1851,7 +1851,7 @@ Paragraph * Paragraph::TeXEnvironment(Buffer const * buf,
texrow.newline();
}
}
bool leftindent_open = false;
if (!params().leftIndent().zero()) {
os << "\\begin{LyXParagraphLeftIndent}{" <<
@ -1916,7 +1916,7 @@ Paragraph * Paragraph::TeXEnvironment(Buffer const * buf,
os << "\\end{LyXParagraphLeftIndent}\n";
texrow.newline();
}
lyxerr[Debug::LATEX] << "TeXEnvironment...done " << par << endl;
return par; // ale970302
}

View File

@ -1,13 +1,10 @@
// -*- C++ -*-
/* This file is part of
* ======================================================
*
* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
* Copyright 1995-2001 The LyX Team.
*
* ====================================================== */
/**
* \file paragraph.h
* Copyright 1995 Matthias Ettrich
* Copyright 2002 the LyX Team
* Read the file COPYING
*/
#ifndef PARAGRAPH_H
#define PARAGRAPH_H
@ -400,7 +397,7 @@ public:
inset_iterator inset_iterator_begin();
///
inset_iterator inset_iterator_end();
///
/// returns inset iterator of the first inset at or after pos.
inset_iterator InsetIterator(lyx::pos_type pos);
private:

View File

@ -21,7 +21,7 @@
#include <sys/wait.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <cstdio>
#if TIME_WITH_SYS_TIME
# include <sys/time.h>
@ -54,7 +54,6 @@
#include "sp_ispell.h"
#ifndef CXX_GLOBAL_CSTD
using std::fdopen;
using std::strcpy;
using std::strlen;
using std::strpbrk;