mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-24 18:43:37 +00:00
52153a589b
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1984 a592a061-630c-0410-9148-cb99ea01b6c8
57 lines
1.1 KiB
C++
57 lines
1.1 KiB
C++
// -*- C++ -*-
|
|
/* This file is part of
|
|
* ======================================================
|
|
*
|
|
* LyX, The Document Processor
|
|
*
|
|
* Copyright 2000-2001 The LyX Team.
|
|
*
|
|
* ======================================================
|
|
*
|
|
* \file FormToc.h
|
|
* \author Angus Leeming <a.leeming@ic.ac.uk>
|
|
*/
|
|
|
|
#ifndef FORMTOC_H
|
|
#define FORMTOC_H
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
#include "FormBase.h"
|
|
#include "buffer.h"
|
|
|
|
class ControlToc;
|
|
struct FD_form_toc;
|
|
|
|
/** This class provides an XForms implementation of the FormToc Dialog.
|
|
*/
|
|
class FormToc : public FormCB<ControlToc, FormDB<FD_form_toc> > {
|
|
public:
|
|
///
|
|
FormToc(ControlToc &);
|
|
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();
|
|
|
|
/// Fdesign generated method
|
|
FD_form_toc * build_toc();
|
|
|
|
///
|
|
Buffer::SingleList toclist_;
|
|
};
|
|
|
|
#endif // FORMTOC_H
|