]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiSendto.cpp
Complete the removal of the embedding stuff. Maybe. It's hard to be sure we got every...
[lyx.git] / src / frontends / qt4 / GuiSendto.cpp
index 42b5e50219056b6ce740ee0c3526fc3001e066ca..1d744fcae0772913111855ae3069dfdf9bf4c16f 100644 (file)
@@ -25,7 +25,6 @@
 
 #include <QListWidget>
 #include <QPushButton>
-#include <QCloseEvent>
 
 using namespace std;
 using namespace lyx::support;
@@ -35,10 +34,9 @@ namespace frontend {
 
 
 GuiSendTo::GuiSendTo(GuiView & lv)
-       : GuiDialog(lv, "sendto")
+       : GuiDialog(lv, "sendto", qt_("Send Document to Command"))
 {
        setupUi(this);
-       setViewTitle(_("Send Document to Command"));
 
        connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK()));
        connect(applyPB, SIGNAL(clicked()), this, SLOT(slotApply()));
@@ -66,13 +64,6 @@ void GuiSendTo::changed_adaptor()
 }
 
 
-void GuiSendTo::closeEvent(QCloseEvent * e)
-{
-       slotClose();
-       e->accept();
-}
-
-
 void GuiSendTo::updateContents()
 {
        all_formats_ = allFormats();
@@ -149,8 +140,10 @@ vector<Format const *> GuiSendTo::allFormats() const
        exports.push_back("lyx");
        exports.push_back("text");
 
-       if (buffer().isLatex())
+       if (buffer().isLatex()) {
                exports.push_back("latex");
+               exports.push_back("pdflatex");
+       }
        else if (buffer().isDocBook())
                exports.push_back("docbook");
        else if (buffer().isLiterate())