diff options
author | Oliver Bolte <obo@openoffice.org> | 2008-03-25 15:41:32 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2008-03-25 15:41:32 +0000 |
commit | 7ec752f9071ff571e7edd0664fb2d0da75b32e67 (patch) | |
tree | d5782cf413f5b1e614b5467e5ff88b563d42a42d /svx | |
parent | 634116c312025981f4abdd57245d0bc9f5f151fa (diff) |
INTEGRATION: CWS tl41_DEV300 (1.19.74); FILE MERGED
2007/08/06 12:00:49 tl 1.19.74.2: #i80286# use multi-pathes for 'Dictionary' and 'Linguistic'
2007/08/06 11:29:05 tl 1.19.74.1: #i80286# use multi-pathes for 'Dictionary' and 'Linguistic'
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/SpellDialog.cxx | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/svx/source/dialog/SpellDialog.cxx b/svx/source/dialog/SpellDialog.cxx index 08a102710d47..1c48ccea878d 100644 --- a/svx/source/dialog/SpellDialog.cxx +++ b/svx/source/dialog/SpellDialog.cxx @@ -4,9 +4,9 @@ * * $RCSfile: SpellDialog.cxx,v $ * - * $Revision: 1.19 $ + * $Revision: 1.20 $ * - * last change: $Author: hr $ $Date: 2007-06-27 16:44:57 $ + * last change: $Author: obo $ $Date: 2008-03-25 16:41:32 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -84,6 +84,9 @@ #ifndef _LINGUISTIC_LNGPROPS_HHX_ #include <linguistic/lngprops.hxx> #endif +#ifndef _LINGUISTIC_MISC_HHX_ +#include <linguistic/misc.hxx> +#endif #ifndef _COMPHELPER_PROCESSFACTORY_HXX_ #include <comphelper/processfactory.hxx> #endif @@ -306,7 +309,7 @@ SpellDialog::~SpellDialog() Reference< XDictionaryList > xDicList( SvxGetDictionaryList() ); if (xDicList.is()) { - SvxSaveDictionaries( xDicList ); + linguistic::SaveDictionaries( xDicList ); } delete aAddToDictMB.GetPopupMenu(); @@ -575,7 +578,7 @@ IMPL_LINK( SpellDialog, ChangeAllHdl, Button *, EMPTYARG ) String aOldWord( aSentenceED.GetErrorText() ); SvxPrepareAutoCorrect( aOldWord, aString ); Reference<XDictionary> aXDictionary( SvxGetChangeAllList(), UNO_QUERY ); - sal_uInt8 nAdded = SvxAddEntryToDic( aXDictionary, + sal_uInt8 nAdded = linguistic::AddEntryToDic( aXDictionary, aOldWord , sal_True, aString, eLang ); @@ -604,7 +607,7 @@ IMPL_LINK( SpellDialog, IgnoreAllHdl, Button *, EMPTYARG ) //in case the error has been changed manually it has to be restored aSentenceED.RestoreCurrentError(); String sErrorText(aSentenceED.GetErrorText()); - sal_uInt8 nAdded = SvxAddEntryToDic( aXDictionary, + sal_uInt8 nAdded = linguistic::AddEntryToDic( aXDictionary, sErrorText, sal_False, ::rtl::OUString(), LANGUAGE_NONE ); if(nAdded == DIC_ERR_NONE) @@ -852,7 +855,7 @@ IMPL_LINK(SpellDialog, AddToDictionaryHdl, MenuButton*, pButton ) { String sTmpTxt( sNewWord ); sal_Bool bNegEntry = xDic->getDictionaryType() == DictionaryType_NEGATIVE; - nAddRes = SvxAddEntryToDic( xDic, sTmpTxt, bNegEntry, + nAddRes = linguistic::AddEntryToDic( xDic, sTmpTxt, bNegEntry, OUString(), LANGUAGE_NONE ); if(nAddRes == DIC_ERR_NONE) |