X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiSendto.h;h=38f0f531a780b0f16567a2a98c5e351f5cd029e9;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=4e4f3ba670a1f01375846b20544abf356b4bceda;hpb=a1cec91afaca91968b46e695533c10ad2a3f73d3;p=lyx.git diff --git a/src/frontends/qt4/GuiSendto.h b/src/frontends/qt4/GuiSendto.h index 4e4f3ba670..38f0f531a7 100644 --- a/src/frontends/qt4/GuiSendto.h +++ b/src/frontends/qt4/GuiSendto.h @@ -4,22 +4,20 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author Jürgen Spitzmüller + * \author Angus Leeming + * \author Jürgen Spitzmüller * * Full author contact details are available in file CREDITS. */ -#ifndef QSENDTO_H -#define QSENDTO_H +#ifndef GUISENDTO_H +#define GUISENDTO_H -#include "GuiDialogView.h" +#include "GuiDialog.h" #include "ui_SendtoUi.h" -#include - #include -class QCloseEvent; class QListWidgetItem; namespace lyx { @@ -28,49 +26,49 @@ class Format; namespace frontend { -class GuiSendto; - -class GuiSendtoDialog : public QDialog, public Ui::SendtoUi { +class GuiSendTo : public GuiDialog, public Ui::SendtoUi +{ Q_OBJECT -public: - GuiSendtoDialog(GuiSendto * form); -protected Q_SLOTS: - virtual void changed_adaptor(); - virtual void slotFormatHighlighted(QListWidgetItem *) {} - virtual void slotFormatSelected(QListWidgetItem *) {} -protected: - virtual void closeEvent(QCloseEvent * e); -private: - GuiSendto * form_; -}; +public: + GuiSendTo(GuiView & lv); -class ControlSendto; +private Q_SLOTS: + void changed_adaptor(); + void slotFormatHighlighted(QListWidgetItem *) {} + void slotFormatSelected(QListWidgetItem *) {} -/** This class provides a Qt implementation of the Custom Export Dialog. - */ -class GuiSendto - : public QController > -{ -public: - /// - friend class GuiSendtoDialog; - /// - GuiSendto(Dialog &); -protected: - virtual bool isValid(); private: + /// + bool isValid(); /// Apply from dialog - virtual void apply(); + void applyView(); /// Update the dialog - virtual void update_contents(); - /// Build the dialog - virtual void build_dialog(); + void updateContents(); + /// std::vector all_formats_; + /// + bool initialiseParams(std::string const & data); + /// + void paramsToDialog(Format const * format, QString const & command); + /// + void clearParams() {} + /// + void dispatchParams(); + /// + bool isBufferDependent() const { return true; } + /// + FuncCode getLfun() const { return LFUN_BUFFER_EXPORT_CUSTOM; } + +private: + /// + Format const * format_; + /// + QString command_; }; } // namespace frontend } // namespace lyx -#endif // QSENDTO_H +#endif // GUISENDTO_H