1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef __SCRIPT_FRAMEWORK_STORAGE_SCRIPTINFO_HXX_
25 #define __SCRIPT_FRAMEWORK_STORAGE_SCRIPTINFO_HXX_
26 
27 #include <cppuhelper/implbase1.hxx> // helper for component factory
28 
29 #include <com/sun/star/beans/XPropertySet.hpp>
30 
31 #include <drafts/com/sun/star/script/framework/storage/XScriptInfo.hpp>
32 
33 #include "ScriptData.hxx"
34 
35 namespace scripting_impl
36 {
37 // for simplification
38 #define css ::com::sun::star
39 #define dcsssf ::drafts::com::sun::star::script::framework
40 
41 class ScriptInfo : public ::cppu::WeakImplHelper1< dcsssf::storage::XScriptInfo >
42 {
43 public:
44     explicit ScriptInfo( const ScriptData & scriptData, sal_Int32 storageID );
45     virtual ~ScriptInfo();
46 
47     // XScriptInfo
48     virtual ::rtl::OUString SAL_CALL getLogicalName()
49         throw ( css::uno::RuntimeException );
50     virtual ::rtl::OUString SAL_CALL getDescription()
51         throw ( css::uno::RuntimeException ) ;
52     virtual ::rtl::OUString SAL_CALL getLanguage() throw ( css::uno::RuntimeException );
53     virtual ::rtl::OUString SAL_CALL getFunctionName()
54         throw ( css::uno::RuntimeException );
55     virtual ::rtl::OUString SAL_CALL getParcelURI()
56         throw ( css::uno::RuntimeException );
57     virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL
58         getLanguageProperties() throw ( css::uno::RuntimeException );
59     virtual css::uno::Sequence< ::rtl::OUString > SAL_CALL getFileSetNames()
60         throw ( css::uno::RuntimeException );
61     virtual css::uno::Sequence< ::rtl::OUString > SAL_CALL
62         getFilesInFileSet( const ::rtl::OUString & fileSetName )
63         throw ( css::uno::RuntimeException );
64 
65 private:
66     ScriptData m_scriptData;
67     sal_Int32 m_storageID;
68 };
69 
70 }
71 #endif // define __SCRIPTING_STORAGE...
72