+2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
+
+ * insettext.C (init): remvoe leftovers from cursor_visible change
+ (draw): use c++ cast
+ (LocalDispatch): dispatch LFUN_MESSAGE
+
+ * insettabular.C (InsetTabular): remove leftovers from
+ cursor_visible, and scoped_ptr changes
+ (draw): use c++ cast
+
+ * insetcollapsable.C (draw): use c++ cast
+
+ * ExternalTemplate.h: inherit privaely from noncopyable
+ * insetcommand.h: ditto
+ * insetinclude.h: ditto
+
2001-04-16 Allan Rae <rae@lyx.org>
* insettoc.C (Ascii):
/**
A singleton class that manages the external inset templates
*/
-class ExternalTemplateManager : public boost::noncopyable {
+class ExternalTemplateManager : boost::noncopyable {
public:
/// Map from the LyX name of the template to the template structure
typedef std::map<string, ExternalTemplate> Templates;
UpdatableInset::draw(bv, f, baseline, x, cleared);
#else
if (!owner())
- x += (float)scroll();
+ x += static_cast<float>(scroll());
#endif
if (!cleared && (inset.need_update == InsetText::FULL ||
inset.need_update == InsetText::INIT ||
///
-class InsetCommand : public InsetButton, public boost::noncopyable {
+class InsetCommand : public InsetButton, boost::noncopyable {
public:
///
explicit
/** Used to include files
*/
-class InsetInclude: public InsetButton, public boost::noncopyable {
+class InsetInclude: public InsetButton, boost::noncopyable {
public:
/// the type of inclusion
enum Flags {
rows = 1;
if (columns <= 0)
columns = 1;
- //tabular = new LyXTabular(this, rows,columns);
tabular.reset(new LyXTabular(this, rows,columns));
// for now make it always display as display() inset
// just for test!!!
the_locking_inset = 0;
locked = no_selection = false;
-#if 0
- cursor_visible = false;
-#endif
oldcell = -1;
actrow = actcell = 0;
clearSelection();
InsetTabular::InsetTabular(InsetTabular const & tab, Buffer const & buf)
: buffer(&buf)
{
- //tabular = new LyXTabular(this, *(tab.tabular));
tabular.reset(new LyXTabular(this, *(tab.tabular)));
the_locking_inset = 0;
locked = no_selection = false;
-#if 0
- cursor_visible = false;
-#endif
oldcell = -1;
actrow = actcell = 0;
sel_cell_start = sel_cell_end = 0;
UpdatableInset::draw(bv, font, baseline, x, cleared);
#else
if (!owner())
- x += (float)scroll();
+ x += static_cast<float>(scroll());
#endif
if (!cleared && ((need_update == INIT) || (need_update == FULL) ||
(top_x != int(x)) || (top_baseline != baseline))) {
#include "lyxcursor.h"
#include "CutAndPaste.h"
#include "font.h"
-#include "minibuffer.h"
#include "LColor.h"
#include "support/textutils.h"
#include "support/LAssert.h"
#include "trans_mgr.h"
#include "lyxscreen.h"
#include "WorkArea.h"
+#include "lyxfunc.h"
+#include "gettext.h"
using std::ostream;
using std::ifstream;
insetDescent = 0;
insetWidth = 0;
the_locking_inset = 0;
-#if 0
- cursor_visible = false;
-#endif
interline_space = 1;
no_selection = false;
need_update = INIT;
UpdatableInset::draw(bv, f, baseline, x, cleared);
#else
if (!owner())
- x += (float)scroll();
+ x += static_cast<float>(scroll());
#endif
// update insetWidth and insetHeight with dummy calls
(void)ascent(bv, f);
// see if we found the layout number:
if (!layout.first) {
- string msg = string(N_("Layout ")) + arg + N_(" not known");
-
- bv->owner()->getMiniBuffer()->Set(msg);
+ string const msg = string(N_("Layout ")) + arg + N_(" not known");
+ bv->owner()->getLyXFunc()
+ ->Dispatch(LFUN_MESSAGE, msg);
break;
}