* Cursor::isRTL(): new method that gives the RTL state of the paragraph.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18080 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-04-29 08:29:16 +00:00
parent bddf44462d
commit b3548c1f72
2 changed files with 8 additions and 0 deletions

View File

@ -1327,4 +1327,10 @@ void Cursor::fixIfBroken()
}
bool Cursor::isRTL() const
{
return top().paragraph().isRightToLeftPar(bv().buffer()->params());
}
} // namespace lyx

View File

@ -307,6 +307,8 @@ public:
Encoding const * getEncoding() const;
/// font at cursor position
LyXFont getFont() const;
///
bool isRTL() const;
};