This fixes, for example, the URL inset, which used to be included here
explicitly when it was a standalone inset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21407
a592a061-630c-0410-9148-
cb99ea01b6c8
if ((inset->lyxCode() == GRAPHICS_CODE
|| inset->lyxCode() == MATH_CODE
- || inset->lyxCode() == HYPERLINK_CODE)
+ || inset->lyxCode() == HYPERLINK_CODE
+ || (inset->asInsetCollapsable()
+ && inset->asInsetCollapsable()->forceLTR()
+ // ERT is an exception, since it doesn't go to output
+ && inset->lyxCode() != ERT_CODE))
&& running_font.isRightToLeft()) {
if (running_font.language()->lang() == "farsi")
os << "\\beginL{}";
virtual bool isFreeSpacing() const { return layout_->freespacing; }
/// Don't eliminate empty paragraphs
virtual bool allowEmpty() const { return layout_->keepempty; }
+ /// Force inset into LTR environment if surroundings are RTL
+ virtual bool forceLTR() const { return layout_->forceltr; }
protected:
///