Stop leaking all ScPostIt instances.
[LibreOffice.git] / sc / source / ui / unoobj / exceldetect.hxx
blob13ace176952f25d95af13a8a588e8647a42f80c5
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/.
8 */
10 #ifndef __SC_EXCELDETECT_HXX__
11 #define __SC_EXCELDETECT_HXX__
13 #include <cppuhelper/implbase2.hxx>
15 #include <com/sun/star/lang/XServiceInfo.hpp>
16 #include <com/sun/star/document/XExtendedFilterDetection.hpp>
18 namespace com { namespace sun { namespace star { namespace uno {
19 class XComponentContext;
20 }}}}
22 class ScExcelBiffDetect : public cppu::WeakImplHelper2<com::sun::star::document::XExtendedFilterDetection, com::sun::star::lang::XServiceInfo>
24 public:
25 ScExcelBiffDetect( const com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>& xContext );
26 virtual ~ScExcelBiffDetect();
28 // XServiceInfo
29 virtual OUString SAL_CALL getImplementationName() throw( com::sun::star::uno::RuntimeException );
30 virtual sal_Bool SAL_CALL supportsService( const OUString& aName ) throw( com::sun::star::uno::RuntimeException );
31 virtual com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( com::sun::star::uno::RuntimeException );
33 // XExtendedFilterDetection
34 virtual OUString SAL_CALL detect( com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& lDescriptor )
35 throw (com::sun::star::uno::RuntimeException);
37 static com::sun::star::uno::Sequence<OUString> impl_getStaticSupportedServiceNames();
38 static OUString impl_getStaticImplementationName();
39 static com::sun::star::uno::Reference< com::sun::star::uno::XInterface >
40 impl_createInstance( const com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>& xContext )
41 throw (com::sun::star::uno::Exception);
44 #endif
46 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */