LibreOffice Module sw (master) 1
proofreadingiterator.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10#ifndef INCLUDED_SW_INC_PROOFREADINGITERATOR_HXX
11#define INCLUDED_SW_INC_PROOFREADINGITERATOR_HXX
12
13#include <sal/config.h>
14
15#include <com/sun/star/uno/Reference.h>
16
17namespace com::sun::star {
18 namespace linguistic2 { class XProofreadingIterator; }
19 namespace uno { class XComponentContext; }
20}
21
22// A simple wrapper around the css.linguistic2.ProofreadingIterator
23// single-instance service. The first time that service implementation gets
24// instantiated it immediately starts a GrammarCheckingIterator thread that
25// eventually needs to be joined (via dispose):
26
28
29css::uno::Reference<css::linguistic2::XProofreadingIterator> get(
30 css::uno::Reference<css::uno::XComponentContext> const & context);
31
32void dispose();
33
34}
35
36#endif
37
38/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)