]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlPrefs.h
fix crash due to invalidated iterator
[lyx.git] / src / frontends / controllers / ControlPrefs.h
index d6e0393457bd171900406c435597738b8e86cae6..0d5f158808ca2ff4498fce673649f849d252377f 100644 (file)
 #include "converter.h"
 #include "format.h"
 #include "lyxrc.h"
+#include "mover.h"
 
 #include <string>
 #include <vector>
 
 class LColor_color;
 
+namespace lyx {
+namespace frontend {
 
 class ControlPrefs : public Dialog::Controller {
 public:
@@ -44,6 +47,9 @@ public:
        Formats & formats() { return formats_; }
        Formats const & formats() const { return formats_; }
 
+       Movers & movers() { return movers_; }
+       Movers const & movers() const { return movers_; }
+
        /// various file pickers
        std::string const browsebind(std::string const & file) const;
        std::string const browseUI(std::string const & file) const;
@@ -67,6 +73,11 @@ public:
        /// update the screen fonts after change
        void updateScreenFonts();
 
+       /// adjust the prefs paper sizes
+       PAPER_SIZE const toPaperSize(int i) const;
+       /// adjust the prefs paper sizes
+       int const fromPaperSize(PAPER_SIZE papersize) const;
+
 private:
        /// temporary lyxrc
        LyXRC rc_;
@@ -77,6 +88,9 @@ private:
        /// temporary formats
        Formats formats_;
 
+       /// temporary movers
+       Movers movers_;
+
        /// A list of colors to be dispatched
        std::vector<std::string> colors_;
 
@@ -84,4 +98,7 @@ private:
        bool update_screen_font_;
 };
 
+} // namespace frontend
+} // namespace lyx
+
 #endif // CONTROLPREFS_H