]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/Alert_pimpl.C
Yet more dialog tweaking from Rob.
[lyx.git] / src / frontends / xforms / Alert_pimpl.C
index 033b1851243c28ac58b7d7fcdd386fd2582b0919..294799c919e490953db2b59b1e13c291b43c3de9 100644 (file)
@@ -1,9 +1,11 @@
 /**
- * \file Alert_pimpl.C
- * Copyright 2001 the LyX Team
- * Read the file COPYING
+ * \file xforms/Alert_pimpl.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author John Levon, moz@compsoc.man.ac.uk
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #include <config.h>
 #endif
 
 #include "Alert.h"
-#include "Alert_pimpl.h" 
-#include "xforms_helpers.h"
+#include "Alert_pimpl.h"
+#include "forms_gettext.h"
 #include "gettext.h"
 
 #include <algorithm>
 #include FORMS_H_LOCATION
+
 using std::pair;
 using std::make_pair;
 
@@ -43,10 +45,10 @@ int askConfirmation_pimpl(string const & s1, string const & s2, string const & s
        fl_set_choices_shortcut(scex(_("Yes|Yy#y")),
                                scex(_("No|Nn#n")),
                                scex(_("Cancel|^[")));
-        return fl_show_choice(s1.c_str(), s2.c_str(), s3.c_str(), 
+       return fl_show_choice(s1.c_str(), s2.c_str(), s3.c_str(),
                              3, idex(_("Yes|Yy#y")),
                              idex(_("No|Nn#n")),
-                              idex(_("Cancel|^[")), 3);
+                             idex(_("Cancel|^[")), 3);
 }
 
 
@@ -57,7 +59,7 @@ pair<bool, string> const askForText_pimpl(string const & msg, string const & dfl
        fl_set_resource("flInput.clear.label", idex(_("Clear|#e")));
        char const * tmp = fl_show_input(msg.c_str(), dflt.c_str());
        if (tmp != 0)
-         return make_pair<bool, string>(true, string(tmp));
+               return make_pair<bool, string>(true, string(tmp));
        else
-         return make_pair<bool, string>(false, string());
+               return make_pair<bool, string>(false, string());
 }