]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetbase.h
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / insetbase.h
index 03aa357462e38ac31bee59e4b93aef361a752b7d..540f117e3ad10ec6c2f173ec5c9a03d514953c4a 100644 (file)
@@ -114,6 +114,10 @@ public:
        virtual bool editing(BufferView * bv) const;
        ///
        virtual bool showInsetDialog(BufferView *) const { return false; }
+
+       /// draw inset decoration if necessary.
+       /// This can use \c drawMarkers() for example.
+       virtual void drawDecoration(PainterInfo &, int, int) const {}
        /// draw four angular markers
        void drawMarkers(PainterInfo & pi, int x, int y) const;
        /// draw two angular markers
@@ -202,8 +206,7 @@ public:
        virtual int docbook(Buffer const &, odocstream & os,
                OutputParams const &) const;
        /// the string that is passed to the TOC
-       virtual int textString(Buffer const &, odocstream &,
-               OutputParams const &) const { return 0; };
+       virtual void textString(Buffer const &, odocstream &) const {}
 
        /** This enum indicates by which means the inset can be modified:
        - NOT_EDITABLE: the inset's content cannot be modified at all