diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-01-09 12:47:57 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-02-01 19:31:49 +0000 |
commit | 0eaad910442a1bbb0c6a89a8887322ea3d6906e0 (patch) | |
tree | c03fc63172ced9ad29db4022f5008b28ae2d4bca /include/sfx2/objsh.hxx | |
parent | 9274d41bd72c5310491d81c6d8d938e44ed9d223 (diff) |
Resolves: tdf#152845 AutoText preview not readable in high contrast mode
if its a high contrast mode with white text on black background. Reuse
isOutputToWindow to distinguish between the case we are outputting to
screen but not using a vcl::Window (and want to use the appropiate color
for autocolor) vs the cases we are printing or exporting to pdf and not
using a vcl::Window where the color should be black.
Change-Id: Ib688892a6315fe88ba585613539088611d3995ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145234
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/sfx2/objsh.hxx')
-rw-r--r-- | include/sfx2/objsh.hxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/sfx2/objsh.hxx b/include/sfx2/objsh.hxx index b64fa61389bf..e3a5b4a022f1 100644 --- a/include/sfx2/objsh.hxx +++ b/include/sfx2/objsh.hxx @@ -650,9 +650,10 @@ public: void DoDraw( OutputDevice *, const Point & rObjPos, const Size & rSize, const JobSetup & rSetup, - sal_uInt16 nAspect = ASPECT_CONTENT ); + sal_uInt16 nAspect = ASPECT_CONTENT, + bool bOutputForScreen = false ); virtual void Draw( OutputDevice *, const JobSetup & rSetup, - sal_uInt16 nAspect ) = 0; + sal_uInt16 nAspect, bool bOutputForScreen ) = 0; virtual void FillClass( SvGlobalName * pClassName, @@ -717,7 +718,8 @@ public: const Fraction & rScaleX, const Fraction & rScaleY, const JobSetup & rSetup, - sal_uInt16 nAspect ); + sal_uInt16 nAspect, + bool bOutputForScreen ); // Shell Interface SAL_DLLPRIVATE void ExecFile_Impl(SfxRequest &); |