1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: urltransformer.hxx,v $
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 //_________________________________________________________________________________________________________________
36 //_________________________________________________________________________________________________________________
38 #ifndef __FRAMEWORK_OMUTEXMEMBER_HXX_
39 #include <threadhelp/threadhelpbase.hxx>
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>
48 //_________________________________________________________________________________________________________________
50 //_________________________________________________________________________________________________________________
51 #include <com/sun/star/util/XURLTransformer.hpp>
52 #include <com/sun/star/util/URL.hpp>
54 //_________________________________________________________________________________________________________________
56 //_________________________________________________________________________________________________________________
57 #include <cppuhelper/implbase2.hxx>
59 //_________________________________________________________________________________________________________________
61 //_________________________________________________________________________________________________________________
65 //_________________________________________________________________________________________________________________
67 //_________________________________________________________________________________________________________________
69 //_________________________________________________________________________________________________________________
70 // exported definitions
71 //_________________________________________________________________________________________________________________
73 /*-************************************************************************************************************//**
78 @implements XInterface
85 *//*-*************************************************************************************************************/
87 class URLTransformer
: public ::cppu::WeakImplHelper2
< ::com::sun::star::util::XURLTransformer
, css::lang::XServiceInfo
>
89 //-------------------------------------------------------------------------------------------------------------
91 //-------------------------------------------------------------------------------------------------------------
95 //---------------------------------------------------------------------------------------------------------
96 // constructor / destructor
97 //---------------------------------------------------------------------------------------------------------
99 /*-****************************************************************************************************//**
109 *//*-*****************************************************************************************************/
111 URLTransformer( const css::uno::Reference
< css::lang::XMultiServiceFactory
>& sFactory
);
113 /*-****************************************************************************************************//**
123 *//*-*****************************************************************************************************/
125 virtual ~URLTransformer();
127 //---------------------------------------------------------------------------------------------------------
128 // XInterface, XTypeProvider, XServiceInfo
129 //---------------------------------------------------------------------------------------------------------
133 //---------------------------------------------------------------------------------------------------------
135 //---------------------------------------------------------------------------------------------------------
137 /*-****************************************************************************************************//**
147 *//*-*****************************************************************************************************/
149 virtual sal_Bool SAL_CALL
parseStrict( css::util::URL
& aURL
) throw( css::uno::RuntimeException
);
151 /*-****************************************************************************************************//**
161 *//*-*****************************************************************************************************/
163 virtual sal_Bool SAL_CALL
parseSmart( css::util::URL
& aURL
,
164 const ::rtl::OUString
& sSmartProtocol
) throw( css::uno::RuntimeException
);
166 /*-****************************************************************************************************//**
176 *//*-*****************************************************************************************************/
178 virtual sal_Bool SAL_CALL
assemble( css::util::URL
& aURL
) throw( css::uno::RuntimeException
);
180 /*-****************************************************************************************************//**
190 *//*-*****************************************************************************************************/
192 virtual ::rtl::OUString SAL_CALL
getPresentation( const css::util::URL
& aURL
,
193 sal_Bool bWithPassword
) throw( css::uno::RuntimeException
);
195 //-------------------------------------------------------------------------------------------------------------
197 //-------------------------------------------------------------------------------------------------------------
201 //-------------------------------------------------------------------------------------------------------------
203 //-------------------------------------------------------------------------------------------------------------
207 //-------------------------------------------------------------------------------------------------------------
209 // (should be private everyway!)
210 //-------------------------------------------------------------------------------------------------------------
213 //-------------------------------------------------------------------------------------------------------------
215 // (should be private everyway!)
216 //-------------------------------------------------------------------------------------------------------------
220 css::uno::Reference
< css::lang::XMultiServiceFactory
> m_xFactory
; /// reference to factory, which has created this instance
222 }; // class URLTransformer
224 } // namespace framework
226 #endif // #ifndef __FRAMEWORK_SERVICES_URLTRANSFORMER_HXX_