1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #ifndef INCLUDED_uno_Enterable_h
30 #define INCLUDED_uno_Enterable_h
32 #include "uno/environment.h"
41 /** Generic function type declaration for entering an Environment.
42 (http://wiki.services.openoffice.org/wiki/Uno/Binary/Spec/Environment_Stack)
47 typedef void uno_Enterable_enter (void * context
);
50 /** Generic function type declaration for levaing an Environment.
51 (http://wiki.services.openoffice.org/wiki/Uno/Binary/Spec/Environment_Stack)
56 typedef void uno_Enterable_leave (void * context
);
59 /** Generic function type declaration for calling into an Environment.
60 (http://wiki.services.openoffice.org/wiki/Uno/Binary/Spec/Environment_Stack)
63 @param pCallee the function to be called
64 @param pParam the parameter pointer to be passed to the function
67 typedef void uno_Enterable_callInto_v(void * context
, uno_EnvCallee
* pCallee
, va_list * pParam
);
70 /** Generic function type declaration for calling out of an Environment.
71 (http://wiki.services.openoffice.org/wiki/Uno/Binary/Spec/Environment_Stack)
74 @param pCallee the function to be called
75 @param pParam the parameter pointer to be passed to the function
78 typedef void uno_Enterable_callOut_v (void * context
, uno_EnvCallee
* pCallee
, va_list * pParam
);
81 /** Generic function type declaration for checking if calling on managed object is
83 (http://wiki.services.openoffice.org/wiki/Uno/Binary/Spec/Environment_Stack)
86 @param ppReason the reason, in case calling is not valid
87 @return 0 == calling is not valid, 1 == calling is valid
90 typedef int uno_Enterable_isValid_v (void * context
, rtl_uString
** ppReason
);
93 /** A struct pReserved needs to point to, if implementing a purpose environment.
94 (http://wiki.services.openoffice.org/wiki/Uno/Binary/Spec/Environment_Stack)
100 uno_Enterable_enter
* m_enter
;
101 uno_Enterable_leave
* m_leave
;
102 uno_Enterable_callInto_v
* m_callInto_v
;
103 uno_Enterable_callOut_v
* m_callOut_v
;
104 uno_Enterable_isValid_v
* m_isValid
;
115 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */