]> git.lyx.org Git - features.git/commitdiff
rename asTextInset -> asInsetText (to conform with asInsetCollapsable, asInsetMath)
authorDov Feldstern <dov@lyx.org>
Sat, 3 Nov 2007 18:07:41 +0000 (18:07 +0000)
committerDov Feldstern <dov@lyx.org>
Sat, 3 Nov 2007 18:07:41 +0000 (18:07 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21406 a592a061-630c-0410-9148-cb99ea01b6c8

src/Cursor.cpp
src/insets/Inset.h
src/insets/InsetText.h

index ac230a15e003cb2ca9ad18163e97f0e583bbce02..a64381b018d2ea694dfa70efefeb0a1bd10645b3 100644 (file)
@@ -1078,7 +1078,7 @@ bool Cursor::upDownInMath(bool up)
        // target
        if (x_target_ == -1)
                setTargetX(xo);
-       else if (inset().asTextInset() && xo - textTargetOffset() != x_target()) {
+       else if (inset().asInsetText() && xo - textTargetOffset() != x_target()) {
                // In text mode inside the line (not left or right) possibly set a new target_x,
                // but only if we are somewhere else than the previous target-offset.
                
index c38e44e67ddb88d39a532d8b3324cdde18652bc1..d7fdbd1439f9f8e454c280736c5decb1cc7b5116 100644 (file)
@@ -34,8 +34,8 @@ class CursorSlice;
 class Dimension;
 class FuncRequest;
 class FuncStatus;
-class InsetIterator;
 class InsetCollapsable;
+class InsetIterator;
 class InsetLayout;
 class InsetList;
 class InsetMath;
@@ -85,15 +85,15 @@ public:
        virtual InsetMath * asInsetMath() { return 0; }
        /// true for 'math' math inset, but not for e.g. mbox
        virtual bool inMathed() const { return false; }
-       /// is this inset based on the TextInset class?
-       virtual InsetText * asTextInset() { return 0; }
-       /// is this inset based on the TextInset class?
-       virtual InsetText const * asTextInset() const { return 0; }
+       /// is this inset based on the InsetText class?
+       virtual InsetText * asInsetText() { return 0; }
+       /// is this inset based on the InsetText class?
+       virtual InsetText const * asInsetText() const { return 0; }
        /// is this inset based on the InsetCollapsable class?
        virtual InsetCollapsable * asInsetCollapsable() { return 0; }
        /// is this inset based on the InsetCollapsable class?
        virtual InsetCollapsable const * asInsetCollapsable() const { return 0; }
-       
+
        /// the real dispatcher
        void dispatch(Cursor & cur, FuncRequest & cmd);
        /**
index 0f32ef062d491912b41e68ff7e1f58b51a50d059..f6bb2112a971abfdf28dc9040437b4662efe9ac0 100644 (file)
@@ -61,9 +61,9 @@ public:
        ///
        bool canTrackChanges() const { return true; }
        ///
-       InsetText * asTextInset() { return this; }
+       InsetText * asInsetText() { return this; }
        ///
-       InsetText const * asTextInset() const { return this; }
+       InsetText const * asInsetText() const { return this; }
        ///
        int latex(Buffer const &, odocstream &, OutputParams const &) const;
        ///