From c4d8c85a097bf6558dd680f0378200cc6327479a Mon Sep 17 00:00:00 2001 From: Dov Feldstern Date: Sat, 3 Nov 2007 18:07:41 +0000 Subject: [PATCH] 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 --- src/Cursor.cpp | 2 +- src/insets/Inset.h | 12 ++++++------ src/insets/InsetText.h | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) 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; /// -- 2.39.2