From: Angus Leeming Date: Fri, 21 Feb 2003 12:11:53 +0000 (+0000) Subject: Reposition these BufferView access and caching methods, make 'em virtual X-Git-Tag: 1.6.10~17466 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=12b3e1818eec49eeeecbee3980293a34ff462377;p=features.git Reposition these BufferView access and caching methods, make 'em virtual and give 'em defaults. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6222 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 6f9a88106f..9964b61e18 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,4 +1,7 @@ 2003-02-21 Angus Leeming + + * updatableinset.h (setView, view): remove. + * inset.h (view, cache): to be replaced by these. * insetbib.[Ch]: removed, to be replaced by insetbibitem.[Ch] and insetbibtex.[Ch]: diff --git a/src/insets/inset.h b/src/insets/inset.h index 3734f69142..9f865c0c3f 100644 --- a/src/insets/inset.h +++ b/src/insets/inset.h @@ -337,7 +337,10 @@ public: * defaults to empty. */ virtual void generatePreview() const {} - + /// + virtual void cache(BufferView *) const {} + /// + virtual BufferView * view() const { return 0; } protected: /// diff --git a/src/insets/updatableinset.h b/src/insets/updatableinset.h index cae163fe6c..192ced8ed8 100644 --- a/src/insets/updatableinset.h +++ b/src/insets/updatableinset.h @@ -142,12 +142,6 @@ public: virtual bool searchBackward(BufferView *, string const &, bool = true, bool = false); - - /// - BufferView * view() const; - /// - void setView(BufferView * bv) const; - protected: /// void toggleCursorVisible() const {