]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetText.h
Use new display() values to remove some inset hardcoding.
[features.git] / src / insets / InsetText.h
index eb52bc81b66020c1e68de411a831d3f6d869a18e..41bfa183671f664bef0141244b024ee6246ba447 100644 (file)
@@ -93,11 +93,11 @@ public:
                WriteEverything = 7
        };
        ///
-       docstring insetAsXHTML(XHTMLStream &, OutputParams const &, 
+       docstring insetAsXHTML(XHTMLStream &, OutputParams const &,
                               XHTMLOptions) const;
        ///
        void validate(LaTeXFeatures & features) const;
-       
+
        /// return the argument(s) only
        void getArgs(otexstream & os, OutputParams const &, bool const post = false) const;
 
@@ -169,7 +169,7 @@ public:
 
        /// Update the counters of this inset and of its contents
        virtual void updateBuffer(ParIterator const &, UpdateType);
-       /// 
+       ///
        void setMacrocontextPositionRecursive(DocIterator const & pos);
        ///
        void toString(odocstream &) const;
@@ -205,7 +205,7 @@ public:
        /// \param prefix: a string that will preced the tooltip,
        /// e.g., "Index: ".
        /// \param len: length of the resulting string
-       /// NOTE This routine is kind of slow. It's fine to use it within the 
+       /// NOTE This routine is kind of slow. It's fine to use it within the
        /// GUI, but definitely do not try to use it in updateBuffer or anything
        /// of that sort. (Note: unnecessary internal copies have been removed
        /// since the previous note. The efficiency would have to be assessed
@@ -223,6 +223,12 @@ public:
        ///
        bool confirmDeletion() const { return !text().empty(); }
 
+       ///
+       bool needsCProtection(bool const maintext = false,
+                             bool const fragile = false) const;
+       ///
+       bool hasCProtectContent(bool const fragile = false) const;
+
 protected:
        ///
        void iterateForToc(DocIterator const & cdit, bool output_active,