fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / ucb / source / cacher / cacheddynamicresultsetstub.hxx
blobefadea37fa5f9711e8c7e217febf81904aeb09b1
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_CACHEDDYNAMICRESULTSETSTUB_HXX
21 #define INCLUDED_UCB_SOURCE_CACHER_CACHEDDYNAMICRESULTSETSTUB_HXX
23 #include <dynamicresultsetwrapper.hxx>
24 #include <com/sun/star/ucb/XCachedDynamicResultSetStubFactory.hpp>
26 #define CACHED_DRS_STUB_SERVICE_NAME "com.sun.star.ucb.CachedDynamicResultSetStub"
27 #define CACHED_DRS_STUB_FACTORY_NAME "com.sun.star.ucb.CachedDynamicResultSetStubFactory"
31 class CachedDynamicResultSetStub
32 : public DynamicResultSetWrapper
33 , public com::sun::star::lang::XTypeProvider
34 , public com::sun::star::lang::XServiceInfo
36 protected:
37 virtual void SAL_CALL
38 impl_InitResultSetOne( const com::sun::star::uno::Reference<
39 com::sun::star::sdbc::XResultSet >& xResultSet ) SAL_OVERRIDE;
40 virtual void SAL_CALL
41 impl_InitResultSetTwo( const com::sun::star::uno::Reference<
42 com::sun::star::sdbc::XResultSet >& xResultSet ) SAL_OVERRIDE;
44 public:
45 CachedDynamicResultSetStub( com::sun::star::uno::Reference<
46 com::sun::star::ucb::XDynamicResultSet > xOrigin
47 , const com::sun::star::uno::Reference<
48 com::sun::star::uno::XComponentContext > & rxContext );
50 virtual ~CachedDynamicResultSetStub();
53 // XInterface
54 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType )
55 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
56 virtual void SAL_CALL acquire()
57 throw() SAL_OVERRIDE;
58 virtual void SAL_CALL release()
59 throw() SAL_OVERRIDE;
61 // XTypeProvider
63 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId()
64 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
65 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes()
66 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
68 // XServiceInfo
69 virtual OUString SAL_CALL getImplementationName()
70 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
71 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
72 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
73 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
74 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
76 static OUString getImplementationName_Static();
77 static css::uno::Sequence< OUString > getSupportedServiceNames_Static();
83 class CachedDynamicResultSetStubFactory
84 : public cppu::OWeakObject
85 , public com::sun::star::lang::XTypeProvider
86 , public com::sun::star::lang::XServiceInfo
87 , public com::sun::star::ucb::XCachedDynamicResultSetStubFactory
89 protected:
90 com::sun::star::uno::Reference<
91 com::sun::star::uno::XComponentContext > m_xContext;
93 public:
95 CachedDynamicResultSetStubFactory(
96 const com::sun::star::uno::Reference<
97 com::sun::star::uno::XComponentContext > & rxContext);
99 virtual ~CachedDynamicResultSetStubFactory();
101 // XInterface
102 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType )
103 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
104 virtual void SAL_CALL acquire()
105 throw() SAL_OVERRIDE;
106 virtual void SAL_CALL release()
107 throw() SAL_OVERRIDE;
109 // XTypeProvider
110 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId()
111 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
112 virtual css::uno::Sequence< com::sun::star::uno::Type > SAL_CALL getTypes()
113 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
115 // XServiceInfo
116 virtual OUString SAL_CALL getImplementationName()
117 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
118 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
119 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
120 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
121 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
123 static OUString getImplementationName_Static();
124 static css::uno::Sequence< OUString > getSupportedServiceNames_Static();
126 static css::uno::Reference< css::lang::XSingleServiceFactory >
127 createServiceFactory( const css::uno::Reference<
128 css::lang::XMultiServiceFactory >& rxServiceMgr );
130 // XCachedDynamicResultSetStubFactory
132 virtual com::sun::star::uno::Reference<
133 com::sun::star::ucb::XDynamicResultSet > SAL_CALL
134 createCachedDynamicResultSetStub(
135 const com::sun::star::uno::Reference<
136 com::sun::star::ucb::XDynamicResultSet > & Source )
137 throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
140 virtual void SAL_CALL connectToCache(
141 const com::sun::star::uno::Reference<
142 com::sun::star::ucb::XDynamicResultSet > & Source
143 , const com::sun::star::uno::Reference<
144 com::sun::star::ucb::XDynamicResultSet > & TargetCache
145 , const com::sun::star::uno::Sequence<
146 com::sun::star::ucb::NumberedSortingInfo > & SortingInfo
147 , const com::sun::star::uno::Reference<
148 com::sun::star::ucb::XAnyCompareFactory > & CompareFactory
150 throw (
151 com::sun::star::ucb::ListenerAlreadySetException
152 , com::sun::star::ucb::AlreadyInitializedException
153 , com::sun::star::uno::RuntimeException, std::exception
154 ) SAL_OVERRIDE;
157 #endif
159 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */