From: Dov Feldstern Date: Sat, 3 Nov 2007 18:07:41 +0000 (+0000) Subject: rename asTextInset -> asInsetText (to conform with asInsetCollapsable, asInsetMath) X-Git-Tag: 1.6.10~7498 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c4d8c85a097bf6558dd680f0378200cc6327479a;p=features.git rename asTextInset -> asInsetText (to conform with asInsetCollapsable, asInsetMath) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21406 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/Cursor.cpp b/src/Cursor.cpp index ac230a15e0..a64381b018 100644 --- a/src/Cursor.cpp +++ b/src/Cursor.cpp @@ -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. diff --git a/src/insets/Inset.h b/src/insets/Inset.h index c38e44e67d..d7fdbd1439 100644 --- a/src/insets/Inset.h +++ b/src/insets/Inset.h @@ -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); /** diff --git a/src/insets/InsetText.h b/src/insets/InsetText.h index 0f32ef062d..f6bb2112a9 100644 --- a/src/insets/InsetText.h +++ b/src/insets/InsetText.h @@ -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; ///