1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #ifndef __SCRIPT_FRAMEWORK_STORAGE_SCRIPTINFO_HXX_
29 #define __SCRIPT_FRAMEWORK_STORAGE_SCRIPTINFO_HXX_
30 
31 #include <cppuhelper/implbase1.hxx> // helper for component factory
32 
33 #include <com/sun/star/beans/XPropertySet.hpp>
34 
35 #include <drafts/com/sun/star/script/framework/storage/XScriptInfo.hpp>
36 
37 #include "ScriptData.hxx"
38 
39 namespace scripting_impl
40 {
41 // for simplification
42 #define css ::com::sun::star
43 #define dcsssf ::drafts::com::sun::star::script::framework
44 
45 class ScriptInfo : public ::cppu::WeakImplHelper1< dcsssf::storage::XScriptInfo >
46 {
47 public:
48     explicit ScriptInfo( const ScriptData & scriptData, sal_Int32 storageID );
49     virtual ~ScriptInfo();
50 
51     // XScriptInfo
52     virtual ::rtl::OUString SAL_CALL getLogicalName()
53         throw ( css::uno::RuntimeException );
54     virtual ::rtl::OUString SAL_CALL getDescription()
55         throw ( css::uno::RuntimeException ) ;
56     virtual ::rtl::OUString SAL_CALL getLanguage() throw ( css::uno::RuntimeException );
57     virtual ::rtl::OUString SAL_CALL getFunctionName()
58         throw ( css::uno::RuntimeException );
59     virtual ::rtl::OUString SAL_CALL getParcelURI()
60         throw ( css::uno::RuntimeException );
61     virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL
62         getLanguageProperties() throw ( css::uno::RuntimeException );
63     virtual css::uno::Sequence< ::rtl::OUString > SAL_CALL getFileSetNames()
64         throw ( css::uno::RuntimeException );
65     virtual css::uno::Sequence< ::rtl::OUString > SAL_CALL
66         getFilesInFileSet( const ::rtl::OUString & fileSetName )
67         throw ( css::uno::RuntimeException );
68 
69 private:
70     ScriptData m_scriptData;
71     sal_Int32 m_storageID;
72 };
73 
74 }
75 #endif // define __SCRIPTING_STORAGE...
76