1*f8e07b45SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*f8e07b45SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*f8e07b45SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*f8e07b45SAndrew Rist  * distributed with this work for additional information
6*f8e07b45SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*f8e07b45SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*f8e07b45SAndrew Rist  * "License"); you may not use this file except in compliance
9*f8e07b45SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*f8e07b45SAndrew Rist  *
11*f8e07b45SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*f8e07b45SAndrew Rist  *
13*f8e07b45SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*f8e07b45SAndrew Rist  * software distributed under the License is distributed on an
15*f8e07b45SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*f8e07b45SAndrew Rist  * KIND, either express or implied.  See the License for the
17*f8e07b45SAndrew Rist  * specific language governing permissions and limitations
18*f8e07b45SAndrew Rist  * under the License.
19*f8e07b45SAndrew Rist  *
20*f8e07b45SAndrew Rist  *************************************************************/
21*f8e07b45SAndrew Rist 
22*f8e07b45SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef __FRAMEWORK_SERVICES_URLTRANSFORMER_HXX_
25cdf0e10cSrcweir #define __FRAMEWORK_SERVICES_URLTRANSFORMER_HXX_
26cdf0e10cSrcweir 
27cdf0e10cSrcweir //_________________________________________________________________________________________________________________
28cdf0e10cSrcweir //	my own includes
29cdf0e10cSrcweir //_________________________________________________________________________________________________________________
30cdf0e10cSrcweir 
31cdf0e10cSrcweir #ifndef __FRAMEWORK_OMUTEXMEMBER_HXX_
32cdf0e10cSrcweir #include <threadhelp/threadhelpbase.hxx>
33cdf0e10cSrcweir #endif
34cdf0e10cSrcweir #include <macros/generic.hxx>
35cdf0e10cSrcweir #include <macros/debug.hxx>
36cdf0e10cSrcweir #include <macros/xinterface.hxx>
37cdf0e10cSrcweir #include <macros/xtypeprovider.hxx>
38cdf0e10cSrcweir #include <macros/xserviceinfo.hxx>
39cdf0e10cSrcweir #include <general.h>
40cdf0e10cSrcweir 
41cdf0e10cSrcweir //_________________________________________________________________________________________________________________
42cdf0e10cSrcweir //	interface includes
43cdf0e10cSrcweir //_________________________________________________________________________________________________________________
44cdf0e10cSrcweir #include <com/sun/star/util/XURLTransformer.hpp>
45cdf0e10cSrcweir #include <com/sun/star/util/URL.hpp>
46cdf0e10cSrcweir 
47cdf0e10cSrcweir //_________________________________________________________________________________________________________________
48cdf0e10cSrcweir //	other includes
49cdf0e10cSrcweir //_________________________________________________________________________________________________________________
50cdf0e10cSrcweir #include <cppuhelper/implbase2.hxx>
51cdf0e10cSrcweir 
52cdf0e10cSrcweir //_________________________________________________________________________________________________________________
53cdf0e10cSrcweir //	namespace
54cdf0e10cSrcweir //_________________________________________________________________________________________________________________
55cdf0e10cSrcweir 
56cdf0e10cSrcweir namespace framework{
57cdf0e10cSrcweir 
58cdf0e10cSrcweir //_________________________________________________________________________________________________________________
59cdf0e10cSrcweir //	exported const
60cdf0e10cSrcweir //_________________________________________________________________________________________________________________
61cdf0e10cSrcweir 
62cdf0e10cSrcweir //_________________________________________________________________________________________________________________
63cdf0e10cSrcweir //	exported definitions
64cdf0e10cSrcweir //_________________________________________________________________________________________________________________
65cdf0e10cSrcweir 
66cdf0e10cSrcweir /*-************************************************************************************************************//**
67cdf0e10cSrcweir 	@short
68cdf0e10cSrcweir 
69cdf0e10cSrcweir 	@descr		-
70cdf0e10cSrcweir 
71cdf0e10cSrcweir 	@implements	XInterface
72cdf0e10cSrcweir 				XTypeProvider
73cdf0e10cSrcweir 				XServiceInfo
74cdf0e10cSrcweir 				XURLTransformer
75cdf0e10cSrcweir 
76cdf0e10cSrcweir 	@base		ThreadHelpBase
77cdf0e10cSrcweir 				OWeakObject
78cdf0e10cSrcweir *//*-*************************************************************************************************************/
79cdf0e10cSrcweir 
80cdf0e10cSrcweir class URLTransformer	:	public ::cppu::WeakImplHelper2< ::com::sun::star::util::XURLTransformer, css::lang::XServiceInfo>
81cdf0e10cSrcweir {
82cdf0e10cSrcweir 	//-------------------------------------------------------------------------------------------------------------
83cdf0e10cSrcweir 	//	public methods
84cdf0e10cSrcweir 	//-------------------------------------------------------------------------------------------------------------
85cdf0e10cSrcweir 
86cdf0e10cSrcweir 	public:
87cdf0e10cSrcweir 
88cdf0e10cSrcweir 		//---------------------------------------------------------------------------------------------------------
89cdf0e10cSrcweir 		//	constructor / destructor
90cdf0e10cSrcweir 		//---------------------------------------------------------------------------------------------------------
91cdf0e10cSrcweir 
92cdf0e10cSrcweir 		/*-****************************************************************************************************//**
93cdf0e10cSrcweir 			@short		-
94cdf0e10cSrcweir 			@descr		-
95cdf0e10cSrcweir 
96cdf0e10cSrcweir 			@seealso	-
97cdf0e10cSrcweir 
98cdf0e10cSrcweir 			@param		-
99cdf0e10cSrcweir 			@return		-
100cdf0e10cSrcweir 
101cdf0e10cSrcweir 			@onerror	-
102cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
103cdf0e10cSrcweir 
104cdf0e10cSrcweir 	 	URLTransformer( const css::uno::Reference< css::lang::XMultiServiceFactory >& sFactory );
105cdf0e10cSrcweir 
106cdf0e10cSrcweir 		/*-****************************************************************************************************//**
107cdf0e10cSrcweir 			@short		-
108cdf0e10cSrcweir 			@descr		-
109cdf0e10cSrcweir 
110cdf0e10cSrcweir 			@seealso	-
111cdf0e10cSrcweir 
112cdf0e10cSrcweir 			@param		-
113cdf0e10cSrcweir 			@return		-
114cdf0e10cSrcweir 
115cdf0e10cSrcweir 			@onerror	-
116cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
117cdf0e10cSrcweir 
118cdf0e10cSrcweir 		virtual	~URLTransformer();
119cdf0e10cSrcweir 
120cdf0e10cSrcweir 		//---------------------------------------------------------------------------------------------------------
121cdf0e10cSrcweir 		//	XInterface, XTypeProvider, XServiceInfo
122cdf0e10cSrcweir 		//---------------------------------------------------------------------------------------------------------
123cdf0e10cSrcweir 
124cdf0e10cSrcweir 		DECLARE_XSERVICEINFO
125cdf0e10cSrcweir 
126cdf0e10cSrcweir 		//---------------------------------------------------------------------------------------------------------
127cdf0e10cSrcweir 		//	XURLTransformer
128cdf0e10cSrcweir 		//---------------------------------------------------------------------------------------------------------
129cdf0e10cSrcweir 
130cdf0e10cSrcweir 		/*-****************************************************************************************************//**
131cdf0e10cSrcweir 			@short		-
132cdf0e10cSrcweir 			@descr		-
133cdf0e10cSrcweir 
134cdf0e10cSrcweir 			@seealso	-
135cdf0e10cSrcweir 
136cdf0e10cSrcweir 			@param		-
137cdf0e10cSrcweir 			@return		-
138cdf0e10cSrcweir 
139cdf0e10cSrcweir 			@onerror	-
140cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
141cdf0e10cSrcweir 
142cdf0e10cSrcweir     	virtual sal_Bool SAL_CALL parseStrict( css::util::URL& aURL ) throw( css::uno::RuntimeException );
143cdf0e10cSrcweir 
144cdf0e10cSrcweir 		/*-****************************************************************************************************//**
145cdf0e10cSrcweir 			@short		-
146cdf0e10cSrcweir 			@descr		-
147cdf0e10cSrcweir 
148cdf0e10cSrcweir 			@seealso	-
149cdf0e10cSrcweir 
150cdf0e10cSrcweir 			@param		-
151cdf0e10cSrcweir 			@return		-
152cdf0e10cSrcweir 
153cdf0e10cSrcweir 			@onerror	-
154cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
155cdf0e10cSrcweir 
156cdf0e10cSrcweir     	virtual sal_Bool SAL_CALL parseSmart(			css::util::URL&		aURL			,
157cdf0e10cSrcweir 												const	::rtl::OUString&	sSmartProtocol	) throw( css::uno::RuntimeException );
158cdf0e10cSrcweir 
159cdf0e10cSrcweir 		/*-****************************************************************************************************//**
160cdf0e10cSrcweir 			@short		-
161cdf0e10cSrcweir 			@descr		-
162cdf0e10cSrcweir 
163cdf0e10cSrcweir 			@seealso	-
164cdf0e10cSrcweir 
165cdf0e10cSrcweir 			@param		-
166cdf0e10cSrcweir 			@return		-
167cdf0e10cSrcweir 
168cdf0e10cSrcweir 			@onerror	-
169cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
170cdf0e10cSrcweir 
171cdf0e10cSrcweir     	virtual sal_Bool SAL_CALL assemble( css::util::URL& aURL ) throw( css::uno::RuntimeException );
172cdf0e10cSrcweir 
173cdf0e10cSrcweir 		/*-****************************************************************************************************//**
174cdf0e10cSrcweir 			@short		-
175cdf0e10cSrcweir 			@descr		-
176cdf0e10cSrcweir 
177cdf0e10cSrcweir 			@seealso	-
178cdf0e10cSrcweir 
179cdf0e10cSrcweir 			@param		-
180cdf0e10cSrcweir 			@return		-
181cdf0e10cSrcweir 
182cdf0e10cSrcweir 			@onerror	-
183cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
184cdf0e10cSrcweir 
185cdf0e10cSrcweir     	virtual ::rtl::OUString SAL_CALL getPresentation(	const	css::util::URL&		aURL			,
186cdf0e10cSrcweir 																	sal_Bool			bWithPassword	) throw( css::uno::RuntimeException );
187cdf0e10cSrcweir 
188cdf0e10cSrcweir 	//-------------------------------------------------------------------------------------------------------------
189cdf0e10cSrcweir 	//	protected methods
190cdf0e10cSrcweir 	//-------------------------------------------------------------------------------------------------------------
191cdf0e10cSrcweir 
192cdf0e10cSrcweir 	protected:
193cdf0e10cSrcweir 
194cdf0e10cSrcweir 	//-------------------------------------------------------------------------------------------------------------
195cdf0e10cSrcweir 	//	private methods
196cdf0e10cSrcweir 	//-------------------------------------------------------------------------------------------------------------
197cdf0e10cSrcweir 
198cdf0e10cSrcweir 	private:
199cdf0e10cSrcweir 
200cdf0e10cSrcweir 	//-------------------------------------------------------------------------------------------------------------
201cdf0e10cSrcweir 	//	debug methods
202cdf0e10cSrcweir 	//	(should be private everyway!)
203cdf0e10cSrcweir 	//-------------------------------------------------------------------------------------------------------------
204cdf0e10cSrcweir 
205cdf0e10cSrcweir 
206cdf0e10cSrcweir 	//-------------------------------------------------------------------------------------------------------------
207cdf0e10cSrcweir 	//	variables
208cdf0e10cSrcweir 	//	(should be private everyway!)
209cdf0e10cSrcweir 	//-------------------------------------------------------------------------------------------------------------
210cdf0e10cSrcweir 
211cdf0e10cSrcweir 	private:
212cdf0e10cSrcweir 
213cdf0e10cSrcweir 		css::uno::Reference< css::lang::XMultiServiceFactory >		m_xFactory			;	/// reference to factory, which has created this instance
214cdf0e10cSrcweir 
215cdf0e10cSrcweir };		//	class URLTransformer
216cdf0e10cSrcweir 
217cdf0e10cSrcweir }		//	namespace framework
218cdf0e10cSrcweir 
219cdf0e10cSrcweir #endif	//	#ifndef __FRAMEWORK_SERVICES_URLTRANSFORMER_HXX_
220