change arg, inherit privatelu from noncopyable

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1927 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2001-04-17 14:02:45 +00:00
parent 0b98ee5f2e
commit da17cc0c13
4 changed files with 15 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
* Liason.[Ch] (setMinibuffer): change second arg to string
* Dialogs.h: inherit privately from noncopyable
2001-04-03 John Levon <moz@compsoc.man.ac.uk> 2001-04-03 John Levon <moz@compsoc.man.ac.uk>
* Dialogs.h: s/popup/dialog/ * Dialogs.h: s/popup/dialog/

View File

@ -50,7 +50,7 @@ class InsetMinipage;
The list of dialog signals isn't comprehensive but should be a good guide The list of dialog signals isn't comprehensive but should be a good guide
for any future additions. Remember don't go overboard -- think minimal. for any future additions. Remember don't go overboard -- think minimal.
*/ */
class Dialogs : public boost::noncopyable class Dialogs : boost::noncopyable
{ {
public: public:
/// ///

View File

@ -26,8 +26,8 @@
#include "support/path.h" #include "support/path.h"
#include "exporter.h" #include "exporter.h"
#include "converter.h" #include "converter.h"
#include "minibuffer.h"
#include "support/syscall.h" #include "support/syscall.h"
#include "lyxfunc.h"
using std::endl; using std::endl;
@ -155,9 +155,11 @@ bool printBuffer(Buffer * buffer, PrinterParams const & pp)
return res == 0; return res == 0;
} }
void setMinibuffer(LyXView * lv, char const * msg)
void setMinibuffer(LyXView * lv, string const & msg)
{ {
lv->getMiniBuffer()->Set(msg); Assert(lv);
lv->message(msg);
} }
} // namespace Liason } // namespace Liason

View File

@ -30,6 +30,8 @@
#pragma interface #pragma interface
#endif #endif
#include "LString.h"
class PrinterParams; class PrinterParams;
class Buffer; class Buffer;
class LyXView; class LyXView;
@ -52,7 +54,7 @@ namespace Liason {
/// print the current buffer /// print the current buffer
bool printBuffer(Buffer *, PrinterParams const &); bool printBuffer(Buffer *, PrinterParams const &);
/// set the minibuffer /// set the minibuffer
void setMinibuffer(LyXView *, char const * msg); void setMinibuffer(LyXView *, string const & msg);
//@} //@}
} // namespace Liason } // namespace Liason