+2004-04-13 Angus Leeming <leeming@lyx.org>
+
+ * lyx_main.[Ch] (updateInset): pass it an InsetBase pointer rather
+ than an InsetOld one.
+
2004-04-12 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* format.[Ch]: add editor to Format
+2004-04-13 Angus Leeming <leeming@lyx.org>
+
+ * LyXView.[Ch] (updateInset): pass it an InsetBase pointer rather
+ than an InsetOld one.
2004-04-07 Alfredo Braunstein <abraunst@lyx.org>
2004-04-05 Angus Leeming <leeming@lyx.org>
- * Dialogs.h: remove redundant header file. Clean up comments.
+ * Dialogs.h: remove #included header file. Clean up comments.
2004-03-31 Angus Leeming <leeming@lyx.org>
}
-Buffer const * const LyXView::updateInset(InsetOld const * inset) const
+Buffer const * const LyXView::updateInset(InsetBase const * inset) const
{
Buffer const * buffer_ptr = 0;
if (inset) {
class Buffer;
class Toolbar;
-class InsetOld;
+class InsetBase;
class Intl;
class Menubar;
class ControlCommandBuffer;
/** redraw \c inset in all the BufferViews in which it is currently
* visible. If successful return a pointer to the owning Buffer.
*/
- Buffer const * const updateInset(InsetOld const *) const;
+ Buffer const * const updateInset(InsetBase const *) const;
protected:
/// view of a buffer. Eventually there will be several.
+2004-04-13 Angus Leeming <leeming@lyx.org>
+
+ * PreviewLoader.C (dumpPreamble):
+ * Previews.C (generateBufferPreviews): re-enable iteration over all
+ insets.
+
2004-02-21 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* GraphicsCacheItem.C (convertToDisplayFormat): unzip zipped files
<< "\n";
// Loop over the insets in the buffer and dump all the math-macros.
- for (InsetIterator it(buffer_.inset()); it; ++it)
+ InsetBase & inset = buffer_.inset();
+ InsetIterator it = inset_iterator_begin(inset);
+ InsetIterator const end = inset_iterator_end(inset);
+
+ for (; it != end; ++it)
if (it->lyxCode() == InsetOld::MATHMACRO_CODE)
it->latex(buffer_, os, runparams);
{
PreviewLoader & ploader = loader(buffer);
- for (InsetIterator it(buffer.inset()); it; ++it)
+ InsetBase & inset = buffer.inset();
+ InsetIterator it = inset_iterator_begin(inset);
+ InsetIterator const end = inset_iterator_end(inset);
+
+ for (; it != end; ++it)
it->addPreview(ploader);
ploader.startLoading();
}
-Buffer const * const LyX::updateInset(InsetOld const * inset) const
+Buffer const * const LyX::updateInset(InsetBase const * inset) const
{
if (!inset)
return 0;
class Buffer;
class ErrorItem;
-class InsetOld;
+class InsetBase;
class LastFiles;
class LyXView;
class kb_keymap;
/** redraw \c inset in all the BufferViews in which it is currently
* visible. If successful return a pointer to the owning Buffer.
*/
- Buffer const * const updateInset(InsetOld const *) const;
+ Buffer const * const updateInset(InsetBase const *) const;
private:
static boost::scoped_ptr<LyX> singleton_;