bump product version to 7.2.5.1
[LibreOffice.git] / vcl / inc / unx / i18n_ic.hxx
blobc9302c5eb97b5027bf7d32b011d08ae5d7e13a7c
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
20 #ifndef INCLUDED_VCL_INC_UNX_I18N_IC_HXX
21 #define INCLUDED_VCL_INC_UNX_I18N_IC_HXX
23 #include "i18n_cb.hxx"
25 enum class EndExtTextInputFlags;
27 class SalI18N_InputContext
30 private:
32 Bool mbUseable; // system supports current locale ?
33 XIC maContext;
35 XIMStyle mnSupportedPreeditStyle;
36 XIMStyle mnStatusStyle;
37 XIMStyle mnPreeditStyle;
39 preedit_data_t maClientData;
40 XIMCallback maPreeditStartCallback;
41 XIMCallback maPreeditDoneCallback;
42 XIMCallback maPreeditDrawCallback;
43 XIMCallback maPreeditCaretCallback;
44 XIMCallback maCommitStringCallback;
45 XIMCallback maSwitchIMCallback;
46 XIMCallback maDestroyCallback;
48 XVaNestedList mpAttributes;
49 XVaNestedList mpStatusAttributes;
50 XVaNestedList mpPreeditAttributes;
52 bool SupportInputMethodStyle( XIMStyles const *pIMStyles );
53 static unsigned int GetWeightingOfIMStyle( XIMStyle n_style );
54 bool IsSupportedIMStyle( XIMStyle n_style ) const;
56 public:
58 Bool UseContext() { return mbUseable; }
59 bool IsPreeditMode() const { return maClientData.eState == PreeditStatus::Active; }
60 XIC GetContext() { return maContext; }
62 void ExtendEventMask( ::Window aFocusWindow );
63 void SetICFocus( SalFrame* pFocusFrame );
64 void UnsetICFocus();
65 void HandleDestroyIM();
67 void EndExtTextInput();
68 void CommitKeyEvent( sal_Unicode const * pText, std::size_t nLength );
69 int UpdateSpotLocation();
71 void Map( SalFrame *pFrame );
72 void Unmap();
74 SalI18N_InputContext( SalFrame *aFrame );
75 ~SalI18N_InputContext();
78 #endif // INCLUDED_VCL_INC_UNX_I18N_IC_HXX
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */