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 #ifndef __SCRIPT_FRAMEWORK_STORAGE_SCRIPTINFO_HXX_ 25cdf0e10cSrcweir #define __SCRIPT_FRAMEWORK_STORAGE_SCRIPTINFO_HXX_ 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <cppuhelper/implbase1.hxx> // helper for component factory 28cdf0e10cSrcweir 29cdf0e10cSrcweir #include <com/sun/star/beans/XPropertySet.hpp> 30cdf0e10cSrcweir 31cdf0e10cSrcweir #include <drafts/com/sun/star/script/framework/storage/XScriptInfo.hpp> 32cdf0e10cSrcweir 33cdf0e10cSrcweir #include "ScriptData.hxx" 34cdf0e10cSrcweir 35cdf0e10cSrcweir namespace scripting_impl 36cdf0e10cSrcweir { 37cdf0e10cSrcweir // for simplification 38cdf0e10cSrcweir #define css ::com::sun::star 39cdf0e10cSrcweir #define dcsssf ::drafts::com::sun::star::script::framework 40cdf0e10cSrcweir 41cdf0e10cSrcweir class ScriptInfo : public ::cppu::WeakImplHelper1< dcsssf::storage::XScriptInfo > 42cdf0e10cSrcweir { 43cdf0e10cSrcweir public: 44cdf0e10cSrcweir explicit ScriptInfo( const ScriptData & scriptData, sal_Int32 storageID ); 45cdf0e10cSrcweir virtual ~ScriptInfo(); 46cdf0e10cSrcweir 47cdf0e10cSrcweir // XScriptInfo 48cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getLogicalName() 49cdf0e10cSrcweir throw ( css::uno::RuntimeException ); 50cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getDescription() 51cdf0e10cSrcweir throw ( css::uno::RuntimeException ) ; 52cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getLanguage() throw ( css::uno::RuntimeException ); 53cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getFunctionName() 54cdf0e10cSrcweir throw ( css::uno::RuntimeException ); 55cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getParcelURI() 56cdf0e10cSrcweir throw ( css::uno::RuntimeException ); 57cdf0e10cSrcweir virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL 58cdf0e10cSrcweir getLanguageProperties() throw ( css::uno::RuntimeException ); 59cdf0e10cSrcweir virtual css::uno::Sequence< ::rtl::OUString > SAL_CALL getFileSetNames() 60cdf0e10cSrcweir throw ( css::uno::RuntimeException ); 61cdf0e10cSrcweir virtual css::uno::Sequence< ::rtl::OUString > SAL_CALL 62cdf0e10cSrcweir getFilesInFileSet( const ::rtl::OUString & fileSetName ) 63cdf0e10cSrcweir throw ( css::uno::RuntimeException ); 64cdf0e10cSrcweir 65cdf0e10cSrcweir private: 66cdf0e10cSrcweir ScriptData m_scriptData; 67cdf0e10cSrcweir sal_Int32 m_storageID; 68cdf0e10cSrcweir }; 69cdf0e10cSrcweir 70cdf0e10cSrcweir } 71cdf0e10cSrcweir #endif // define __SCRIPTING_STORAGE... 72