summaryrefslogtreecommitdiff
path: root/include/vcl/virdev.hxx
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2014-03-23 18:51:13 +1100
committerChris Sherlock <chris.sherlock79@gmail.com>2014-03-25 12:17:01 +0000
commit977aae0cdec71577cbdc74baea228a5f267e7fd8 (patch)
tree6423514964bef1da9d829c91ba104e08ac68efa5 /include/vcl/virdev.hxx
parentb53ba68b6b4a070ec56d02aaacccc6f649ec9482 (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/virdev.hxx')
-rw-r--r--include/vcl/virdev.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/vcl/virdev.hxx b/include/vcl/virdev.hxx
index 72cc3fe95e84..145179bfa73e 100644
--- a/include/vcl/virdev.hxx
+++ b/include/vcl/virdev.hxx
@@ -113,6 +113,8 @@ public:
virtual ~VirtualDevice();
+ void EnableRTL( bool bEnable = true );
+
bool SetOutputSizePixel( const Size& rNewSize, bool bErase = true );
bool SetOutputSizePixelScaleOffsetAndBuffer( const Size& rNewSize, const Fraction& rScale, const Point& rNewOffset, const basebmp::RawMemorySharedArray &pBuffer );
bool SetOutputSize( const Size& rNewSize, bool bErase = true )