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/weak.hxx>
59 //_________________________________________________________________________________________________________________
61 //_________________________________________________________________________________________________________________
65 //_________________________________________________________________________________________________________________
67 //_________________________________________________________________________________________________________________
69 //_________________________________________________________________________________________________________________
70 // exported definitions
71 //_________________________________________________________________________________________________________________
73 /*-************************************************************************************************************//**
78 @implements XInterface
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 //-------------------------------------------------------------------------------------------------------------
95 //-------------------------------------------------------------------------------------------------------------
99 //---------------------------------------------------------------------------------------------------------
100 // constructor / destructor
101 //---------------------------------------------------------------------------------------------------------
103 /*-****************************************************************************************************//**
113 *//*-*****************************************************************************************************/
115 URLTransformer( const css::uno::Reference
< css::lang::XMultiServiceFactory
>& sFactory
);
117 /*-****************************************************************************************************//**
127 *//*-*****************************************************************************************************/
129 virtual ~URLTransformer();
131 //---------------------------------------------------------------------------------------------------------
132 // XInterface, XTypeProvider, XServiceInfo
133 //---------------------------------------------------------------------------------------------------------
135 FWK_DECLARE_XINTERFACE
136 FWK_DECLARE_XTYPEPROVIDER
139 //---------------------------------------------------------------------------------------------------------
141 //---------------------------------------------------------------------------------------------------------
143 /*-****************************************************************************************************//**
153 *//*-*****************************************************************************************************/
155 virtual sal_Bool SAL_CALL
parseStrict( css::util::URL
& aURL
) throw( css::uno::RuntimeException
);
157 /*-****************************************************************************************************//**
167 *//*-*****************************************************************************************************/
169 virtual sal_Bool SAL_CALL
parseSmart( css::util::URL
& aURL
,
170 const ::rtl::OUString
& sSmartProtocol
) throw( css::uno::RuntimeException
);
172 /*-****************************************************************************************************//**
182 *//*-*****************************************************************************************************/
184 virtual sal_Bool SAL_CALL
assemble( css::util::URL
& aURL
) throw( css::uno::RuntimeException
);
186 /*-****************************************************************************************************//**
196 *//*-*****************************************************************************************************/
198 virtual ::rtl::OUString SAL_CALL
getPresentation( const css::util::URL
& aURL
,
199 sal_Bool bWithPassword
) throw( css::uno::RuntimeException
);
201 //-------------------------------------------------------------------------------------------------------------
203 //-------------------------------------------------------------------------------------------------------------
207 //-------------------------------------------------------------------------------------------------------------
209 //-------------------------------------------------------------------------------------------------------------
213 //-------------------------------------------------------------------------------------------------------------
215 // (should be private everyway!)
216 //-------------------------------------------------------------------------------------------------------------
219 //-------------------------------------------------------------------------------------------------------------
221 // (should be private everyway!)
222 //-------------------------------------------------------------------------------------------------------------
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_