fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / ucb / source / cacher / cacheddynamicresultset.hxx
blobaf9b60770d22cf5552cfd87491f16799f528b4ce
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 INCLUDED_UCB_SOURCE_CACHER_CACHEDDYNAMICRESULTSET_HXX
21 #define INCLUDED_UCB_SOURCE_CACHER_CACHEDDYNAMICRESULTSET_HXX
23 #include <dynamicresultsetwrapper.hxx>
24 #include <com/sun/star/ucb/XContentIdentifierMapping.hpp>
25 #include <com/sun/star/ucb/XCachedDynamicResultSetFactory.hpp>
27 #define CACHED_DRS_SERVICE_NAME "com.sun.star.ucb.CachedDynamicResultSet"
28 #define CACHED_DRS_FACTORY_NAME "com.sun.star.ucb.CachedDynamicResultSetFactory"
32 class CachedDynamicResultSet
33 : public DynamicResultSetWrapper
34 , public com::sun::star::lang::XTypeProvider
35 , public com::sun::star::lang::XServiceInfo
37 com::sun::star::uno::Reference< com::sun::star::ucb::XContentIdentifierMapping >
38 m_xContentIdentifierMapping;
40 protected:
41 virtual void SAL_CALL
42 impl_InitResultSetOne( const com::sun::star::uno::Reference<
43 com::sun::star::sdbc::XResultSet >& xResultSet ) SAL_OVERRIDE;
44 virtual void SAL_CALL
45 impl_InitResultSetTwo( const com::sun::star::uno::Reference<
46 com::sun::star::sdbc::XResultSet >& xResultSet ) SAL_OVERRIDE;
48 public:
49 CachedDynamicResultSet( com::sun::star::uno::Reference<
50 com::sun::star::ucb::XDynamicResultSet > xOrigin
51 , const com::sun::star::uno::Reference<
52 com::sun::star::ucb::XContentIdentifierMapping > & xContentMapping
53 , const com::sun::star::uno::Reference<
54 com::sun::star::uno::XComponentContext > & xContext );
56 virtual ~CachedDynamicResultSet();
59 // XInterface
60 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType )
61 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
62 virtual void SAL_CALL acquire()
63 throw() SAL_OVERRIDE;
64 virtual void SAL_CALL release()
65 throw() SAL_OVERRIDE;
67 // XTypeProvider
69 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId()
70 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
71 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes()
72 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
74 // XServiceInfo
75 virtual OUString SAL_CALL getImplementationName()
76 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
77 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
78 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
79 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
80 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
82 static OUString getImplementationName_Static();
83 static css::uno::Sequence< OUString > getSupportedServiceNames_Static();
86 // own methods ( inherited )
88 virtual void SAL_CALL
89 impl_disposing( const com::sun::star::lang::EventObject& Source )
90 throw( com::sun::star::uno::RuntimeException ) SAL_OVERRIDE;
95 class CachedDynamicResultSetFactory
96 : public cppu::OWeakObject
97 , public com::sun::star::lang::XTypeProvider
98 , public com::sun::star::lang::XServiceInfo
99 , public com::sun::star::ucb::XCachedDynamicResultSetFactory
101 protected:
102 com::sun::star::uno::Reference<
103 com::sun::star::uno::XComponentContext > m_xContext;
105 public:
107 CachedDynamicResultSetFactory(
108 const com::sun::star::uno::Reference<
109 com::sun::star::uno::XComponentContext > & xContext);
111 virtual ~CachedDynamicResultSetFactory();
114 // XInterface
115 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType )
116 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
117 virtual void SAL_CALL acquire()
118 throw() SAL_OVERRIDE;
119 virtual void SAL_CALL release()
120 throw() SAL_OVERRIDE;
122 // XTypeProvider
123 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId()
124 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
125 virtual css::uno::Sequence< com::sun::star::uno::Type > SAL_CALL getTypes()
126 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
129 // XServiceInfo
130 virtual OUString SAL_CALL getImplementationName()
131 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
132 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
133 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
134 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
135 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
137 static OUString getImplementationName_Static();
138 static css::uno::Sequence< OUString > getSupportedServiceNames_Static();
140 static css::uno::Reference< css::lang::XSingleServiceFactory >
141 createServiceFactory( const css::uno::Reference<
142 css::lang::XMultiServiceFactory >& rxServiceMgr );
144 // XCachedDynamicResultSetFactory
146 virtual com::sun::star::uno::Reference<
147 com::sun::star::ucb::XDynamicResultSet > SAL_CALL
148 createCachedDynamicResultSet(
149 const com::sun::star::uno::Reference<
150 com::sun::star::ucb::XDynamicResultSet > &
151 SourceStub
152 , const com::sun::star::uno::Reference<
153 com::sun::star::ucb::XContentIdentifierMapping > &
154 ContentIdentifierMapping
156 throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
159 #endif
161 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */