]> git.lyx.org Git - features.git/blobdiff - src/frontends/controllers/ControlPrefs.C
change "support/std_sstream.h" to <sstream>
[features.git] / src / frontends / controllers / ControlPrefs.C
index d1f70d1b0779a65816a68c0d3341273a0622c46f..8236af8c56296f46e25455b2c7bb7efea89db7b9 100644 (file)
 #include "support/globbing.h"
 #include "support/path_defines.h"
 
-#include "support/std_sstream.h"
-
-using lyx::support::AddName;
-using lyx::support::FileFilterList;
-using lyx::support::system_lyxdir;
-using lyx::support::user_lyxdir;
+#include <sstream>
 
 using std::ostringstream;
 using std::pair;
@@ -39,6 +34,16 @@ using std::vector;
 
 extern BufferList bufferlist;
 
+namespace lyx {
+
+using support::AddName;
+using support::FileFilterList;
+using support::system_lyxdir;
+using support::user_lyxdir;
+
+namespace frontend {
+
+
 ControlPrefs::ControlPrefs(Dialog & parent)
        : Dialog::Controller(parent),
          redraw_gui_(false),
@@ -62,9 +67,9 @@ bool ControlPrefs::initialiseParams(std::string const &)
 
 void ControlPrefs::dispatchParams()
 {
-       ostringstream ss;
-       rc_.write(ss);
-       kernel().dispatch(FuncRequest(LFUN_LYXRC_APPLY, ss.str()));
+       ostringstream ss;
+       rc_.write(ss, true);
+       kernel().dispatch(FuncRequest(LFUN_LYXRC_APPLY, ss.str()));
 
        // FIXME: these need lfuns
        bufferlist.setCurrentAuthor(rc_.user_name, rc_.user_email);
@@ -171,3 +176,6 @@ string const ControlPrefs::browsedir(string const & path,
 {
        return browseDir(path, title);
 }
+
+} // namespace frontend
+} // namespace lyx