2001-03-28 12:59:29 +00:00
|
|
|
/* This file is part of
|
2002-03-21 21:21:28 +00:00
|
|
|
* ======================================================
|
2001-03-28 12:59:29 +00:00
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 2001 The LyX Team.
|
|
|
|
*
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* \file ControlIndex.C
|
|
|
|
* \author Angus Leeming <a.leeming@ic.ac.uk>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma implementation
|
|
|
|
#endif
|
|
|
|
|
2002-05-29 16:21:03 +00:00
|
|
|
#include "ControlIndex.h"
|
2001-04-26 18:40:38 +00:00
|
|
|
#include "ViewBase.h"
|
|
|
|
#include "ButtonControllerBase.h"
|
2001-03-28 12:59:29 +00:00
|
|
|
#include "buffer.h"
|
|
|
|
#include "Dialogs.h"
|
2002-05-29 16:21:03 +00:00
|
|
|
|
2002-05-23 12:08:47 +00:00
|
|
|
#include "frontends/LyXView.h"
|
2001-03-28 12:59:29 +00:00
|
|
|
|
2002-05-29 16:21:03 +00:00
|
|
|
#include <boost/bind.hpp>
|
2001-03-28 12:59:29 +00:00
|
|
|
|
|
|
|
ControlIndex::ControlIndex(LyXView & lv, Dialogs & d)
|
|
|
|
: ControlCommand(lv, d, LFUN_INDEX_INSERT)
|
|
|
|
{
|
2002-05-29 16:21:03 +00:00
|
|
|
d_.showIndex = boost::bind(&ControlIndex::showInset, this, _1);
|
|
|
|
d_.createIndex = boost::bind(&ControlIndex::createInset, this, _1);
|
2001-03-28 12:59:29 +00:00
|
|
|
}
|