#include "Dialogs.h"
-#include "lyx_cb.h"
+#include "callback.h"
#include "controllers/Dialog.h"
namespace {
-BugfixSignal<boost::signal<void(string const &, InsetBase*)> > hideSignal;
+BugfixSignal<boost::signal<void(string const &, Inset*)> > hideSignal;
}
-void Dialogs::hide(string const & name, InsetBase* inset)
+void Dialogs::hide(string const & name, Inset* inset)
{
// Don't send the signal if we are quitting, because on MSVC it is
- // destructed before the cut stack in CutAndPaste.C, and this method
+ // destructed before the cut stack in CutAndPaste.cpp, and this method
// is called from some inset destructor if the cut stack is not empty
// on exit.
if (!quitting)
}
-void Dialogs::show(string const & name, string const & data, InsetBase * inset)
+void Dialogs::show(string const & name, string const & data, Inset * inset)
{
if (in_show_) {
return;
}
-void Dialogs::hideSlot(string const & name, InsetBase * inset)
+void Dialogs::hideSlot(string const & name, Inset * inset)
{
std::map<string, DialogPtr>::const_iterator it =
dialogs_.find(name);
}
-InsetBase * Dialogs::getOpenInset(string const & name) const
+Inset * Dialogs::getOpenInset(string const & name) const
{
if (!isValidName(name))
return 0;
- std::map<string, InsetBase *>::const_iterator it =
+ std::map<string, Inset *>::const_iterator it =
open_insets_.find(name);
return it == open_insets_.end() ? 0 : it->second;
}