diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2018-11-23 08:43:04 +0100 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2018-12-05 14:39:37 +0100 |
commit | a6dc9f3fd18ad69aa041662628f4f923ab3a82f8 (patch) | |
tree | 4c70b5b29c28a70157bdbad3a7163b38a094240e /include/vcl/svapp.hxx | |
parent | 329db5d412cc0d5e0f97cb939b94259679396ead (diff) |
Add interface for software-only bitmap rendering
When SAL_USE_VCLPLUGIN=svp is used, LO is expected to render
output only to bitmaps, without real GUI windows. This adds an
enabler and a getter function to the Application class, so one
can query this information easy as (Enable|Is)BitmapRendering.
This can be used by all VCL plugins, which can't fall back to
the Cairo based SVP plugin, primary OSX and Win.
A working implementation should allow to run all test via SSH.
All window-requiring tests already have to set this requirement
using gb_CppunitTest_use_vcl_non_headless(_with_windows)? and
should be moved to a different make target, or we need some test
harness to handle this correctly, before VCL fails the test.
Change-Id: I4bd4c81122a6686b090fdd93256d4712ac5f05dd
Reviewed-on: https://gerrit.libreoffice.org/64051
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'include/vcl/svapp.hxx')
-rw-r--r-- | include/vcl/svapp.hxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/vcl/svapp.hxx b/include/vcl/svapp.hxx index 6249e3449e6f..c597ba453de3 100644 --- a/include/vcl/svapp.hxx +++ b/include/vcl/svapp.hxx @@ -1218,19 +1218,19 @@ public: /** Enable Console Only mode - Used to disable Mac specific app init that requires an app bundle. + Convenience function to enable headless and bitmap rendering. */ static void EnableConsoleOnly(); - /** Determines if console only mode is enabled. - - Used to see if Mac specific app init has been disabled. + /** Enable software-only bitmap rendering + */ + static void EnableBitmapRendering(); - @returns True if console only mode is on, false if not. + /** Determines if bitmap rendering is enabled - @see EnableConsoleOnly - */ - static bool IsConsoleOnly(); + @return True if bitmap rendering is enabled. + */ + static bool IsBitmapRendering(); ///@} |