1*6998d047SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*6998d047SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*6998d047SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*6998d047SAndrew Rist  * distributed with this work for additional information
6*6998d047SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*6998d047SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*6998d047SAndrew Rist  * "License"); you may not use this file except in compliance
9*6998d047SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*6998d047SAndrew Rist  *
11*6998d047SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*6998d047SAndrew Rist  *
13*6998d047SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*6998d047SAndrew Rist  * software distributed under the License is distributed on an
15*6998d047SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*6998d047SAndrew Rist  * KIND, either express or implied.  See the License for the
17*6998d047SAndrew Rist  * specific language governing permissions and limitations
18*6998d047SAndrew Rist  * under the License.
19*6998d047SAndrew Rist  *
20*6998d047SAndrew Rist  *************************************************************/
21*6998d047SAndrew Rist 
22*6998d047SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir 
25cdf0e10cSrcweir #ifndef _FRAMEWORK_SCRIPT_STORAGEBRIDGEFACTORY_HXX_
26cdf0e10cSrcweir #define _FRAMEWORK_SCRIPT_STORAGEBRIDGEFACTORY_HXX_
27cdf0e10cSrcweir 
28cdf0e10cSrcweir #include <rtl/ustring>
29cdf0e10cSrcweir 
30cdf0e10cSrcweir #include <com/sun/star/uno/XComponentContext.hpp>
31cdf0e10cSrcweir #include <com/sun/star/uno/Reference.hxx>
32cdf0e10cSrcweir 
33cdf0e10cSrcweir #include <drafts/com/sun/star/script/framework/storage/XScriptInfoAccess.hpp>
34cdf0e10cSrcweir 
35cdf0e10cSrcweir namespace scripting_runtimemgr
36cdf0e10cSrcweir {
37cdf0e10cSrcweir // for simplification
38cdf0e10cSrcweir #define css ::com::sun::star
39cdf0e10cSrcweir #define dcsssf ::drafts::com::sun::star::script::framework
40cdf0e10cSrcweir 
41cdf0e10cSrcweir class StorageBridgeFactory
42cdf0e10cSrcweir {
43cdf0e10cSrcweir 
44cdf0e10cSrcweir public:
45cdf0e10cSrcweir     explicit StorageBridgeFactory(
46cdf0e10cSrcweir         const css::uno::Reference < css::uno::XComponentContext > & xContext );
47cdf0e10cSrcweir     css::uno::Reference < dcsssf::storage::XScriptInfoAccess >
48cdf0e10cSrcweir         getStorageInstance( sal_Int32 sid );
49cdf0e10cSrcweir private:
50cdf0e10cSrcweir     StorageBridgeFactory(); // No definition for default ctor
51cdf0e10cSrcweir     css::uno::Reference< css::uno::XComponentContext >  m_xContext;
52cdf0e10cSrcweir };
53cdf0e10cSrcweir } // scripting_runtimemgr
54cdf0e10cSrcweir #endif //_FRAMEWORK_SCRIPT_NAMERESOLVER_HXX_
55