LibreOffice Module lingucomponent (master)  1
Classes | Macros | Functions | Variables
guesslang.cxx File Reference
#include <iostream>
#include <osl/file.hxx>
#include <tools/debug.hxx>
#include <sal/config.h>
#include <cppuhelper/factory.hxx>
#include <cppuhelper/implementationentry.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/supportsservice.hxx>
#include "simpleguesser.hxx"
#include "guess.hxx"
#include <com/sun/star/lang/IllegalArgumentException.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/linguistic2/XLanguageGuessing.hpp>
#include <unotools/pathoptions.hxx>
#include <osl/thread.h>
#include <sal/macros.h>
#include <textcat.h>
Include dependency graph for guesslang.cxx:

Go to the source code of this file.

Classes

class  LangGuess_Impl
 

Macros

#define SERVICENAME   "com.sun.star.linguistic2.LanguageGuessing"
 
#define IMPLNAME   "com.sun.star.lingu2.LanguageGuessing"
 
#define DEFAULT_CONF_FILE_NAME   "fpdb.conf"
 

Functions

static Sequence< OUString > getSupportedServiceNames_LangGuess_Impl ()
 
static OUString getImplementationName_LangGuess_Impl ()
 
static osl::Mutex & GetLangGuessMutex ()
 
static Reference< XInterfaceLangGuess_Impl_create (Reference< XComponentContext > const &)
 Function to create a new component instance; is needed by factory helper implementation. More...
 
SAL_DLLPUBLIC_EXPORT voidguesslang_component_getFactory (sal_Char const *implName, void *xMgr, void *xRegistry)
 

Variables

static const struct::cppu::ImplementationEntry s_component_entries []
 

Macro Definition Documentation

#define DEFAULT_CONF_FILE_NAME   "fpdb.conf"

Definition at line 187 of file guesslang.cxx.

Referenced by LangGuess_Impl::SetFingerPrintsDB().

#define IMPLNAME   "com.sun.star.lingu2.LanguageGuessing"
#define SERVICENAME   "com.sun.star.linguistic2.LanguageGuessing"

Function Documentation

static OUString getImplementationName_LangGuess_Impl ( )
static

Definition at line 64 of file guesslang.cxx.

References IMPLNAME.

static osl::Mutex& GetLangGuessMutex ( )
static
static Sequence< OUString > getSupportedServiceNames_LangGuess_Impl ( )
static

Definition at line 58 of file guesslang.cxx.

References SERVICENAME.

SAL_DLLPUBLIC_EXPORT void* guesslang_component_getFactory ( sal_Char const *  implName,
void xMgr,
void xRegistry 
)

Definition at line 359 of file guesslang.cxx.

static Reference< XInterface > LangGuess_Impl_create ( Reference< XComponentContext > const &  )
static

Function to create a new component instance; is needed by factory helper implementation.

Parameters
xMgrservice manager to if the components needs other component instances

Definition at line 338 of file guesslang.cxx.

Variable Documentation

const struct ::cppu::ImplementationEntry s_component_entries[]
static
Initial value:
=
{
{
::cppu::createSingleComponentFactory,
nullptr, 0
},
{ nullptr, nullptr, nullptr, nullptr, nullptr, 0 }
}
static OUString getImplementationName_LangGuess_Impl()
Definition: guesslang.cxx:64
static Sequence< OUString > getSupportedServiceNames_LangGuess_Impl()
Definition: guesslang.cxx:58
static Reference< XInterface > LangGuess_Impl_create(Reference< XComponentContext > const &)
Function to create a new component instance; is needed by factory helper implementation.
Definition: guesslang.cxx:338

Definition at line 345 of file guesslang.cxx.