X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetText.h;h=41bfa183671f664bef0141244b024ee6246ba447;hb=2777b51c587cb061b3214c670a3cc4b357528e6c;hp=bfaee44241ea5db1b108ce387a5cbf6806d4e7d0;hpb=6fc72a1a1ffc6abb321ce1b7921eed5655302b40;p=lyx.git diff --git a/src/insets/InsetText.h b/src/insets/InsetText.h index bfaee44241..41bfa18367 100644 --- a/src/insets/InsetText.h +++ b/src/insets/InsetText.h @@ -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,