]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Alert.C
Extracted from r14281
[lyx.git] / src / frontends / Alert.C
index 1806e8dc90839ccb79ef3c3aa160aa460eaa0346..83e6d33610bab1a1eba21275f4f948ba4a0743f4 100644 (file)
 #include <config.h>
 
 #include "Alert.h"
+#include "Alert_pimpl.h"
 
 #include "debug.h"
 #include "lyx_gui.h"
 
-#include "Alert_pimpl.h"
-
 using std::endl;
-using std::pair;
 using std::make_pair;
+using std::pair;
+using std::string;
+
 
 int Alert::prompt(string const & title, string const & question,
-           int default_button, int escape_button,
-          string const & b1, string const & b2, string const & b3)
+                 int default_button, int escape_button,
+                 string const & b1, string const & b2, string const & b3)
 {
        if (!lyx_gui::use_gui || lyxerr.debugging()) {
-               lyxerr << title
-                      << "----------------------------------------"
+               lyxerr << title << '\n'
+                      << "----------------------------------------\n"
                       << question << endl;
 
                lyxerr << "Assuming answer is ";
@@ -49,8 +50,8 @@ int Alert::prompt(string const & title, string const & question,
 void Alert::warning(string const & title, string const & message)
 {
        if (!lyx_gui::use_gui || lyxerr.debugging())
-               lyxerr << "Warning: " << title
-                      << "----------------------------------------"
+               lyxerr << "Warning: " << title << '\n'
+                      << "----------------------------------------\n"
                       << message << endl;
        if (lyx_gui::use_gui)
                warning_pimpl(title, message);
@@ -72,8 +73,8 @@ void Alert::error(string const & title, string const & message)
 void Alert::information(string const & title, string const & message)
 {
        if (!lyx_gui::use_gui || lyxerr.debugging())
-               lyxerr << title
-                      << "----------------------------------------"
+               lyxerr << title << '\n'
+                      << "----------------------------------------\n"
                       << message << endl;
 
        if (lyx_gui::use_gui)