2006-03-05 17:24:44 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
2007-10-13 19:06:09 +00:00
|
|
|
* \file GuiHyperlink.h
|
2006-03-05 17:24:44 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author John Levon
|
2007-10-07 14:19:14 +00:00
|
|
|
* \author Angus Leeming
|
2006-03-05 17:24:44 +00:00
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
2007-10-13 19:06:09 +00:00
|
|
|
#ifndef GUIHYPERLINK_H
|
|
|
|
#define GUIHYPERLINK_H
|
2006-03-05 17:24:44 +00:00
|
|
|
|
2010-10-27 17:02:42 +00:00
|
|
|
#include "InsetParamsWidget.h"
|
2007-10-13 19:06:09 +00:00
|
|
|
#include "ui_HyperlinkUi.h"
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
2010-10-27 17:02:42 +00:00
|
|
|
class GuiHyperlink : public InsetParamsWidget, public Ui::HyperlinkUi
|
2007-08-31 22:16:11 +00:00
|
|
|
{
|
2006-03-05 17:24:44 +00:00
|
|
|
Q_OBJECT
|
2007-09-05 20:33:29 +00:00
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
public:
|
2007-09-05 20:33:29 +00:00
|
|
|
///
|
2010-10-27 17:02:42 +00:00
|
|
|
GuiHyperlink(QWidget * parent = 0);
|
2008-04-20 09:24:14 +00:00
|
|
|
|
|
|
|
private:
|
2010-10-27 17:02:42 +00:00
|
|
|
/// \name InsetParamsWidget inherited methods
|
|
|
|
//@{
|
|
|
|
InsetCode insetCode() const { return HYPERLINK_CODE; }
|
|
|
|
FuncCode creationCode() const { return LFUN_INSET_INSERT; }
|
|
|
|
void paramsToDialog(Inset const *);
|
|
|
|
docstring dialogToParams() const;
|
2015-03-30 12:44:11 +00:00
|
|
|
bool checkWidgets(bool readonly = false) const;
|
2014-02-23 16:20:47 +00:00
|
|
|
bool initialiseParams(std::string const & data);
|
2010-10-27 17:02:42 +00:00
|
|
|
//@}
|
2007-08-31 22:16:11 +00:00
|
|
|
};
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2007-10-13 19:06:09 +00:00
|
|
|
#endif // GUIHYPERLINK_H
|