]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcollapsable.h
Translate labels for float:algorithm, float:figure and float:table.
[lyx.git] / src / insets / insetcollapsable.h
index 0e15112f60cdc515358b707935efbfe60cd1475a..e7f496e5f8bd83e4af0dce736c9edc1ad8133e39 100644 (file)
@@ -1,7 +1,7 @@
 // -*- C++ -*-
 /* This file is part of
  * ======================================================
- * 
+ *
  *           LyX, The Document Processor
  *
  *           Copyright 2000-2001 The LyX Team.
@@ -28,7 +28,7 @@ class Paragraph;
 class LyXCursor;
 
 /** A collapsable text inset
-  
+
 */
 class InsetCollapsable : public UpdatableInset {
 public:
@@ -42,7 +42,7 @@ public:
        ///
        static int const TEXT_TO_BOTTOM_OFFSET = 2;
        /// inset is initially collapsed if bool = true
-       InsetCollapsable(bool = false);
+       InsetCollapsable(BufferParams const &, bool = false);
        ///
        InsetCollapsable(InsetCollapsable const & in, bool same_id = false);
        ///
@@ -58,7 +58,7 @@ public:
        ///
        void draw(BufferView *, const LyXFont &, int , float &, bool) const;
        ///
-       void update(BufferView *, LyXFont const &, bool =false); 
+       void update(BufferView *, LyXFont const &, bool =false);
        ///
        void edit(BufferView *, int, int, unsigned int);
        ///
@@ -87,9 +87,9 @@ public:
        ///
        bool updateInsetInInset(BufferView *, Inset *);
        ///
-       unsigned int insetInInsetY();
+       int insetInInsetY() const;
        ///
-       void insetButtonRelease(BufferView *, int, int, int);
+       bool insetButtonRelease(BufferView *, int, int, int);
        ///
        void insetButtonPress(BufferView *, int, int, int);
        ///
@@ -98,16 +98,16 @@ public:
        void insetKeyPress(XKeyEvent *);
        ///
        UpdatableInset::RESULT localDispatch(BufferView *, kb_action,
-                                            string const &);
+                                            string const &);
        ///
        int latex(Buffer const *, std::ostream &,
                  bool fragile, bool free_spc) const;
        ///
-       int ascii(Buffer const *, std::ostream &, int) const { return 0; }
+       int ascii(Buffer const *, std::ostream &, int) const;
        ///
-       int linuxdoc(Buffer const *, std::ostream &) const { return 0; }
+       int linuxdoc(Buffer const *, std::ostream &) const;
        ///
-       int docbook(Buffer const *, std::ostream &) const { return 0; }
+       int docbook(Buffer const *, std::ostream &) const;
        ///
        void validate(LaTeXFeatures & features) const;
        ///
@@ -127,7 +127,7 @@ public:
        UpdatableInset * getFirstLockingInsetOfType(Inset::Code);
        ///
        void setFont(BufferView *, LyXFont const &, bool toggleall = false,
-                 bool selectall = false);
+                bool selectall = false);
        ///
        void setLabel(string const & l) const;
        ///
@@ -188,9 +188,9 @@ public:
        }
        ///
        bool searchForward(BufferView * bv, string const & str,
-                          bool const & cs = true, bool const & mw = false);
+                          bool = true, bool = false);
        bool searchBackward(BufferView * bv, string const & str,
-                           bool const & cs = true, bool const & mw = false);
+                           bool = true, bool = false);
 
 protected:
        ///
@@ -203,7 +203,7 @@ protected:
        void draw_collapsed(Painter & pain, int , float &) const;
        ///
        int getMaxTextWidth(Painter & pain, UpdatableInset const *) const;
-       
+
        ///
        mutable bool collapsed_;
        ///