1 /************************************************************************* 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * 4 * Copyright 2000, 2010 Oracle and/or its affiliates. 5 * 6 * OpenOffice.org - a multi-platform office productivity suite 7 * 8 * This file is part of OpenOffice.org. 9 * 10 * OpenOffice.org is free software: you can redistribute it and/or modify 11 * it under the terms of the GNU Lesser General Public License version 3 12 * only, as published by the Free Software Foundation. 13 * 14 * OpenOffice.org is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 * GNU Lesser General Public License version 3 for more details 18 * (a copy is included in the LICENSE file that accompanied this code). 19 * 20 * You should have received a copy of the GNU Lesser General Public License 21 * version 3 along with OpenOffice.org. If not, see 22 * <http://www.openoffice.org/license.html> 23 * for a copy of the LGPLv3 License. 24 * 25 ************************************************************************/ 26 27 #ifndef UCB_UCPEXT_CONTENT_PROVIDER_HXX 28 #define UCB_UCPEXT_CONTENT_PROVIDER_HXX 29 30 #include <ucbhelper/providerhelper.hxx> 31 32 //...................................................................................................................... 33 namespace ucb { namespace ucp { namespace ext 34 { 35 //...................................................................................................................... 36 37 //================================================================================================================== 38 //= ContentProvider 39 //================================================================================================================== 40 typedef ::ucbhelper::ContentProviderImplHelper ContentProvider_Base; 41 class ContentProvider : public ContentProvider_Base 42 { 43 public: 44 ContentProvider( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_rServiceManager ); 45 virtual ~ContentProvider(); 46 47 // XServiceInfo 48 virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException); 49 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException); 50 51 // XServiceInfo - static versions 52 static ::rtl::OUString SAL_CALL getImplementationName_static( ) throw (::com::sun::star::uno::RuntimeException); 53 static ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames_static() throw (::com::sun::star::uno::RuntimeException); 54 static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL Create( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& i_rContext ); 55 56 // XContentProvider 57 virtual ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent > SAL_CALL queryContent( const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContentIdentifier >& Identifier ) throw (::com::sun::star::ucb::IllegalIdentifierException, ::com::sun::star::uno::RuntimeException); 58 59 public: 60 static ::rtl::OUString getRootURL(); 61 static ::rtl::OUString getArtificialNodeContentType(); 62 }; 63 64 //...................................................................................................................... 65 } } } // namespace ucb::ucp::ext 66 //...................................................................................................................... 67 68 #endif // UCB_UCPEXT_CONTENT_PROVIDER_HXX 69