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 virtual ::rtl::OUString SAL_CALL getDescription() ; 50 virtual ::rtl::OUString SAL_CALL getLanguage(); 51 virtual ::rtl::OUString SAL_CALL getFunctionName(); 52 virtual ::rtl::OUString SAL_CALL getParcelURI(); 53 virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL 54 getLanguageProperties(); 55 virtual css::uno::Sequence< ::rtl::OUString > SAL_CALL getFileSetNames(); 56 virtual css::uno::Sequence< ::rtl::OUString > SAL_CALL 57 getFilesInFileSet( const ::rtl::OUString & fileSetName ); 58 59 private: 60 ScriptData m_scriptData; 61 sal_Int32 m_storageID; 62 }; 63 64 } 65 #endif // define __SCRIPTING_STORAGE... 66