X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInset.h;h=a1c0518a2cc729438e598cc69485fbe44b0db6aa;hb=96dea61f22c04529e726cab36acf0240d41fa778;hp=5a7b32e8d65ea6b919c71abd1408e4f24ebc0923;hpb=546a6a2a310b12fa0d3692cca10920a938f07f9c;p=lyx.git diff --git a/src/insets/Inset.h b/src/insets/Inset.h index 5a7b32e8d6..a1c0518a2c 100644 --- a/src/insets/Inset.h +++ b/src/insets/Inset.h @@ -39,6 +39,7 @@ class Cursor; class CursorSlice; class Dimension; class DocIterator; +class Encoding; class FuncRequest; class FuncStatus; class InsetArgument; @@ -236,7 +237,7 @@ public: /// Don't eliminate empty paragraphs virtual bool allowEmpty() const; /// Force inset into LTR environment if surroundings are RTL - virtual bool forceLTR() const; + virtual bool forceLTR(OutputParams const &) const; /// whether to include this inset in the strings generated for the TOC virtual bool isInToc() const; @@ -417,6 +418,10 @@ public: /// if this inset has paragraphs should they be forced to use a /// local font language switch? virtual bool forceLocalFontSwitch() const { return false; } + /// Does the inset force a specific encoding? + virtual Encoding const * forcedEncoding(Encoding const *, Encoding const *) const + { return 0; } + /// Is the content of this inset part of the output document? virtual bool producesOutput() const { return true; }