bump product version to 5.0.4.1
[LibreOffice.git] / scripting / source / basprov / basmodnode.hxx
blob6cc8bd59b90fb703b66ac00638f267489ce2d712
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_SCRIPTING_SOURCE_BASPROV_BASMODNODE_HXX
21 #define INCLUDED_SCRIPTING_SOURCE_BASPROV_BASMODNODE_HXX
23 #include <com/sun/star/beans/XPropertySet.hpp>
24 #include <com/sun/star/script/browse/XBrowseNode.hpp>
25 #include <com/sun/star/uno/XComponentContext.hpp>
26 #include <cppuhelper/implbase1.hxx>
28 class SbModule;
32 namespace basprov
37 // class BasicModuleNodeImpl
40 typedef ::cppu::WeakImplHelper1<
41 ::com::sun::star::script::browse::XBrowseNode > BasicModuleNodeImpl_BASE;
44 class BasicModuleNodeImpl : public BasicModuleNodeImpl_BASE
46 private:
47 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > m_xContext;
48 OUString m_sScriptingContext;
49 SbModule* m_pModule;
50 bool m_bIsAppScript;
52 public:
53 BasicModuleNodeImpl( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext,
54 const OUString& sScriptingContext,
55 SbModule* pModule, bool isAppScript = true );
56 virtual ~BasicModuleNodeImpl();
58 // XBrowseNode
59 virtual OUString SAL_CALL getName( )
60 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
61 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::script::browse::XBrowseNode > > SAL_CALL getChildNodes( )
62 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
63 virtual sal_Bool SAL_CALL hasChildNodes( )
64 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
65 virtual sal_Int16 SAL_CALL getType( )
66 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
70 } // namespace basprov
73 #endif // INCLUDED_SCRIPTING_SOURCE_BASPROV_BASMODNODE_HXX
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */