]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetText.h
Request buffer update rather than do it.
[lyx.git] / src / insets / InsetText.h
index bfaee44241ea5db1b108ce387a5cbf6806d4e7d0..41bfa183671f664bef0141244b024ee6246ba447 100644 (file)
@@ -60,6 +60,8 @@ public:
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
+       /// Drawing background is handled in draw
+       virtual void drawBackground(PainterInfo &, int, int) const {}
        ///
        bool editable() const { return true; }
        ///
@@ -91,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;
 
@@ -167,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;
@@ -203,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
@@ -221,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,