X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetHyperlink.cpp;h=3f1131c4ad3a86cb12a882a909026e5f89e61e52;hb=997f0621c5346bb623cf86713c4fe1be0c941104;hp=88947941860f4ac98504a4edf8b26c971062174a;hpb=10272e474790d25ae9b5f3d272423959422ddfbd;p=lyx.git diff --git a/src/insets/InsetHyperlink.cpp b/src/insets/InsetHyperlink.cpp index 8894794186..3f1131c4ad 100644 --- a/src/insets/InsetHyperlink.cpp +++ b/src/insets/InsetHyperlink.cpp @@ -13,18 +13,16 @@ #include "InsetHyperlink.h" #include "Buffer.h" -#include "DispatchResult.h" -#include "Encoding.h" #include "Format.h" #include "FuncRequest.h" #include "FuncStatus.h" #include "LaTeXFeatures.h" -#include "OutputParams.h" #include "output_docbook.h" #include "output_xhtml.h" #include "xml.h" #include "texstream.h" +#include "support/debug.h" #include "support/docstream.h" #include "support/FileName.h" #include "support/filetools.h" @@ -285,6 +283,13 @@ void InsetHyperlink::validate(LaTeXFeatures & features) const } +pair InsetHyperlink::isWords() const +{ + docstring const label = getParam("name"); + return pair(label.size(), wordCount(label)); +} + + string InsetHyperlink::contextMenuName() const { return "context-hyperlink";