]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcharstyle.h
* BufferParams:
[lyx.git] / src / insets / insetcharstyle.h
index a497a81dbbc203882d382d17e4e7392d8cbad0c0..5966a5de155eb343c35c74223d4a49845632b2e5 100644 (file)
@@ -17,6 +17,9 @@
 #include "lyxtextclass.h"
 
 
+namespace lyx {
+
+
 class InsetCharStyleParams {
 public:
        ///
@@ -57,7 +60,7 @@ public:
        /// (Re-)set the character style parameters from \p cs
        void setDefined(CharStyles::iterator cs);
        ///
-       virtual lyx::docstring const editMessage() const;
+       virtual docstring const editMessage() const;
        ///
        InsetBase::Code lyxCode() const { return InsetBase::CHARSTYLE_CODE; }
        ///
@@ -65,7 +68,7 @@ public:
        ///
        void read(Buffer const & buf, LyXLex & lex);
        ///
-       void metrics(MetricsInfo &, Dimension &) const;
+       bool metrics(MetricsInfo &, Dimension &) const;
        ///
        void draw(PainterInfo &, int, int) const;
        ///
@@ -73,17 +76,16 @@ public:
        ///
        bool forceDefaultParagraphs(idx_type) const { return true; }
        ///
-       int latex(Buffer const &, std::ostream &,
-                 OutputParams const &) const;
+       int latex(Buffer const &, odocstream &,
+                 OutputParams const &) const;
        ///
-       int docbook(Buffer const &, std::ostream &,
-                   OutputParams const &) const;
+       int plaintext(Buffer const &, odocstream &,
+                     OutputParams const &) const;
        ///
-       int plaintext(Buffer const &, lyx::odocstream &,
-                 OutputParams const &) const;
+       int docbook(Buffer const &, odocstream &,
+                   OutputParams const &) const;
        /// the string that is passed to the TOC
-       virtual int textString(Buffer const &, lyx::odocstream &,
-               OutputParams const &) const;
+       virtual void textString(Buffer const &, odocstream &) const;
        ///
        void validate(LaTeXFeatures &) const;
 
@@ -91,7 +93,7 @@ public:
        InsetCharStyleParams const & params() const { return params_; }
 
        /// should paragraph indendation be ommitted in any case?
-       bool neverIndent() const { return true; }
+       bool neverIndent(Buffer const &) const { return true; }
 
 protected:
        InsetCharStyle(InsetCharStyle const &);
@@ -110,4 +112,7 @@ private:
        InsetCharStyleParams params_;
 };
 
+
+} // namespace lyx
+
 #endif