4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Asger Alstrup
9 * \author Angus Leeming
11 * Full author contact details are available in file CREDITS.
17 #include "GuiDialog.h"
18 #include "ui_ExternalUi.h"
20 #include "support/types.h"
22 #include "insets/InsetExternal.h"
29 class GuiExternal : public GuiDialog, public Ui::ExternalUi
34 GuiExternal(GuiView & lv);
39 void change_adaptor();
41 void extraChanged(const QString &);
42 void formatChanged(const QString &);
45 void templateChanged();
46 void widthUnitChanged();
50 typedef QHash<QString, QString> MapType;
53 bool activateAspectratio() const;
57 void updateContents();
58 /// Helper function called when the template is changed.
59 void updateTemplate();
60 /// get bounding box from file
66 bool initialiseParams(std::string const & data);
70 void dispatchParams();
72 bool isBufferDependent() const { return true; }
77 QString browse(QString const & input_file,
78 QString const & template_name) const;
80 /// Read the Bounding Box from a eps or ps-file
81 std::string const readBB(std::string const & file);
85 InsetExternalParams params_;
90 } // namespace frontend
93 #endif // GUIEXTERNAL_H