From 823a3289266ad07c528685ea9539bf54a9b1c9e5 Mon Sep 17 00:00:00 2001 From: Niklas Nebel Date: Mon, 21 May 2001 17:19:05 +0000 Subject: #44993# hyphenation in drawing objects --- sc/source/ui/view/drawview.cxx | 6 ++++-- sc/source/ui/view/output3.cxx | 9 +++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) (limited to 'sc/source/ui/view') diff --git a/sc/source/ui/view/drawview.cxx b/sc/source/ui/view/drawview.cxx index cbe3aea4a..c80c8a286 100644 --- a/sc/source/ui/view/drawview.cxx +++ b/sc/source/ui/view/drawview.cxx @@ -2,9 +2,9 @@ * * $RCSfile: drawview.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: nn $ $Date: 2001-05-11 08:37:53 $ + * last change: $Author: nn $ $Date: 2001-05-21 18:17:27 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -284,6 +284,8 @@ void ScDrawView::InvalidateAttribs() rBindings.Invalidate( SID_GRFFILTER_POPART ); rBindings.Invalidate( SID_GRFFILTER_SEPIA ); rBindings.Invalidate( SID_GRFFILTER_SOLARIZE ); + + rBindings.Invalidate( SID_ENABLE_HYPHENATION ); } void ScDrawView::InvalidateDrawTextAttrs() diff --git a/sc/source/ui/view/output3.cxx b/sc/source/ui/view/output3.cxx index 8d6020983..adf7f02e8 100644 --- a/sc/source/ui/view/output3.cxx +++ b/sc/source/ui/view/output3.cxx @@ -2,9 +2,9 @@ * * $RCSfile: output3.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: nn $ $Date: 2001-05-14 08:43:38 $ + * last change: $Author: nn $ $Date: 2001-05-21 18:17:27 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -67,6 +67,7 @@ // INCLUDE --------------------------------------------------------------- +#include #include #include #include @@ -292,6 +293,10 @@ void ScOutputData::DrawSelectiveObjects( USHORT nLayer, const Rectangle& rRect, if (bDraw) { + // set model's hyphenator on demand + if ( ((const SfxBoolItem&)pObject->GetItemSet().Get(EE_PARA_HYPHENATE)).GetValue() ) + pModel->UseHyphenator(); + if (pObject == pEditObj) { aInfoRec.nPaintMode|=SDRPAINTMODE_TEXTEDIT; -- cgit v1.2.3