2010-10-14 08:30:07 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-13 14:17:57 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2007-05-09 12:33:46 +00:00
|
|
|
|
2014-04-18 18:21:34 +02:00
|
|
|
#ifndef INCLUDED_CPPU_HELPER_PURPENV_MAPPING_HXX
|
|
|
|
#define INCLUDED_CPPU_HELPER_PURPENV_MAPPING_HXX
|
2007-05-09 12:33:46 +00:00
|
|
|
|
2011-12-18 04:56:57 +01:00
|
|
|
#include <cppu/cppudllapi.h>
|
2014-11-17 22:45:11 +01:00
|
|
|
#include <typelib/typedescription.h>
|
|
|
|
#include <uno/any2.h>
|
2013-11-09 15:12:09 -06:00
|
|
|
#include <uno/environment.h>
|
|
|
|
#include <uno/mapping.h>
|
2007-05-09 12:33:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
namespace cppu { namespace helper { namespace purpenv {
|
|
|
|
|
|
|
|
/** C++ helper for implementing Purpose Environments.
|
2013-09-07 14:21:22 +02:00
|
|
|
(http://wiki.openoffice.org/wiki/Uno/Cpp/Spec/Purpose_Bridge_Implementation_Helper)
|
2007-05-09 12:33:46 +00:00
|
|
|
|
|
|
|
@since UDK 3.2.7
|
|
|
|
*/
|
|
|
|
|
|
|
|
typedef void ProbeFun(
|
|
|
|
bool pre,
|
|
|
|
void * pThis,
|
|
|
|
void * pContext,
|
|
|
|
typelib_TypeDescriptionReference * pReturnTypeRef,
|
|
|
|
typelib_MethodParameter * pParams,
|
|
|
|
sal_Int32 nParams,
|
|
|
|
typelib_TypeDescription const * pMemberType,
|
|
|
|
void * pReturn,
|
|
|
|
void * pArgs[],
|
|
|
|
uno_Any ** ppException );
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-12-18 04:56:57 +01:00
|
|
|
PURPENV_DLLPUBLIC void createMapping(uno_Mapping ** ppMapping,
|
2007-05-09 12:33:46 +00:00
|
|
|
uno_Environment * pFrom,
|
|
|
|
uno_Environment * pTo,
|
|
|
|
ProbeFun * probeFun = NULL,
|
|
|
|
void * pContext = NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
}}}
|
|
|
|
|
|
|
|
#endif
|
2010-10-14 08:30:07 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|