1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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_STATUS_HXX
21 #define INCLUDED_VCL_INC_UNX_I18N_STATUS_HXX
23 #include <rtl/ustring.hxx>
24 #include <salimestatus.hxx>
25 #include <vcl/vclptr.hxx>
34 class SalI18N_InputContext
;
41 class X11ImeStatus
: public SalI18NImeStatus
45 virtual ~X11ImeStatus() override
;
47 virtual bool canToggle() override
;
48 virtual void toggle() override
;
61 VclPtr
<StatusWindow
> m_pStatusWindow
;
62 OUString m_aCurrentIM
;
63 ::std::vector
< ChoiceData
> m_aChoices
;
68 static bool getStatusWindowMode();
71 static I18NStatus
& get();
75 void setParent( SalFrame
* pParent
);
76 SalFrame
* getParent() const { return m_pParent
; }
77 SalFrame
* getStatusFrame() const;
79 void setStatusText( const OUString
& rText
);
81 enum ShowReason
{ focus
, presentation
, contextmap
};
82 void show( bool bShow
, ShowReason eReason
);
84 const ::std::vector
< ChoiceData
>& getChoices() const { return m_aChoices
; }
88 /** Toggle the status window on or off.
90 This only works if canToggleStatusWindow returns true (otherwise, any
91 calls of this method are ignored).
93 void toggleStatusWindow();
98 #endif // INCLUDED_VCL_INC_UNX_I18N_STATUS_HXX
100 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */