#include <config.h>
-
#include "LyXView.h"
#include "debug.h"
#include "intl.h"
#include "Timeout.h"
#include "Menubar.h"
#include "controllers/ControlCommandBuffer.h"
+#include "mathed/math_cursor.h"
#include "support/filetools.h" // OnlyFilename()
#include <sys/time.h>
#include <unistd.h>
+using namespace lyx::support;
using std::endl;
string current_layout;
void LyXView::updateToolbar()
{
- toolbar_->update();
+ bool const math = mathcursor;
+ bool const table =
+ !getLyXFunc().getStatus(LFUN_LAYOUT_TABULAR).disabled();
+ toolbar_->update(math, table);
}