summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-01-09 12:47:57 +0000
committerMiklos Vajna <vmiklos@collabora.com>2023-10-24 08:31:17 +0200
commitf72013ab3ee05276c8b8ae66e7b051efbded8a26 (patch)
tree9508f69381d96999af5c8c7a26c89a762781399a /starmath
parent86723a88c90ebb9a1845e710f067a9dc4cbc1b62 (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> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158307 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/document.hxx3
-rw-r--r--starmath/source/document.cxx3
2 files changed, 4 insertions, 2 deletions
diff --git a/starmath/inc/document.hxx b/starmath/inc/document.hxx
index 214d9a9ce558..bf9477b30f11 100644
--- a/starmath/inc/document.hxx
+++ b/starmath/inc/document.hxx
@@ -103,7 +103,8 @@ class SM_DLLPUBLIC SmDocShell final : public SfxObjectShell, public SfxListener
virtual void Draw(OutputDevice *pDevice,
const JobSetup & rSetup,
- sal_uInt16 nAspect) override;
+ sal_uInt16 nAspect,
+ bool bOutputForScreen) override;
virtual void FillClass(SvGlobalName* pClassName,
SotClipboardFormatId* pFormat,
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx
index b92c024401d2..e00c3094e4d7 100644
--- a/starmath/source/document.cxx
+++ b/starmath/source/document.cxx
@@ -1137,7 +1137,8 @@ void SmDocShell::SaveSymbols()
void SmDocShell::Draw(OutputDevice *pDevice,
const JobSetup &,
- sal_uInt16 /*nAspect*/)
+ sal_uInt16 /*nAspect*/,
+ bool /*bOutputForScreen*/)
{
pDevice->IntersectClipRegion(GetVisArea());
Point atmppoint;