]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcaption.h
* BufferParams:
[lyx.git] / src / insets / insetcaption.h
index 0640bea9d69caf13ecb5f2270fd137d19dcb92dd..a3a307644574622d0e9bea78fa2ff86bd12804d9 100644 (file)
@@ -48,28 +48,40 @@ public:
        ///
        virtual void draw(PainterInfo & pi, int x, int y) const;
        ///
+       void drawSelection(PainterInfo & pi, int x, int y) const;
+       ///
        virtual void edit(LCursor & cur, bool left);
        ///
        virtual InsetBase * editXY(LCursor & cur, int x, int y);
        ///
+       bool insetAllowed(InsetBase::Code code) const;
+       ///
        virtual bool getStatus(LCursor & cur, FuncRequest const & cmd, FuncStatus &) const;
        ///
        virtual bool wide() const { return false; }
        ///
-       virtual int latex(Buffer const & buf, odocstream & os,
-                         OutputParams const &) const;
+       int latex(Buffer const & buf, odocstream & os,
+                 OutputParams const &) const;
        ///
        int plaintext(Buffer const & buf, odocstream & os,
-                 OutputParams const & runparams) const;
+                     OutputParams const & runparams) const;
        ///
        int docbook(Buffer const & buf, odocstream & os,
-                   OutputParams const & runparams) const;
+                   OutputParams const & runparams) const;
        ///
        void setCount(int c) { counter_ = c; }
        ///
-       void setLabel(docstring const & label);
+       std::string const & type() const { return type_; }
+       ///
+       void setType(std::string const & type) { type_ = type; }
+       ///
+       void setCustomLabel(docstring const & label);
+       ///
+       void addToToc(TocList &, Buffer const &) const;
 
 private:
+       ///
+       void computeFullLabel() const;
        ///
        virtual std::auto_ptr<InsetBase> doClone() const;
        ///
@@ -77,7 +89,9 @@ private:
        ///
        mutable int labelwidth_;
        ///
-       docstring label_;
+       std::string type_;
+       ///
+       docstring custom_label_;
        ///
        int counter_;
        ///