LibreOffice Module setup_native (master) 1
Macros | Functions | Variables
sellang.cxx File Reference
#include <windows.h>
#include <msiquery.h>
#include <malloc.h>
#include <cassert>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sal/macros.h>
#include <systools/win32/uwinapi.h>
#include <algorithm>
#include <spellchecker_selection.hxx>
Include dependency graph for sellang.cxx:

Go to the source code of this file.

Macros

#define MAX_LANGUAGES   200
 
#define WIN32_LEAN_AND_MEAN
 

Functions

static bool GetMsiPropA (MSIHANDLE hMSI, const char *pPropName, char **ppValue)
 
static const char * langid_to_string (LANGID langid)
 
static void add_ui_lang (char const *lang)
 
static BOOL CALLBACK enum_ui_lang_proc (LPTSTR language, LONG_PTR)
 
static bool present_in_ui_langs (const char *lang)
 
 __declspec (dllexport) UINT __stdcall SelectLanguage(MSIHANDLE handle)
 

Variables

static const char * ui_langs [MAX_LANGUAGES]
 
static int num_ui_langs = 0
 

Macro Definition Documentation

◆ MAX_LANGUAGES

#define MAX_LANGUAGES   200

Definition at line 23 of file sellang.cxx.

◆ WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN

Definition at line 25 of file sellang.cxx.

Function Documentation

◆ __declspec()

__declspec ( dllexport  )

◆ add_ui_lang()

static void add_ui_lang ( char const *  lang)
static

Definition at line 168 of file sellang.cxx.

References num_ui_langs, SAL_N_ELEMENTS, and ui_langs.

Referenced by __declspec(), and enum_ui_lang_proc().

◆ enum_ui_lang_proc()

static BOOL CALLBACK enum_ui_lang_proc ( LPTSTR  language,
LONG_PTR   
)
static

Definition at line 176 of file sellang.cxx.

References add_ui_lang(), FALSE, langid_to_string(), num_ui_langs, SAL_N_ELEMENTS, TRUE, and ui_langs.

Referenced by __declspec().

◆ GetMsiPropA()

static bool GetMsiPropA ( MSIHANDLE  hMSI,
const char *  pPropName,
char **  ppValue 
)
static

Definition at line 41 of file sellang.cxx.

Referenced by __declspec().

◆ langid_to_string()

static const char * langid_to_string ( LANGID  langid)
static

Definition at line 58 of file sellang.cxx.

References LANG_SPANISH, and PRIMARYLANGID.

Referenced by __declspec(), and enum_ui_lang_proc().

◆ present_in_ui_langs()

static bool present_in_ui_langs ( const char *  lang)
static

Definition at line 188 of file sellang.cxx.

References i, num_ui_langs, and ui_langs.

Referenced by __declspec().

Variable Documentation

◆ num_ui_langs

int num_ui_langs = 0
static

Definition at line 166 of file sellang.cxx.

Referenced by add_ui_lang(), enum_ui_lang_proc(), and present_in_ui_langs().

◆ ui_langs

const char* ui_langs[MAX_LANGUAGES]
static

Definition at line 165 of file sellang.cxx.

Referenced by add_ui_lang(), enum_ui_lang_proc(), and present_in_ui_langs().