LibreOffice Module vcl (master) 1
i18n_ic.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 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#ifndef INCLUDED_VCL_INC_UNX_I18N_IC_HXX
21#define INCLUDED_VCL_INC_UNX_I18N_IC_HXX
22
23#include "i18n_cb.hxx"
24
25enum class EndExtTextInputFlags;
26
28{
29
30private:
31
32 Bool mbUseable; // system supports current locale ?
34
36 XIMStyle mnStatusStyle;
38
45 XIMCallback maSwitchIMCallback;
46 XIMCallback maDestroyCallback;
47
48 XVaNestedList mpAttributes;
49 XVaNestedList mpStatusAttributes;
50 XVaNestedList mpPreeditAttributes;
51
52 bool SupportInputMethodStyle( XIMStyles const *pIMStyles );
53 static unsigned int GetWeightingOfIMStyle( XIMStyle n_style );
54 bool IsSupportedIMStyle( XIMStyle n_style ) const;
55
56public:
57
58 Bool UseContext() const { return mbUseable; }
60 XIC GetContext() const { return maContext; }
61
62 void ExtendEventMask( ::Window aFocusWindow );
63 void SetICFocus( SalFrame* pFocusFrame );
66
68 void CommitKeyEvent( sal_Unicode const * pText, std::size_t nLength );
70
71 void Map( SalFrame *pFrame );
72 void Unmap();
73
76};
77
78#endif // INCLUDED_VCL_INC_UNX_I18N_IC_HXX
79
80/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
A SalFrame is a system window (e.g. an X11 window).
Definition: salframe.hxx:115
bool SupportInputMethodStyle(XIMStyles const *pIMStyles)
XIMCallback maSwitchIMCallback
Definition: i18n_ic.hxx:45
XIMStyle mnPreeditStyle
Definition: i18n_ic.hxx:37
XIMCallback maCommitStringCallback
Definition: i18n_ic.hxx:44
static unsigned int GetWeightingOfIMStyle(XIMStyle n_style)
XVaNestedList mpPreeditAttributes
Definition: i18n_ic.hxx:50
void Map(SalFrame *pFrame)
XIMCallback maPreeditDrawCallback
Definition: i18n_ic.hxx:42
SalI18N_InputContext(SalFrame *aFrame)
XIMCallback maDestroyCallback
Definition: i18n_ic.hxx:46
XIMStyle mnSupportedPreeditStyle
Definition: i18n_ic.hxx:35
void SetICFocus(SalFrame *pFocusFrame)
Bool UseContext() const
Definition: i18n_ic.hxx:58
void ExtendEventMask(::Window aFocusWindow)
void CommitKeyEvent(sal_Unicode const *pText, std::size_t nLength)
XVaNestedList mpStatusAttributes
Definition: i18n_ic.hxx:49
XIMStyle mnStatusStyle
Definition: i18n_ic.hxx:36
bool IsSupportedIMStyle(XIMStyle n_style) const
XIMCallback maPreeditCaretCallback
Definition: i18n_ic.hxx:43
preedit_data_t maClientData
Definition: i18n_ic.hxx:39
bool IsPreeditMode() const
Definition: i18n_ic.hxx:59
XIC GetContext() const
Definition: i18n_ic.hxx:60
XVaNestedList mpAttributes
Definition: i18n_ic.hxx:48
XIMCallback maPreeditStartCallback
Definition: i18n_ic.hxx:40
XIMCallback maPreeditDoneCallback
Definition: i18n_ic.hxx:41
PreeditStatus eState
Definition: i18n_cb.hxx:78
sal_uInt16 sal_Unicode
EndExtTextInputFlags
Definition: window.hxx:346