1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir 
28*cdf0e10cSrcweir #ifndef __FRAMEWORK_SERVICES_FRAMELOADERFACTORY_HXX_
29*cdf0e10cSrcweir #define __FRAMEWORK_SERVICES_FRAMELOADERFACTORY_HXX_
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir //_________________________________________________________________________________________________________________
32*cdf0e10cSrcweir //	my own includes
33*cdf0e10cSrcweir //_________________________________________________________________________________________________________________
34*cdf0e10cSrcweir 
35*cdf0e10cSrcweir #include <classes/filtercache.hxx>
36*cdf0e10cSrcweir #include <threadhelp/threadhelpbase.hxx>
37*cdf0e10cSrcweir #include <macros/generic.hxx>
38*cdf0e10cSrcweir #include <macros/debug.hxx>
39*cdf0e10cSrcweir #include <macros/xinterface.hxx>
40*cdf0e10cSrcweir #include <macros/xtypeprovider.hxx>
41*cdf0e10cSrcweir #include <macros/xserviceinfo.hxx>
42*cdf0e10cSrcweir #include <general.h>
43*cdf0e10cSrcweir 
44*cdf0e10cSrcweir //_________________________________________________________________________________________________________________
45*cdf0e10cSrcweir //	interface includes
46*cdf0e10cSrcweir //_________________________________________________________________________________________________________________
47*cdf0e10cSrcweir #include <com/sun/star/beans/PropertyValue.hpp>
48*cdf0e10cSrcweir #include <com/sun/star/lang/XInitialization.hpp>
49*cdf0e10cSrcweir #include <com/sun/star/lang/WrappedTargetException.hpp>
50*cdf0e10cSrcweir #include <com/sun/star/container/XNameAccess.hpp>
51*cdf0e10cSrcweir #include <com/sun/star/container/NoSuchElementException.hpp>
52*cdf0e10cSrcweir #include <com/sun/star/io/XInputStream.hpp>
53*cdf0e10cSrcweir 
54*cdf0e10cSrcweir //_________________________________________________________________________________________________________________
55*cdf0e10cSrcweir //	other includes
56*cdf0e10cSrcweir //_________________________________________________________________________________________________________________
57*cdf0e10cSrcweir #include <cppuhelper/implbase3.hxx>
58*cdf0e10cSrcweir 
59*cdf0e10cSrcweir //_________________________________________________________________________________________________________________
60*cdf0e10cSrcweir //	namespace
61*cdf0e10cSrcweir //_________________________________________________________________________________________________________________
62*cdf0e10cSrcweir 
63*cdf0e10cSrcweir namespace framework{
64*cdf0e10cSrcweir 
65*cdf0e10cSrcweir //_________________________________________________________________________________________________________________
66*cdf0e10cSrcweir //	exported const
67*cdf0e10cSrcweir //_________________________________________________________________________________________________________________
68*cdf0e10cSrcweir 
69*cdf0e10cSrcweir //_________________________________________________________________________________________________________________
70*cdf0e10cSrcweir //	exported definitions
71*cdf0e10cSrcweir //_________________________________________________________________________________________________________________
72*cdf0e10cSrcweir 
73*cdf0e10cSrcweir struct tIMPLExtractedArguments
74*cdf0e10cSrcweir {
75*cdf0e10cSrcweir 	::rtl::OUString									sMimeType			;
76*cdf0e10cSrcweir 	sal_Int32										nFlags				;
77*cdf0e10cSrcweir 	::rtl::OUString									sFilterName			;
78*cdf0e10cSrcweir 	sal_Int32										nClipboardFormat	;
79*cdf0e10cSrcweir 	::rtl::OUString									sDetectService		;
80*cdf0e10cSrcweir 	css::uno::Reference< css::io::XInputStream >	xInputStream		;
81*cdf0e10cSrcweir 
82*cdf0e10cSrcweir 	sal_Int32										nValidMask			;
83*cdf0e10cSrcweir };
84*cdf0e10cSrcweir 
85*cdf0e10cSrcweir /*-************************************************************************************************************//**
86*cdf0e10cSrcweir 	@short		factory to create frameloader-objects
87*cdf0e10cSrcweir 	@descr		These class can be used to create new loader for specified contents.
88*cdf0e10cSrcweir 				We use cached values of the registry to lay down, wich frameloader match
89*cdf0e10cSrcweir 				a given URL or filtername. To do this, we use the XMultiServiceFactory-interface.
90*cdf0e10cSrcweir 
91*cdf0e10cSrcweir 	@ATTENTION	In a specialmode of these implementation we support a simple filterdetection.
92*cdf0e10cSrcweir 				But there is no special interface. You must call some existing methods in another context!
93*cdf0e10cSrcweir 				see createInstanceWithArguments() fo rfurther informations!
94*cdf0e10cSrcweir 
95*cdf0e10cSrcweir 	@implements	XInterface
96*cdf0e10cSrcweir 				XTypeProvider
97*cdf0e10cSrcweir 				XServiceInfo
98*cdf0e10cSrcweir 				XMultiServiceFactory
99*cdf0e10cSrcweir 				XNameAccess
100*cdf0e10cSrcweir 				XElementAccess
101*cdf0e10cSrcweir 	@base		ThreadHelpBase
102*cdf0e10cSrcweir 				OWeakObject
103*cdf0e10cSrcweir 
104*cdf0e10cSrcweir 	@devstatus	deprecated
105*cdf0e10cSrcweir *//*-*************************************************************************************************************/
106*cdf0e10cSrcweir 
107*cdf0e10cSrcweir class FrameLoaderFactory	:	public ThreadHelpBase							,		// Struct for right initalization of mutex member! Mst first of baseclasses
108*cdf0e10cSrcweir 								public ::cppu::WeakImplHelper3< ::com::sun::star::lang::XServiceInfo,::com::sun::star::lang::XMultiServiceFactory,::com::sun::star::container::XNameAccess >
109*cdf0e10cSrcweir {
110*cdf0e10cSrcweir 	//-------------------------------------------------------------------------------------------------------------
111*cdf0e10cSrcweir 	//	public methods
112*cdf0e10cSrcweir 	//-------------------------------------------------------------------------------------------------------------
113*cdf0e10cSrcweir 
114*cdf0e10cSrcweir 	public:
115*cdf0e10cSrcweir 
116*cdf0e10cSrcweir 		//---------------------------------------------------------------------------------------------------------
117*cdf0e10cSrcweir 		//	constructor / destructor
118*cdf0e10cSrcweir 		//---------------------------------------------------------------------------------------------------------
119*cdf0e10cSrcweir 
120*cdf0e10cSrcweir 		/*-****************************************************************************************************//**
121*cdf0e10cSrcweir 			@short		standard constructor
122*cdf0e10cSrcweir 			@descr		Initialize a new instance and fill the registrycache with values.
123*cdf0e10cSrcweir 						To do this - xFactory must be valid!
124*cdf0e10cSrcweir 
125*cdf0e10cSrcweir 			@seealso	class RegistryCache
126*cdf0e10cSrcweir 			@seealso	member m_aRegistryCache
127*cdf0e10cSrcweir 
128*cdf0e10cSrcweir 			@param		"xFactory", factory which has created us.
129*cdf0e10cSrcweir 			@return		-
130*cdf0e10cSrcweir 
131*cdf0e10cSrcweir 			@onerror	An ASSERTION is thrown in debug version, if xFactory is invalid or cache can't filled.
132*cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
133*cdf0e10cSrcweir 
134*cdf0e10cSrcweir 	 	FrameLoaderFactory( const css::uno::Reference< css::lang::XMultiServiceFactory >& xFactory );
135*cdf0e10cSrcweir 
136*cdf0e10cSrcweir 		/*-****************************************************************************************************//**
137*cdf0e10cSrcweir 			@short		standard destructor to delete instance
138*cdf0e10cSrcweir 			@descr		We use it to clear ouer cache.
139*cdf0e10cSrcweir 
140*cdf0e10cSrcweir 			@seealso	class RegistryCache
141*cdf0e10cSrcweir 
142*cdf0e10cSrcweir 			@param		-
143*cdf0e10cSrcweir 			@return		-
144*cdf0e10cSrcweir 
145*cdf0e10cSrcweir 			@onerror	-
146*cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
147*cdf0e10cSrcweir 
148*cdf0e10cSrcweir 		virtual ~FrameLoaderFactory();
149*cdf0e10cSrcweir 
150*cdf0e10cSrcweir 		//---------------------------------------------------------------------------------------------------------
151*cdf0e10cSrcweir 		//	XInterface, XTypeProvider, XServiceInfo
152*cdf0e10cSrcweir 		//---------------------------------------------------------------------------------------------------------
153*cdf0e10cSrcweir 
154*cdf0e10cSrcweir 		DECLARE_XSERVICEINFO
155*cdf0e10cSrcweir 
156*cdf0e10cSrcweir 		//---------------------------------------------------------------------------------------------------------
157*cdf0e10cSrcweir 		//	XMultiServiceFactory
158*cdf0e10cSrcweir 		//---------------------------------------------------------------------------------------------------------
159*cdf0e10cSrcweir 
160*cdf0e10cSrcweir 		/*-****************************************************************************************************//**
161*cdf0e10cSrcweir 			@short		create a new frameloder (without arguments!)
162*cdf0e10cSrcweir 			@descr		We search for an agreement between given type name and our cache-content.
163*cdf0e10cSrcweir 						If we found some information, we create the registered frameloader for these type.
164*cdf0e10cSrcweir 						Otherwise - we return NULL.
165*cdf0e10cSrcweir 						We search from begin to end of internal loader list!
166*cdf0e10cSrcweir 
167*cdf0e10cSrcweir 			@seealso	method impl_createFrameLoader()
168*cdf0e10cSrcweir 			@seealso	method createInstanceWithArguments()
169*cdf0e10cSrcweir 
170*cdf0e10cSrcweir 			@param		"sTypeName", type name of a document to filter, open or save.
171*cdf0e10cSrcweir 			@return		A reference to a new created frameloader.
172*cdf0e10cSrcweir 
173*cdf0e10cSrcweir 			@onerror	A null reference is returned.
174*cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
175*cdf0e10cSrcweir 
176*cdf0e10cSrcweir 		virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance( const ::rtl::OUString& sTypeName ) throw(	css::uno::Exception			,
177*cdf0e10cSrcweir 																																css::uno::RuntimeException	);
178*cdf0e10cSrcweir 
179*cdf0e10cSrcweir 		/*-****************************************************************************************************//**
180*cdf0e10cSrcweir 			@short		create a new frameloder
181*cdf0e10cSrcweir 			@descr		We search for an agreement between given type name and our cache-content.
182*cdf0e10cSrcweir 						If we found some information, we create the registered frameloader for these type.
183*cdf0e10cSrcweir 						Otherwise - we return NULL.
184*cdf0e10cSrcweir 						You can give us some optional arguments to influence our search!
185*cdf0e10cSrcweir 
186*cdf0e10cSrcweir 			@seealso	method impl_createFrameLoader()
187*cdf0e10cSrcweir 			@seealso	method createInstance()
188*cdf0e10cSrcweir 
189*cdf0e10cSrcweir 			@param		"sTypeName", type name of a document to filter, open or save.
190*cdf0e10cSrcweir 			@param		"seqArguments", list of optional arguments for initializing of new frameloader.
191*cdf0e10cSrcweir 			@return		A reference to a new created frameloader.
192*cdf0e10cSrcweir 
193*cdf0e10cSrcweir 			@onerror	A null reference is returned.
194*cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
195*cdf0e10cSrcweir 
196*cdf0e10cSrcweir     	virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments(	const	::rtl::OUString&						sTypeName	,
197*cdf0e10cSrcweir 																									const	css::uno::Sequence< css::uno::Any >&	seqArguments) throw(	css::uno::Exception		,
198*cdf0e10cSrcweir 																									  																		css::uno::RuntimeException);
199*cdf0e10cSrcweir 
200*cdf0e10cSrcweir 		/*-****************************************************************************************************//**
201*cdf0e10cSrcweir 			@short		not supported
202*cdf0e10cSrcweir 			@descr		Please use XNameAcces instead of these!
203*cdf0e10cSrcweir 
204*cdf0e10cSrcweir 			@seealso	-
205*cdf0e10cSrcweir 
206*cdf0e10cSrcweir 			@param		-
207*cdf0e10cSrcweir 			@return		-
208*cdf0e10cSrcweir 
209*cdf0e10cSrcweir 			@onerror	-
210*cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
211*cdf0e10cSrcweir 
212*cdf0e10cSrcweir     	virtual css::uno::Sequence< ::rtl::OUString > SAL_CALL getAvailableServiceNames() throw( css::uno::RuntimeException );
213*cdf0e10cSrcweir 
214*cdf0e10cSrcweir 		//---------------------------------------------------------------------------------------------------------
215*cdf0e10cSrcweir 		//	XNameAccess
216*cdf0e10cSrcweir 		//---------------------------------------------------------------------------------------------------------
217*cdf0e10cSrcweir 
218*cdf0e10cSrcweir 		/*-****************************************************************************************************//**
219*cdf0e10cSrcweir 			@short		return properties of registered frame loader specified by his implementation name
220*cdf0e10cSrcweir 			@descr		Use these method to get all informations about our internal loader cache
221*cdf0e10cSrcweir 						and a special frame loader.
222*cdf0e10cSrcweir 						We return a Sequence< PropertyValue > in an Any packed as result.
223*cdf0e10cSrcweir 
224*cdf0e10cSrcweir 						structure of return value:
225*cdf0e10cSrcweir 							[0].Name	=	"Types"
226*cdf0e10cSrcweir 							[0].Value	=	list of supported types of these loader as [sequence< oustring >]
227*cdf0e10cSrcweir 
228*cdf0e10cSrcweir 							[1].Name	=	"UIName"
229*cdf0e10cSrcweir 							[1].Value	=	localized name of loader as [string]
230*cdf0e10cSrcweir 
231*cdf0e10cSrcweir 			@seealso	method getElementNames()
232*cdf0e10cSrcweir 			@seealso	method hasByName()
233*cdf0e10cSrcweir 
234*cdf0e10cSrcweir 			@param		"sName", the name of searched frame loader (use getElementNames() to get it!)
235*cdf0e10cSrcweir 			@return		A Sequence< PropertyValue > packed in an Any.
236*cdf0e10cSrcweir 
237*cdf0e10cSrcweir 			@onerror	If given name not exist a NoSuchElementException is thrown.
238*cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
239*cdf0e10cSrcweir 
240*cdf0e10cSrcweir     	virtual css::uno::Any SAL_CALL getByName( const ::rtl::OUString& sName ) throw(	css::container::NoSuchElementException	,
241*cdf0e10cSrcweir 																						css::lang::WrappedTargetException		,
242*cdf0e10cSrcweir 																						css::uno::RuntimeException				);
243*cdf0e10cSrcweir 
244*cdf0e10cSrcweir 		/*-****************************************************************************************************//**
245*cdf0e10cSrcweir 			@short		return list of all well known loader names from configuration
246*cdf0e10cSrcweir 			@descr		Use these method to get all names of well known loader.
247*cdf0e10cSrcweir 						You can use it to get the properties of a loader by calling getByName()!
248*cdf0e10cSrcweir 
249*cdf0e10cSrcweir 			@seealso	method getByName()
250*cdf0e10cSrcweir 			@seealso	method hasByName()
251*cdf0e10cSrcweir 
252*cdf0e10cSrcweir 			@param		-
253*cdf0e10cSrcweir 			@return		A list of well known loader. Is static at runtime!
254*cdf0e10cSrcweir 
255*cdf0e10cSrcweir 			@onerror	No error should occure.
256*cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
257*cdf0e10cSrcweir 
258*cdf0e10cSrcweir     	virtual css::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames() throw( css::uno::RuntimeException );
259*cdf0e10cSrcweir 
260*cdf0e10cSrcweir 		/*-****************************************************************************************************//**
261*cdf0e10cSrcweir 			@short		check if searched frame loader exist in configuration
262*cdf0e10cSrcweir 			@descr		Normaly nobody need these method realy (use getElementNames() in combination with getByName()).
263*cdf0e10cSrcweir 						We guarantee correctness of these mechanism. There is no reason to check for existing elements then ...
264*cdf0e10cSrcweir 						but if you have an unknwon name and has no fun to search it in returned sequence ...
265*cdf0e10cSrcweir 						you can call these ...
266*cdf0e10cSrcweir 
267*cdf0e10cSrcweir 			@seealso	method getByName()
268*cdf0e10cSrcweir 			@seealso	method getElementNames()
269*cdf0e10cSrcweir 
270*cdf0e10cSrcweir 			@param		"sName", implementation name of searched frame loader
271*cdf0e10cSrcweir 			@return		sal_True if loader exist, sal_False otherwise.
272*cdf0e10cSrcweir 
273*cdf0e10cSrcweir 			@onerror	No error should occure.
274*cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
275*cdf0e10cSrcweir 
276*cdf0e10cSrcweir     	virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& sName ) throw( css::uno::RuntimeException );
277*cdf0e10cSrcweir 
278*cdf0e10cSrcweir 		//---------------------------------------------------------------------------------------------------------
279*cdf0e10cSrcweir 		//	XElementAccess
280*cdf0e10cSrcweir 		//---------------------------------------------------------------------------------------------------------
281*cdf0e10cSrcweir 
282*cdf0e10cSrcweir 		/*-****************************************************************************************************//**
283*cdf0e10cSrcweir 			@short		return the type of retrun value of method XNameAccess::getByName()
284*cdf0e10cSrcweir 			@descr		In these implementation its a Sequence< PropertyValue > everytime!
285*cdf0e10cSrcweir 
286*cdf0e10cSrcweir 			@seealso	description of interface XNameAccess
287*cdf0e10cSrcweir 
288*cdf0e10cSrcweir 			@param		-
289*cdf0e10cSrcweir 			@return		Type of Sequence< PropertyValue >.
290*cdf0e10cSrcweir 
291*cdf0e10cSrcweir 			@onerror	No error should occure.
292*cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
293*cdf0e10cSrcweir 
294*cdf0e10cSrcweir 		virtual css::uno::Type SAL_CALL getElementType() throw( css::uno::RuntimeException );
295*cdf0e10cSrcweir 
296*cdf0e10cSrcweir 		/*-****************************************************************************************************//**
297*cdf0e10cSrcweir 			@short		return state if informations about frame loader available
298*cdf0e10cSrcweir 			@descr		If these method return false - no information could'nt read from configuration ...
299*cdf0e10cSrcweir 						I think nothing will work then. Normaly we return sal_True!
300*cdf0e10cSrcweir 
301*cdf0e10cSrcweir 			@seealso	class FilterCache!
302*cdf0e10cSrcweir 
303*cdf0e10cSrcweir 			@param		-
304*cdf0e10cSrcweir 			@return		sal_True if information available, sal_False otherwise.
305*cdf0e10cSrcweir 
306*cdf0e10cSrcweir 			@onerror	No error should occure.
307*cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
308*cdf0e10cSrcweir 
309*cdf0e10cSrcweir     	virtual sal_Bool SAL_CALL hasElements() throw( css::uno::RuntimeException );
310*cdf0e10cSrcweir 
311*cdf0e10cSrcweir 	//-------------------------------------------------------------------------------------------------------------
312*cdf0e10cSrcweir 	//	protected methods
313*cdf0e10cSrcweir 	//-------------------------------------------------------------------------------------------------------------
314*cdf0e10cSrcweir 
315*cdf0e10cSrcweir 	protected:
316*cdf0e10cSrcweir 
317*cdf0e10cSrcweir 	//-------------------------------------------------------------------------------------------------------------
318*cdf0e10cSrcweir 	//	private methods
319*cdf0e10cSrcweir 	//-------------------------------------------------------------------------------------------------------------
320*cdf0e10cSrcweir 
321*cdf0e10cSrcweir 	private:
322*cdf0e10cSrcweir 
323*cdf0e10cSrcweir 		/*-****************************************************************************************************//**
324*cdf0e10cSrcweir 			@short		try to set configuration properties at created loader
325*cdf0e10cSrcweir 			@descr		We support the old async. loader interface ( XFrameLoader ) and the new one XSynchronousFrameLoader.
326*cdf0e10cSrcweir 						The new one should implement a property set on which we can set his configuration values!
327*cdf0e10cSrcweir 						We try to cast given loader to these interface - if it's exist we set the values - otherwise not!
328*cdf0e10cSrcweir 
329*cdf0e10cSrcweir 			@seealso	service FrameLoader
330*cdf0e10cSrcweir 			@seealso	service SynchronousFrameLoader
331*cdf0e10cSrcweir 
332*cdf0e10cSrcweir 			@param		"xLoader" loader with generic XInterface! (We don't know before which service type is used!)
333*cdf0e10cSrcweir 			@param		"pLoaderInfo" configuration structure of these loader.
334*cdf0e10cSrcweir 			@return		-
335*cdf0e10cSrcweir 
336*cdf0e10cSrcweir 			@onerror	No error should occure.
337*cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
338*cdf0e10cSrcweir 
339*cdf0e10cSrcweir 		void impl_initializeLoader( css::uno::Reference< css::uno::XInterface >& xLoader, const Loader& pLoaderInfo );
340*cdf0e10cSrcweir 
341*cdf0e10cSrcweir 	//-------------------------------------------------------------------------------------------------------------
342*cdf0e10cSrcweir 	//	debug methods
343*cdf0e10cSrcweir 	//	(should be private everyway!)
344*cdf0e10cSrcweir 	//-------------------------------------------------------------------------------------------------------------
345*cdf0e10cSrcweir 
346*cdf0e10cSrcweir 		/*-****************************************************************************************************//**
347*cdf0e10cSrcweir 			@short		debug-method to check incoming parameter of some other mehods of this class
348*cdf0e10cSrcweir 			@descr		The following methods are used to check parameters for other methods
349*cdf0e10cSrcweir 						of this class. The return value is used directly for an ASSERT(...).
350*cdf0e10cSrcweir 
351*cdf0e10cSrcweir 			@seealso	ASSERTs in implementation!
352*cdf0e10cSrcweir 
353*cdf0e10cSrcweir 			@param		references to checking variables
354*cdf0e10cSrcweir 			@return		sal_False ,on invalid parameter
355*cdf0e10cSrcweir 			@return		sal_True  ,otherwise
356*cdf0e10cSrcweir 
357*cdf0e10cSrcweir 			@onerror	-
358*cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
359*cdf0e10cSrcweir 
360*cdf0e10cSrcweir 
361*cdf0e10cSrcweir 	#ifdef ENABLE_ASSERTIONS
362*cdf0e10cSrcweir 
363*cdf0e10cSrcweir 	private:
364*cdf0e10cSrcweir 
365*cdf0e10cSrcweir 	 	static sal_Bool impldbg_checkParameter_FrameLoaderFactory			(	const	css::uno::Reference< css::lang::XMultiServiceFactory >&	xFactory	);
366*cdf0e10cSrcweir 		static sal_Bool impldbg_checkParameter_createInstance				(	const	::rtl::OUString&										sTypeName	);
367*cdf0e10cSrcweir     	static sal_Bool impldbg_checkParameter_createInstanceWithArguments	(	const	::rtl::OUString&										sTypeName	,
368*cdf0e10cSrcweir 																				const	css::uno::Sequence< css::uno::Any >&					seqArguments);
369*cdf0e10cSrcweir     	static sal_Bool impldbg_checkParameter_getByName					(	const	::rtl::OUString&										sName		);
370*cdf0e10cSrcweir     	static sal_Bool impldbg_checkParameter_hasByName					(	const	::rtl::OUString&										sName		);
371*cdf0e10cSrcweir 
372*cdf0e10cSrcweir 	#endif	//	#ifdef ENABLE_ASSERTIONS
373*cdf0e10cSrcweir 
374*cdf0e10cSrcweir 	//-------------------------------------------------------------------------------------------------------------
375*cdf0e10cSrcweir 	//	private variables
376*cdf0e10cSrcweir 	//	(should be private everyway!)
377*cdf0e10cSrcweir 	//-------------------------------------------------------------------------------------------------------------
378*cdf0e10cSrcweir 
379*cdf0e10cSrcweir 	private:
380*cdf0e10cSrcweir 
381*cdf0e10cSrcweir 		css::uno::Reference< css::lang::XMultiServiceFactory >		m_xFactory			;
382*cdf0e10cSrcweir 		FilterCache													m_aCache			;
383*cdf0e10cSrcweir 
384*cdf0e10cSrcweir };		//	class FrameLoaderFactory
385*cdf0e10cSrcweir 
386*cdf0e10cSrcweir }		//	namespace framework
387*cdf0e10cSrcweir 
388*cdf0e10cSrcweir #endif	//	#ifndef __FRAMEWORK_SERVICES_FRAMELOADERFACTORY_HXX_
389