]> git.lyx.org Git - lyx.git/blobdiff - src/LyX.cpp
- UI support for the LaTeX-package undertilde, fileformat change, fixed the remaining...
[lyx.git] / src / LyX.cpp
index b033e40bd8f05d6fb10dc60c443d10f2a9b365d3..05cca99c7838fbdd1dbd3c122e92a75131ff0d62 100644 (file)
@@ -48,8 +48,6 @@
 #include "frontends/alert.h"
 #include "frontends/Application.h"
 
-#include "graphics/Previews.h"
-
 #include "support/lassert.h"
 #include "support/debug.h"
 #include "support/environment.h"
@@ -193,8 +191,6 @@ struct LyX::Impl
        /// the parsed command line batch command if any
        vector<string> batch_commands;
 
-       ///
-       graphics::Previews preview_;
        ///
        SpellChecker * spell_checker_;
        ///
@@ -290,26 +286,19 @@ int LyX::exec(int & argc, char * argv[])
 {
        // Minimal setting of locale before parsing command line
        try {
-               init_package(os::utf8_argv(0), string(), string(),
-                       top_build_dir_is_one_level_up);
+               init_package(os::utf8_argv(0), string(), string());
+               // we do not get to this point when init_package throws an exception
+               locale_init();
        } catch (ExceptionMessage const & message) {
                LYXERR(Debug::LOCALE, message.title_ + ", " + message.details_);
-#ifdef _WIN32
-               // no console and no Qt here so use a simple message box
-               MessageBoxA(0, to_ascii(message.details_).c_str(), to_ascii(message.title_).c_str(), 0);
-               return 1;
-#endif
        }
-       locale_init();
 
        // Here we need to parse the command line. At least
        // we need to parse for "-dbg" and "-help"
        easyParse(argc, argv);
 
        try {
-               init_package(os::utf8_argv(0),
-                       cl_system_support, cl_user_support,
-                       top_build_dir_is_one_level_up);
+               init_package(os::utf8_argv(0), cl_system_support, cl_user_support);
        } catch (ExceptionMessage const & message) {
                if (message.type_ == ErrorException) {
                        Alert::error(message.title_, message.details_);
@@ -1387,13 +1376,6 @@ Messages const & getGuiMessages()
 }
 
 
-graphics::Previews & thePreviews()
-{
-       LASSERT(singleton_, /**/);
-       return singleton_->pimpl_->preview_;
-}
-
-
 Session & theSession()
 {
        LASSERT(singleton_, /**/);