bump product version to 4.1.6.2
[LibreOffice.git] / xmlhelp / source / treeview / tvfactory.hxx
blob30c6c7ff2af5a3d37c6428febe9dae0f8a0f26d9
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 _TREEVIEW_TVFACTORY_HXX_
21 #define _TREEVIEW_TVFACTORY_HXX_
23 #include <rtl/ref.hxx>
24 #include <rtl/ustring.hxx>
25 #include <cppuhelper/weak.hxx>
26 #include <ucbhelper/macros.hxx>
27 #include <com/sun/star/uno/XInterface.hpp>
28 #include <com/sun/star/lang/XServiceInfo.hpp>
29 #include <com/sun/star/lang/XTypeProvider.hpp>
30 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
34 namespace treeview {
36 class TVFactory:
37 public cppu::OWeakObject,
38 public com::sun::star::lang::XServiceInfo,
39 public com::sun::star::lang::XTypeProvider,
40 public com::sun::star::lang::XMultiServiceFactory
42 public:
44 TVFactory( const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& xMSF );
46 ~TVFactory();
48 // XInterface
49 virtual com::sun::star::uno::Any SAL_CALL
50 queryInterface(
51 const com::sun::star::uno::Type& aType )
52 throw( com::sun::star::uno::RuntimeException);
54 virtual void SAL_CALL
55 acquire(
56 void )
57 throw();
59 virtual void SAL_CALL
60 release(
61 void )
62 throw();
65 // XTypeProvider
67 XTYPEPROVIDER_DECL()
70 // XServiceInfo
71 virtual OUString SAL_CALL
72 getImplementationName(
73 void )
74 throw( com::sun::star::uno::RuntimeException );
76 virtual sal_Bool SAL_CALL
77 supportsService(
78 const OUString& ServiceName )
79 throw(com::sun::star::uno::RuntimeException );
81 virtual com::sun::star::uno::Sequence< OUString > SAL_CALL
82 getSupportedServiceNames(
83 void )
84 throw( com::sun::star::uno::RuntimeException );
86 // XMultiServiceFactory
88 virtual com::sun::star::uno::Reference< com::sun::star::uno::XInterface > SAL_CALL
89 createInstance(
90 const OUString& aServiceSpecifier )
91 throw( com::sun::star::uno::Exception,
92 com::sun::star::uno::RuntimeException );
94 virtual com::sun::star::uno::Reference< com::sun::star::uno::XInterface > SAL_CALL
95 createInstanceWithArguments(
96 const OUString& ServiceSpecifier,
97 const com::sun::star::uno::Sequence< com::sun::star::uno::Any >& Arguments )
98 throw( com::sun::star::uno::Exception,
99 com::sun::star::uno::RuntimeException);
101 virtual com::sun::star::uno::Sequence< OUString > SAL_CALL
102 getAvailableServiceNames( )
103 throw( com::sun::star::uno::RuntimeException );
105 // Other
107 static OUString SAL_CALL getImplementationName_static();
109 static com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames_static();
111 static com::sun::star::uno::Reference< com::sun::star::lang::XSingleServiceFactory > SAL_CALL
112 createServiceFactory(
113 const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rxServiceMgr );
115 static com::sun::star::uno::Reference< com::sun::star::uno::XInterface > SAL_CALL
116 CreateInstance(
117 const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& xMultiServiceFactory );
120 private:
122 // Members
123 com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > m_xMSF;
124 com::sun::star::uno::Reference< com::sun::star::uno::XInterface > m_xHDS;
130 #endif
132 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */