summaryrefslogtreecommitdiff
path: root/include/vcl/rendercontext
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@libreoffice.org>2023-08-17 17:39:29 +0300
committerخالد حسني <khaled@libreoffice.org>2023-08-24 13:17:49 +0200
commit611694b707eb43e4c0f20b781f6869016a3ba099 (patch)
treeb73b989f25430077088ba467a6b5d4cff2af4440 /include/vcl/rendercontext
parenta21ae72ab208b60bfd284d4630295f06e21c3481 (diff)
vcl: Allow pushing/popping OutputDevice’s RTLEnabled state
Change-Id: Icafdc307c5c9df768f00c3ac0d128936607bf3e6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155794 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@libreoffice.org>
Diffstat (limited to 'include/vcl/rendercontext')
-rw-r--r--include/vcl/rendercontext/State.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/vcl/rendercontext/State.hxx b/include/vcl/rendercontext/State.hxx
index a433dbd8fb05..042eb2deca7a 100644
--- a/include/vcl/rendercontext/State.hxx
+++ b/include/vcl/rendercontext/State.hxx
@@ -53,6 +53,7 @@ enum class PushFlags
TEXTLAYOUTMODE = 0x0800,
TEXTLANGUAGE = 0x1000,
OVERLINECOLOR = 0x2000,
+ RTLENABLED = 0x4000,
ALL = 0xFFFF
};
}
@@ -66,7 +67,7 @@ template <> struct typed_flags<vcl::PushFlags> : is_typed_flags<vcl::PushFlags,
#define PUSH_ALLFONT \
(vcl::PushFlags::TEXTCOLOR | vcl::PushFlags::TEXTFILLCOLOR | vcl::PushFlags::TEXTLINECOLOR \
| vcl::PushFlags::OVERLINECOLOR | vcl::PushFlags::TEXTALIGN | vcl::PushFlags::TEXTLAYOUTMODE \
- | vcl::PushFlags::TEXTLANGUAGE | vcl::PushFlags::FONT)
+ | vcl::PushFlags::TEXTLANGUAGE | vcl::PushFlags::RTLENABLED | vcl::PushFlags::FONT)
namespace vcl::text
{
@@ -114,6 +115,7 @@ struct State
LanguageType meTextLanguage = LANGUAGE_SYSTEM;
PushFlags mnFlags = PushFlags::NONE;
bool mbMapActive = false;
+ bool mbRTLEnabled = false;
};
}