Kaydet (Commit) d4071188 authored tarafından Chris Sherlock's avatar Chris Sherlock Kaydeden (comit) Caolán McNamara

Fix to commit 03568b2e

During a rebase I accidentally removed the VirtualDevice::EnableRTL().
Also taking the opportunity to make the function virtual in window.hxx.

Change-Id: Ic239d8dc131dfcc6b049c30d2fad4d2d12059059
Reviewed-on: https://gerrit.libreoffice.org/8745Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst bc43fc2f
...@@ -113,7 +113,7 @@ public: ...@@ -113,7 +113,7 @@ public:
virtual ~VirtualDevice(); virtual ~VirtualDevice();
void EnableRTL( bool bEnable = true ); virtual void EnableRTL( bool bEnable = true );
bool SetOutputSizePixel( const Size& rNewSize, bool bErase = 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 SetOutputSizePixelScaleOffsetAndBuffer( const Size& rNewSize, const Fraction& rScale, const Point& rNewOffset, const basebmp::RawMemorySharedArray &pBuffer );
......
...@@ -422,6 +422,18 @@ bool VirtualDevice::ImplSetOutputSizePixel( const Size& rNewSize, bool bErase, c ...@@ -422,6 +422,18 @@ bool VirtualDevice::ImplSetOutputSizePixel( const Size& rNewSize, bool bErase, c
return false; return false;
} }
void VirtualDevice::EnableRTL( bool bEnable )
{
// virdevs default to not mirroring, they will only be set to mirroring
// under rare circumstances in the UI, eg the valueset control
// because each virdev has its own SalGraphics we can safely switch the SalGraphics here
// ...hopefully
if( ImplGetGraphics() )
mpGraphics->SetLayout( bEnable ? SAL_LAYOUT_BIDI_RTL : 0 );
OutputDevice::EnableRTL(bEnable);
}
bool VirtualDevice::SetOutputSizePixel( const Size& rNewSize, bool bErase ) bool VirtualDevice::SetOutputSizePixel( const Size& rNewSize, bool bErase )
{ {
return ImplSetOutputSizePixel( rNewSize, bErase, basebmp::RawMemorySharedArray() ); return ImplSetOutputSizePixel( rNewSize, bErase, basebmp::RawMemorySharedArray() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment