]> git.lyx.org Git - lyx.git/blobdiff - src/support/package.h
get rid of MSVC warning (signed/unsigned comparison)
[lyx.git] / src / support / package.h
index 2b44462f0627be877b242031b94a73124a2eed94..c84a0f8bcbf51176175ee5883e8b600b84945f77 100644 (file)
@@ -72,7 +72,6 @@ public:
        std::string const & binary_dir() const;
 
        /** The top of the LyX source code tree.
-        *  Used by the GTK frontend when searching for .glade files.
         */
        std::string const & top_srcdir() const;
 
@@ -92,7 +91,7 @@ public:
 
        /** The user_support directory was set explicitly using either
         *  the -userdir command line switch or
-        *  the LYX_USERDIR_14x environment variable.
+        *  the LYX_USERDIR_15x environment variable.
         */
        bool explicit_user_support() const;
 
@@ -105,20 +104,28 @@ public:
         */
        std::string & document_dir() const;
 
-       /** The path to the temporary directory.
+       /** The path to the system temporary directory.
         *  (Eg /tmp on *nix.)
+        */
+       std::string const & system_temp_dir() const;
+
+       /** The path to the temporary directory used by LyX.
+        *  (Eg /tmp/lyx_tmpdir800nBI1z9 on *nix.)
         *  Can be reset by LyXRC.
         */
        std::string & temp_dir() const;
 
        /** Used when setting the user_support directory.
         *  Used also when expanding "~/" or contracting to "~/". (filetools.C)
-        *  Used by the XForms file dialog.
         *  Used in emergencyWrite (bufferlist.C) as one possible location
         *  for the dump.
+        *  This may be empty (e. g. when run under a CGI environment)
         */
        std::string const & home_dir() const;
 
+       /// Command to run the configure script
+       std::string const & configure_command() const;
+
 private:
        std::string binary_dir_;
        std::string system_support_dir_;
@@ -127,7 +134,9 @@ private:
        std::string locale_dir_;
        mutable std::string document_dir_;
        mutable std::string temp_dir_;
+       std::string system_temp_dir_;
        std::string home_dir_;
+       std::string configure_command_;
        bool explicit_user_support_dir_;
 };
 
@@ -183,12 +192,24 @@ std::string & Package::temp_dir() const
        return temp_dir_;
 }
 
+inline
+std::string const & Package::system_temp_dir() const
+{
+       return system_temp_dir_;
+}
+
 inline
 std::string const & Package::home_dir() const
 {
        return home_dir_;
 }
 
+inline
+std::string const & Package::configure_command() const
+{
+       return configure_command_;
+}
+
 } // namespace support
 } // namespace lyx