Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
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 .
18 : */
19 :
20 : #ifndef INCLUDED_SC_INC_APPLUNO_HXX
21 : #define INCLUDED_SC_INC_APPLUNO_HXX
22 :
23 : #include <svl/itemprop.hxx>
24 : #include <com/sun/star/lang/XServiceInfo.hpp>
25 : #include <com/sun/star/beans/XPropertySet.hpp>
26 : #include <com/sun/star/sheet/XRecentFunctions.hpp>
27 : #include <com/sun/star/sheet/XFunctionDescriptions.hpp>
28 : #include <com/sun/star/sheet/XGlobalSheetSettings.hpp>
29 : #include <com/sun/star/container/XEnumerationAccess.hpp>
30 : #include <com/sun/star/container/XNameAccess.hpp>
31 : #include <cppuhelper/implbase2.hxx>
32 : #include <cppuhelper/implbase3.hxx>
33 : #include <cppuhelper/implbase4.hxx>
34 : #include <rtl/ustring.hxx>
35 :
36 : com::sun::star::uno::Reference<com::sun::star::uno::XInterface> SAL_CALL
37 : ScSpreadsheetSettings_CreateInstance(
38 : const com::sun::star::uno::Reference<
39 : com::sun::star::lang::XMultiServiceFactory>& rSMgr );
40 : com::sun::star::uno::Reference<com::sun::star::uno::XInterface> SAL_CALL
41 : ScRecentFunctionsObj_CreateInstance(
42 : const com::sun::star::uno::Reference<
43 : com::sun::star::lang::XMultiServiceFactory>& rSMgr );
44 : com::sun::star::uno::Reference<com::sun::star::uno::XInterface> SAL_CALL
45 : ScFunctionListObj_CreateInstance(
46 : const com::sun::star::uno::Reference<
47 : com::sun::star::lang::XMultiServiceFactory>& rSMgr );
48 :
49 : // Calc document
50 : css::uno::Sequence< OUString > SAL_CALL ScDocument_getSupportedServiceNames() throw();
51 : OUString SAL_CALL ScDocument_getImplementationName() throw();
52 : css::uno::Reference< css::uno::XInterface > SAL_CALL ScDocument_createInstance(
53 : const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr, const sal_uInt64 _nCreationFlags ) throw( css::uno::Exception, std::exception );
54 :
55 : // Calc XML import
56 : css::uno::Sequence< OUString > SAL_CALL ScXMLImport_getSupportedServiceNames() throw();
57 : OUString SAL_CALL ScXMLImport_getImplementationName() throw();
58 : css::uno::Reference< css::uno::XInterface > SAL_CALL ScXMLImport_createInstance(
59 : const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr ) throw( css::uno::Exception );
60 : css::uno::Sequence< OUString > SAL_CALL ScXMLImport_Meta_getSupportedServiceNames() throw();
61 : OUString SAL_CALL ScXMLImport_Meta_getImplementationName() throw();
62 : css::uno::Reference< css::uno::XInterface > SAL_CALL ScXMLImport_Meta_createInstance(
63 : const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr ) throw( css::uno::Exception );
64 : css::uno::Sequence< OUString > SAL_CALL ScXMLImport_Styles_getSupportedServiceNames() throw();
65 : OUString SAL_CALL ScXMLImport_Styles_getImplementationName() throw();
66 : css::uno::Reference< css::uno::XInterface > SAL_CALL ScXMLImport_Styles_createInstance(
67 : const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr ) throw( css::uno::Exception );
68 : css::uno::Sequence< OUString > SAL_CALL ScXMLImport_Content_getSupportedServiceNames() throw();
69 : OUString SAL_CALL ScXMLImport_Content_getImplementationName() throw();
70 : css::uno::Reference< css::uno::XInterface > SAL_CALL ScXMLImport_Content_createInstance(
71 : const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr ) throw( css::uno::Exception );
72 : css::uno::Sequence< OUString > SAL_CALL ScXMLImport_Settings_getSupportedServiceNames() throw();
73 : OUString SAL_CALL ScXMLImport_Settings_getImplementationName() throw();
74 : css::uno::Reference< css::uno::XInterface > SAL_CALL ScXMLImport_Settings_createInstance(
75 : const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr ) throw( css::uno::Exception );
76 :
77 : // Calc XML export
78 : css::uno::Sequence< OUString > SAL_CALL ScXMLOOoExport_getSupportedServiceNames() throw();
79 : OUString SAL_CALL ScXMLOOoExport_getImplementationName() throw();
80 : css::uno::Reference< css::uno::XInterface > SAL_CALL ScXMLOOoExport_createInstance(
81 : const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr )
82 : throw (css::uno::Exception, std::exception);
83 : css::uno::Sequence< OUString > SAL_CALL ScXMLOOoExport_Meta_getSupportedServiceNames() throw();
84 : OUString SAL_CALL ScXMLOOoExport_Meta_getImplementationName() throw();
85 : css::uno::Reference< css::uno::XInterface > SAL_CALL ScXMLOOoExport_Meta_createInstance(
86 : const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr )
87 : throw (css::uno::Exception, std::exception);
88 : css::uno::Sequence< OUString > SAL_CALL ScXMLOOoExport_Styles_getSupportedServiceNames() throw();
89 : OUString SAL_CALL ScXMLOOoExport_Styles_getImplementationName() throw();
90 : css::uno::Reference< css::uno::XInterface > SAL_CALL ScXMLOOoExport_Styles_createInstance(
91 : const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr )
92 : throw (css::uno::Exception, std::exception);
93 : css::uno::Sequence< OUString > SAL_CALL ScXMLOOoExport_Content_getSupportedServiceNames() throw();
94 : OUString SAL_CALL ScXMLOOoExport_Content_getImplementationName() throw();
95 : css::uno::Reference< css::uno::XInterface > SAL_CALL ScXMLOOoExport_Content_createInstance(
96 : const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr )
97 : throw (css::uno::Exception, std::exception);
98 : css::uno::Sequence< OUString > SAL_CALL ScXMLOOoExport_Settings_getSupportedServiceNames() throw();
99 : OUString SAL_CALL ScXMLOOoExport_Settings_getImplementationName() throw();
100 : css::uno::Reference< css::uno::XInterface > SAL_CALL ScXMLOOoExport_Settings_createInstance(
101 : const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr )
102 : throw( css::uno::Exception, std::exception );
103 :
104 : // Calc XML Oasis export
105 : css::uno::Sequence< OUString > SAL_CALL ScXMLOasisExport_getSupportedServiceNames() throw();
106 : OUString SAL_CALL ScXMLOasisExport_getImplementationName() throw();
107 : css::uno::Reference< css::uno::XInterface > SAL_CALL ScXMLOasisExport_createInstance(
108 : const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr )
109 : throw (css::uno::Exception, std::exception);
110 : css::uno::Sequence< OUString > SAL_CALL ScXMLOasisExport_Meta_getSupportedServiceNames() throw();
111 : OUString SAL_CALL ScXMLOasisExport_Meta_getImplementationName() throw();
112 : css::uno::Reference< css::uno::XInterface > SAL_CALL ScXMLOasisExport_Meta_createInstance(
113 : const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr )
114 : throw (css::uno::Exception, std::exception);
115 : css::uno::Sequence< OUString > SAL_CALL ScXMLOasisExport_Styles_getSupportedServiceNames() throw();
116 : OUString SAL_CALL ScXMLOasisExport_Styles_getImplementationName() throw();
117 : css::uno::Reference< css::uno::XInterface > SAL_CALL ScXMLOasisExport_Styles_createInstance(
118 : const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr )
119 : throw( css::uno::Exception, std::exception );
120 : css::uno::Sequence< OUString > SAL_CALL ScXMLOasisExport_Content_getSupportedServiceNames() throw();
121 : OUString SAL_CALL ScXMLOasisExport_Content_getImplementationName() throw();
122 : css::uno::Reference< css::uno::XInterface > SAL_CALL ScXMLOasisExport_Content_createInstance(
123 : const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr )
124 : throw (css::uno::Exception, std::exception);
125 : css::uno::Sequence< OUString > SAL_CALL ScXMLOasisExport_Settings_getSupportedServiceNames() throw();
126 : OUString SAL_CALL ScXMLOasisExport_Settings_getImplementationName() throw();
127 : css::uno::Reference< css::uno::XInterface > SAL_CALL ScXMLOasisExport_Settings_createInstance(
128 : const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr )
129 : throw (css::uno::Exception, std::exception);
130 :
131 : class ScSpreadsheetSettings : public cppu::WeakImplHelper3<
132 : com::sun::star::sheet::XGlobalSheetSettings,
133 : com::sun::star::beans::XPropertySet,
134 : com::sun::star::lang::XServiceInfo>
135 : {
136 : private:
137 : SfxItemPropertySet aPropSet;
138 :
139 : bool getPropertyBool(const OUString& aPropertyName) throw (css::uno::RuntimeException);
140 : sal_Int16 getPropertyInt16(const OUString& aPropertyName) throw (css::uno::RuntimeException);
141 60 : void setProperty(const OUString& aPropertyName, bool p1) throw (css::uno::RuntimeException)
142 60 : { setPropertyValue( aPropertyName, css::uno::Any(p1) ); }
143 0 : void setProperty(const OUString& aPropertyName, sal_Int16 p1) throw (css::uno::RuntimeException)
144 0 : { setPropertyValue( aPropertyName, css::uno::Any(p1) ); }
145 : public:
146 : ScSpreadsheetSettings();
147 : virtual ~ScSpreadsheetSettings();
148 :
149 : static OUString getImplementationName_Static();
150 : static ::com::sun::star::uno::Sequence< OUString > getSupportedServiceNames_Static();
151 :
152 : // XGlobalSheetSettings
153 0 : virtual sal_Bool SAL_CALL getMoveSelection() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
154 0 : { return getPropertyBool("MoveSelection"); }
155 0 : virtual void SAL_CALL setMoveSelection(sal_Bool p1) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
156 0 : { setProperty("MoveSelection", (bool)p1); }
157 0 : virtual sal_Int16 SAL_CALL getMoveDirection() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
158 0 : { return getPropertyInt16("MoveDirection"); }
159 0 : virtual void SAL_CALL setMoveDirection(sal_Int16 p1) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
160 0 : { setProperty("MoveDirection", p1); }
161 0 : virtual sal_Bool SAL_CALL getEnterEdit() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
162 0 : { return getPropertyBool("EnterEdit"); }
163 0 : virtual void SAL_CALL setEnterEdit(sal_Bool p1) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
164 0 : { setProperty("EnterEdit", (bool)p1); }
165 0 : virtual sal_Bool SAL_CALL getExtendFormat() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
166 0 : { return getPropertyBool("ExtendFormat"); }
167 0 : virtual void SAL_CALL setExtendFormat(sal_Bool p1) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
168 0 : { setProperty("ExtendFormat", (bool)p1); }
169 0 : virtual sal_Bool SAL_CALL getRangeFinder() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
170 0 : { return getPropertyBool("RangeFinder"); }
171 0 : virtual void SAL_CALL setRangeFinder(sal_Bool p1) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
172 0 : { setProperty("RangeFinder", (bool)p1); }
173 0 : virtual sal_Bool SAL_CALL getExpandReferences() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
174 0 : { return getPropertyBool("ExpandReferences"); }
175 0 : virtual void SAL_CALL setExpandReferences(sal_Bool p1) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
176 0 : { setProperty("ExpandReferences", (bool)p1); }
177 0 : virtual sal_Bool SAL_CALL getMarkHeader() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
178 0 : { return getPropertyBool("MarkHeader"); }
179 0 : virtual void SAL_CALL setMarkHeader(sal_Bool p1) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
180 0 : { setProperty("MarkHeader", (bool)p1); }
181 0 : virtual sal_Bool SAL_CALL getUseTabCol() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
182 0 : { return getPropertyBool("UseTabCol"); }
183 0 : virtual void SAL_CALL setUseTabCol(sal_Bool p1) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
184 0 : { setProperty("UseTabCol", (bool)p1); }
185 170 : virtual sal_Int16 SAL_CALL getMetric() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
186 170 : { return getPropertyInt16("Metric"); }
187 0 : virtual void SAL_CALL setMetric(sal_Int16 p1) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
188 0 : { setProperty("Metric", p1); }
189 0 : virtual sal_Int16 SAL_CALL getScale() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
190 0 : { return getPropertyInt16("Scale"); }
191 0 : virtual void SAL_CALL setScale(sal_Int16 p1) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
192 0 : { setProperty("Scale", p1); }
193 0 : virtual sal_Bool SAL_CALL getDoAutoComplete() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
194 0 : { return getPropertyBool("DoAutoComplete"); }
195 0 : virtual void SAL_CALL setDoAutoComplete(sal_Bool p1) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
196 0 : { setProperty("DoAutoComplete", (bool)p1); }
197 0 : virtual sal_Int16 SAL_CALL getStatusBarFunction() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
198 0 : { return getPropertyInt16("StatusBarFunction"); }
199 0 : virtual void SAL_CALL setStatusBarFunction(sal_Int16 p1) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
200 0 : { setProperty("StatusBarFunction", p1); }
201 0 : virtual css::uno::Sequence<OUString> SAL_CALL getUserLists() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
202 : {
203 0 : css::uno::Any any = getPropertyValue("UserLists");
204 0 : css::uno::Sequence<OUString> b;
205 0 : any >>= b;
206 0 : return b;
207 : }
208 0 : virtual void SAL_CALL setUserLists(const css::uno::Sequence<OUString>& p1) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
209 0 : { setPropertyValue( "UserLists", css::uno::Any(p1) ); }
210 0 : virtual sal_Int16 SAL_CALL getLinkUpdateMode() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
211 0 : { return getPropertyInt16("LinkUpdateMode"); }
212 0 : virtual void SAL_CALL setLinkUpdateMode(sal_Int16 p1) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
213 0 : { setProperty("LinkUpdateMode", p1); }
214 0 : virtual sal_Bool SAL_CALL getPrintAllSheets() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
215 0 : { return getPropertyBool("PrintAllSheets"); }
216 0 : virtual void SAL_CALL setPrintAllSheets(sal_Bool p1) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
217 0 : { setProperty("PrintAllSheets", (bool)p1); }
218 0 : virtual sal_Bool SAL_CALL getPrintEmptyPages() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
219 0 : { return getPropertyBool("PrintEmptyPages"); }
220 0 : virtual void SAL_CALL setPrintEmptyPages(sal_Bool p1) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
221 0 : { setProperty("PrintEmptyPages", (bool)p1); }
222 0 : virtual sal_Bool SAL_CALL getUsePrinterMetrics() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
223 0 : { return getPropertyBool("UsePrinterMetrics"); }
224 0 : virtual void SAL_CALL setUsePrinterMetrics(sal_Bool p1) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
225 0 : { setProperty("UsePrinterMetrics", (bool)p1); }
226 30 : virtual sal_Bool SAL_CALL getReplaceCellsWarning() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
227 30 : { return getPropertyBool("ReplaceCellsWarning"); }
228 60 : virtual void SAL_CALL setReplaceCellsWarning(sal_Bool p1) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
229 60 : { setProperty("ReplaceCellsWarning", (bool)p1); }
230 :
231 : // XPropertySet
232 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
233 : SAL_CALL getPropertySetInfo()
234 : throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
235 : virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName,
236 : const ::com::sun::star::uno::Any& aValue )
237 : throw (::com::sun::star::beans::UnknownPropertyException,
238 : ::com::sun::star::beans::PropertyVetoException,
239 : ::com::sun::star::lang::IllegalArgumentException,
240 : ::com::sun::star::lang::WrappedTargetException,
241 : ::com::sun::star::uno::RuntimeException,
242 : std::exception) SAL_OVERRIDE;
243 : virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
244 : const OUString& PropertyName )
245 : throw (::com::sun::star::beans::UnknownPropertyException,
246 : ::com::sun::star::lang::WrappedTargetException,
247 : ::com::sun::star::uno::RuntimeException,
248 : std::exception) SAL_OVERRIDE;
249 : virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName,
250 : const ::com::sun::star::uno::Reference<
251 : ::com::sun::star::beans::XPropertyChangeListener >& xListener )
252 : throw(::com::sun::star::beans::UnknownPropertyException,
253 : ::com::sun::star::lang::WrappedTargetException,
254 : ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
255 : virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName,
256 : const ::com::sun::star::uno::Reference<
257 : ::com::sun::star::beans::XPropertyChangeListener >& aListener )
258 : throw(::com::sun::star::beans::UnknownPropertyException,
259 : ::com::sun::star::lang::WrappedTargetException,
260 : ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
261 : virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName,
262 : const ::com::sun::star::uno::Reference<
263 : ::com::sun::star::beans::XVetoableChangeListener >& aListener )
264 : throw(::com::sun::star::beans::UnknownPropertyException,
265 : ::com::sun::star::lang::WrappedTargetException,
266 : ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
267 : virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName,
268 : const ::com::sun::star::uno::Reference<
269 : ::com::sun::star::beans::XVetoableChangeListener >& aListener )
270 : throw(::com::sun::star::beans::UnknownPropertyException,
271 : ::com::sun::star::lang::WrappedTargetException,
272 : ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
273 :
274 : // XServiceInfo
275 : virtual OUString SAL_CALL getImplementationName()
276 : throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
277 : virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
278 : throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
279 : virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
280 : throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
281 : };
282 :
283 : class ScRecentFunctionsObj : public cppu::WeakImplHelper2<
284 : com::sun::star::sheet::XRecentFunctions,
285 : com::sun::star::lang::XServiceInfo>
286 : {
287 : public:
288 : ScRecentFunctionsObj();
289 : virtual ~ScRecentFunctionsObj();
290 :
291 : static OUString getImplementationName_Static();
292 : static ::com::sun::star::uno::Sequence< OUString > getSupportedServiceNames_Static();
293 :
294 : // XRecentFunctions
295 : virtual ::com::sun::star::uno::Sequence< sal_Int32 > SAL_CALL getRecentFunctionIds()
296 : throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
297 : virtual void SAL_CALL setRecentFunctionIds( const ::com::sun::star::uno::Sequence<
298 : sal_Int32 >& aRecentFunctionIds )
299 : throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
300 : virtual sal_Int32 SAL_CALL getMaxRecentFunctions()
301 : throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
302 :
303 : // XServiceInfo
304 : virtual OUString SAL_CALL getImplementationName()
305 : throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
306 : virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
307 : throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
308 : virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
309 : throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
310 : };
311 :
312 : class ScFunctionListObj : public cppu::WeakImplHelper4<
313 : com::sun::star::sheet::XFunctionDescriptions,
314 : com::sun::star::container::XEnumerationAccess,
315 : com::sun::star::container::XNameAccess,
316 : com::sun::star::lang::XServiceInfo>
317 : {
318 : public:
319 : ScFunctionListObj();
320 : virtual ~ScFunctionListObj();
321 :
322 : static OUString getImplementationName_Static();
323 : static ::com::sun::star::uno::Sequence< OUString > getSupportedServiceNames_Static();
324 :
325 : // XFunctionDescriptions
326 : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL
327 : getById( sal_Int32 nId )
328 : throw(::com::sun::star::lang::IllegalArgumentException,
329 : ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
330 :
331 : // XNameAccess
332 : virtual ::com::sun::star::uno::Any SAL_CALL getByName( const OUString& aName )
333 : throw(::com::sun::star::container::NoSuchElementException,
334 : ::com::sun::star::lang::WrappedTargetException,
335 : ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
336 : virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getElementNames()
337 : throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
338 : virtual sal_Bool SAL_CALL hasByName( const OUString& aName )
339 : throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
340 :
341 : // XIndexAccess
342 : virtual sal_Int32 SAL_CALL getCount() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
343 : virtual ::com::sun::star::uno::Any SAL_CALL getByIndex( sal_Int32 Index )
344 : throw(::com::sun::star::lang::IndexOutOfBoundsException,
345 : ::com::sun::star::lang::WrappedTargetException,
346 : ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
347 :
348 : // XEnumerationAccess
349 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XEnumeration > SAL_CALL
350 : createEnumeration() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
351 :
352 : // XElementAccess
353 : virtual ::com::sun::star::uno::Type SAL_CALL getElementType()
354 : throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
355 : virtual sal_Bool SAL_CALL hasElements() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
356 :
357 : // XServiceInfo
358 : virtual OUString SAL_CALL getImplementationName()
359 : throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
360 : virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
361 : throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
362 : virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
363 : throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
364 : };
365 :
366 : #endif
367 :
368 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|