From 29a839cf125a97ade8763a4493b40f764a19fc14 Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Tue, 8 Mar 2005 14:40:59 +0000 Subject: INTEGRATION: CWS calc30 (1.8.186); FILE MERGED 2005/02/14 16:39:46 nn 1.8.186.1: #i42764# ScEditAttrTester: compare items to cell attributes, not pool defaults --- sc/inc/editutil.hxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'sc') diff --git a/sc/inc/editutil.hxx b/sc/inc/editutil.hxx index 0bfb744da8e4..c8b904c492f2 100644 --- a/sc/inc/editutil.hxx +++ b/sc/inc/editutil.hxx @@ -2,9 +2,9 @@ * * $RCSfile: editutil.hxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: hr $ $Date: 2004-09-08 13:41:52 $ + * last change: $Author: vg $ $Date: 2005-03-08 15:40:59 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -98,6 +98,7 @@ class OutputDevice; class ScDocument; class ScPatternAttr; +class ScEditEngineDefaulter; class ScEditUtil { @@ -133,13 +134,13 @@ public: class ScEditAttrTester { - EditEngine* pEngine; + ScEditEngineDefaulter* pEngine; SfxItemSet* pEditAttrs; BOOL bNeedsObject; BOOL bNeedsCellAttr; public: - ScEditAttrTester( EditEngine* pEng ); + ScEditAttrTester( ScEditEngineDefaulter* pEng ); ~ScEditAttrTester(); BOOL NeedsObject() const { return bNeedsObject; } @@ -187,6 +188,9 @@ public: /// The default ItemSet is then applied to each paragraph. void SetDefaultItem( const SfxPoolItem& rItem ); + /// Returns the stored defaults, used to find non-default character attributes + const SfxItemSet& GetDefaults(); + /// Overwritten method to be able to apply defaults already set void SetText( const EditTextObject& rTextObject ); /// Current defaults are not applied, new defaults are applied -- cgit