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 INCLUDED_SC_WORKBEN_ADDIN_HXX
21 #define INCLUDED_SC_WORKBEN_ADDIN_HXX
23 #include <com/sun/star/sheet/XAddIn.hpp>
24 #include <com/sun/star/lang/XServiceName.hpp>
25 #include <com/sun/star/lang/XServiceInfo.hpp>
26 #include <stardiv/starcalc/test/XTestAddIn.hpp>
28 #include <cppuhelper/implbase4.hxx>
30 com::sun::star::uno::Reference
<com::sun::star::uno::XInterface
> ScTestAddIn_CreateInstance(
31 const com::sun::star::uno::Reference
<com::sun::star::lang::XMultiServiceFactory
>& );
33 class ScTestAddIn
: public cppu::WeakImplHelper4
<
34 com::sun::star::sheet::XAddIn
,
35 stardiv::starcalc::test::XTestAddIn
,
36 com::sun::star::lang::XServiceName
,
37 com::sun::star::lang::XServiceInfo
>
40 com::sun::star::uno::Reference
<com::sun::star::sheet::XVolatileResult
> xAlphaResult
; //! Test
41 com::sun::star::uno::Reference
<com::sun::star::sheet::XVolatileResult
> xNumResult
; //! Test
42 com::sun::star::lang::Locale aFuncLoc
;
46 virtual ~ScTestAddIn();
48 // SMART_UNO_DECLARATION( ScTestAddIn, UsrObject );
49 // friend Reflection * ScTestAddIn_getReflection();
50 // virtual BOOL queryInterface( Uik, XInterfaceRef& );
51 // virtual XIdlClassRef getIdlClass();
53 static UString
getImplementationName_Static();
54 static ::com::sun::star::uno::Sequence
< OUString
> getSupportedServiceNames_Static();
57 virtual OUString SAL_CALL
getProgrammaticFuntionName( const OUString
& aDisplayName
) throw(::com::sun::star::uno::RuntimeException
);
58 virtual OUString SAL_CALL
getDisplayFunctionName( const OUString
& aProgrammaticName
) throw(::com::sun::star::uno::RuntimeException
);
59 virtual OUString SAL_CALL
getFunctionDescription( const OUString
& aProgrammaticName
) throw(::com::sun::star::uno::RuntimeException
);
60 virtual OUString SAL_CALL
getDisplayArgumentName( const OUString
& aProgrammaticFunctionName
, sal_Int32 nArgument
) throw(::com::sun::star::uno::RuntimeException
);
61 virtual OUString SAL_CALL
getArgumentDescription( const OUString
& aProgrammaticFunctionName
, sal_Int32 nArgument
) throw(::com::sun::star::uno::RuntimeException
);
62 virtual OUString SAL_CALL
getProgrammaticCategoryName( const OUString
& aProgrammaticFunctionName
) throw(::com::sun::star::uno::RuntimeException
);
63 virtual OUString SAL_CALL
getDisplayCategoryName( const OUString
& aProgrammaticFunctionName
) throw(::com::sun::star::uno::RuntimeException
);
66 virtual void SAL_CALL
setLocale( const ::com::sun::star::lang::Locale
& eLocale
) throw(::com::sun::star::uno::RuntimeException
);
67 virtual ::com::sun::star::lang::Locale SAL_CALL
getLocale( ) throw(::com::sun::star::uno::RuntimeException
);
70 virtual sal_Int32 SAL_CALL
countParams( const ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Any
>& aArgs
) throw(::com::sun::star::uno::RuntimeException
);
71 virtual double SAL_CALL
addOne( double fValue
) throw(::com::sun::star::uno::RuntimeException
);
72 virtual OUString SAL_CALL
repeatStr( const OUString
& aStr
, sal_Int32 nCount
) throw(::com::sun::star::uno::RuntimeException
);
73 virtual OUString SAL_CALL
getDateString( const ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
>& xCaller
, double fValue
) throw(::com::sun::star::uno::RuntimeException
);
74 virtual sal_Int32 SAL_CALL
getColorValue( const ::com::sun::star::uno::Reference
< ::com::sun::star::table::XCellRange
>& xRange
) throw(::com::sun::star::uno::RuntimeException
);
75 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Sequence
< double > > SAL_CALL
transpose( const ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Sequence
< double > >& aMatrix
) throw(::com::sun::star::uno::RuntimeException
);
76 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Sequence
< sal_Int32
> > SAL_CALL
transposeInt( const ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Sequence
< sal_Int32
> >& aMatrix
) throw(::com::sun::star::uno::RuntimeException
);
77 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::sheet::XVolatileResult
> SAL_CALL
callAsync( const OUString
& aString
) throw(::com::sun::star::uno::RuntimeException
);
78 virtual OUString SAL_CALL
repeatMultiple( sal_Int32 nCount
, const ::com::sun::star::uno::Any
& aFirst
, const ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Any
>& aFollow
) throw(::com::sun::star::uno::RuntimeException
);
79 virtual ::com::sun::star::uno::Any SAL_CALL
getStrOrVal( sal_Int32 nFlag
) throw(::com::sun::star::uno::RuntimeException
);
82 virtual OUString SAL_CALL
getServiceName( ) throw(::com::sun::star::uno::RuntimeException
);
85 virtual OUString SAL_CALL
getImplementationName( ) throw(::com::sun::star::uno::RuntimeException
);
86 virtual sal_Bool SAL_CALL
supportsService( const OUString
& ServiceName
) throw(::com::sun::star::uno::RuntimeException
);
87 virtual ::com::sun::star::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException
);
92 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */