update dev300-m57
[ooovba.git] / framework / inc / services / urltransformer.hxx
blobce0ce27635f47bdfb7d18be1b60f2fce76e16467
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: urltransformer.hxx,v $
10 * $Revision: 1.8 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef __FRAMEWORK_SERVICES_URLTRANSFORMER_HXX_
32 #define __FRAMEWORK_SERVICES_URLTRANSFORMER_HXX_
34 //_________________________________________________________________________________________________________________
35 // my own includes
36 //_________________________________________________________________________________________________________________
38 #ifndef __FRAMEWORK_OMUTEXMEMBER_HXX_
39 #include <threadhelp/threadhelpbase.hxx>
40 #endif
41 #include <macros/generic.hxx>
42 #include <macros/debug.hxx>
43 #include <macros/xinterface.hxx>
44 #include <macros/xtypeprovider.hxx>
45 #include <macros/xserviceinfo.hxx>
46 #include <general.h>
48 //_________________________________________________________________________________________________________________
49 // interface includes
50 //_________________________________________________________________________________________________________________
51 #include <com/sun/star/util/XURLTransformer.hpp>
52 #include <com/sun/star/util/URL.hpp>
54 //_________________________________________________________________________________________________________________
55 // other includes
56 //_________________________________________________________________________________________________________________
57 #include <cppuhelper/weak.hxx>
59 //_________________________________________________________________________________________________________________
60 // namespace
61 //_________________________________________________________________________________________________________________
63 namespace framework{
65 //_________________________________________________________________________________________________________________
66 // exported const
67 //_________________________________________________________________________________________________________________
69 //_________________________________________________________________________________________________________________
70 // exported definitions
71 //_________________________________________________________________________________________________________________
73 /*-************************************************************************************************************//**
74 @short
76 @descr -
78 @implements XInterface
79 XTypeProvider
80 XServiceInfo
81 XURLTransformer
83 @base ThreadHelpBase
84 OWeakObject
85 *//*-*************************************************************************************************************/
87 class URLTransformer : public css::lang::XTypeProvider ,
88 public css::lang::XServiceInfo ,
89 public css::util::XURLTransformer ,
90 public ThreadHelpBase ,
91 public ::cppu::OWeakObject
93 //-------------------------------------------------------------------------------------------------------------
94 // public methods
95 //-------------------------------------------------------------------------------------------------------------
97 public:
99 //---------------------------------------------------------------------------------------------------------
100 // constructor / destructor
101 //---------------------------------------------------------------------------------------------------------
103 /*-****************************************************************************************************//**
104 @short -
105 @descr -
107 @seealso -
109 @param -
110 @return -
112 @onerror -
113 *//*-*****************************************************************************************************/
115 URLTransformer( const css::uno::Reference< css::lang::XMultiServiceFactory >& sFactory );
117 /*-****************************************************************************************************//**
118 @short -
119 @descr -
121 @seealso -
123 @param -
124 @return -
126 @onerror -
127 *//*-*****************************************************************************************************/
129 virtual ~URLTransformer();
131 //---------------------------------------------------------------------------------------------------------
132 // XInterface, XTypeProvider, XServiceInfo
133 //---------------------------------------------------------------------------------------------------------
135 FWK_DECLARE_XINTERFACE
136 FWK_DECLARE_XTYPEPROVIDER
137 DECLARE_XSERVICEINFO
139 //---------------------------------------------------------------------------------------------------------
140 // XURLTransformer
141 //---------------------------------------------------------------------------------------------------------
143 /*-****************************************************************************************************//**
144 @short -
145 @descr -
147 @seealso -
149 @param -
150 @return -
152 @onerror -
153 *//*-*****************************************************************************************************/
155 virtual sal_Bool SAL_CALL parseStrict( css::util::URL& aURL ) throw( css::uno::RuntimeException );
157 /*-****************************************************************************************************//**
158 @short -
159 @descr -
161 @seealso -
163 @param -
164 @return -
166 @onerror -
167 *//*-*****************************************************************************************************/
169 virtual sal_Bool SAL_CALL parseSmart( css::util::URL& aURL ,
170 const ::rtl::OUString& sSmartProtocol ) throw( css::uno::RuntimeException );
172 /*-****************************************************************************************************//**
173 @short -
174 @descr -
176 @seealso -
178 @param -
179 @return -
181 @onerror -
182 *//*-*****************************************************************************************************/
184 virtual sal_Bool SAL_CALL assemble( css::util::URL& aURL ) throw( css::uno::RuntimeException );
186 /*-****************************************************************************************************//**
187 @short -
188 @descr -
190 @seealso -
192 @param -
193 @return -
195 @onerror -
196 *//*-*****************************************************************************************************/
198 virtual ::rtl::OUString SAL_CALL getPresentation( const css::util::URL& aURL ,
199 sal_Bool bWithPassword ) throw( css::uno::RuntimeException );
201 //-------------------------------------------------------------------------------------------------------------
202 // protected methods
203 //-------------------------------------------------------------------------------------------------------------
205 protected:
207 //-------------------------------------------------------------------------------------------------------------
208 // private methods
209 //-------------------------------------------------------------------------------------------------------------
211 private:
213 //-------------------------------------------------------------------------------------------------------------
214 // debug methods
215 // (should be private everyway!)
216 //-------------------------------------------------------------------------------------------------------------
219 //-------------------------------------------------------------------------------------------------------------
220 // variables
221 // (should be private everyway!)
222 //-------------------------------------------------------------------------------------------------------------
224 private:
226 css::uno::Reference< css::lang::XMultiServiceFactory > m_xFactory ; /// reference to factory, which has created this instance
228 }; // class URLTransformer
230 } // namespace framework
232 #endif // #ifndef __FRAMEWORK_SERVICES_URLTRANSFORMER_HXX_