/*************************************************************************
*
* 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
* The current set of supported languages is:
Please note that because statistical analysis is part of the algorithm the the likelihood to get the correct result increases with the length of the sub-string. A word is much less likely guessed correctly compared to a sentence or even a whole paragraph.
Also note that some languages are that 'close' to each other that it will be quite unlikely to find a difference in them, e.g. English (UK), English (IE) and English (AUS) and most liklely English (US) as well. And thus the result may be arbitrary.
@returns the locale for the language identified. If no language could be identified the locale will be empty. @param aText all the text including the part that should checked. @param nStartPos specifies the starting index of the sub-string to be checked The value must met 0 <= nStartPos < (length of text - 1). @param nLen specifies the length of the sub-string to be checked. The value must met 0 <= nLen <= (length of text). @seeBy default all languages are enabled.
*/ void disableLanguages( [in] sequence< com::sun::star::lang::Locale > aLanguages ) raises( com::sun::star::lang::IllegalArgumentException ); //------------------------------------------------------------------------- /** allows to explicitly re-enable some languages that got previously disabled.By default all languages are enabled.
*/ void enableLanguages( [in] sequence< com::sun::star::lang::Locale > aLanguages ) raises( com::sun::star::lang::IllegalArgumentException ); //------------------------------------------------------------------------- /** returns a list of all supported languages.This should be the same as the mathematical union of all enabled and disabled languages.
*/ sequence< com::sun::star::lang::Locale > getAvailableLanguages(); //------------------------------------------------------------------------- /** returns the list of all enabled languages */ sequence< com::sun::star::lang::Locale > getEnabledLanguages(); //------------------------------------------------------------------------- /** returns the list of all disabled languages */ sequence< com::sun::star::lang::Locale > getDisabledLanguages(); }; }; }; }; }; #endif