]> git.lyx.org Git - features.git/commitdiff
Remove InsetRef::isLatex. This no longer needed as we always can access the Buffer...
authorVincent van Ravesteijn <vfr@lyx.org>
Wed, 27 Oct 2010 22:34:18 +0000 (22:34 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Wed, 27 Oct 2010 22:34:18 +0000 (22:34 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35874 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetRef.cpp
src/insets/InsetRef.h

index f003090cf10bacd0335a7d47435679ce9fd4ea00..aa8d628c9af6cbcee95830bc62812b6b24f62a72 100644 (file)
@@ -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");
        }
index 40ee1ef25639c3e78d6b10b7c17ba6362918a931..1b3df34f20ceb32de34e2c2cc1a9ba5935f2ea6a 100644 (file)
@@ -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_;
        ///