mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-08 20:32:49 +00:00
2a31934f38
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8766 a592a061-630c-0410-9148-cb99ea01b6c8
53 lines
982 B
C++
53 lines
982 B
C++
// -*- C++ -*-
|
|
/**
|
|
* \file FormToc.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Angus Leeming
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef FORMTOC_H
|
|
#define FORMTOC_H
|
|
|
|
#include "FormDialogView.h"
|
|
#include "toc.h"
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
class ControlToc;
|
|
struct FD_toc;
|
|
|
|
/** This class provides an XForms implementation of the FormToc Dialog.
|
|
*/
|
|
class FormToc : public FormController<ControlToc, FormView<FD_toc> > {
|
|
public:
|
|
///
|
|
FormToc(Dialog &);
|
|
private:
|
|
/// not needed
|
|
virtual void apply() {}
|
|
/// Build the dialog
|
|
virtual void build();
|
|
/// Update dialog before showing it
|
|
virtual void update();
|
|
/// Filter the inputs on callback from xforms
|
|
virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
|
|
|
|
///
|
|
void updateType();
|
|
///
|
|
void updateContents();
|
|
|
|
///
|
|
toc::Toc toc_;
|
|
};
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#endif // FORMTOC_H
|