tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / include / uno / Enterable.h
blobf0323e681e99154b657d5caa95a718709c76fc25
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 .
21 * This file is part of LibreOffice published API.
24 #ifndef INCLUDED_UNO_ENTERABLE_H
25 #define INCLUDED_UNO_ENTERABLE_H
27 #include "uno/environment.h"
30 #ifdef __cplusplus
31 extern "C"
33 #endif
36 /** Generic function type declaration for entering an Environment.
37 (http://wiki.openoffice.org/wiki/Uno/Binary/Spec/Environment_Stack)
39 @param context
40 @since UDK 3.2.7
42 typedef void uno_Enterable_enter (void * context);
45 /** Generic function type declaration for leaving an Environment.
46 (http://wiki.openoffice.org/wiki/Uno/Binary/Spec/Environment_Stack)
48 @param context
49 @since UDK 3.2.7
51 typedef void uno_Enterable_leave (void * context);
54 /** Generic function type declaration for calling into an Environment.
55 (http://wiki.openoffice.org/wiki/Uno/Binary/Spec/Environment_Stack)
57 @param context
58 @param pCallee the function to be called
59 @param pParam the parameter pointer to be passed to the function
60 @since UDK 3.2.7
62 typedef void uno_Enterable_callInto_v(void * context, uno_EnvCallee * pCallee, va_list * pParam);
65 /** Generic function type declaration for calling out of an Environment.
66 (http://wiki.openoffice.org/wiki/Uno/Binary/Spec/Environment_Stack)
68 @param context
69 @param pCallee the function to be called
70 @param pParam the parameter pointer to be passed to the function
71 @since UDK 3.2.7
73 typedef void uno_Enterable_callOut_v (void * context, uno_EnvCallee * pCallee, va_list * pParam);
76 /** Generic function type declaration for checking if calling on managed object is
77 valid.
78 (http://wiki.openoffice.org/wiki/Uno/Binary/Spec/Environment_Stack)
80 @param context
81 @param ppReason the reason, in case calling is not valid
82 @return 0 == calling is not valid, 1 == calling is valid
83 @since UDK 3.2.7
85 typedef int uno_Enterable_isValid_v (void * context, rtl_uString ** ppReason);
88 /** A struct pReserved needs to point to, if implementing a purpose environment.
89 (http://wiki.openoffice.org/wiki/Uno/Binary/Spec/Environment_Stack)
91 @since UDK 3.2.7
93 typedef struct
95 uno_Enterable_enter * m_enter;
96 uno_Enterable_leave * m_leave;
97 uno_Enterable_callInto_v * m_callInto_v;
98 uno_Enterable_callOut_v * m_callOut_v;
99 uno_Enterable_isValid_v * m_isValid;
101 uno_Enterable;
104 #ifdef __cplusplus
106 #endif
108 #endif
110 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */