diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-03-23 18:51:13 +1100 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-03-25 12:17:01 +0000 |
commit | 977aae0cdec71577cbdc74baea228a5f267e7fd8 (patch) | |
tree | 6423514964bef1da9d829c91ba104e08ac68efa5 /include/vcl/ctrl.hxx | |
parent | b53ba68b6b4a070ec56d02aaacccc6f649ec9482 (diff) |
fdo#74702 Moved EnableRTL() logic to specific classes where appropriate
OutputDevice::EnableRTL() is a bit of a mess. It uses a runtime
variable to see if it is using a VirtualDevice, and it uses a
dynamic_cast to see if the object is a Window or a Control!
I have made it virtual and moved the knowledge of class specific
functionality from OutputDevice to VirtualDevice, Window and Control
as needed. OutputDevice::EnableRTL() functionality is then called.
Also: small formatting change to outdev.hxx, also included a note
that WindowImpl is a pimpl in window.hxx.
Change-Id: I44b66601c4457fb2e0bbc1014fb7acf8f6942f80
Reviewed-on: https://gerrit.libreoffice.org/8721
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'include/vcl/ctrl.hxx')
-rw-r--r-- | include/vcl/ctrl.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/vcl/ctrl.hxx b/include/vcl/ctrl.hxx index 34879707e115..6c00e460d814 100644 --- a/include/vcl/ctrl.hxx +++ b/include/vcl/ctrl.hxx @@ -129,6 +129,8 @@ public: explicit Control( Window* pParent, const ResId& ); virtual ~Control(); + virtual void EnableRTL ( bool bEnable = true ); + virtual void GetFocus(); virtual void LoseFocus(); virtual bool Notify( NotifyEvent& rNEvt ); |