1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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>
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
44 TVFactory( const com::sun::star::uno::Reference
< com::sun::star::lang::XMultiServiceFactory
>& xMSF
);
49 virtual com::sun::star::uno::Any SAL_CALL
51 const com::sun::star::uno::Type
& aType
)
52 throw( com::sun::star::uno::RuntimeException
);
71 virtual OUString SAL_CALL
72 getImplementationName(
74 throw( com::sun::star::uno::RuntimeException
);
76 virtual sal_Bool SAL_CALL
78 const OUString
& ServiceName
)
79 throw(com::sun::star::uno::RuntimeException
);
81 virtual com::sun::star::uno::Sequence
< OUString
> SAL_CALL
82 getSupportedServiceNames(
84 throw( com::sun::star::uno::RuntimeException
);
86 // XMultiServiceFactory
88 virtual com::sun::star::uno::Reference
< com::sun::star::uno::XInterface
> SAL_CALL
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
);
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
117 const com::sun::star::uno::Reference
< com::sun::star::lang::XMultiServiceFactory
>& xMultiServiceFactory
);
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
;
132 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */