#include <QListWidget>
#include <QPushButton>
-#include <QCloseEvent>
-
-using std::vector;
-using std::string;
+using namespace std;
+using namespace lyx::support;
namespace lyx {
namespace frontend {
-using support::trim;
-GuiSendTo::GuiSendTo(LyXView & lv)
- : GuiDialog(lv, "sendto")
+GuiSendTo::GuiSendTo(GuiView & lv)
+ : 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();
}
-bool GuiSendTo::initialiseParams(std::string const &)
+bool GuiSendTo::initialiseParams(string const &)
{
format_ = 0;
command_ = lyxrc.custom_export_command;
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())
}
// Remove repeated formats.
- std::sort(to.begin(), to.end());
- to.erase(std::unique(to.begin(), to.end()), to.end());
+ sort(to.begin(), to.end());
+ to.erase(unique(to.begin(), to.end()), to.end());
return to;
}
-Dialog * createGuiSendTo(LyXView & lv) { return new GuiSendTo(lv); }
+Dialog * createGuiSendTo(GuiView & lv) { return new GuiSendTo(lv); }
} // namespace frontend