1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef __FRAMEWORK_SERVICES_URLTRANSFORMER_HXX_
21 #define __FRAMEWORK_SERVICES_URLTRANSFORMER_HXX_
23 #include <threadhelp/threadhelpbase.hxx>
24 #include <macros/generic.hxx>
25 #include <macros/debug.hxx>
26 #include <macros/xinterface.hxx>
27 #include <macros/xtypeprovider.hxx>
28 #include <macros/xserviceinfo.hxx>
31 #include <com/sun/star/util/XURLTransformer.hpp>
32 #include <com/sun/star/util/URL.hpp>
34 #include <cppuhelper/implbase2.hxx>
38 /*-************************************************************************************************************//**
43 @implements XInterface
50 *//*-*************************************************************************************************************/
52 class URLTransformer
: public ::cppu::WeakImplHelper2
< ::com::sun::star::util::XURLTransformer
, css::lang::XServiceInfo
>
54 //-------------------------------------------------------------------------------------------------------------
56 //-------------------------------------------------------------------------------------------------------------
60 //---------------------------------------------------------------------------------------------------------
61 // constructor / destructor
62 //---------------------------------------------------------------------------------------------------------
64 /*-****************************************************************************************************//**
74 *//*-*****************************************************************************************************/
76 URLTransformer( const css::uno::Reference
< css::lang::XMultiServiceFactory
>& sFactory
);
78 /*-****************************************************************************************************//**
88 *//*-*****************************************************************************************************/
90 virtual ~URLTransformer();
92 //---------------------------------------------------------------------------------------------------------
93 // XInterface, XTypeProvider, XServiceInfo
94 //---------------------------------------------------------------------------------------------------------
98 //---------------------------------------------------------------------------------------------------------
100 //---------------------------------------------------------------------------------------------------------
102 /*-****************************************************************************************************//**
112 *//*-*****************************************************************************************************/
114 virtual sal_Bool SAL_CALL
parseStrict( css::util::URL
& aURL
) throw( css::uno::RuntimeException
);
116 /*-****************************************************************************************************//**
126 *//*-*****************************************************************************************************/
128 virtual sal_Bool SAL_CALL
parseSmart( css::util::URL
& aURL
,
129 const OUString
& sSmartProtocol
) throw( css::uno::RuntimeException
);
131 /*-****************************************************************************************************//**
141 *//*-*****************************************************************************************************/
143 virtual sal_Bool SAL_CALL
assemble( css::util::URL
& aURL
) throw( css::uno::RuntimeException
);
145 /*-****************************************************************************************************//**
155 *//*-*****************************************************************************************************/
157 virtual OUString SAL_CALL
getPresentation( const css::util::URL
& aURL
,
158 sal_Bool bWithPassword
) throw( css::uno::RuntimeException
);
160 //-------------------------------------------------------------------------------------------------------------
162 //-------------------------------------------------------------------------------------------------------------
166 //-------------------------------------------------------------------------------------------------------------
168 //-------------------------------------------------------------------------------------------------------------
172 //-------------------------------------------------------------------------------------------------------------
174 // (should be private everyway!)
175 //-------------------------------------------------------------------------------------------------------------
178 //-------------------------------------------------------------------------------------------------------------
180 // (should be private everyway!)
181 //-------------------------------------------------------------------------------------------------------------
185 css::uno::Reference
< css::lang::XMultiServiceFactory
> m_xFactory
; /// reference to factory, which has created this instance
187 }; // class URLTransformer
189 } // namespace framework
191 #endif // #ifndef __FRAMEWORK_SERVICES_URLTRANSFORMER_HXX_
193 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */