-<<<<<<< ChangeLog
+2005-05-12 Martin Vermeer <martin.vermeer@hut.fi>
+
+ * tabular.[hC]: added setCellInset to fix tabular paste.
+
+2005-05-11 Lars Gullik Bjonnes <larsbj@gullik.net>
+
+ * buffer.C (save): check if destination is writable before trying
+ to copy a file
+
+2005-05-11 Martin Vermeer <martin.vermeer@hut.fi>
+
+ * BufferView_pimpl.C (update): fix processEvents -caused update
+ recursion bug
+
2005-05-10 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* buffer_funcs.C (setCounter): fix test for numbering of
* lyxlayout.[Ch]: add special NOT_IN_TOC toclevel value for
layouts that should not appear in a table of contents.
-=======
-2005-05-11 Lars Gullik Bjonnes <larsbj@gullik.net>
-
- * buffer.C (save): check if destination is writable before trying
- to copy a file
-
->>>>>>> 1.2180
-2005-05-11 Martin Vermeer <martin.vermeer@hut.fi>
-
- * BufferView_pimpl.C (update): fix processEvents -caused update
- recursion bug
-
2005-05-09 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* cursor.h (undispatched, noUpdate): add comments from André
+2005-05-12 Martin Vermeer <martin.vermeer@hut.fi>
+
+ * insettabular.C (pasteSelection):
+ * insettext.h (copy c'tor): fix paste inside tabulars.
+
2005-04-29 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* insetoptarg.C (plaintext): add dummy method.
--c1;
continue;
}
- shared_ptr<InsetText> inset = tabular.getCellInset(r2, c2);
- inset = paste_tabular->getCellInset(r1, c1);
+ shared_ptr<InsetText> inset(
+ new InsetText(*paste_tabular->getCellInset(r1, c1)));
+ tabular.setCellInset(r2, c2, inset);
inset->markNew();
+ cur.pos() = 0;
}
}
return true;
bool insetAllowed(Code) const { return true; }
///
bool allowSpellCheck() const { return true; }
+ ///
+ InsetText(InsetText const &);
protected:
- InsetText(InsetText const &);
///
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
private:
}
+void LyXTabular::setCellInset(row_type row, col_type column,
+ shared_ptr<InsetText> ins) const
+{
+ cell_info[row][column].inset = ins;
+}
+
+
LyXTabular::idx_type
LyXTabular::getCellFromInset(InsetBase const * inset) const
{
///
boost::shared_ptr<InsetText> getCellInset(row_type row,
col_type column) const;
+ ///
+ void setCellInset(row_type row, col_type column,
+ boost::shared_ptr<InsetText>) const;
/// Search for \param inset in the tabular, with the
///
idx_type getCellFromInset(InsetBase const * inset) const;