From: Vincent van Ravesteijn Date: Wed, 27 Oct 2010 22:34:18 +0000 (+0000) Subject: Remove InsetRef::isLatex. This no longer needed as we always can access the Buffer... X-Git-Tag: 2.0.0~2215 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6d82aacf48197c3181652ba72c6ebdc9a539dd57;p=features.git Remove InsetRef::isLatex. This no longer needed as we always can access the Buffer nowadays from the Inset. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35874 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetRef.cpp b/src/insets/InsetRef.cpp index f003090cf1..aa8d628c9a 100644 --- a/src/insets/InsetRef.cpp +++ b/src/insets/InsetRef.cpp @@ -35,12 +35,12 @@ namespace lyx { InsetRef::InsetRef(Buffer * buf, InsetCommandParams const & p) - : InsetCommand(buf, p, "ref"), isLatex(buf->isLatex()) + : InsetCommand(buf, p, "ref") {} InsetRef::InsetRef(InsetRef const & ir) - : InsetCommand(ir), isLatex(ir.isLatex) + : InsetCommand(ir) {} @@ -192,8 +192,8 @@ void InsetRef::updateBuffer(ParIterator const & it, UpdateType) } } label += ref; - - if (!isLatex && !getParam("name").empty()) { + + if (!buffer().isLatex() && !getParam("name").empty()) { label += "||"; label += getParam("name"); } diff --git a/src/insets/InsetRef.h b/src/insets/InsetRef.h index 40ee1ef256..1b3df34f20 100644 --- a/src/insets/InsetRef.h +++ b/src/insets/InsetRef.h @@ -67,6 +67,8 @@ public: void updateBuffer(ParIterator const & it, UpdateType); /// void addToToc(DocIterator const &); + /// + bool forceLTR() const { return true; } //@} /// \name Static public methods obligated for InsetCommand derived classes @@ -97,10 +99,6 @@ private: Inset * clone() const { return new InsetRef(*this); } //@} - /// - bool isLatex; - /// Force inset into LTR environment if surroundings are RTL - bool forceLTR() const { return true; } /// mutable docstring screen_label_; ///