]> git.lyx.org Git - features.git/blobdiff - src/Font.h
Correctly set font decorations for multipar insets
[features.git] / src / Font.h
index 9ec853d53387b4aacc2370ebefa3ea542913c0e2..8a5942864bf24f47b6b42c08685a17eeba3c7661 100644 (file)
@@ -33,7 +33,7 @@ class Font {
 
 public:
        ///
-       explicit Font(FontInfo = sane_font, Language const * l = 0);
+       explicit Font(FontInfo = sane_font, Language const * l = nullptr);
 
        ///
        FontInfo & fontInfo() { return bits_; }
@@ -47,6 +47,8 @@ public:
        bool isVisibleRightToLeft() const;
        ///
        void setLanguage(Language const * l);
+       ///
+       void setProperties(FontInfo const & f);
 
        /// Returns size of font in LaTeX text notation
        std::string const latexSize() const;
@@ -72,10 +74,12 @@ public:
            to this font. Returns number of chars written. Base is the
            font state active now.
        */
-       int latexWriteStartChanges(odocstream &, BufferParams const & bparams,
+       int latexWriteStartChanges(otexstream &, BufferParams const & bparams,
                                   OutputParams const & runparams,
                                   Font const & base,
-                                  Font const & prev) const;
+                                  Font const & prev,
+                                  bool const & non_inherit_inset = false,
+                                  bool const & needs_cprotection = false) const;
 
        /** Writes the tail of the LaTeX needed to change to this font.
            Returns number of chars written. Base is the font state we want
@@ -86,11 +90,12 @@ public:
                                 Font const & base,
                                 Font const & next,
                                 bool & needPar,
-                                bool const & closeLanguage = true) const;
+                                bool const & closeLanguage = true,
+                                bool const & multipar_inset = false) const;
 
 
        /// Build GUI description of font state
-       docstring const stateText(BufferParams * params) const;
+       docstring const stateText(BufferParams * params = nullptr, bool const terse = false) const;
 
        ///
        void validate(LaTeXFeatures & features) const;