]> git.lyx.org Git - features.git/commitdiff
Reposition these BufferView access and caching methods, make 'em virtual
authorAngus Leeming <leeming@lyx.org>
Fri, 21 Feb 2003 12:11:53 +0000 (12:11 +0000)
committerAngus Leeming <leeming@lyx.org>
Fri, 21 Feb 2003 12:11:53 +0000 (12:11 +0000)
and give 'em defaults.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6222 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/inset.h
src/insets/updatableinset.h

index 6f9a88106f29ddc434b658226adbf3b53d1e2ea4..9964b61e184e42000c8df51d5398f4c66e959c5c 100644 (file)
@@ -1,4 +1,7 @@
 2003-02-21  Angus Leeming  <leeming@lyx.org>
+       
+       * 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]:
index 3734f691420e4a9dc2a5210d6604ab9a829cae8b..9f865c0c3f607a777d326fadd963b079736d9113 100644 (file)
@@ -337,7 +337,10 @@ public:
         *  defaults to empty.
         */
        virtual void generatePreview() const {}
-
+       ///
+       virtual void cache(BufferView *) const {}
+       ///
+       virtual BufferView * view() const { return 0; }
 
 protected:
        ///
index cae163fe6cf0af54f5fcbf438e6b85ee2e8730d1..192ced8ed83b69f7c27d9e95caa629a8ce83cb4a 100644 (file)
@@ -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 {