bump product version to 4.1.6.2
[LibreOffice.git] / framework / inc / services / urltransformer.hxx
blob29d1c79b8b976a363ec1ea00779ebd7230cede0a
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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>
29 #include <general.h>
31 #include <com/sun/star/util/XURLTransformer.hpp>
32 #include <com/sun/star/util/URL.hpp>
34 #include <cppuhelper/implbase2.hxx>
36 namespace framework{
38 /*-************************************************************************************************************//**
39 @short
41 @descr -
43 @implements XInterface
44 XTypeProvider
45 XServiceInfo
46 XURLTransformer
48 @base ThreadHelpBase
49 OWeakObject
50 *//*-*************************************************************************************************************/
52 class URLTransformer : public ::cppu::WeakImplHelper2< ::com::sun::star::util::XURLTransformer, css::lang::XServiceInfo>
54 //-------------------------------------------------------------------------------------------------------------
55 // public methods
56 //-------------------------------------------------------------------------------------------------------------
58 public:
60 //---------------------------------------------------------------------------------------------------------
61 // constructor / destructor
62 //---------------------------------------------------------------------------------------------------------
64 /*-****************************************************************************************************//**
65 @short -
66 @descr -
68 @seealso -
70 @param -
71 @return -
73 @onerror -
74 *//*-*****************************************************************************************************/
76 URLTransformer( const css::uno::Reference< css::lang::XMultiServiceFactory >& sFactory );
78 /*-****************************************************************************************************//**
79 @short -
80 @descr -
82 @seealso -
84 @param -
85 @return -
87 @onerror -
88 *//*-*****************************************************************************************************/
90 virtual ~URLTransformer();
92 //---------------------------------------------------------------------------------------------------------
93 // XInterface, XTypeProvider, XServiceInfo
94 //---------------------------------------------------------------------------------------------------------
96 DECLARE_XSERVICEINFO
98 //---------------------------------------------------------------------------------------------------------
99 // XURLTransformer
100 //---------------------------------------------------------------------------------------------------------
102 /*-****************************************************************************************************//**
103 @short -
104 @descr -
106 @seealso -
108 @param -
109 @return -
111 @onerror -
112 *//*-*****************************************************************************************************/
114 virtual sal_Bool SAL_CALL parseStrict( css::util::URL& aURL ) throw( css::uno::RuntimeException );
116 /*-****************************************************************************************************//**
117 @short -
118 @descr -
120 @seealso -
122 @param -
123 @return -
125 @onerror -
126 *//*-*****************************************************************************************************/
128 virtual sal_Bool SAL_CALL parseSmart( css::util::URL& aURL ,
129 const OUString& sSmartProtocol ) throw( css::uno::RuntimeException );
131 /*-****************************************************************************************************//**
132 @short -
133 @descr -
135 @seealso -
137 @param -
138 @return -
140 @onerror -
141 *//*-*****************************************************************************************************/
143 virtual sal_Bool SAL_CALL assemble( css::util::URL& aURL ) throw( css::uno::RuntimeException );
145 /*-****************************************************************************************************//**
146 @short -
147 @descr -
149 @seealso -
151 @param -
152 @return -
154 @onerror -
155 *//*-*****************************************************************************************************/
157 virtual OUString SAL_CALL getPresentation( const css::util::URL& aURL ,
158 sal_Bool bWithPassword ) throw( css::uno::RuntimeException );
160 //-------------------------------------------------------------------------------------------------------------
161 // protected methods
162 //-------------------------------------------------------------------------------------------------------------
164 protected:
166 //-------------------------------------------------------------------------------------------------------------
167 // private methods
168 //-------------------------------------------------------------------------------------------------------------
170 private:
172 //-------------------------------------------------------------------------------------------------------------
173 // debug methods
174 // (should be private everyway!)
175 //-------------------------------------------------------------------------------------------------------------
178 //-------------------------------------------------------------------------------------------------------------
179 // variables
180 // (should be private everyway!)
181 //-------------------------------------------------------------------------------------------------------------
183 private:
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: */