// -*- C++ -*- /* Dialogs.h * Container of all dialogs and signals a LyXView needs or uses to access them. * Author: Allan Rae * This file is part of * ====================================================== * * LyX, The Document Processor * * Copyright 1995 Matthias Ettrich * Copyright 1995-2000 The LyX Team. * * This file Copyright 2000 * Allan Rae * ====================================================== */ #ifndef DIALOGS_H #define DIALOGS_H #include #include using std::vector; #ifdef SIGC_CXX_NAMESPACES using SigC::Signal0; using SigC::Signal1; #endif #include "LString.h" class DialogBase; // Maybe this should be a UIFunc modelled on LyXFunc class LyXView; class InsetBibKey; class InsetBibtex; class InsetCitation; class InsetInclude; class InsetIndex; class InsetInfo; class InsetTabular; class InsetUrl; /** Container of all dialogs and signals a LyXView needs or uses to access them The list of dialog signals isn't comprehensive but should be a good guide for any future additions. Remember don't go overboard -- think minimal. */ class Dialogs { public: /**@name Constructors and Deconstructors */ //@{ /// Dialogs(LyXView *); /// ~Dialogs(); //@} /**@name Global Hide and Update Signals */ //@{ /// Hide all visible popups Signal0 hideAll; /// Hide any popups that require a buffer for them to operate Signal0 hideBufferDependent; /// Update visible, buffer-dependent popups Signal0 updateBufferDependent; //@} /**@name Dialog Access Signals */ //@{ /// Opens the Preamble Dialog. Signal0 showPreamble; /// Signal0 showLogFile; /// Signal1 showTabular; /// Signal1 updateTabular; /// Signal1 hideTabular; /// Signal0 showTabularCreate; /// Signal0 showCharacter; /// Signal0 updateCharacter; // allow update as cursor moves /// Signal0 showParagraph; /// Signal0 showDocument; /// Do we really have to push this? Signal1 const &> SetDocumentClassChoice; /// Signal0 showPrint; /// Signal0 showCopyright; /// Signal0 showCredits; /// Signal0 showPreferences; /// Signal1 showInclude; /// Signal1 showIndex; /// Signal1 showBibkey; /// Signal1 showCitation; /// Signal1 createCitation; /// Signal1 showUrl; /// Signal1 createUrl; /// Signal1 showBibtex; /// Signal1 showInfo; //@} private: /// Disallow default constructor Dialogs() {} /// Disallow copy constructor Dialogs(Dialogs &) {} /// vector dialogs_; }; #endif