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
|
|
|
|
2008-04-20 09:24:14 +00:00
|
|
|
#include "GuiDialog.h"
|
2007-10-13 19:06:09 +00:00
|
|
|
#include "ui_HyperlinkUi.h"
|
2006-03-05 17:24:44 +00:00
|
|
|
|
2008-04-20 09:24:14 +00:00
|
|
|
#include "insets/InsetCommandParams.h"
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
2008-04-20 09:24:14 +00:00
|
|
|
class GuiHyperlink : public GuiDialog, 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:
|
2008-04-20 08:19:26 +00:00
|
|
|
/// Constructor
|
2007-11-23 09:44:02 +00:00
|
|
|
GuiHyperlink(GuiView & lv);
|
2007-09-05 20:33:29 +00:00
|
|
|
|
2006-06-30 14:37:33 +00:00
|
|
|
public Q_SLOTS:
|
2006-03-05 17:24:44 +00:00
|
|
|
void changed_adaptor();
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
private:
|
2007-09-05 20:33:29 +00:00
|
|
|
///
|
|
|
|
bool isValid();
|
2007-08-31 22:16:11 +00:00
|
|
|
/// apply dialog
|
2007-09-05 20:33:29 +00:00
|
|
|
void applyView();
|
2007-08-31 22:16:11 +00:00
|
|
|
/// update dialog
|
2008-08-08 15:29:26 +00:00
|
|
|
void updateContents() { };
|
2008-04-20 09:24:14 +00:00
|
|
|
///
|
|
|
|
bool initialiseParams(std::string const & data);
|
2008-08-08 15:29:26 +00:00
|
|
|
///
|
|
|
|
void paramsToDialog(InsetCommandParams const & icp);
|
2008-04-20 09:24:14 +00:00
|
|
|
/// clean-up on hide.
|
|
|
|
void clearParams() { params_.clear(); }
|
|
|
|
/// clean-up on hide.
|
|
|
|
void dispatchParams();
|
|
|
|
///
|
|
|
|
bool isBufferDependent() const { return true; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
///
|
|
|
|
InsetCommandParams params_;
|
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
|