]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/Dialogs.C
Introduce LFUN_PRINT.
[lyx.git] / src / frontends / xforms / Dialogs.C
index 11444a3c1e21d0e75ed41d9f3660dc59be2ff2c6..7f535e59313011b8fa67ea98497af5719183dfd1 100644 (file)
 #include "ControlInclude.h"
 #include "ControlLog.h"
 #include "ControlMath.h"
-#include "ControlMinipage.h"
 #include "ControlNote.h"
 #include "ControlParagraph.h"
+#include "ControlPrint.h"
 #include "ControlRef.h"
+#include "ControlSearch.h"
+#include "ControlSendto.h"
 #include "ControlShowFile.h"
 #include "ControlTabular.h"
 #include "ControlTabularCreate.h"
 #include "FormMathsMatrix.h"
 #include "FormMathsSpace.h"
 #include "FormMathsStyle.h"
-#include "FormMinipage.h"
 #include "FormNote.h"
 #include "FormParagraph.h"
+#include "FormPrint.h"
 #include "FormRef.h"
 #include "FormTabular.h"
 #include "FormTexinfo.h"
+#include "FormSearch.h"
+#include "FormSendto.h"
 #include "FormShowFile.h"
 #include "FormTabularCreate.h"
 #include "FormText.h"
@@ -112,20 +116,20 @@ FormMathsBitmap * createFormBitmap(Dialog & parent, string const & title,
 
 
 char const * const dialognames[] = {
-"aboutlyx", "bibitem", "bibtex", "branch", "box", "changes",
-"character", "citation", "error", "errorlist" , "ert", "external", "file",
+"aboutlyx", "bibitem", "bibtex", "box", "branch", "changes", "character",
+"citation", "error", "errorlist" , "ert", "external", "file", "findreplace",
 "float", "graphics", "include", "index", "label", "log", "mathpanel",
-"mathaccents", "matharrows", "mathoperators", "mathrelations", "mathgreek",
-"mathmisc", "mathdots", "mathbigoperators", "mathamsmisc",
-"mathamsarrows", "mathamsrelations", "mathamsnegatedrelations", "mathamsoperators",
-"mathdelimiter", "mathmatrix", "mathspace", "mathstyle",
-"minipage", "note", "paragraph", "ref", "tabular", "tabularcreate", "texinfo",
+"mathaccents", "matharrows", "mathoperators", "mathrelations",
+"mathgreek", "mathmisc", "mathdots", "mathbigoperators", "mathamsmisc",
+"mathamsarrows", "mathamsrelations", "mathamsnegatedrelations",
+"mathamsoperators", "mathdelimiter", "mathmatrix", "mathspace", "mathstyle",
+"note", "paragraph", "print", "ref", "sendto", "tabular", "tabularcreate",
 
 #ifdef HAVE_LIBAIKSAURUS
 "thesaurus",
 #endif
 
-"toc", "url", "vspace", "wrap" };
+"texinfo", "toc", "url", "vspace", "wrap" };
 
 char const * const * const end_dialognames =
        dialognames + (sizeof(dialognames) / sizeof(char *));
@@ -169,6 +173,14 @@ Dialog * Dialogs::build(string const & name)
                dialog->setController(new ControlBibtex(*dialog));
                dialog->setView(new FormBibtex(*dialog));
                dialog->bc().bp(new NoRepeatedApplyReadOnlyPolicy);
+       } else if (name == "box") {
+               dialog->setController(new ControlBox(*dialog));
+               dialog->setView(new FormBox(*dialog));
+               dialog->bc().bp(new OkApplyCancelReadOnlyPolicy);
+       } else if (name == "branch") {
+               dialog->setController(new ControlBranch(*dialog));
+               dialog->setView(new FormBranch(*dialog));
+               dialog->bc().bp(new OkApplyCancelReadOnlyPolicy);
        } else if (name == "character") {
                dialog->setController(new ControlCharacter(*dialog));
                dialog->setView(new FormCharacter(*dialog));
@@ -197,6 +209,10 @@ Dialog * Dialogs::build(string const & name)
                dialog->setController(new ControlShowFile(*dialog));
                dialog->setView(new FormShowFile(*dialog));
                dialog->bc().bp(new OkCancelPolicy);
+       } else if (name == "findreplace") {
+               dialog->setController(new ControlSearch(*dialog));
+               dialog->setView(new FormSearch(*dialog));
+               dialog->bc().bp(new NoRepeatedApplyReadOnlyPolicy);
        } else if (name == "float") {
                dialog->setController(new ControlFloat(*dialog));
                dialog->setView(new FormFloat(*dialog));
@@ -405,30 +421,26 @@ Dialog * Dialogs::build(string const & name)
                dialog->setController(new ControlMath(*dialog));
                dialog->setView(new FormMathsStyle(*dialog));
                dialog->bc().bp(new IgnorantPolicy);
-       } else if (name == "minipage") {
-               dialog->setController(new ControlMinipage(*dialog));
-               dialog->setView(new FormMinipage(*dialog));
-               dialog->bc().bp(new NoRepeatedApplyReadOnlyPolicy);
        } else if (name == "note") {
                dialog->setController(new ControlNote(*dialog));
                dialog->setView(new FormNote(*dialog));
                dialog->bc().bp(new OkApplyCancelReadOnlyPolicy);
-       } else if (name == "box") {
-               dialog->setController(new ControlBox(*dialog));
-               dialog->setView(new FormBox(*dialog));
-               dialog->bc().bp(new OkApplyCancelReadOnlyPolicy);
-       } else if (name == "branch") {
-               dialog->setController(new ControlBranch(*dialog));
-               dialog->setView(new FormBranch(*dialog));
-               dialog->bc().bp(new OkApplyCancelReadOnlyPolicy);
        } else if (name == "paragraph") {
                dialog->setController(new ControlParagraph(*dialog));
                dialog->setView(new FormParagraph(*dialog));
                dialog->bc().bp(new OkApplyCancelReadOnlyPolicy);
+       } else if (name == "print") {
+               dialog->setController(new ControlPrint(*dialog));
+               dialog->setView(new FormPrint(*dialog));
+               dialog->bc().bp(new OkApplyCancelPolicy);
        } else if (name == "ref") {
                dialog->setController(new ControlRef(*dialog));
                dialog->setView(new FormRef(*dialog));
                dialog->bc().bp(new NoRepeatedApplyReadOnlyPolicy);
+       } else if (name == "sendto") {
+               dialog->setController(new ControlSendto(*dialog));
+               dialog->setView(new FormSendto(*dialog));
+               dialog->bc().bp(new OkApplyCancelPolicy);
        } else if (name == "tabular") {
                dialog->setController(new ControlTabular(*dialog));
                dialog->setView(new FormTabular(*dialog));