1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef INCLUDED_I18NPOOL_INC_BREAKITERATOR_CJK_HXX
20 #define INCLUDED_I18NPOOL_INC_BREAKITERATOR_CJK_HXX
22 #include <breakiterator_unicode.hxx>
23 #include <xdictionary.hxx>
25 namespace com
{ namespace sun
{ namespace star
{ namespace i18n
{
27 // class BreakIterator_CJK
29 class BreakIterator_CJK
: public BreakIterator_Unicode
34 Boundary SAL_CALL
nextWord( const OUString
& Text
, sal_Int32 nStartPos
,
35 const css::lang::Locale
& nLocale
, sal_Int16 WordType
)
36 throw(css::uno::RuntimeException
, std::exception
) override
;
37 Boundary SAL_CALL
previousWord( const OUString
& Text
, sal_Int32 nStartPos
,
38 const css::lang::Locale
& nLocale
, sal_Int16 WordType
)
39 throw(css::uno::RuntimeException
, std::exception
) override
;
40 Boundary SAL_CALL
getWordBoundary( const OUString
& Text
, sal_Int32 nPos
,
41 const css::lang::Locale
& nLocale
, sal_Int16 WordType
, sal_Bool bDirection
)
42 throw(css::uno::RuntimeException
, std::exception
) override
;
43 LineBreakResults SAL_CALL
getLineBreak( const OUString
& Text
, sal_Int32 nStartPos
,
44 const css::lang::Locale
& nLocale
, sal_Int32 nMinBreakPos
,
45 const LineBreakHyphenationOptions
& hOptions
, const LineBreakUserOptions
& bOptions
)
46 throw(css::uno::RuntimeException
, std::exception
) override
;
50 OUString hangingCharacters
;
53 #define BREAKITERATOR_CJK( lang ) \
54 class BreakIterator_##lang : public BreakIterator_CJK {\
56 BreakIterator_##lang (); \
57 virtual ~BreakIterator_##lang (); \
60 BREAKITERATOR_CJK( zh
)
61 BREAKITERATOR_CJK( zh_TW
)
62 BREAKITERATOR_CJK( ja
)
63 BREAKITERATOR_CJK( ko
)
65 #undef BREAKITERATOR__CJK
69 #endif // INCLUDED_I18NPOOL_INC_BREAKITERATOR_CJK_HXX
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */