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/.
13 #include <android/input.h>
14 #include <android/log.h>
15 #include <android/native_window.h>
16 #include <headless/svpinst.hxx>
17 #include <headless/svpframe.hxx>
19 #define LOGTAG "LibreOffice/androidinst"
20 #define LOGI(...) ((void)__android_log_print(ANDROID_LOG_INFO, LOGTAG, __VA_ARGS__))
21 #define LOGE(...) ((void)__android_log_print(ANDROID_LOG_ERROR, LOGTAG, __VA_ARGS__))
23 class AndroidSalFrame
;
24 class AndroidSalInstance
: public SvpSalInstance
26 // This JNIEnv is valid only in the thread where this
27 // AndroidSalInstance object is created, which is the "LO" thread
28 // in which soffice_main() runs
32 AndroidSalInstance(std::unique_ptr
<SalYieldMutex
> pMutex
);
33 virtual ~AndroidSalInstance();
34 static AndroidSalInstance
* getInstance();
36 virtual SalSystem
* CreateSalSystem();
39 void GetWorkArea(AbsoluteScreenPixelRectangle
& rRect
);
40 SalFrame
* CreateFrame(SalFrame
* pParent
, SalFrameStyleFlags nStyle
);
41 SalFrame
* CreateChildFrame(SystemParentData
* pParent
, SalFrameStyleFlags nStyle
);
44 virtual bool AnyInput(VclInputFlags nType
);
46 virtual void updateMainThread();
47 virtual void releaseMainThread();
50 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */