mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
* 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:
parent
bddf44462d
commit
b3548c1f72
@ -1327,4 +1327,10 @@ void Cursor::fixIfBroken()
|
||||
}
|
||||
|
||||
|
||||
bool Cursor::isRTL() const
|
||||
{
|
||||
return top().paragraph().isRightToLeftPar(bv().buffer()->params());
|
||||
}
|
||||
|
||||
|
||||
} // namespace lyx
|
||||
|
@ -307,6 +307,8 @@ public:
|
||||
Encoding const * getEncoding() const;
|
||||
/// font at cursor position
|
||||
LyXFont getFont() const;
|
||||
///
|
||||
bool isRTL() const;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user