]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiSendto.cpp
* remove outdated RC_CUSTOM_EXPORT_COMMAND and RC_CUSTOM_EXPORT_FORMAT.
[features.git] / src / frontends / qt4 / GuiSendto.cpp
index 288652a4eef5ab7d2879bbbdfa2eed9e587b6cb4..8aece21b81d995d6b3249ee862465a024b80be39 100644 (file)
@@ -4,7 +4,7 @@
  * Licence details can be found in the file COPYING.
  *
  * \author Angus Leeming
- * \author Jürgen Spitzmüller
+ * \author Jürgen Spitzmüller
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -15,6 +15,7 @@
 #include "qt_helpers.h"
 
 #include "Buffer.h"
+#include "BufferParams.h"
 #include "Converter.h"
 #include "Format.h"
 #include "FuncRequest.h"
@@ -141,7 +142,6 @@ bool GuiSendTo::isValid()
 bool GuiSendTo::initialiseParams(string const &)
 {
        format_ = 0;
-       command_ = toqstr(lyxrc.custom_export_command);
        paramsToDialog(format_, command_);
        return true;
 }
@@ -174,8 +174,12 @@ vector<Format const *> GuiSendTo::allFormats() const
        exports.push_back("text");
 
        if (buffer().isLatex()) {
-               exports.push_back("latex");
-               exports.push_back("pdflatex");
+               if (buffer().params().useXetex)
+                       exports.push_back("xetex");
+               else {
+                       exports.push_back("latex");
+                       exports.push_back("pdflatex");
+               }
        }
        else if (buffer().isDocBook())
                exports.push_back("docbook");