4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
15 #include "GuiDialogView.h"
16 #include "ControlExternal.h"
17 #include "ui_ExternalUi.h"
19 #include <QCloseEvent>
29 class GuiExternalDialog : public QDialog, public Ui::ExternalUi
33 GuiExternalDialog(GuiExternal * form);
37 virtual void bbChanged();
38 virtual void browseClicked();
39 virtual void change_adaptor();
40 virtual void editClicked();
41 virtual void extraChanged(const QString&);
42 virtual void formatChanged(const QString&);
43 virtual void getbbClicked();
44 virtual void sizeChanged();
45 virtual void templateChanged();
46 virtual void widthUnitChanged();
49 virtual void closeEvent(QCloseEvent * e);
51 bool activateAspectratio() const;
56 class GuiExternal : public GuiView<GuiExternalDialog>
59 friend class GuiExternalDialog;
61 GuiExternal(GuiDialog &);
63 ControlExternal & controller()
64 { return static_cast<ControlExternal &>(this->getController()); }
66 ControlExternal const & controller() const
67 { return static_cast<ControlExternal const &>(this->getController()); }
69 typedef std::map<std::string, QString> MapType;
74 virtual void update_contents();
76 virtual void build_dialog();
78 /// Helper function called when the template is changed.
79 void updateTemplate();
80 /// get bounding box from file
86 } // namespace frontend
89 #endif // GUIEXTERNAL_H