diff options
author | Thorsten Behrens <thb@openoffice.org> | 2002-05-29 14:49:18 +0000 |
---|---|---|
committer | Thorsten Behrens <thb@openoffice.org> | 2002-05-29 14:49:18 +0000 |
commit | 1ff5c43cb5b804e1f74610f4c10018faf02c5730 (patch) | |
tree | 848268ba07a2aa0012720e455968b2ae5be716aa /svx/source/unoedit/unofored.cxx | |
parent | bf01d6f49c94c4b67aac97b727a2eaa0a1f187b2 (diff) |
#96948# Forwarder valid only if EE/Outliner in UpdateMode
Diffstat (limited to 'svx/source/unoedit/unofored.cxx')
-rw-r--r-- | svx/source/unoedit/unofored.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/svx/source/unoedit/unofored.cxx b/svx/source/unoedit/unofored.cxx index 4dc490fd1173..f0402bd19760 100644 --- a/svx/source/unoedit/unofored.cxx +++ b/svx/source/unoedit/unofored.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unofored.cxx,v $ * - * $Revision: 1.14 $ + * $Revision: 1.15 $ * - * last change: $Author: thb $ $Date: 2002-04-26 10:27:21 $ + * last change: $Author: thb $ $Date: 2002-05-29 15:49:18 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -189,6 +189,13 @@ void SvxEditEngineForwarder::QuickSetAttribs( const SfxItemSet& rSet, const ESel rEditEngine.QuickSetAttribs( rSet, rSel ); } +BOOL SvxEditEngineForwarder::IsValid() const +{ + // cannot reliably query EditEngine state + // while in the middle of an update + return rEditEngine.GetUpdateMode(); +} + XubString SvxEditEngineForwarder::CalcFieldValue( const SvxFieldItem& rField, USHORT nPara, USHORT nPos, Color*& rpTxtColor, Color*& rpFldColor ) { return rEditEngine.CalcFieldValue( rField, nPara, nPos, rpTxtColor, rpFldColor ); |