summaryrefslogtreecommitdiff
path: root/sd/source/ui/func/fuchar.cxx
diff options
context:
space:
mode:
authorDieter Loeschky <dl@openoffice.org>2001-11-16 09:03:51 +0000
committerDieter Loeschky <dl@openoffice.org>2001-11-16 09:03:51 +0000
commit38f0cf74b75840a14efd662b4c378a6a235ba47d (patch)
tree5be72e7726138a0eaa8c7f2326afb8e0fc6d5a4c /sd/source/ui/func/fuchar.cxx
parent8c3eb6662ef6bf6e4b58a1144236640c39df7a63 (diff)
#94797# Start online spelling if language changed
Diffstat (limited to 'sd/source/ui/func/fuchar.cxx')
-rw-r--r--sd/source/ui/func/fuchar.cxx16
1 files changed, 14 insertions, 2 deletions
diff --git a/sd/source/ui/func/fuchar.cxx b/sd/source/ui/func/fuchar.cxx
index 59963e4ec60a..47a4790318ae 100644
--- a/sd/source/ui/func/fuchar.cxx
+++ b/sd/source/ui/func/fuchar.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: fuchar.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: ka $ $Date: 2000-09-21 16:11:55 $
+ * last change: $Author: dl $ $Date: 2001-11-16 10:03:51 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -145,6 +145,18 @@ FuChar::FuChar(SdViewShell* pViewSh, SdWindow* pWin, SdView* pView,
0 };
pViewShell->GetViewFrame()->GetBindings().Invalidate( SidArray );
+
+ if( pDoc->GetOnlineSpell() )
+ {
+ const SfxPoolItem* pItem;
+ if( SFX_ITEM_SET == pArgs->GetItemState(EE_CHAR_LANGUAGE, FALSE, &pItem ) ||
+ SFX_ITEM_SET == pArgs->GetItemState(EE_CHAR_LANGUAGE_CJK, FALSE, &pItem ) ||
+ SFX_ITEM_SET == pArgs->GetItemState(EE_CHAR_LANGUAGE_CTL, FALSE, &pItem ) )
+ {
+ pDoc->StopOnlineSpelling();
+ pDoc->StartOnlineSpelling();
+ }
+ }
}