mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +00:00
canonical clone() also for InsetHyperlink
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24182 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b254178702
commit
668e38191c
@ -12,21 +12,18 @@
|
||||
#ifndef INSET_HYPERLINK_H
|
||||
#define INSET_HYPERLINK_H
|
||||
|
||||
|
||||
#include "InsetCommand.h"
|
||||
|
||||
|
||||
namespace lyx {
|
||||
|
||||
class LaTeXFeatures;
|
||||
|
||||
/** The hyperlink inset
|
||||
*/
|
||||
class InsetHyperlink : public InsetCommand {
|
||||
class InsetHyperlink : public InsetCommand
|
||||
{
|
||||
public:
|
||||
///
|
||||
explicit
|
||||
InsetHyperlink(InsetCommandParams const &);
|
||||
explicit InsetHyperlink(InsetCommandParams const &);
|
||||
///
|
||||
InsetCode lyxCode() const { return HYPERLINK_CODE; }
|
||||
///
|
||||
@ -55,7 +52,7 @@ public:
|
||||
/// Force inset into LTR environment if surroundings are RTL?
|
||||
bool forceLTR() const { return true; }
|
||||
private:
|
||||
Inset * clone() const { return new InsetHyperlink(params()); }
|
||||
Inset * clone() const { return new InsetHyperlink(*this); }
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user