2001-06-13 14:33:31 +00:00
|
|
|
// -*- C++ -*-
|
2001-03-22 11:24:36 +00:00
|
|
|
/**
|
|
|
|
* \file GUI.h
|
|
|
|
* Copyright 2001 The LyX Team.
|
|
|
|
* See the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Angus Leeming <a.leeming@ic.ac.uk>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GUI_H
|
|
|
|
#define GUI_H
|
|
|
|
|
2002-01-16 14:47:58 +00:00
|
|
|
#include "ButtonController.h"
|
|
|
|
#include "ButtonController.tmpl"
|
|
|
|
#include "ButtonPolicies.h"
|
|
|
|
#include "ControlAboutlyx.h"
|
|
|
|
#include "ControlBibitem.h"
|
|
|
|
#include "ControlBibtex.h"
|
|
|
|
#include "ControlCharacter.h"
|
|
|
|
#include "ControlCitation.h"
|
|
|
|
#include "ControlError.h"
|
|
|
|
#include "ControlERT.h"
|
|
|
|
#include "ControlExternal.h"
|
|
|
|
#include "ControlFloat.h"
|
|
|
|
#include "ControlGraphics.h"
|
|
|
|
#include "insets/insetgraphicsParams.h"
|
|
|
|
#include "ControlInclude.h"
|
|
|
|
#include "ControlIndex.h"
|
|
|
|
#include "ControlLog.h"
|
|
|
|
#include "ControlMinipage.h"
|
|
|
|
#include "ControlPreamble.h"
|
|
|
|
#include "ControlPrint.h"
|
|
|
|
#include "ControlRef.h"
|
|
|
|
#include "ControlSearch.h"
|
|
|
|
#include "ControlShowFile.h"
|
|
|
|
#include "ControlSpellchecker.h"
|
|
|
|
#include "ControlTabularCreate.h"
|
|
|
|
#include "ControlTexinfo.h"
|
|
|
|
#include "ControlThesaurus.h"
|
|
|
|
#include "ControlToc.h"
|
|
|
|
#include "ControlUrl.h"
|
|
|
|
#include "ControlVCLog.h"
|
|
|
|
|
|
|
|
|
2001-03-22 11:24:36 +00:00
|
|
|
/** This class instantiates and makes available the GUI-specific
|
|
|
|
ButtonController and View.
|
|
|
|
*/
|
|
|
|
template <class Controller, class GUIview, class Policy, class GUIbc>
|
|
|
|
class GUI : public Controller {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
GUI(LyXView & lv, Dialogs & d) : Controller(lv, d), view_(*this) {}
|
|
|
|
///
|
|
|
|
virtual ButtonControllerBase & bc() { return bc_; }
|
|
|
|
///
|
|
|
|
virtual ViewBase & view() { return view_; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
///
|
|
|
|
ButtonController<Policy, GUIbc> bc_;
|
|
|
|
///
|
|
|
|
GUIview view_;
|
|
|
|
};
|
|
|
|
|
2001-07-13 14:03:48 +00:00
|
|
|
/** Specialization for About LyX dialog
|
|
|
|
*/
|
|
|
|
template <class GUIview, class GUIbc>
|
|
|
|
class GUIAboutlyx :
|
|
|
|
public GUI<ControlAboutlyx, GUIview, OkCancelPolicy, GUIbc> {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
GUIAboutlyx(LyXView & lv, Dialogs & d)
|
|
|
|
: GUI<ControlAboutlyx, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
|
|
|
|
};
|
2001-03-22 11:24:36 +00:00
|
|
|
|
|
|
|
/** Specialization for Bibitem dialog
|
|
|
|
*/
|
|
|
|
template <class GUIview, class GUIbc>
|
|
|
|
class GUIBibitem :
|
|
|
|
public GUI<ControlBibitem, GUIview, OkCancelReadOnlyPolicy, GUIbc> {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
GUIBibitem(LyXView & lv, Dialogs & d)
|
|
|
|
: GUI<ControlBibitem, GUIview, OkCancelReadOnlyPolicy, GUIbc>(lv, d) {}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** Specialization for Bibtex dialog
|
|
|
|
*/
|
|
|
|
template <class GUIview, class GUIbc>
|
|
|
|
class GUIBibtex :
|
|
|
|
public GUI<ControlBibtex, GUIview, OkCancelReadOnlyPolicy, GUIbc> {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
GUIBibtex(LyXView & lv, Dialogs & d)
|
|
|
|
: GUI<ControlBibtex, GUIview, OkCancelReadOnlyPolicy, GUIbc>(lv, d) {}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** Specialization for Character dialog
|
|
|
|
*/
|
|
|
|
template <class GUIview, class GUIbc>
|
|
|
|
class GUICharacter : public GUI<ControlCharacter, GUIview,
|
2001-06-12 13:54:04 +00:00
|
|
|
OkApplyCancelReadOnlyPolicy, GUIbc>
|
2001-03-22 11:24:36 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
GUICharacter(LyXView & lv, Dialogs & d)
|
|
|
|
: GUI<ControlCharacter, GUIview,
|
2001-06-12 13:54:04 +00:00
|
|
|
OkApplyCancelReadOnlyPolicy, GUIbc>(lv, d) {}
|
2001-03-22 11:24:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** Specialization for Citation dialog
|
|
|
|
*/
|
|
|
|
template <class GUIview, class GUIbc>
|
|
|
|
class GUICitation : public GUI<ControlCitation, GUIview,
|
|
|
|
NoRepeatedApplyReadOnlyPolicy, GUIbc>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
GUICitation(LyXView & lv, Dialogs & d)
|
|
|
|
: GUI<ControlCitation, GUIview,
|
|
|
|
NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2001-03-23 17:09:34 +00:00
|
|
|
/** Specialization for Error dialog
|
|
|
|
*/
|
|
|
|
template <class GUIview, class GUIbc>
|
|
|
|
class GUIError :
|
|
|
|
public GUI<ControlError, GUIview, OkCancelPolicy, GUIbc> {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
GUIError(LyXView & lv, Dialogs & d)
|
|
|
|
: GUI<ControlError, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2001-08-06 14:55:02 +00:00
|
|
|
/** Specialization for ERT dialog
|
|
|
|
*/
|
|
|
|
template <class GUIview, class GUIbc>
|
|
|
|
class GUIERT :
|
|
|
|
public GUI<ControlERT, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
GUIERT(LyXView & lv, Dialogs & d)
|
|
|
|
: GUI<ControlERT, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2001-03-30 09:51:46 +00:00
|
|
|
/** Specialization for External dialog
|
|
|
|
*/
|
|
|
|
template <class GUIview, class GUIbc>
|
|
|
|
class GUIExternal :
|
2001-08-28 12:24:03 +00:00
|
|
|
public GUI<ControlExternal, GUIview, OkApplyCancelReadOnlyPolicy, GUIbc> {
|
2001-03-30 09:51:46 +00:00
|
|
|
public:
|
|
|
|
///
|
|
|
|
GUIExternal(LyXView & lv, Dialogs & d)
|
2001-08-28 12:24:03 +00:00
|
|
|
: GUI<ControlExternal, GUIview, OkApplyCancelReadOnlyPolicy, GUIbc>(lv, d) {}
|
2001-03-30 09:51:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2001-03-28 12:59:29 +00:00
|
|
|
/** Specialization for Graphics dialog
|
|
|
|
*/
|
|
|
|
template <class GUIview, class GUIbc>
|
|
|
|
class GUIGraphics :
|
|
|
|
public GUI<ControlGraphics, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
GUIGraphics(LyXView & lv, Dialogs & d)
|
|
|
|
: GUI<ControlGraphics, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2001-03-23 17:09:34 +00:00
|
|
|
/** Specialization for Include dialog
|
|
|
|
*/
|
|
|
|
template <class GUIview, class GUIbc>
|
|
|
|
class GUIInclude :
|
|
|
|
public GUI<ControlInclude, GUIview, OkCancelReadOnlyPolicy, GUIbc> {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
GUIInclude(LyXView & lv, Dialogs & d)
|
|
|
|
: GUI<ControlInclude, GUIview, OkCancelReadOnlyPolicy, GUIbc>(lv, d) {}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2001-03-28 12:59:29 +00:00
|
|
|
/** Specialization for Index dialog
|
|
|
|
*/
|
|
|
|
template <class GUIview, class GUIbc>
|
|
|
|
class GUIIndex :
|
|
|
|
public GUI<ControlIndex, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
GUIIndex(LyXView & lv, Dialogs & d)
|
|
|
|
: GUI<ControlIndex, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2001-03-22 11:24:36 +00:00
|
|
|
/** Specialization for Log dialog
|
|
|
|
*/
|
|
|
|
template <class GUIview, class GUIbc>
|
|
|
|
class GUILog :
|
|
|
|
public GUI<ControlLog, GUIview, OkCancelPolicy, GUIbc> {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
GUILog(LyXView & lv, Dialogs & d)
|
|
|
|
: GUI<ControlLog, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2001-03-27 16:03:28 +00:00
|
|
|
/** Specialization for Minipage dialog
|
|
|
|
*/
|
|
|
|
template <class GUIview, class GUIbc>
|
|
|
|
class GUIMinipage :
|
2001-03-28 12:59:29 +00:00
|
|
|
public GUI<ControlMinipage, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
|
2001-03-27 16:03:28 +00:00
|
|
|
public:
|
|
|
|
///
|
|
|
|
GUIMinipage(LyXView & lv, Dialogs & d)
|
2001-03-28 12:59:29 +00:00
|
|
|
: GUI<ControlMinipage, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
|
2001-03-27 16:03:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2001-07-30 11:56:00 +00:00
|
|
|
/** Specialization for Float dialog
|
|
|
|
*/
|
|
|
|
template <class GUIview, class GUIbc>
|
|
|
|
class GUIFloat :
|
|
|
|
public GUI<ControlFloat, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
GUIFloat(LyXView & lv, Dialogs & d)
|
|
|
|
: GUI<ControlFloat, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2001-03-27 16:03:28 +00:00
|
|
|
/** Specialization for Preamble dialog
|
|
|
|
*/
|
|
|
|
template <class GUIview, class GUIbc>
|
|
|
|
class GUIPreamble :
|
|
|
|
public GUI<ControlPreamble, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
GUIPreamble(LyXView & lv, Dialogs & d)
|
|
|
|
: GUI<ControlPreamble, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2001-03-27 10:43:10 +00:00
|
|
|
/** Specialization for Print dialog
|
|
|
|
*/
|
|
|
|
template <class GUIview, class GUIbc>
|
|
|
|
class GUIPrint :
|
|
|
|
public GUI<ControlPrint, GUIview, OkApplyCancelPolicy, GUIbc> {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
GUIPrint(LyXView & lv, Dialogs & d)
|
|
|
|
: GUI<ControlPrint, GUIview, OkApplyCancelPolicy, GUIbc>(lv, d) {}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2001-03-26 13:16:57 +00:00
|
|
|
/** Specialization for Ref dialog
|
|
|
|
*/
|
|
|
|
template <class GUIview, class GUIbc>
|
|
|
|
class GUIRef :
|
2001-08-09 15:08:06 +00:00
|
|
|
public GUI<ControlRef, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
|
2001-03-26 13:16:57 +00:00
|
|
|
public:
|
|
|
|
///
|
|
|
|
GUIRef(LyXView & lv, Dialogs & d)
|
2001-08-09 15:08:06 +00:00
|
|
|
: GUI<ControlRef, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
|
2001-03-26 13:16:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2001-03-26 15:25:37 +00:00
|
|
|
/** Specialization for Search dialog
|
|
|
|
*/
|
|
|
|
template <class GUIview, class GUIbc>
|
|
|
|
class GUISearch :
|
|
|
|
public GUI<ControlSearch, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
GUISearch(LyXView & lv, Dialogs & d)
|
|
|
|
: GUI<ControlSearch, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
|
|
|
|
};
|
|
|
|
|
2001-10-09 15:20:10 +00:00
|
|
|
/** Specialization for ShowFile dialog
|
|
|
|
*/
|
|
|
|
template <class GUIview, class GUIbc>
|
|
|
|
class GUIShowFile :
|
|
|
|
public GUI<ControlShowFile, GUIview, OkCancelPolicy, GUIbc> {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
GUIShowFile(LyXView & lv, Dialogs & d)
|
|
|
|
: GUI<ControlShowFile, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
|
|
|
|
};
|
|
|
|
|
2001-07-13 11:50:39 +00:00
|
|
|
/** Specialization for Spellchecker dialog
|
|
|
|
*/
|
|
|
|
template <class GUIview, class GUIbc>
|
|
|
|
class GUISpellchecker :
|
|
|
|
public GUI<ControlSpellchecker, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
GUISpellchecker(LyXView & lv, Dialogs & d)
|
|
|
|
: GUI<ControlSpellchecker, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
|
|
|
|
};
|
2001-03-26 15:25:37 +00:00
|
|
|
|
2001-03-30 19:24:28 +00:00
|
|
|
/** Specialization for Toc dialog
|
|
|
|
*/
|
|
|
|
template <class GUIview, class GUIbc>
|
|
|
|
class GUIToc :
|
|
|
|
public GUI<ControlToc, GUIview, OkCancelPolicy, GUIbc> {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
GUIToc(LyXView & lv, Dialogs & d)
|
|
|
|
: GUI<ControlToc, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2001-03-26 14:33:58 +00:00
|
|
|
/** Specialization for TabularCreate dialog
|
|
|
|
*/
|
|
|
|
template <class GUIview, class GUIbc>
|
|
|
|
class GUITabularCreate :
|
|
|
|
public GUI<ControlTabularCreate, GUIview,
|
|
|
|
OkApplyCancelReadOnlyPolicy, GUIbc> {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
GUITabularCreate(LyXView & lv, Dialogs & d)
|
|
|
|
: GUI<ControlTabularCreate, GUIview,
|
|
|
|
OkApplyCancelReadOnlyPolicy, GUIbc>(lv, d) {}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2001-10-09 15:20:10 +00:00
|
|
|
/** Specialization for Texinfo dialog
|
|
|
|
*/
|
|
|
|
template <class GUIview, class GUIbc>
|
|
|
|
class GUITexinfo :
|
|
|
|
public GUI<ControlTexinfo, GUIview, OkCancelPolicy, GUIbc> {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
GUITexinfo(LyXView & lv, Dialogs & d)
|
|
|
|
: GUI<ControlTexinfo, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
|
|
|
|
};
|
|
|
|
|
2001-08-09 15:08:06 +00:00
|
|
|
/** Specialization for Thesaurus dialog
|
2001-07-29 10:42:11 +00:00
|
|
|
*/
|
|
|
|
template <class GUIview, class GUIbc>
|
|
|
|
class GUIThesaurus :
|
|
|
|
public GUI<ControlThesaurus, GUIview,
|
|
|
|
OkApplyCancelReadOnlyPolicy, GUIbc> {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
GUIThesaurus(LyXView & lv, Dialogs & d)
|
|
|
|
: GUI<ControlThesaurus, GUIview,
|
|
|
|
OkApplyCancelReadOnlyPolicy, GUIbc>(lv, d) {}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2001-03-23 18:46:11 +00:00
|
|
|
/** Specialization for Url dialog
|
|
|
|
*/
|
|
|
|
template <class GUIview, class GUIbc>
|
|
|
|
class GUIUrl :
|
|
|
|
public GUI<ControlUrl, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
GUIUrl(LyXView & lv, Dialogs & d)
|
|
|
|
: GUI<ControlUrl, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2001-03-22 11:24:36 +00:00
|
|
|
/** Specialization for VCLog dialog
|
|
|
|
*/
|
|
|
|
template <class GUIview, class GUIbc>
|
|
|
|
class GUIVCLog :
|
|
|
|
public GUI<ControlVCLog, GUIview, OkCancelPolicy, GUIbc> {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
GUIVCLog(LyXView & lv, Dialogs & d)
|
|
|
|
: GUI<ControlVCLog, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
|
|
|
|
};
|
|
|
|
|
2001-03-27 10:43:10 +00:00
|
|
|
|
2001-03-22 11:24:36 +00:00
|
|
|
#endif // GUI_H
|