2006-03-05 17:24:44 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
/**
|
|
|
|
|
* \file QSendto.h
|
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
|
*
|
|
|
|
|
* \author J<EFBFBD>rgen Spitzm<EFBFBD>ller
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef QSENDTO_H
|
|
|
|
|
#define QSENDTO_H
|
|
|
|
|
|
|
|
|
|
#include "QDialogView.h"
|
2007-08-11 15:48:15 +00:00
|
|
|
|
#include "ui_SendtoUi.h"
|
2007-04-25 10:57:54 +00:00
|
|
|
|
|
|
|
|
|
#include <QDialog>
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
2007-04-25 10:57:54 +00:00
|
|
|
|
class QCloseEvent;
|
|
|
|
|
class QListWidgetItem;
|
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
namespace lyx {
|
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
|
class Format;
|
|
|
|
|
|
|
|
|
|
namespace frontend {
|
|
|
|
|
|
2007-04-25 10:57:54 +00:00
|
|
|
|
class QSendto;
|
|
|
|
|
|
|
|
|
|
class QSendtoDialog : public QDialog, public Ui::QSendtoUi {
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
QSendtoDialog(QSendto * form);
|
|
|
|
|
protected Q_SLOTS:
|
|
|
|
|
virtual void changed_adaptor();
|
|
|
|
|
virtual void slotFormatHighlighted(QListWidgetItem *) {}
|
|
|
|
|
virtual void slotFormatSelected(QListWidgetItem *) {}
|
|
|
|
|
protected:
|
|
|
|
|
virtual void closeEvent(QCloseEvent * e);
|
|
|
|
|
private:
|
|
|
|
|
QSendto * form_;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
|
class ControlSendto;
|
|
|
|
|
|
|
|
|
|
/** This class provides a Qt implementation of the Custom Export Dialog.
|
|
|
|
|
*/
|
|
|
|
|
class QSendto
|
|
|
|
|
: public QController<ControlSendto, QView<QSendtoDialog> >
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
///
|
|
|
|
|
friend class QSendtoDialog;
|
|
|
|
|
///
|
|
|
|
|
QSendto(Dialog &);
|
|
|
|
|
protected:
|
|
|
|
|
virtual bool isValid();
|
|
|
|
|
private:
|
|
|
|
|
/// Apply from dialog
|
|
|
|
|
virtual void apply();
|
|
|
|
|
/// Update the dialog
|
|
|
|
|
virtual void update_contents();
|
|
|
|
|
/// Build the dialog
|
|
|
|
|
virtual void build_dialog();
|
|
|
|
|
///
|
|
|
|
|
std::vector<Format const *> all_formats_;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
|
|
#endif // QSENDTO_H
|