]> git.lyx.org Git - lyx.git/blobdiff - src/Text.h
Fix a copy-paste error introduced in b754fb02
[lyx.git] / src / Text.h
index 60b6130cc4f2ea067d156ad2ec736ef88bc4196c..6068025192dc57f6550c594b42fc2dcf0ade76fc 100644 (file)
@@ -71,7 +71,7 @@ public:
         *  inset that is alowed inside a font change.
         */
        void setInsetFont(BufferView const & bv, pit_type pit, pos_type pos,
-               Font const & font, bool toggleall = false);
+               Font const & font);
 
        /// what you expect when pressing \<enter\> at cursor position
        /// \param inverse_logic if false, the same layout is set for the
@@ -104,8 +104,7 @@ public:
        void setFont(Cursor & cur, Font const &, bool toggleall = false);
        /// Set font from \p begin to \p end and rebreak.
        void setFont(BufferView const & bv, CursorSlice const & begin,
-               CursorSlice const & end, Font const &,
-               bool toggleall = false);
+               CursorSlice const & end, Font const &);
 
        ///
        void toggleFree(Cursor & cur, Font const &, bool toggleall = false);
@@ -129,6 +128,8 @@ public:
        /// of \param os. If \param shorten is true, then we will shorten
        /// \param os to maxlen chars and replace the final three by "...,
        /// if \param os is longer than maxlen chars.
+       /// if \param maxlen is passed as 0, then it is ignored. (In fact,
+       /// it is reset to the maximum value for size_t.)
        void forToc(docstring & os, size_t maxlen, bool shorten = true) const;
 
        /// insert a character at cursor position