xref: /aoo4110/main/sc/workben/addin.hxx (revision b1cdbd2c)
1*b1cdbd2cSJim Jagielski /**************************************************************
2*b1cdbd2cSJim Jagielski  *
3*b1cdbd2cSJim Jagielski  * Licensed to the Apache Software Foundation (ASF) under one
4*b1cdbd2cSJim Jagielski  * or more contributor license agreements.  See the NOTICE file
5*b1cdbd2cSJim Jagielski  * distributed with this work for additional information
6*b1cdbd2cSJim Jagielski  * regarding copyright ownership.  The ASF licenses this file
7*b1cdbd2cSJim Jagielski  * to you under the Apache License, Version 2.0 (the
8*b1cdbd2cSJim Jagielski  * "License"); you may not use this file except in compliance
9*b1cdbd2cSJim Jagielski  * with the License.  You may obtain a copy of the License at
10*b1cdbd2cSJim Jagielski  *
11*b1cdbd2cSJim Jagielski  *   http://www.apache.org/licenses/LICENSE-2.0
12*b1cdbd2cSJim Jagielski  *
13*b1cdbd2cSJim Jagielski  * Unless required by applicable law or agreed to in writing,
14*b1cdbd2cSJim Jagielski  * software distributed under the License is distributed on an
15*b1cdbd2cSJim Jagielski  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b1cdbd2cSJim Jagielski  * KIND, either express or implied.  See the License for the
17*b1cdbd2cSJim Jagielski  * specific language governing permissions and limitations
18*b1cdbd2cSJim Jagielski  * under the License.
19*b1cdbd2cSJim Jagielski  *
20*b1cdbd2cSJim Jagielski  *************************************************************/
21*b1cdbd2cSJim Jagielski 
22*b1cdbd2cSJim Jagielski 
23*b1cdbd2cSJim Jagielski 
24*b1cdbd2cSJim Jagielski #ifndef SC_ADDIN_HXX
25*b1cdbd2cSJim Jagielski #define SC_ADDIN_HXX
26*b1cdbd2cSJim Jagielski 
27*b1cdbd2cSJim Jagielski #include <com/sun/star/sheet/XAddIn.hpp>
28*b1cdbd2cSJim Jagielski #include <com/sun/star/lang/XServiceName.hpp>
29*b1cdbd2cSJim Jagielski #include <com/sun/star/lang/XServiceInfo.hpp>
30*b1cdbd2cSJim Jagielski #include <stardiv/starcalc/test/XTestAddIn.hpp>
31*b1cdbd2cSJim Jagielski 
32*b1cdbd2cSJim Jagielski #include <cppuhelper/implbase4.hxx>	// helper for implementations
33*b1cdbd2cSJim Jagielski 
34*b1cdbd2cSJim Jagielski 
35*b1cdbd2cSJim Jagielski com::sun::star::uno::Reference<com::sun::star::uno::XInterface> ScTestAddIn_CreateInstance(
36*b1cdbd2cSJim Jagielski 	const com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory>& );
37*b1cdbd2cSJim Jagielski 
38*b1cdbd2cSJim Jagielski 
39*b1cdbd2cSJim Jagielski class ScTestAddIn : public cppu::WeakImplHelper4<
40*b1cdbd2cSJim Jagielski 						com::sun::star::sheet::XAddIn,
41*b1cdbd2cSJim Jagielski 						stardiv::starcalc::test::XTestAddIn,
42*b1cdbd2cSJim Jagielski 						com::sun::star::lang::XServiceName,
43*b1cdbd2cSJim Jagielski 						com::sun::star::lang::XServiceInfo >
44*b1cdbd2cSJim Jagielski {
45*b1cdbd2cSJim Jagielski private:
46*b1cdbd2cSJim Jagielski 	com::sun::star::uno::Reference<com::sun::star::sheet::XVolatileResult>	xAlphaResult;	//! Test
47*b1cdbd2cSJim Jagielski 	com::sun::star::uno::Reference<com::sun::star::sheet::XVolatileResult>	xNumResult;		//! Test
48*b1cdbd2cSJim Jagielski 	com::sun::star::lang::Locale											aFuncLoc;
49*b1cdbd2cSJim Jagielski 
50*b1cdbd2cSJim Jagielski public:
51*b1cdbd2cSJim Jagielski 							ScTestAddIn();
52*b1cdbd2cSJim Jagielski 	virtual					~ScTestAddIn();
53*b1cdbd2cSJim Jagielski 
54*b1cdbd2cSJim Jagielski //							SMART_UNO_DECLARATION( ScTestAddIn, UsrObject );
55*b1cdbd2cSJim Jagielski //	friend Reflection *		ScTestAddIn_getReflection();
56*b1cdbd2cSJim Jagielski //	virtual BOOL			queryInterface( Uik, XInterfaceRef& );
57*b1cdbd2cSJim Jagielski //	virtual XIdlClassRef	getIdlClass(void);
58*b1cdbd2cSJim Jagielski 
59*b1cdbd2cSJim Jagielski 	static UString			getImplementationName_Static();
60*b1cdbd2cSJim Jagielski 	static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_Static();
61*b1cdbd2cSJim Jagielski 
62*b1cdbd2cSJim Jagielski 							// XAddIn
63*b1cdbd2cSJim Jagielski     virtual ::rtl::OUString SAL_CALL getProgrammaticFuntionName( const ::rtl::OUString& aDisplayName ) throw(::com::sun::star::uno::RuntimeException);
64*b1cdbd2cSJim Jagielski     virtual ::rtl::OUString SAL_CALL getDisplayFunctionName( const ::rtl::OUString& aProgrammaticName ) throw(::com::sun::star::uno::RuntimeException);
65*b1cdbd2cSJim Jagielski     virtual ::rtl::OUString SAL_CALL getFunctionDescription( const ::rtl::OUString& aProgrammaticName ) throw(::com::sun::star::uno::RuntimeException);
66*b1cdbd2cSJim Jagielski     virtual ::rtl::OUString SAL_CALL getDisplayArgumentName( const ::rtl::OUString& aProgrammaticFunctionName, sal_Int32 nArgument ) throw(::com::sun::star::uno::RuntimeException);
67*b1cdbd2cSJim Jagielski     virtual ::rtl::OUString SAL_CALL getArgumentDescription( const ::rtl::OUString& aProgrammaticFunctionName, sal_Int32 nArgument ) throw(::com::sun::star::uno::RuntimeException);
68*b1cdbd2cSJim Jagielski     virtual ::rtl::OUString SAL_CALL getProgrammaticCategoryName( const ::rtl::OUString& aProgrammaticFunctionName ) throw(::com::sun::star::uno::RuntimeException);
69*b1cdbd2cSJim Jagielski     virtual ::rtl::OUString SAL_CALL getDisplayCategoryName( const ::rtl::OUString& aProgrammaticFunctionName ) throw(::com::sun::star::uno::RuntimeException);
70*b1cdbd2cSJim Jagielski 
71*b1cdbd2cSJim Jagielski 							// XLocalizable
72*b1cdbd2cSJim Jagielski     virtual void SAL_CALL setLocale( const ::com::sun::star::lang::Locale& eLocale ) throw(::com::sun::star::uno::RuntimeException);
73*b1cdbd2cSJim Jagielski     virtual ::com::sun::star::lang::Locale SAL_CALL getLocale(  ) throw(::com::sun::star::uno::RuntimeException);
74*b1cdbd2cSJim Jagielski 
75*b1cdbd2cSJim Jagielski 							// XTestAddIn
76*b1cdbd2cSJim Jagielski     virtual sal_Int32 SAL_CALL countParams( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArgs ) throw(::com::sun::star::uno::RuntimeException);
77*b1cdbd2cSJim Jagielski     virtual double SAL_CALL addOne( double fValue ) throw(::com::sun::star::uno::RuntimeException);
78*b1cdbd2cSJim Jagielski     virtual ::rtl::OUString SAL_CALL repeatStr( const ::rtl::OUString& aStr, sal_Int32 nCount ) throw(::com::sun::star::uno::RuntimeException);
79*b1cdbd2cSJim Jagielski     virtual ::rtl::OUString SAL_CALL getDateString( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xCaller, double fValue ) throw(::com::sun::star::uno::RuntimeException);
80*b1cdbd2cSJim Jagielski     virtual sal_Int32 SAL_CALL getColorValue( const ::com::sun::star::uno::Reference< ::com::sun::star::table::XCellRange >& xRange ) throw(::com::sun::star::uno::RuntimeException);
81*b1cdbd2cSJim Jagielski     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);
82*b1cdbd2cSJim Jagielski     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);
83*b1cdbd2cSJim Jagielski     virtual ::com::sun::star::uno::Reference< ::com::sun::star::sheet::XVolatileResult > SAL_CALL callAsync( const ::rtl::OUString& aString ) throw(::com::sun::star::uno::RuntimeException);
84*b1cdbd2cSJim Jagielski     virtual ::rtl::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);
85*b1cdbd2cSJim Jagielski     virtual ::com::sun::star::uno::Any SAL_CALL getStrOrVal( sal_Int32 nFlag ) throw(::com::sun::star::uno::RuntimeException);
86*b1cdbd2cSJim Jagielski 
87*b1cdbd2cSJim Jagielski 							// XServiceName
88*b1cdbd2cSJim Jagielski     virtual ::rtl::OUString SAL_CALL getServiceName(  ) throw(::com::sun::star::uno::RuntimeException);
89*b1cdbd2cSJim Jagielski 
90*b1cdbd2cSJim Jagielski 							// XServiceInfo
91*b1cdbd2cSJim Jagielski     virtual ::rtl::OUString SAL_CALL getImplementationName(  ) throw(::com::sun::star::uno::RuntimeException);
92*b1cdbd2cSJim Jagielski     virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
93*b1cdbd2cSJim Jagielski     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(  ) throw(::com::sun::star::uno::RuntimeException);
94*b1cdbd2cSJim Jagielski };
95*b1cdbd2cSJim Jagielski 
96*b1cdbd2cSJim Jagielski 
97*b1cdbd2cSJim Jagielski #endif
98*b1cdbd2cSJim Jagielski 
99