Fix a few portaibility issues and a crash.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@846 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2000-06-28 14:55:57 +00:00
parent ee72ce8774
commit ee16c6dfc0
10 changed files with 26 additions and 9 deletions

View File

@ -1,3 +1,15 @@
2000-06-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* src/insets/insetindex.C (Edit): add a callback when popup is
closed by the WM.
* src/insets/insettext.C (LocalDispatch):
* src/insets/insetmarginal.h:
* src/insets/insetlist.h:
* src/insets/insetfoot.h:
* src/insets/insetfloat.h:
* src/insets/insetert.h: add a missing std:: qualifier.
2000-06-28 Lars Gullik Bjønnes <larsbj@lyx.org>
* src/support/lyxsum.C (sum): '\0' teminate file read when using

View File

@ -41,16 +41,19 @@ src/insets/insetcite.C
src/insets/inseterror.C
src/insets/insetert.C
src/insets/insetexternal.C
src/insets/insetfloat.C
src/insets/insetfoot.C
src/insets/insetgraphics.C
src/insets/insetinclude.C
src/insets/insetindex.C
src/insets/insetinfo.C
src/insets/insetlabel.C
src/insets/insetlist.C
src/insets/insetloa.C
src/insets/insetlof.C
src/insets/insetlot.C
src/insets/insetmarginal.C
src/insets/insetminipage.C
src/insets/insetparent.C
src/insets/insetref.C
src/insets/insettabular.C

View File

@ -34,7 +34,7 @@ public:
///
~InsetERT() {}
///
void Write(Buffer const * buf, ostream & os) const;
void Write(Buffer const * buf, std::ostream & os) const;
///
Inset * Clone() const;
///

View File

@ -31,7 +31,7 @@ public:
///
~InsetFloat() {}
///
void Write(Buffer const * buf, ostream & os) const;
void Write(Buffer const * buf, std::ostream & os) const;
///
void Read(Buffer const * buf, LyXLex & lex);
///

View File

@ -33,7 +33,7 @@ public:
///
~InsetFoot() {}
///
void Write(Buffer const * buf, ostream & os) const;
void Write(Buffer const * buf, std::ostream & os) const;
///
Inset * Clone() const;
///

View File

@ -90,9 +90,11 @@ void InsetIndex::Edit(BufferView * bv, int, int, unsigned int)
if(bv->buffer()->isReadonly())
WarnReadonly(bv->buffer()->fileName());
if (!index_form)
if (!index_form) {
index_form = create_form_index_form();
fl_set_form_atclose(index_form->index_form, CancelCloseBoxCB, 0);
}
index_form->index_form->u_vdata = this;
fl_set_input(index_form->key, getContents().c_str());
if (index_form->index_form->visible) {

View File

@ -31,7 +31,7 @@ public:
///
~InsetList() {}
///
void Write(Buffer const * buf, ostream & os) const;
void Write(Buffer const * buf, std::ostream & os) const;
///
Inset * Clone() const;
///

View File

@ -31,7 +31,7 @@ public:
///
~InsetMarginal() {}
///
void Write(Buffer const * buf, ostream & os) const;
void Write(Buffer const * buf, std::ostream & os) const;
///
Inset * Clone() const;
///

View File

@ -31,7 +31,7 @@ public:
///
~InsetMinipage() {}
///
void Write(Buffer const * buf, ostream & os) const;
void Write(Buffer const * buf, std::ostream & os) const;
///
Inset * Clone() const;
///

View File

@ -757,7 +757,7 @@ InsetText::LocalDispatch(BufferView * bv,
}
#ifdef HAVE_SSTREAM
istringstream istr(arg);
std::istringstream istr(arg);
#else
istrstream istr(arg.c_str());
#endif