summaryrefslogtreecommitdiff
path: root/sw/inc/viewsh.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-01-09 12:47:57 +0000
committerCaolán McNamara <caolanm@redhat.com>2023-02-01 19:31:49 +0000
commit0eaad910442a1bbb0c6a89a8887322ea3d6906e0 (patch)
treec03fc63172ced9ad29db4022f5008b28ae2d4bca /sw/inc/viewsh.hxx
parent9274d41bd72c5310491d81c6d8d938e44ed9d223 (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 'sw/inc/viewsh.hxx')
-rw-r--r--sw/inc/viewsh.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/inc/viewsh.hxx b/sw/inc/viewsh.hxx
index 1114478ed395..3c8bc31b88c0 100644
--- a/sw/inc/viewsh.hxx
+++ b/sw/inc/viewsh.hxx
@@ -367,7 +367,8 @@ public:
// Printing for OLE 2.0.
static void PrtOle2( SwDoc *pDoc, const SwViewOption *pOpt, const SwPrintData& rOptions,
- vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect );
+ vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect,
+ bool bOutputForScreen );
// Fill temporary doc with selected text for Print or PDF export.
void FillPrtDoc( SwDoc& rPrtDoc, const SfxPrinter* pPrt );