diff options
author | Thomas Lange <tl@openoffice.org> | 2001-03-22 07:31:30 +0000 |
---|---|---|
committer | Thomas Lange <tl@openoffice.org> | 2001-03-22 07:31:30 +0000 |
commit | 9001f29b9d69384416481f75803c006645c9b4f8 (patch) | |
tree | 1ff1cb827e5b06eabd3278d9905c5a6c577c2fb9 | |
parent | 6ca31a07142a7d86d7044ad4b120f306e62ae78a (diff) |
GetLngSvcMgr added to access XLinguServiceManager
-rw-r--r-- | svx/inc/unolingu.hxx | 7 | ||||
-rw-r--r-- | svx/source/editeng/unolingu.cxx | 19 |
2 files changed, 22 insertions, 4 deletions
diff --git a/svx/inc/unolingu.hxx b/svx/inc/unolingu.hxx index 1ca82815dbcc..6e4bd8bf433a 100644 --- a/svx/inc/unolingu.hxx +++ b/svx/inc/unolingu.hxx @@ -2,9 +2,9 @@ * * $RCSfile: unolingu.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: tl $ $Date: 2000-10-27 09:40:58 $ + * last change: $Author: tl $ $Date: 2001-03-22 08:31:09 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -177,6 +177,9 @@ public: ::com::sun::star::beans::XPropertySet > GetLinguPropertySet(); static ::com::sun::star::uno::Reference< + ::com::sun::star::linguistic2::XLinguServiceManager > GetLngSvcMgr(); + + static ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XDictionary1 > GetStandardDic(); static ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XDictionary1 > GetIgnoreAllList(); diff --git a/svx/source/editeng/unolingu.cxx b/svx/source/editeng/unolingu.cxx index c9fbe79df9f2..bae1f3c03f00 100644 --- a/svx/source/editeng/unolingu.cxx +++ b/svx/source/editeng/unolingu.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unolingu.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: tl $ $Date: 2000-12-15 10:19:05 $ + * last change: $Author: tl $ $Date: 2001-03-22 08:31:30 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -230,6 +230,21 @@ static Reference< XLinguServiceManager > GetLngSvcMgr_Impl() } +Reference< XLinguServiceManager > LinguMgr::GetLngSvcMgr() +{ + if (bExiting) + return 0; + + if (!pExitLstnr) + pExitLstnr = new LinguMgrExitLstnr; + + if (!xLngSvcMgr.is()) + xLngSvcMgr = GetLngSvcMgr_Impl(); + + return xLngSvcMgr; +} + + Reference< XSpellChecker1 > LinguMgr::GetSpellChecker() { return xSpell.is() ? xSpell : GetSpell(); |