#include <QListWidget>
#include <QPushButton>
-#include <QCloseEvent>
using namespace std;
using namespace lyx::support;
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()));
}
-void GuiSendTo::closeEvent(QCloseEvent * e)
-{
- slotClose();
- e->accept();
-}
-
-
void GuiSendTo::updateContents()
{
all_formats_ = allFormats();
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())