blob: fe55595fce754fe0a997ba34e558948a7212b0bb [file] [log] [blame]
/**************************************************************
*
* 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
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*************************************************************/
#ifndef INCLUDED_BASIC_SOURCE_RUNTIME_DLLMGR_HXX
#define INCLUDED_BASIC_SOURCE_RUNTIME_DLLMGR_HXX
#include "sal/config.h"
#include <memory>
#include "basic/sberrors.hxx"
#include "boost/noncopyable.hpp"
namespace rtl { class OUString; }
class SbxArray;
class SbxVariable;
class SbiDllMgr: private boost::noncopyable {
public:
SbiDllMgr();
~SbiDllMgr();
SbError Call(
rtl::OUString const & function, rtl::OUString const & library,
SbxArray * arguments, SbxVariable & result, bool cdeclConvention);
void FreeDll(rtl::OUString const & library);
private:
struct Impl;
std::auto_ptr< Impl > impl_;
};
#endif