Update ooo320-m1
[ooovba.git] / binfilter / inc / bf_so3 / staticbaseurl.hxx
blobe86fef31a7dfa81943bb6005c3b77812b762c202
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: staticbaseurl.hxx,v $
10 * $Revision: 1.5 $
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 INCLUDED_SO3_INC_BF_XMLOFF_STATICBASEURL_HXX
32 #define INCLUDED_SO3_INC_BF_XMLOFF_STATICBASEURL_HXX
34 #ifndef _SAL_CONFIG_H_
35 #include "sal/config.h"
36 #endif
38 #ifndef _RTL_TEXTENC_H
39 #include "rtl/textenc.h"
40 #endif
41 #ifndef _URLOBJ_HXX
42 #include "tools/urlobj.hxx"
43 #endif
45 #ifndef INCLUDED_SO3DLLAPI_H
46 #include "bf_so3/so3dllapi.h"
47 #endif
49 class ByteString;
50 class String;
52 namespace binfilter {
54 /** A collection of static functions from tools/inc/urlobj.hxx (rev. 1.26) and
55 svtools/inc/urihelper.hxx (rev. 1.2) that have since been removed, but need
56 to remain available in so3 and binfilter.
58 namespace StaticBaseUrl {
60 String RelToAbs(
61 String const & rTheRelURIRef, bool bIgnoreFragment = false,
62 INetURLObject::EncodeMechanism eEncodeMechanism
63 = INetURLObject::WAS_ENCODED,
64 INetURLObject::DecodeMechanism eDecodeMechanism
65 = INetURLObject::DECODE_TO_IURI,
66 rtl_TextEncoding eCharset = RTL_TEXTENCODING_UTF8,
67 INetURLObject::FSysStyle eStyle = INetURLObject::FSYS_DETECT);
69 String AbsToRel(
70 String const & rTheAbsURIRef,
71 INetURLObject::EncodeMechanism eEncodeMechanism
72 = INetURLObject::WAS_ENCODED,
73 INetURLObject::DecodeMechanism eDecodeMechanism
74 = INetURLObject::DECODE_TO_IURI,
75 rtl_TextEncoding eCharset = RTL_TEXTENCODING_UTF8,
76 INetURLObject::FSysStyle eStyle = INetURLObject::FSYS_DETECT);
78 bool SetBaseURL(
79 String const & rTheBaseURIRef,
80 INetURLObject::EncodeMechanism eMechanism = INetURLObject::WAS_ENCODED,
81 rtl_TextEncoding eCharset = RTL_TEXTENCODING_UTF8);
83 String GetBaseURL(
84 INetURLObject::DecodeMechanism eMechanism = INetURLObject::DECODE_TO_IURI,
85 rtl_TextEncoding eCharset = RTL_TEXTENCODING_UTF8);
87 String SmartRelToAbs(
88 String const & rTheRelURIRef, bool bIgnoreFragment = false,
89 INetURLObject::EncodeMechanism eEncodeMechanism
90 = INetURLObject::WAS_ENCODED,
91 INetURLObject::DecodeMechanism eDecodeMechanism
92 = INetURLObject::DECODE_TO_IURI,
93 rtl_TextEncoding eCharset = RTL_TEXTENCODING_UTF8,
94 INetURLObject::FSysStyle eStyle = INetURLObject::FSYS_DETECT);
100 #endif