summaryrefslogtreecommitdiff
path: root/stoc/source/uriproc/UriReference.hxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-03-19 12:21:57 +0000
committerOliver Bolte <obo@openoffice.org>2004-03-19 12:21:57 +0000
commit100c6467d70eb59ac05f837a2244ea9a5193330d (patch)
tree0208b65fbef3b787f801c260dc2ebff977ecc8ad /stoc/source/uriproc/UriReference.hxx
parentf2855525d69370d9db0003d8c7c472d5f47fceb9 (diff)
INTEGRATION: CWS sb15 (1.2.14); FILE MERGED
2004/02/25 16:01:02 sb 1.2.14.1: #i24436# Adapted to new XVndSunStarScriptUrlReference; changed stoc::uriproc::UriReference from a base class to an implementation helper class.
Diffstat (limited to 'stoc/source/uriproc/UriReference.hxx')
-rw-r--r--stoc/source/uriproc/UriReference.hxx70
1 files changed, 23 insertions, 47 deletions
diff --git a/stoc/source/uriproc/UriReference.hxx b/stoc/source/uriproc/UriReference.hxx
index 4faf5d197479..5f761598c7b7 100644
--- a/stoc/source/uriproc/UriReference.hxx
+++ b/stoc/source/uriproc/UriReference.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: UriReference.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: kz $ $Date: 2004-01-19 18:28:41 $
+ * last change: $Author: obo $ $Date: 2004-03-19 13:21:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -63,8 +63,6 @@
#define INCLUDED_stoc_source_uriproc_UriReference_hxx
#include "com/sun/star/uno/RuntimeException.hpp"
-#include "com/sun/star/uri/XUriReference.hpp"
-#include "cppuhelper/implbase1.hxx"
#include "osl/mutex.hxx"
#include "rtl/ustring.hxx"
#include "sal/types.h"
@@ -73,77 +71,53 @@ namespace rtl { class OUStringBuffer; }
namespace stoc { namespace uriproc {
-class UriReference:
- public cppu::WeakImplHelper1< com::sun::star::uri::XUriReference >
-{
+class UriReference {
public:
UriReference(
rtl::OUString const & scheme, bool isHierarchical, bool hasAuthority,
rtl::OUString const & authority, rtl::OUString const & path,
bool hasQuery, rtl::OUString const & query);
- virtual rtl::OUString SAL_CALL getUriReference()
- throw (com::sun::star::uno::RuntimeException);
+ ~UriReference();
- virtual sal_Bool SAL_CALL isAbsolute()
+ rtl::OUString getUriReference()
throw (com::sun::star::uno::RuntimeException);
- virtual rtl::OUString SAL_CALL getScheme()
- throw (com::sun::star::uno::RuntimeException);
+ sal_Bool isAbsolute() throw (com::sun::star::uno::RuntimeException);
- virtual rtl::OUString SAL_CALL getSchemeSpecificPart()
- throw (com::sun::star::uno::RuntimeException);
+ rtl::OUString getScheme() throw (com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL isHierarchical()
+ rtl::OUString getSchemeSpecificPart()
throw (com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL hasAuthority()
- throw (com::sun::star::uno::RuntimeException);
+ sal_Bool isHierarchical() throw (com::sun::star::uno::RuntimeException);
- virtual rtl::OUString SAL_CALL getAuthority()
- throw (com::sun::star::uno::RuntimeException);
+ sal_Bool hasAuthority() throw (com::sun::star::uno::RuntimeException);
- virtual rtl::OUString SAL_CALL getPath()
- throw (com::sun::star::uno::RuntimeException);
+ rtl::OUString getAuthority() throw (com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL hasRelativePath()
- throw (com::sun::star::uno::RuntimeException);
+ rtl::OUString getPath() throw (com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getPathSegmentCount()
- throw (com::sun::star::uno::RuntimeException);
+ sal_Bool hasRelativePath() throw (com::sun::star::uno::RuntimeException);
- virtual rtl::OUString SAL_CALL getPathSegment(sal_Int32 index)
+ sal_Int32 getPathSegmentCount()
throw (com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL hasQuery()
+ rtl::OUString getPathSegment(sal_Int32 index)
throw (com::sun::star::uno::RuntimeException);
- virtual rtl::OUString SAL_CALL getQuery()
- throw (com::sun::star::uno::RuntimeException);
+ sal_Bool hasQuery() throw (com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL hasFragment()
- throw (com::sun::star::uno::RuntimeException);
+ rtl::OUString getQuery() throw (com::sun::star::uno::RuntimeException);
- virtual rtl::OUString SAL_CALL getFragment()
- throw (com::sun::star::uno::RuntimeException);
+ sal_Bool hasFragment() throw (com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL setFragment(rtl::OUString const & fragment)
- throw (com::sun::star::uno::RuntimeException);
+ rtl::OUString getFragment() throw (com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL clearFragment()
+ void setFragment(rtl::OUString const & fragment)
throw (com::sun::star::uno::RuntimeException);
-protected:
- UriReference();
-
- virtual ~UriReference();
-
- void initialize(
- rtl::OUString const & scheme, bool isHierarchical, bool hasAuthority,
- rtl::OUString const & authority, rtl::OUString const & path,
- bool hasQuery, rtl::OUString const & query);
-
- void appendSchemeSpecificPart(rtl::OUStringBuffer & buffer) const;
+ void clearFragment() throw (com::sun::star::uno::RuntimeException);
osl::Mutex m_mutex;
rtl::OUString m_scheme;
@@ -159,6 +133,8 @@ protected:
private:
UriReference(UriReference &); // not implemented
void operator =(UriReference); // not implemented
+
+ void appendSchemeSpecificPart(rtl::OUStringBuffer & buffer) const;
};
} }