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 .
22 #include <rtl/ustring.hxx>
23 #include <cppuhelper/weak.hxx>
24 #include <com/sun/star/lang/XTypeProvider.hpp>
25 #include <com/sun/star/ucb/XContentIdentifier.hpp>
27 namespace fileaccess
{
31 class FileContentIdentifier
:
32 public cppu::OWeakObject
,
33 public com::sun::star::lang::XTypeProvider
,
34 public com::sun::star::ucb::XContentIdentifier
37 // This implementation has to be reworked
39 FileContentIdentifier( shell
* pMyShell
,
40 const rtl::OUString
& aUnqPath
,
41 sal_Bool IsNormalized
= true );
43 virtual ~FileContentIdentifier();
46 virtual com::sun::star::uno::Any SAL_CALL
48 const com::sun::star::uno::Type
& aType
)
49 throw( com::sun::star::uno::RuntimeException
);
62 virtual com::sun::star::uno::Sequence
< com::sun::star::uno::Type
> SAL_CALL
65 throw( com::sun::star::uno::RuntimeException
);
67 virtual com::sun::star::uno::Sequence
< sal_Int8
> SAL_CALL
70 throw( com::sun::star::uno::RuntimeException
);
73 virtual rtl::OUString SAL_CALL
76 throw( com::sun::star::uno::RuntimeException
);
78 virtual rtl::OUString SAL_CALL
79 getContentProviderScheme(
81 throw( com::sun::star::uno::RuntimeException
);
85 rtl::OUString m_aContentId
; // The URL string
86 rtl::OUString m_aNormalizedId
; // The somehow normalized string
87 rtl::OUString m_aProviderScheme
;
90 } // end namespace fileaccess
95 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */