// -*- C++ -*-
/**
* \file FormTexinfo.h
- * Copyright 2001 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * \author Herbert Voss <voss@perce.de>
+ * \author Herbert Voß
+ *
+ * Full author contact details are available in file CREDITS.
*/
#ifndef FORMTEXINFO_H
#define FORMTEXINFO_H
-#ifdef __GNUG__
-#pragma interface
-#endif
-#include "FormBase.h"
+#include "FormDialogView.h"
+#include "ControlTexinfo.h"
+#include <map>
-class ControlTexinfo;
-struct FD_form_texinfo;
+struct FD_texinfo;
-class FormTexinfo : public FormCB<ControlTexinfo, FormDB<FD_form_texinfo> > {
+class FormTexinfo
+ : public FormController<ControlTexinfo, FormView<FD_texinfo> > {
public:
///
- FormTexinfo(ControlTexinfo &);
- /// the file extensions
- enum texFileSuffix {cls, sty, bst};
-
- /// preemptive handler for feedback messages
- void feedbackCB(FL_OBJECT *, int);
-
+ FormTexinfo(Dialog &);
private:
/// not needed
virtual void apply() {}
/// Filter the inputs on callback from xforms
virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
///
- void feedback(FL_OBJECT *);
+ void updateStyles(ControlTexinfo::texFileSuffix);
///
- void updateStyles(texFileSuffix);
- /// Fdesign generated method
- FD_form_texinfo * build_texinfo();
- ///
- bool warningPosted;
+ ControlTexinfo::texFileSuffix activeStyle;
+
///
- texFileSuffix activeStyle;
+ typedef std::vector<std::string> ContentsType;
+ std::map<ControlTexinfo::texFileSuffix, ContentsType> texdata_;
};
#endif // FORMTEXINFO_H