office-gobmx/linguistic/source/gciterator.cxx

1336 lines
48 KiB
C++
Raw Normal View History

/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#include "precompiled_linguistic.hxx"
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
#include <com/sun/star/container/XContentEnumerationAccess.hpp>
#include <com/sun/star/container/XEnumeration.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/container/XNameReplace.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/linguistic2/XSupportedLocales.hpp>
2008-12-15 06:01:46 -06:00
#include <com/sun/star/linguistic2/XProofreader.hpp>
#include <com/sun/star/linguistic2/XProofreadingIterator.hpp>
#include <com/sun/star/linguistic2/SingleProofreadingError.hpp>
#include <com/sun/star/linguistic2/ProofreadingResult.hpp>
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
#include <com/sun/star/linguistic2/LinguServiceEvent.hpp>
#include <com/sun/star/linguistic2/LinguServiceEventFlags.hpp>
#include <com/sun/star/registry/XRegistryKey.hpp>
#include <com/sun/star/text/TextMarkupType.hpp>
2008-12-15 06:01:46 -06:00
#include <com/sun/star/text/TextMarkupDescriptor.hpp>
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
#include <com/sun/star/text/XTextMarkup.hpp>
2008-12-15 06:01:46 -06:00
#include <com/sun/star/text/XMultiTextMarkup.hpp>
#include <com/sun/star/text/XFlatParagraph.hpp>
#include <com/sun/star/text/XFlatParagraphIterator.hpp>
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/lang/XSingleComponentFactory.hpp>
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
#include <sal/config.h>
#include <osl/conditn.hxx>
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
#include <osl/thread.hxx>
#include <cppuhelper/implbase4.hxx>
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
#include <cppuhelper/implementationentry.hxx>
#include <cppuhelper/interfacecontainer.h>
#include <cppuhelper/extract.hxx>
#include <cppuhelper/factory.hxx>
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
#include <i18npool/mslangid.hxx>
#include <unotools/processfactory.hxx>
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
#include <deque>
#include <map>
#include <vector>
#include "linguistic/misc.hxx"
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
#include "defs.hxx"
#include "lngopt.hxx"
#include "gciterator.hxx"
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
using ::rtl::OUString;
2008-12-15 06:01:46 -06:00
using namespace linguistic;
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
using namespace ::com::sun::star;
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
// forward declarations
static ::rtl::OUString GrammarCheckingIterator_getImplementationName() throw();
static uno::Sequence< OUString > GrammarCheckingIterator_getSupportedServiceNames() throw();
2008-12-15 06:01:46 -06:00
//////////////////////////////////////////////////////////////////////
// white space list: obtained from the fonts.config.txt of a Linux system.
static sal_Unicode aWhiteSpaces[] =
{
0x0020, /* SPACE */
0x00a0, /* NO-BREAK SPACE */
0x00ad, /* SOFT HYPHEN */
0x115f, /* HANGUL CHOSEONG FILLER */
0x1160, /* HANGUL JUNGSEONG FILLER */
0x1680, /* OGHAM SPACE MARK */
0x2000, /* EN QUAD */
0x2001, /* EM QUAD */
0x2002, /* EN SPACE */
0x2003, /* EM SPACE */
0x2004, /* THREE-PER-EM SPACE */
0x2005, /* FOUR-PER-EM SPACE */
0x2006, /* SIX-PER-EM SPACE */
0x2007, /* FIGURE SPACE */
0x2008, /* PUNCTUATION SPACE */
0x2009, /* THIN SPACE */
0x200a, /* HAIR SPACE */
0x200b, /* ZERO WIDTH SPACE */
0x200c, /* ZERO WIDTH NON-JOINER */
0x200d, /* ZERO WIDTH JOINER */
0x200e, /* LEFT-TO-RIGHT MARK */
0x200f, /* RIGHT-TO-LEFT MARK */
0x2028, /* LINE SEPARATOR */
0x2029, /* PARAGRAPH SEPARATOR */
0x202a, /* LEFT-TO-RIGHT EMBEDDING */
0x202b, /* RIGHT-TO-LEFT EMBEDDING */
0x202c, /* POP DIRECTIONAL FORMATTING */
0x202d, /* LEFT-TO-RIGHT OVERRIDE */
0x202e, /* RIGHT-TO-LEFT OVERRIDE */
0x202f, /* NARROW NO-BREAK SPACE */
0x205f, /* MEDIUM MATHEMATICAL SPACE */
0x2060, /* WORD JOINER */
0x2061, /* FUNCTION APPLICATION */
0x2062, /* INVISIBLE TIMES */
0x2063, /* INVISIBLE SEPARATOR */
0x206A, /* INHIBIT SYMMETRIC SWAPPING */
0x206B, /* ACTIVATE SYMMETRIC SWAPPING */
0x206C, /* INHIBIT ARABIC FORM SHAPING */
0x206D, /* ACTIVATE ARABIC FORM SHAPING */
0x206E, /* NATIONAL DIGIT SHAPES */
0x206F, /* NOMINAL DIGIT SHAPES */
0x3000, /* IDEOGRAPHIC SPACE */
0x3164, /* HANGUL FILLER */
0xfeff, /* ZERO WIDTH NO-BREAK SPACE */
0xffa0, /* HALFWIDTH HANGUL FILLER */
0xfff9, /* INTERLINEAR ANNOTATION ANCHOR */
0xfffa, /* INTERLINEAR ANNOTATION SEPARATOR */
0xfffb /* INTERLINEAR ANNOTATION TERMINATOR */
};
static int nWhiteSpaces = sizeof( aWhiteSpaces ) / sizeof( aWhiteSpaces[0] );
static bool lcl_IsWhiteSpace( sal_Unicode cChar )
{
bool bFound = false;
for (int i = 0; i < nWhiteSpaces && !bFound; ++i)
{
if (cChar == aWhiteSpaces[i])
bFound = true;
}
return bFound;
}
static sal_Int32 lcl_SkipWhiteSpaces( const OUString &rText, sal_Int32 nStartPos )
{
// note having nStartPos point right behind the string is OK since that one
// is a correct end-of-sentence position to be returned from a grammar checker...
const sal_Int32 nLen = rText.getLength();
bool bIllegalArgument = false;
if (nStartPos < 0)
{
bIllegalArgument = true;
nStartPos = 0;
}
if (nStartPos > nLen)
{
bIllegalArgument = true;
nStartPos = nLen;
}
if (bIllegalArgument)
{
DBG_ASSERT( 0, "lcl_SkipWhiteSpaces: illegal arguments" );
}
sal_Int32 nRes = nStartPos;
if (0 <= nStartPos && nStartPos < nLen)
{
const sal_Unicode *pText = rText.getStr() + nStartPos;
while (nStartPos < nLen && lcl_IsWhiteSpace( *pText ))
++pText;
nRes = pText - rText.getStr();
}
DBG_ASSERT( 0 <= nRes && nRes <= nLen, "lcl_SkipWhiteSpaces return value out of range" );
return nRes;
}
static sal_Int32 lcl_BacktraceWhiteSpaces( const OUString &rText, sal_Int32 nStartPos )
{
// note: having nStartPos point right behind the string is OK since that one
2008-12-15 06:01:46 -06:00
// is a correct end-of-sentence position to be returned from a grammar checker...
const sal_Int32 nLen = rText.getLength();
bool bIllegalArgument = false;
if (nStartPos < 0)
{
bIllegalArgument = true;
nStartPos = 0;
}
if (nStartPos > nLen)
{
bIllegalArgument = true;
nStartPos = nLen;
}
if (bIllegalArgument)
{
DBG_ASSERT( 0, "lcl_BacktraceWhiteSpaces: illegal arguments" );
}
sal_Int32 nRes = nStartPos;
sal_Int32 nPosBefore = nStartPos - 1;
const sal_Unicode *pStart = rText.getStr();
if (0 <= nPosBefore && nPosBefore < nLen && lcl_IsWhiteSpace( pStart[ nPosBefore ] ))
{
nStartPos = nPosBefore;
if (0 <= nStartPos && nStartPos < nLen)
{
const sal_Unicode *pText = rText.getStr() + nStartPos;
while (pText > pStart && lcl_IsWhiteSpace( *pText ))
--pText;
// now add 1 since we want to point to the first char after the last char in the sentence...
nRes = pText - pStart + 1;
}
2008-12-15 06:01:46 -06:00
}
DBG_ASSERT( 0 <= nRes && nRes <= nLen, "lcl_BacktraceWhiteSpaces return value out of range" );
return nRes;
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
//////////////////////////////////////////////////////////////////////
extern "C" void workerfunc (void * gci)
{
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
((GrammarCheckingIterator*)gci)->DequeueAndCheck();
}
static lang::Locale lcl_GetPrimaryLanguageOfSentence(
uno::Reference< text::XFlatParagraph > xFlatPara,
sal_Int32 nStartIndex )
{
//get the language of the first word
return xFlatPara->getLanguageOfText( nStartIndex, 1 );
}
//////////////////////////////////////////////////////////////////////
/*
class MyThread : punlic osl::Thread
{
void run ()
{
DequeueAndCheck();
}
void own_terminate ()
{
m_bEnd = true;
wait (3000);
terminate ();
}
}
MyThread m_aQueue;
vois startGrammarChecking()
{
if (!m_aQueue.isRunning ())
m_aQueue.create ();
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
void stopGrammarChecking ()
{
if (m_aQueue.isRunning ())
m_aQueue.own_terminate ();
}
*/
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
GrammarCheckingIterator::GrammarCheckingIterator( const uno::Reference< lang::XMultiServiceFactory > & rxMgr ) :
m_xMSF( rxMgr ),
m_bEnd( sal_False ),
2008-12-15 06:01:46 -06:00
m_aCurCheckedDocId(),
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
m_bGCServicesChecked( sal_False ),
m_nDocIdCounter( 0 ),
m_nLastEndOfSentencePos( -1 ),
2008-12-15 06:01:46 -06:00
m_aEventListeners( MyMutex::get() ),
m_aNotifyListeners( MyMutex::get() )
{
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
osl_createThread( workerfunc, this );
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
GrammarCheckingIterator::~GrammarCheckingIterator()
{
2008-12-15 06:01:46 -06:00
::osl::Guard< ::osl::Mutex > aGuard( MyMutex::get() );
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
sal_Int32 GrammarCheckingIterator::NextDocId()
{
2008-12-15 06:01:46 -06:00
::osl::Guard< ::osl::Mutex > aGuard( MyMutex::get() );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
m_nDocIdCounter += 1;
return m_nDocIdCounter;
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
2008-12-15 06:01:46 -06:00
OUString GrammarCheckingIterator::GetOrCreateDocId(
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
const uno::Reference< lang::XComponent > &xComponent )
{
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
// internal method; will always be called with locked mutex
2008-12-15 06:01:46 -06:00
OUString aRes;
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
if (xComponent.is())
{
2008-12-15 06:01:46 -06:00
if (m_aDocIdMap.find( xComponent.get() ) != m_aDocIdMap.end())
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
{
2008-12-15 06:01:46 -06:00
// return already existing entry
aRes = m_aDocIdMap[ xComponent.get() ];
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
}
2008-12-15 06:01:46 -06:00
else // add new entry
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
{
2008-12-15 06:01:46 -06:00
sal_Int32 nRes = NextDocId();
aRes = OUString::valueOf( nRes );
m_aDocIdMap[ xComponent.get() ] = aRes;
xComponent->addEventListener( this );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
}
}
2008-12-15 06:01:46 -06:00
return aRes;
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
void GrammarCheckingIterator::AddEntry(
uno::WeakReference< text::XFlatParagraphIterator > xFlatParaIterator,
uno::WeakReference< text::XFlatParagraph > xFlatPara,
2008-12-15 06:01:46 -06:00
const OUString & rDocId,
sal_Int32 nStartIndex,
sal_Bool bAutomatic )
{
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
// we may not need/have a xFlatParaIterator (e.g. if checkGrammarAtPos was called)
// but we always need a xFlatPara...
uno::Reference< text::XFlatParagraph > xPara( xFlatPara );
if (xPara.is())
{
FPEntry aNewFPEntry;
aNewFPEntry.m_xParaIterator = xFlatParaIterator;
aNewFPEntry.m_xPara = xFlatPara;
2008-12-15 06:01:46 -06:00
aNewFPEntry.m_aDocId = rDocId;
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
aNewFPEntry.m_nStartIndex = nStartIndex;
aNewFPEntry.m_bAutomatic = bAutomatic;
// add new entry to the end of this queue
2008-12-15 06:01:46 -06:00
::osl::Guard< ::osl::Mutex > aGuard( MyMutex::get() );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
m_aFPEntriesQueue.push_back( aNewFPEntry );
// wake up the thread in order to do grammar checking
m_aWakeUpThread.set();
}
}
void GrammarCheckingIterator::ProcessResult(
2008-12-15 06:01:46 -06:00
const linguistic2::ProofreadingResult &rRes,
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
const uno::Reference< text::XFlatParagraphIterator > &rxFlatParagraphIterator,
bool bIsAutomaticChecking )
{
DBG_ASSERT( rRes.xFlatParagraph.is(), "xFlatParagraph is missing" );
2008-12-15 06:01:46 -06:00
//no guard necessary as no members are used
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
sal_Bool bContinueWithNextPara = sal_False;
if (!rRes.xFlatParagraph.is() || rRes.xFlatParagraph->isModified())
{
// if paragraph was modified/deleted meanwhile continue with the next one...
bContinueWithNextPara = sal_True;
}
else // paragraph is still unchanged...
{
2008-12-15 06:01:46 -06:00
//
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
// mark found errors...
2008-12-15 06:01:46 -06:00
//
sal_Int32 nTextLen = rRes.aText.getLength();
bool bBoundariesOk = 0 <= rRes.nStartOfSentencePosition && rRes.nStartOfSentencePosition <= nTextLen &&
0 <= rRes.nBehindEndOfSentencePosition && rRes.nBehindEndOfSentencePosition <= nTextLen &&
0 <= rRes.nStartOfNextSentencePosition && rRes.nStartOfNextSentencePosition <= nTextLen &&
rRes.nStartOfSentencePosition <= rRes.nBehindEndOfSentencePosition &&
rRes.nBehindEndOfSentencePosition <= rRes.nStartOfNextSentencePosition;
(void) bBoundariesOk;
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
DBG_ASSERT( bBoundariesOk, "inconsistent sentence boundaries" );
2008-12-15 06:01:46 -06:00
uno::Sequence< linguistic2::SingleProofreadingError > aErrors = rRes.aErrors;
uno::Reference< text::XMultiTextMarkup > xMulti( rRes.xFlatParagraph, uno::UNO_QUERY );
if (xMulti.is()) // use new API for markups
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
{
2008-12-15 06:01:46 -06:00
try
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
{
2008-12-15 06:01:46 -06:00
// length = number of found errors + 1 sentence markup
sal_Int32 nErrors = rRes.aErrors.getLength();
uno::Sequence< text::TextMarkupDescriptor > aDescriptors( nErrors + 1 );
text::TextMarkupDescriptor * pDescriptors = aDescriptors.getArray();
2008-12-15 06:01:46 -06:00
// at pos 0 .. nErrors-1 -> all grammar errors
for (sal_Int32 i = 0; i < nErrors; ++i)
{
const linguistic2::SingleProofreadingError &rError = rRes.aErrors[i];
text::TextMarkupDescriptor &rDesc = aDescriptors[i];
rDesc.nType = rError.nErrorType;
rDesc.nOffset = rError.nErrorStart;
rDesc.nLength = rError.nErrorLength;
// the proofreader may return SPELLING but right now our core
// does only handle PROOFREADING if the result is from the proofreader...
// (later on we may wish to color spelling errors found by the proofreader
// differently for example. But no special handling right now.
if (rDesc.nType == text::TextMarkupType::SPELLCHECK)
rDesc.nType = text::TextMarkupType::PROOFREADING;
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
2008-12-15 06:01:46 -06:00
// at pos nErrors -> sentence markup
// nSentenceLength: includes the white-spaces following the sentence end...
const sal_Int32 nSentenceLength = rRes.nStartOfNextSentencePosition - rRes.nStartOfSentencePosition;
pDescriptors[ nErrors ].nType = text::TextMarkupType::SENTENCE;
pDescriptors[ nErrors ].nOffset = rRes.nStartOfSentencePosition;
pDescriptors[ nErrors ].nLength = nSentenceLength;
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
2008-12-15 06:01:46 -06:00
xMulti->commitMultiTextMarkup( aDescriptors ) ;
}
catch (lang::IllegalArgumentException &)
{
DBG_ERROR( "commitMultiTextMarkup: IllegalArgumentException exception caught" );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
}
}
// other sentences left to be checked in this paragraph?
2008-12-15 06:01:46 -06:00
if (rRes.nStartOfNextSentencePosition < rRes.aText.getLength())
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
{
2008-12-15 06:01:46 -06:00
AddEntry( rxFlatParagraphIterator, rRes.xFlatParagraph, rRes.aDocumentIdentifier, rRes.nStartOfNextSentencePosition, bIsAutomaticChecking );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
}
else // current paragraph finished
{
// set "already checked" flag for the current flat paragraph
if (rRes.xFlatParagraph.is())
2008-12-15 06:01:46 -06:00
rRes.xFlatParagraph->setChecked( text::TextMarkupType::PROOFREADING, true );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
bContinueWithNextPara = sal_True;
}
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
if (bContinueWithNextPara)
{
// we need to continue with the next paragraph
uno::Reference< text::XFlatParagraph > xFlatParaNext;
if (rxFlatParagraphIterator.is())
xFlatParaNext = rxFlatParagraphIterator->getNextPara();
{
2008-12-15 06:01:46 -06:00
AddEntry( rxFlatParagraphIterator, xFlatParaNext, rRes.aDocumentIdentifier, 0, bIsAutomaticChecking );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
}
}
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
2008-12-15 06:01:46 -06:00
uno::Reference< linguistic2::XProofreader > GrammarCheckingIterator::GetGrammarChecker(
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
const lang::Locale &rLocale )
{
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
(void) rLocale;
2008-12-15 06:01:46 -06:00
uno::Reference< linguistic2::XProofreader > xRes;
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
// ---- THREAD SAFE START ----
2008-12-15 06:01:46 -06:00
::osl::Guard< ::osl::Mutex > aGuard( MyMutex::get() );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
// check supported locales for each grammarchecker if not already done
if (!m_bGCServicesChecked)
{
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
//GetAvailableGCSvcs_Impl();
2008-12-15 06:01:46 -06:00
GetConfiguredGCSvcs_Impl();
//GetMatchingGCSvcs_Impl();
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
m_bGCServicesChecked = sal_True;
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
const LanguageType nLang = MsLangId::convertLocaleToLanguage( rLocale );
GCImplNames_t::const_iterator aLangIt( m_aGCImplNamesByLang.find( nLang ) );
if (aLangIt != m_aGCImplNamesByLang.end()) // matching configured language found?
{
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
OUString aSvcImplName( aLangIt->second );
GCReferences_t::const_iterator aImplNameIt( m_aGCReferencesByService.find( aSvcImplName ) );
if (aImplNameIt != m_aGCReferencesByService.end()) // matching impl name found?
{
xRes = aImplNameIt->second;
}
else // the service is to be instatiated here for the first time...
{
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
try
{
uno::Reference< lang::XMultiServiceFactory > xMgr(
utl::getProcessServiceFactory(), uno::UNO_QUERY_THROW );
2008-12-15 06:01:46 -06:00
uno::Reference< linguistic2::XProofreader > xGC(
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
xMgr->createInstance( aSvcImplName ), uno::UNO_QUERY_THROW );
uno::Reference< linguistic2::XSupportedLocales > xSuppLoc( xGC, uno::UNO_QUERY_THROW );
if (xSuppLoc->hasLocale( rLocale ))
{
m_aGCReferencesByService[ aSvcImplName ] = xGC;
xRes = xGC;
uno::Reference< linguistic2::XLinguServiceEventBroadcaster > xBC( xGC, uno::UNO_QUERY );
if (xBC.is())
xBC->addLinguServiceEventListener( this );
}
else
{
DBG_ASSERT( 0, "grammar checker does not support required locale" );
}
}
catch (uno::Exception &)
{
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
DBG_ASSERT( 0, "instantiating grammar checker failed" );
}
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
}
// ---- THREAD SAFE END ----
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
return xRes;
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
void GrammarCheckingIterator::DequeueAndCheck()
{
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
uno::Sequence< sal_Int32 > aLangPortions;
uno::Sequence< lang::Locale > aLangPortionsLocale;
// ---- THREAD SAFE START ----
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
bool bEnd = false;
{
2008-12-15 06:01:46 -06:00
::osl::Guard< ::osl::Mutex > aGuard( MyMutex::get() );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
bEnd = m_bEnd;
}
// ---- THREAD SAFE END ----
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
while (!bEnd)
{
// ---- THREAD SAFE START ----
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
bool bQueueEmpty = false;
{
2008-12-15 06:01:46 -06:00
::osl::Guard< ::osl::Mutex > aGuard( MyMutex::get() );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
bQueueEmpty = m_aFPEntriesQueue.empty();
}
// ---- THREAD SAFE END ----
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
if (!bQueueEmpty)
{
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
uno::Reference< text::XFlatParagraphIterator > xFPIterator;
uno::Reference< text::XFlatParagraph > xFlatPara;
FPEntry aFPEntryItem;
2008-12-15 06:01:46 -06:00
OUString aCurDocId;
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
sal_Bool bModified = sal_False;
// ---- THREAD SAFE START ----
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
{
2008-12-15 06:01:46 -06:00
::osl::Guard< ::osl::Mutex > aGuard( MyMutex::get() );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
aFPEntryItem = m_aFPEntriesQueue.front();
xFPIterator = aFPEntryItem.m_xParaIterator;
xFlatPara = aFPEntryItem.m_xPara;
2008-12-15 06:01:46 -06:00
m_aCurCheckedDocId = aFPEntryItem.m_aDocId;
aCurDocId = m_aCurCheckedDocId;
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
m_aFPEntriesQueue.pop_front();
}
// ---- THREAD SAFE END ----
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
if (xFlatPara.is() && xFPIterator.is())
{
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
OUString aCurTxt( xFlatPara->getText() );
lang::Locale aCurLocale = lcl_GetPrimaryLanguageOfSentence( xFlatPara, aFPEntryItem.m_nStartIndex );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
bModified = xFlatPara->isModified();
if (!bModified)
{
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
// ---- THREAD SAFE START ----
2008-12-15 06:01:46 -06:00
::osl::ClearableGuard< ::osl::Mutex > aGuard( MyMutex::get() );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
sal_Int32 nStartPos = aFPEntryItem.m_nStartIndex;
sal_Int32 nSuggestedEnd = GetSuggestedEndOfSentence( aCurTxt, nStartPos, aCurLocale );
2009-09-07 05:44:03 -05:00
DBG_ASSERT( (nSuggestedEnd == 0 && aCurTxt.getLength() == 0) || nSuggestedEnd > nStartPos,
"nSuggestedEndOfSentencePos calculation failed?" );
2008-12-15 06:01:46 -06:00
linguistic2::ProofreadingResult aRes;
2008-12-15 06:01:46 -06:00
uno::Reference< linguistic2::XProofreader > xGC( GetGrammarChecker( aCurLocale ), uno::UNO_QUERY );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
if (xGC.is())
{
aGuard.clear();
2008-12-15 06:01:46 -06:00
uno::Sequence< beans::PropertyValue > aEmptyProps;
aRes = xGC->doProofreading( aCurDocId, aCurTxt, aCurLocale, nStartPos, nSuggestedEnd, aEmptyProps );
//!! work-around to prevent looping if the grammar checker
//!! failed to properly identify the sentence end
if (aRes.nBehindEndOfSentencePosition <= nStartPos)
{
DBG_ASSERT( 0, "!! Grammarchecker failed to provide end of sentence !!" );
aRes.nBehindEndOfSentencePosition = nSuggestedEnd;
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
aRes.xFlatParagraph = xFlatPara;
2008-12-15 06:01:46 -06:00
aRes.nStartOfSentencePosition = nStartPos;
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
}
else
{
// no grammar checker -> no error
// but we need to provide the data below in order to continue with the next sentence
2008-12-15 06:01:46 -06:00
aRes.aDocumentIdentifier = aCurDocId;
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
aRes.xFlatParagraph = xFlatPara;
aRes.aText = aCurTxt;
aRes.aLocale = aCurLocale;
2008-12-15 06:01:46 -06:00
aRes.nStartOfSentencePosition = nStartPos;
aRes.nBehindEndOfSentencePosition = nSuggestedEnd;
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
}
2008-12-15 06:01:46 -06:00
aRes.nStartOfNextSentencePosition = lcl_SkipWhiteSpaces( aCurTxt, aRes.nBehindEndOfSentencePosition );
aRes.nBehindEndOfSentencePosition = lcl_BacktraceWhiteSpaces( aCurTxt, aRes.nStartOfNextSentencePosition );
//guard has to be cleared as ProcessResult calls out of this class
aGuard.clear();
ProcessResult( aRes, xFPIterator, aFPEntryItem.m_bAutomatic );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
// ---- THREAD SAFE END ----
}
else
{
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
// the paragraph changed meanwhile... (and maybe is still edited)
// thus we simply continue to ask for the next to be checked.
uno::Reference< text::XFlatParagraph > xFlatParaNext( xFPIterator->getNextPara() );
2008-12-15 06:01:46 -06:00
AddEntry( xFPIterator, xFlatParaNext, aCurDocId, 0, aFPEntryItem.m_bAutomatic );
}
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
// ---- THREAD SAFE START ----
{
2008-12-15 06:01:46 -06:00
::osl::Guard< ::osl::Mutex > aGuard( MyMutex::get() );
m_aCurCheckedDocId = OUString();
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
}
// ---- THREAD SAFE END ----
}
else
{
// ---- THREAD SAFE START ----
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
{
2008-12-15 06:01:46 -06:00
::osl::Guard< ::osl::Mutex > aGuard( MyMutex::get() );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
// Check queue state again
if (m_aFPEntriesQueue.empty())
m_aWakeUpThread.reset();
}
// ---- THREAD SAFE END ----
//if the queue is empty
// IMPORTANT: Don't call condition.wait() with locked
// mutex. Otherwise you would keep out other threads
// to add entries to the queue! A condition is thread-
// safe implemented.
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
m_aWakeUpThread.wait();
}
// ---- THREAD SAFE START ----
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
{
2008-12-15 06:01:46 -06:00
::osl::Guard< ::osl::Mutex > aGuard( MyMutex::get() );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
bEnd = m_bEnd;
}
// ---- THREAD SAFE END ----
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
//!! This one must be the very last statement to call in this function !!
m_aRequestEndThread.set();
}
2008-12-15 06:01:46 -06:00
void SAL_CALL GrammarCheckingIterator::startProofreading(
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
const uno::Reference< ::uno::XInterface > & xDoc,
2008-12-15 06:01:46 -06:00
const uno::Reference< text::XFlatParagraphIteratorProvider > & xIteratorProvider )
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
throw (uno::RuntimeException, lang::IllegalArgumentException)
{
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
// get paragraph to start checking with
2008-12-15 06:01:46 -06:00
const bool bAutomatic = true;
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
uno::Reference<text::XFlatParagraphIterator> xFPIterator = xIteratorProvider->getFlatParagraphIterator(
2008-12-15 06:01:46 -06:00
text::TextMarkupType::PROOFREADING, bAutomatic );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
uno::Reference< text::XFlatParagraph > xPara( xFPIterator.is()? xFPIterator->getFirstPara() : NULL );
uno::Reference< lang::XComponent > xComponent( xDoc, uno::UNO_QUERY );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
// ---- THREAD SAFE START ----
2008-12-15 06:01:46 -06:00
::osl::Guard< ::osl::Mutex > aGuard( MyMutex::get() );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
if (xPara.is() && xComponent.is())
{
2008-12-15 06:01:46 -06:00
OUString aDocId = GetOrCreateDocId( xComponent );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
// create new entry and add it to queue
2008-12-15 06:01:46 -06:00
AddEntry( xFPIterator, xPara, aDocId, 0, bAutomatic );
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
// ---- THREAD SAFE END ----
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
2008-12-15 06:01:46 -06:00
linguistic2::ProofreadingResult SAL_CALL GrammarCheckingIterator::checkSentenceAtPosition(
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
const uno::Reference< uno::XInterface >& xDoc,
const uno::Reference< text::XFlatParagraph >& xFlatPara,
const OUString& rText,
const lang::Locale& rLocale,
sal_Int32 nStartOfSentencePos,
sal_Int32 nSuggestedEndOfSentencePos,
sal_Int32 nErrorPosInPara )
throw (lang::IllegalArgumentException, uno::RuntimeException)
{
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
(void) rLocale;
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
// for the context menu...
2008-12-15 06:01:46 -06:00
linguistic2::ProofreadingResult aRes;
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
uno::Reference< lang::XComponent > xComponent( xDoc, uno::UNO_QUERY );
if (xFlatPara.is() && xComponent.is() &&
( nErrorPosInPara < 0 || nErrorPosInPara < rText.getLength()))
{
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
// iterate through paragraph until we find the sentence we are interested in
2008-12-15 06:01:46 -06:00
linguistic2::ProofreadingResult aTmpRes;
sal_Int32 nStartPos = nStartOfSentencePos >= 0 ? nStartOfSentencePos : 0;
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
bool bFound = false;
do
{
lang::Locale aCurLocale = lcl_GetPrimaryLanguageOfSentence( xFlatPara, nStartPos );
sal_Int32 nOldStartOfSentencePos = nStartPos;
2008-12-15 06:01:46 -06:00
uno::Reference< linguistic2::XProofreader > xGC;
OUString aDocId;
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
// ---- THREAD SAFE START ----
{
2008-12-15 06:01:46 -06:00
::osl::ClearableGuard< ::osl::Mutex > aGuard( MyMutex::get() );
aDocId = GetOrCreateDocId( xComponent );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
nSuggestedEndOfSentencePos = GetSuggestedEndOfSentence( rText, nStartPos, aCurLocale );
DBG_ASSERT( nSuggestedEndOfSentencePos > nStartPos, "nSuggestedEndOfSentencePos calculation failed?" );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
xGC = GetGrammarChecker( aCurLocale );
}
// ---- THREAD SAFE START ----
sal_Int32 nEndPos = -1;
if (xGC.is())
{
2008-12-15 06:01:46 -06:00
uno::Sequence< beans::PropertyValue > aEmptyProps;
aTmpRes = xGC->doProofreading( aDocId, rText, aCurLocale, nStartPos, nSuggestedEndOfSentencePos, aEmptyProps );
//!! work-around to prevent looping if the grammar checker
//!! failed to properly identify the sentence end
if (aTmpRes.nBehindEndOfSentencePosition <= nStartPos)
{
DBG_ASSERT( 0, "!! Grammarchecker failed to provide end of sentence !!" );
aTmpRes.nBehindEndOfSentencePosition = nSuggestedEndOfSentencePos;
}
2008-12-15 06:01:46 -06:00
aTmpRes.xFlatParagraph = xFlatPara;
aTmpRes.nStartOfSentencePosition = nStartPos;
nEndPos = aTmpRes.nBehindEndOfSentencePosition;
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
if ((nErrorPosInPara< 0 || nStartPos <= nErrorPosInPara) && nErrorPosInPara < nEndPos)
bFound = true;
}
if (nEndPos == -1) // no result from grammar checker
nEndPos = nSuggestedEndOfSentencePos;
2008-12-15 06:01:46 -06:00
nStartPos = lcl_SkipWhiteSpaces( rText, nEndPos );
aTmpRes.nBehindEndOfSentencePosition = nEndPos;
aTmpRes.nStartOfNextSentencePosition = nStartPos;
aTmpRes.nBehindEndOfSentencePosition = lcl_BacktraceWhiteSpaces( rText, aTmpRes.nStartOfNextSentencePosition );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
// prevent endless loop by forcefully advancing if needs be...
if (nStartPos <= nOldStartOfSentencePos)
{
DBG_ASSERT( 0, "end-of-sentence detection failed?" );
nStartPos = nOldStartOfSentencePos + 1;
}
}
while (!bFound && nStartPos < rText.getLength());
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
if (bFound && !xFlatPara->isModified())
aRes = aTmpRes;
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
return aRes;
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
sal_Int32 GrammarCheckingIterator::GetSuggestedEndOfSentence(
const OUString &rText,
sal_Int32 nSentenceStartPos,
const lang::Locale &rLocale )
{
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
// internal method; will always be called with locked mutex
uno::Reference< i18n::XBreakIterator > xBreakIterator;
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
if (!m_xBreakIterator.is())
{
uno::Reference< lang::XMultiServiceFactory > xMSF = ::comphelper::getProcessServiceFactory();
if ( xMSF.is() )
xBreakIterator = uno::Reference < i18n::XBreakIterator >( xMSF->createInstance(
::rtl::OUString::createFromAscii("com.sun.star.i18n.BreakIterator") ), uno::UNO_QUERY );
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
sal_Int32 nTextLen = rText.getLength();
sal_Int32 nEndPosition = nTextLen;
if (m_xBreakIterator.is())
{
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
sal_Int32 nTmpStartPos = nSentenceStartPos;
do
{
nEndPosition = nTextLen;
if (nTmpStartPos < nTextLen)
nEndPosition = m_xBreakIterator->endOfSentence( rText, nTmpStartPos, rLocale );
2008-12-15 06:01:46 -06:00
if (nEndPosition < 0)
nEndPosition = nTextLen;
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
++nTmpStartPos;
}
while (nEndPosition <= nSentenceStartPos && nEndPosition < nTextLen);
if (nEndPosition > nTextLen)
nEndPosition = nTextLen;
}
return nEndPosition;
}
2008-12-15 06:01:46 -06:00
void SAL_CALL GrammarCheckingIterator::resetIgnoreRules( )
throw (uno::RuntimeException)
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
{
2008-12-15 06:01:46 -06:00
GCReferences_t::iterator aIt( m_aGCReferencesByService.begin() );
while (aIt != m_aGCReferencesByService.end())
{
uno::Reference< linguistic2::XProofreader > xGC( aIt->second );
if (xGC.is())
xGC->resetIgnoreRules();
++aIt;
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
}
2008-12-15 06:01:46 -06:00
sal_Bool SAL_CALL GrammarCheckingIterator::isProofreading(
const uno::Reference< uno::XInterface >& xDoc )
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
throw (uno::RuntimeException)
{
// ---- THREAD SAFE START ----
2008-12-15 06:01:46 -06:00
::osl::Guard< ::osl::Mutex > aGuard( MyMutex::get() );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
sal_Bool bRes = sal_False;
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
uno::Reference< lang::XComponent > xComponent( xDoc, uno::UNO_QUERY );
if (xComponent.is())
{
2008-12-15 06:01:46 -06:00
// if the component was already used in one of the two calls to check text
// i.e. in startGrammarChecking or checkGrammarAtPos it will be found in the
// m_aDocIdMap unless the document already disposed.
// If it is not found then it is not yet being checked (or requested to being checked)
const DocMap_t::const_iterator aIt( m_aDocIdMap.find( xComponent.get() ) );
if (aIt != m_aDocIdMap.end())
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
{
2008-12-15 06:01:46 -06:00
// check in document is checked automatically in the background...
OUString aDocId = aIt->second;
if (m_aCurCheckedDocId.getLength() > 0 && m_aCurCheckedDocId == aDocId)
{
// an entry for that document was dequed and is currently being checked.
bRes = sal_True;
}
else
{
2008-12-15 06:01:46 -06:00
// we need to check if there is an entry for that document in the queue...
// That is the document is going to be checked sooner or later.
sal_Int32 nSize = m_aFPEntriesQueue.size();
for (sal_Int32 i = 0; i < nSize && !bRes; ++i)
{
if (aDocId == m_aFPEntriesQueue[i].m_aDocId)
bRes = sal_True;
}
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
}
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
// ---- THREAD SAFE END ----
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
return bRes;
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
void SAL_CALL GrammarCheckingIterator::processLinguServiceEvent(
const linguistic2::LinguServiceEvent& rLngSvcEvent )
throw (uno::RuntimeException)
{
2008-12-15 06:01:46 -06:00
if (rLngSvcEvent.nEvent == linguistic2::LinguServiceEventFlags::PROOFREAD_AGAIN)
{
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
try
{
2008-12-15 06:01:46 -06:00
uno::Reference< uno::XInterface > xThis( dynamic_cast< XLinguServiceEventBroadcaster * >(this) );
linguistic2::LinguServiceEvent aEvent( xThis, linguistic2::LinguServiceEventFlags::PROOFREAD_AGAIN );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
m_aNotifyListeners.notifyEach(
&linguistic2::XLinguServiceEventListener::processLinguServiceEvent,
aEvent);
}
catch (uno::RuntimeException &)
{
throw;
}
catch (::uno::Exception &rE)
{
(void) rE;
// ignore
DBG_WARNING1("processLinguServiceEvent: exception:\n%s",
OUStringToOString(rE.Message, RTL_TEXTENCODING_UTF8).getStr());
}
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
sal_Bool SAL_CALL GrammarCheckingIterator::addLinguServiceEventListener(
const uno::Reference< linguistic2::XLinguServiceEventListener >& xListener )
throw (uno::RuntimeException)
{
if (xListener.is())
{
2008-12-15 06:01:46 -06:00
// ::osl::Guard< ::osl::Mutex > aGuard( MyMutex::get() );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
m_aNotifyListeners.addInterface( xListener );
}
return sal_True;
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
sal_Bool SAL_CALL GrammarCheckingIterator::removeLinguServiceEventListener(
const uno::Reference< linguistic2::XLinguServiceEventListener >& xListener )
throw (uno::RuntimeException)
{
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
if (xListener.is())
{
2008-12-15 06:01:46 -06:00
// ::osl::Guard< ::osl::Mutex > aGuard( MyMutex::get() );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
m_aNotifyListeners.removeInterface( xListener );
}
return sal_True;
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
void SAL_CALL GrammarCheckingIterator::dispose()
throw (uno::RuntimeException)
{
2008-12-15 06:01:46 -06:00
lang::EventObject aEvt( (linguistic2::XProofreadingIterator *) this );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
m_aEventListeners.disposeAndClear( aEvt );
//
// now end the thread...
//
m_aRequestEndThread.reset();
// ---- THREAD SAFE START ----
{
2008-12-15 06:01:46 -06:00
::osl::Guard< ::osl::Mutex > aGuard( MyMutex::get() );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
m_bEnd = sal_True;
}
// ---- THREAD SAFE END ----
m_aWakeUpThread.set();
const TimeValue aTime = { 3, 0 }; // wait 3 seconds...
m_aRequestEndThread.wait( &aTime );
// if the call ends because of time-out we will end anyway...
// ---- THREAD SAFE START ----
{
2008-12-15 06:01:46 -06:00
::osl::Guard< ::osl::Mutex > aGuard( MyMutex::get() );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
// releaase all UNO references
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
m_xMSF.clear();
m_xBreakIterator.clear();
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
// clear containers with UNO references AND have those references released
GCReferences_t aTmpEmpty1;
DocMap_t aTmpEmpty2;
FPQueue_t aTmpEmpty3;
m_aGCReferencesByService.swap( aTmpEmpty1 );
m_aDocIdMap.swap( aTmpEmpty2 );
m_aFPEntriesQueue.swap( aTmpEmpty3 );
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
// ---- THREAD SAFE END ----
}
void SAL_CALL GrammarCheckingIterator::addEventListener(
const uno::Reference< lang::XEventListener >& xListener )
throw (uno::RuntimeException)
{
if (xListener.is())
{
2008-12-15 06:01:46 -06:00
// ::osl::Guard< ::osl::Mutex > aGuard( MyMutex::get() );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
m_aEventListeners.addInterface( xListener );
}
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
void SAL_CALL GrammarCheckingIterator::removeEventListener(
const uno::Reference< lang::XEventListener >& xListener )
throw (uno::RuntimeException)
{
if (xListener.is())
{
2008-12-15 06:01:46 -06:00
// ::osl::Guard< ::osl::Mutex > aGuard( MyMutex::get() );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
m_aEventListeners.removeInterface( xListener );
}
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
void SAL_CALL GrammarCheckingIterator::disposing( const lang::EventObject &rSource )
throw (uno::RuntimeException)
{
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
// if the component (document) is disposing release all references
//!! There is no need to remove entries from the queue that are from this document
//!! since the respectives xFlatParagraphs should become invalid (isModified() == true)
//!! and the call to xFlatParagraphIterator->getNextPara() will result in an empty reference.
//!! And if an entry is currently checked by a grammar checker upon return the results
//!! should be ignored.
2008-12-15 06:01:46 -06:00
//!! Also GetOrCreateDocId will not use that very same Id again...
//!! All of the above resulting in that we only have to get rid of the implementation pointer here.
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
uno::Reference< lang::XComponent > xDoc( rSource.Source, uno::UNO_QUERY );
if (xDoc.is())
{
// ---- THREAD SAFE START ----
2008-12-15 06:01:46 -06:00
::osl::Guard< ::osl::Mutex > aGuard( MyMutex::get() );
m_aDocIdMap.erase( xDoc.get() );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
// ---- THREAD SAFE END ----
}
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
uno::Reference< util::XChangesBatch > GrammarCheckingIterator::GetUpdateAccess() const
{
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
if (!m_xUpdateAccess.is())
{
try
{
// get configuration provider
uno::Reference< lang::XMultiServiceFactory > xConfigurationProvider;
uno::Reference< lang::XMultiServiceFactory > xMgr = utl::getProcessServiceFactory();
if (xMgr.is())
{
xConfigurationProvider = uno::Reference< lang::XMultiServiceFactory > (
xMgr->createInstance( OUString( RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.configuration.ConfigurationProvider" ) ) ),
uno::UNO_QUERY_THROW ) ;
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
// get configuration update access
beans::PropertyValue aValue;
aValue.Name = A2OU( "nodepath" );
aValue.Value = uno::makeAny( A2OU("org.openoffice.Office.Linguistic/ServiceManager") );
uno::Sequence< uno::Any > aProps(1);
aProps[0] <<= aValue;
m_xUpdateAccess = uno::Reference< util::XChangesBatch >(
xConfigurationProvider->createInstanceWithArguments(
A2OU( "com.sun.star.configuration.ConfigurationUpdateAccess" ), aProps ),
uno::UNO_QUERY_THROW );
}
catch (uno::Exception &)
{
}
}
return m_xUpdateAccess;
}
2008-12-15 06:01:46 -06:00
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
void GrammarCheckingIterator::GetConfiguredGCSvcs_Impl()
{
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
GCImplNames_t aTmpGCImplNamesByLang;
try
{
// get node names (locale iso strings) for configured grammar checkers
uno::Reference< container::XNameAccess > xNA( GetUpdateAccess(), uno::UNO_QUERY_THROW );
xNA.set( xNA->getByName( A2OU("GrammarCheckerList") ), uno::UNO_QUERY_THROW );
const uno::Sequence< OUString > aElementNames( xNA->getElementNames() );
const OUString *pElementNames = aElementNames.getConstArray();
sal_Int32 nLen = aElementNames.getLength();
for (sal_Int32 i = 0; i < nLen; ++i)
{
uno::Sequence< OUString > aImplNames;
uno::Any aTmp( xNA->getByName( pElementNames[i] ) );
if (aTmp >>= aImplNames)
{
if (aImplNames.getLength() > 0)
{
// only the first entry is used, there should be only one grammar checker per language
const OUString aImplName( aImplNames[0] );
const LanguageType nLang = MsLangId::convertIsoStringToLanguage( pElementNames[i] );
aTmpGCImplNamesByLang[ nLang ] = aImplName;
}
}
else
{
DBG_ASSERT( 0, "failed to get aImplNames. Wrong type?" );
}
}
}
catch (uno::Exception &)
{
DBG_ASSERT( 0, "exception caught. Failed to get configured services" );
}
{
// ---- THREAD SAFE START ----
2008-12-15 06:01:46 -06:00
::osl::Guard< ::osl::Mutex > aGuard( MyMutex::get() );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
m_aGCImplNamesByLang = aTmpGCImplNamesByLang;
// ---- THREAD SAFE END ----
}
}
2008-12-15 06:01:46 -06:00
/*
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
void GrammarCheckingIterator::GetMatchingGCSvcs_Impl()
{
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
GCImplNames_t aTmpGCImplNamesByLang;
try
{
// get node names (locale iso strings) for configured grammar checkers
uno::Reference< container::XNameAccess > xNA( GetUpdateAccess(), uno::UNO_QUERY_THROW );
xNA.set( xNA->getByName( A2OU("GrammarCheckers") ), uno::UNO_QUERY_THROW );
const uno::Sequence< OUString > aGCImplNames( xNA->getElementNames() );
const OUString *pGCImplNames = aGCImplNames.getConstArray();
sal_Int32 nLen = aGCImplNames.getLength();
for (sal_Int32 i = 0; i < nLen; ++i)
{
uno::Reference< container::XNameAccess > xTmpNA( xNA->getByName( pGCImplNames[i] ), uno::UNO_QUERY_THROW );
uno::Any aTmp( xTmpNA->getByName( A2OU("Locales") ) );
uno::Sequence< OUString > aIsoLocaleNames;
if (aTmp >>= aIsoLocaleNames)
{
const OUString *pIsoLocaleNames = aIsoLocaleNames.getConstArray();
for (sal_Int32 k = 0; k < aIsoLocaleNames.getLength(); ++k)
{
// if there are more grammar checkers for one language, for the time being,
// the last one found here will win...
const LanguageType nLang = MsLangId::convertIsoStringToLanguage( pIsoLocaleNames[k] );
aTmpGCImplNamesByLang[ nLang ] = pGCImplNames[i];
}
}
else
{
DBG_ASSERT( 0, "failed to get aImplNames. Wrong type?" );
}
}
}
catch (uno::Exception &)
{
DBG_ASSERT( 0, "exception caught. Failed to get matching grammar checker services" );
}
{
// ---- THREAD SAFE START ----
2008-12-15 06:01:46 -06:00
::osl::Guard< ::osl::Mutex > aGuard( MyMutex::get() );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
m_aGCImplNamesByLang = aTmpGCImplNamesByLang;
// ---- THREAD SAFE END ----
}
}
2008-12-15 06:01:46 -06:00
*/
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
/*
void GrammarCheckingIterator::GetAvailableGCSvcs_Impl()
{
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
// internal method; will always be called with locked mutex
if (m_xMSF.is())
{
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
uno::Reference< container::XContentEnumerationAccess > xEnumAccess( m_xMSF, uno::UNO_QUERY );
uno::Reference< container::XEnumeration > xEnum;
if (xEnumAccess.is())
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
xEnum = xEnumAccess->createContentEnumeration( A2OU( SN_GRAMMARCHECKER ) );
if (xEnum.is())
{
while (xEnum->hasMoreElements())
{
uno::Any aCurrent = xEnum->nextElement();
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
uno::Reference< lang::XSingleComponentFactory > xCompFactory;
uno::Reference< lang::XSingleServiceFactory > xFactory;
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
uno::Reference< uno::XComponentContext > xContext;
uno::Reference< beans::XPropertySet > xProps( m_xMSF, uno::UNO_QUERY );
xProps->getPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "DefaultContext" ))) >>= xContext;
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
if ( xContext.is() &&
(cppu::extractInterface( xCompFactory, aCurrent ) ||
cppu::extractInterface( xFactory, aCurrent )) )
{
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
try
{
2008-12-15 06:01:46 -06:00
uno::Reference< linguistic2::XProofreader > xSvc( ( xCompFactory.is() ? xCompFactory->createInstanceWithContext( xContext ) : xFactory->createInstance() ), uno::UNO_QUERY );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
if (xSvc.is())
{
OUString aImplName;
uno::Reference< XServiceInfo > xInfo( xSvc, uno::UNO_QUERY );
if (xInfo.is())
aImplName = xInfo->getImplementationName();
DBG_ASSERT( aImplName.getLength(), "empty implementation name" );
uno::Reference< linguistic2::XSupportedLocales > xSuppLoc( xSvc, uno::UNO_QUERY );
DBG_ASSERT( xSuppLoc.is(), "interfaces not supported" );
if (xSuppLoc.is() && aImplName.getLength() > 0)
{
uno::Sequence< lang::Locale > aLocaleSequence( xSuppLoc->getLocales() );
// ---- THREAD SAFE START ----
2008-12-15 06:01:46 -06:00
::osl::Guard< ::osl::Mutex > aGuard( MyMutex::get() );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
m_aGCLocalesByService[ aImplName ] = aLocaleSequence;
m_aGCReferencesByService[ aImplName ] = xSvc;
// ---- THREAD SAFE END ----
}
}
}
catch (uno::Exception &)
{
DBG_ASSERT( 0, "instantiating grammar checker failed" );
}
}
}
}
}
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
*/
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
sal_Bool SAL_CALL GrammarCheckingIterator::supportsService(
const OUString & rServiceName )
throw(uno::RuntimeException)
{
uno::Sequence< OUString > aSNL = getSupportedServiceNames();
const OUString * pArray = aSNL.getConstArray();
for( INT32 i = 0; i < aSNL.getLength(); ++i )
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
if( pArray[i] == rServiceName )
return TRUE;
return FALSE;
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
OUString SAL_CALL GrammarCheckingIterator::getImplementationName( ) throw (uno::RuntimeException)
{
return GrammarCheckingIterator_getImplementationName();
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
uno::Sequence< OUString > SAL_CALL GrammarCheckingIterator::getSupportedServiceNames( ) throw (uno::RuntimeException)
{
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
return GrammarCheckingIterator_getSupportedServiceNames();
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
2008-12-15 06:01:46 -06:00
void GrammarCheckingIterator::SetServiceList(
const lang::Locale &rLocale,
const uno::Sequence< OUString > &rSvcImplNames )
{
::osl::Guard< ::osl::Mutex > aGuard( MyMutex::get() );
LanguageType nLanguage = LocaleToLanguage( rLocale );
OUString aImplName;
if (rSvcImplNames.getLength() > 0)
aImplName = rSvcImplNames[0]; // there is only one grammar checker per language
if (nLanguage != LANGUAGE_NONE && nLanguage != LANGUAGE_DONTKNOW)
{
if (aImplName.getLength() > 0)
m_aGCImplNamesByLang[ nLanguage ] = aImplName;
else
m_aGCImplNamesByLang.erase( nLanguage );
}
}
uno::Sequence< OUString > GrammarCheckingIterator::GetServiceList(
const lang::Locale &rLocale ) const
{
::osl::Guard< ::osl::Mutex > aGuard( MyMutex::get() );
uno::Sequence< OUString > aRes(1);
OUString aImplName; // there is only one grammar checker per language
LanguageType nLang = LocaleToLanguage( rLocale );
GCImplNames_t::const_iterator aIt( m_aGCImplNamesByLang.find( nLang ) );
if (aIt != m_aGCImplNamesByLang.end())
aImplName = aIt->second;
if (aImplName.getLength() > 0)
aRes[0] = aImplName;
else
aRes.realloc(0);
return aRes;
}
LinguDispatcher::DspType GrammarCheckingIterator::GetDspType() const
{
return DSP_GRAMMAR;
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
///////////////////////////////////////////////////////////////////////////
static OUString GrammarCheckingIterator_getImplementationName() throw()
{
2008-12-15 06:01:46 -06:00
return A2OU( "com.sun.star.lingu2.ProofreadingIterator" );
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
static uno::Sequence< OUString > GrammarCheckingIterator_getSupportedServiceNames() throw()
{
uno::Sequence< OUString > aSNS( 1 );
2008-12-15 06:01:46 -06:00
aSNS.getArray()[0] = A2OU( SN_GRAMMARCHECKINGITERATOR );
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
return aSNS;
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
static uno::Reference< uno::XInterface > SAL_CALL GrammarCheckingIterator_createInstance(
const uno::Reference< lang::XMultiServiceFactory > & rxSMgr )
throw(uno::Exception)
{
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
return static_cast< ::cppu::OWeakObject * >(new GrammarCheckingIterator( rxSMgr ));
}
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
void * SAL_CALL GrammarCheckingIterator_getFactory(
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
const sal_Char *pImplName,
lang::XMultiServiceFactory *pServiceManager,
void * /*pRegistryKey*/ )
{
void * pRet = 0;
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
if ( !GrammarCheckingIterator_getImplementationName().compareToAscii( pImplName ) )
{
uno::Reference< lang::XSingleServiceFactory > xFactory =
cppu::createOneInstanceFactory(
pServiceManager,
INTEGRATION: CWS tl55 (1.3.8); FILE MERGED 2008/07/01 13:21:19 tl 1.3.8.25: #i85999# grammar checking framework 2008/07/01 13:17:58 tl 1.3.8.24: #i85999# grammar checking framework 2008/07/01 07:51:33 tl 1.3.8.23: #i85999# grammar checking framework 2008/06/30 11:53:11 os 1.3.8.22: #i85999# iteration fixed for dialog access 2008/06/29 11:35:00 tl 1.3.8.21: #i85999# grammar checking framework 2008/06/25 14:13:24 tl 1.3.8.20: #i85999# grammar checking framework 2008/06/25 14:11:42 tl 1.3.8.19: #i85999# grammar checking framework 2008/06/25 07:07:02 tl 1.3.8.18: #i85999# grammar checking framework 2008/06/25 06:30:05 tl 1.3.8.17: #i85999# grammar checking framework 2008/06/24 10:24:13 os 1.3.8.16: #83776# additional locals fixed 2008/06/19 14:55:09 tl 1.3.8.15: #i85999# grammar checking framework 2008/06/16 11:34:42 tl 1.3.8.14: #i85999# grammar checking framework 2008/06/13 15:20:17 tl 1.3.8.13: #i85999# grammart checking framework 2008/06/11 10:40:56 tl 1.3.8.12: #i85999# grammar checking framework 2008/06/11 10:02:16 tl 1.3.8.11: #i85999# grammar checking framework 2008/06/11 09:02:00 tl 1.3.8.10: #i85999# MAC line ends removed 2008/06/11 08:17:41 mba 1.3.8.9: some fixes 2008/06/07 15:24:21 tl 1.3.8.8: #i85999# grammar checking framework 2008/05/31 16:47:55 tl 1.3.8.7: #i85999# grammar checking framework 2008/05/31 12:33:10 tl 1.3.8.6: #i85999# grammar checking framework 2008/05/27 11:17:52 tl 1.3.8.5: #i85999# improve grammar checking framework 2008/05/23 11:00:13 tl 1.3.8.4: #158047# customer specific extension 2008/05/23 05:54:46 tl 1.3.8.3: #158047# customer specific extension 2008/05/22 14:00:59 tl 1.3.8.2: #158047# customer specific extension 2008/05/21 09:59:51 tl 1.3.8.1: #158047# customer specific extension
2008-07-16 07:46:41 -05:00
GrammarCheckingIterator_getImplementationName(),
GrammarCheckingIterator_createInstance,
GrammarCheckingIterator_getSupportedServiceNames());
// acquire, because we return an interface pointer instead of a reference
xFactory->acquire();
pRet = xFactory.get();
}
return pRet;
}