From f69a5ed0d7577eba4ff6e206ef6ae86c9d3fe7f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Thu, 24 Apr 2003 12:16:56 +0000 Subject: [PATCH] support for eqref (fixes #862) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6844 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 5 +++++ src/factory.C | 1 + src/insets/ChangeLog | 5 +++++ src/insets/insetref.C | 11 ++++++----- src/mathed/ref_inset.C | 11 ++++++----- 5 files changed, 23 insertions(+), 10 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index b0969907aa..6e015bef10 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ + +2003-04-24 André Pönitz + + * factory.C: support for eqref + 2003-04-23 Lars Gullik Bjønnes * messages.[Ch]: add missing char diff --git a/src/factory.C b/src/factory.C index 490bd0dabb..0e88c5f7a8 100644 --- a/src/factory.C +++ b/src/factory.C @@ -294,6 +294,7 @@ Inset * readInset(LyXLex & lex, Buffer const & buf) || cmdName == "htmlurl") { inset = new InsetUrl(inscmd); } else if (cmdName == "ref" + || cmdName == "eqref" || cmdName == "pageref" || cmdName == "vref" || cmdName == "vpageref" diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index b94e64e36b..39e07ca371 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,8 @@ + +2003-04-24 André Pönitz + + * insetref.C: support for eqref + 2003-04-16 Lars Gullik Bjønnes * insetert.C (read): use ParagraphList::iterator. diff --git a/src/insets/insetref.C b/src/insets/insetref.C index 022bebd23e..42f57792f0 100644 --- a/src/insets/insetref.C +++ b/src/insets/insetref.C @@ -121,11 +121,12 @@ void InsetRef::validate(LaTeXFeatures & features) const InsetRef::type_info InsetRef::types[] = { - { "ref", N_("Standard"), N_("Ref: ")}, - { "pageref", N_("Page Number"), N_("Page: ")}, - { "vpageref", N_("Textual Page Number"), N_("TextPage: ")}, - { "vref", N_("Standard+Textual Page"), N_("Ref+Text: ")}, - { "prettyref", N_("PrettyRef"), N_("PrettyRef: ")}, + { "ref", N_("Standard"), N_("Ref: ")}, + { "eqref", N_("Equation"), N_("EqRef: ")}, + { "pageref", N_("Page Number"), N_("Page: ")}, + { "vpageref", N_("Textual Page Number"), N_("TextPage: ")}, + { "vref", N_("Standard+Textual Page"), N_("Ref+Text: ")}, + { "prettyref", N_("PrettyRef"), N_("PrettyRef: ")}, { "", "", "" } }; diff --git a/src/mathed/ref_inset.C b/src/mathed/ref_inset.C index abc6a215bb..33e8000d91 100644 --- a/src/mathed/ref_inset.C +++ b/src/mathed/ref_inset.C @@ -143,10 +143,11 @@ dispatch_result RefInset::localDispatch(FuncRequest const & cmd) RefInset::ref_type_info RefInset::types[] = { - { "ref", N_("Standard"), N_("Ref: ")}, - { "pageref", N_("Page Number"), N_("Page: ")}, - { "vpageref", N_("Textual Page Number"), N_("TextPage: ")}, - { "vref", N_("Standard+Textual Page"), N_("Ref+Text: ")}, - { "prettyref", N_("PrettyRef"), N_("PrettyRef: ")}, + { "ref", N_("Standard"), N_("Ref: ")}, + { "eqref", N_("Equation"), N_("EqRef: ")}, + { "pageref", N_("Page Number"), N_("Page: ")}, + { "vpageref", N_("Textual Page Number"), N_("TextPage: ")}, + { "vref", N_("Standard+Textual Page"), N_("Ref+Text: ")}, + { "prettyref", N_("PrettyRef"), N_("PrettyRef: ")}, { "", "", "" } };