2003-03-03 Lars Gullik Bjønnes <larsbj@gullik.net>
+ * insetbutton.C (view): adjust for boost 1.30.0
+ * insetcollapsable.C (view): ditto
+ * insetgraphics.C (statusChanged): ditto
+
* insettext.h: move paragraphs to be public.
2003-03-02 Lars Gullik Bjønnes <larsbj@gullik.net>
}
+#warning Shouldnt this really return a shared_ptr<BufferView>? (Lgb)
BufferView * InsetButton::view() const
{
- return view_.get();
+ return view_.lock().get();
}
inset.markErased();
}
-
+
bool InsetCollapsable::nextChange(BufferView * bv, lyx::pos_type & length)
{
bool found = inset.nextChange(bv, length);
-
+
if (first_after_edit && !found)
close(bv);
else if (!found)
return found;
}
-
+
bool InsetCollapsable::searchForward(BufferView * bv, string const & str,
bool cs, bool mw)
{
BufferView * InsetCollapsable::view() const
{
- return view_.get();
+ return view_.lock().get();
}
-
-
if (formats.getFormat(to)->extension() == GetExtension(orig_file))
return RemoveExtension(orig_file_with_path);
return orig_file_with_path;
- }
+ }
// We're going to be running the exported buffer through the LaTeX
// compiler, so must ensure that LaTeX can cope with the graphics
if (from == to) {
// No conversion is needed. LaTeX can handle the
// graphic file as is.
- if (formats.getFormat(to)->extension() == GetExtension(orig_file))
+ if (formats.getFormat(to)->extension() == GetExtension(orig_file))
return RemoveExtension(temp_file);
return temp_file;
}
}
-
+
string const outfile_base = RemoveExtension(temp_file);
lyxerr[Debug::GRAPHICS]
<< "\tThe original file is " << orig_file << "\n"
void InsetGraphics::statusChanged()
{
- if (cache_->view.get())
- cache_->view.get()->updateInset(this, false);
+ if (!cache_->view.expired())
+ cache_->view.lock()->updateInset(this, false);
}
+2003-03-03 Lars Gullik Bjønnes <larsbj@gullik.net>
+
+ * formulabase.h: adjust for boost 1.30.0
+
2003-02-27 Angus Leeming <leeming@lyx.org>
* formulabase.C (localDispatch): collapse LFUN_REF_APPLY to
2003-02-26 Alfredo Braunstein <abraunst@libero.it>
- * formula.C (draw): strip also the other argument (the owner inset) in
+ * formula.C (draw): strip also the other argument (the owner inset) in
the call to PreviewImage::image
2003-02-26 Angus Leeming <leeming@lyx.org>
2003-02-25 Alfredo Braunstein <abraunst@libero.it>
- * formula.C (draw): eliminate BufferView argument in call to
+ * formula.C (draw): eliminate BufferView argument in call to
PreviewImage::image
2003-02-25 Angus Leeming <leeming@lyx.org>
* math_parser.C (parse1): Do not remove braces for {<expr>}^
2003-02-13 Bo Peng <bpeng@rice.edu>
-
+
* math_cursor.h:
* math_cursor.C (backspace, erase): return false for empty mathboxes.
- * formulabase.C: When LFUN_DELETE, LFUN_BACKSPACE return false, delete
+ * formulabase.C: When LFUN_DELETE, LFUN_BACKSPACE return false, delete
the empty mathbox. Fix Bug 686.
2003-01-12 Michael Schmitt <michael.schmitt@teststep.org>
//bv->owner()->message(_("math text mode toggled"));
break;
- case LFUN_MATH_SIZE:
+ case LFUN_MATH_SIZE:
#if 0
if (!arg.empty()) {
bv->lockedInsetStoreUndo(Undo::EDIT);
///
virtual void updateLocal(BufferView * bv, bool mark_dirty);
///
- BufferView * view() const { return view_.get(); }
+#warning move this to formulabase.C (Lgb)
+ // And shouldn't this really return a shared_ptr<BufferView> instead?
+ BufferView * view() const {
+ return view_.lock().get();
+ }
///
virtual bool searchForward(BufferView *, string const &,