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