merge the formfield patch from ooo-build
[ooovba.git] / ucb / source / ucp / gvfs / directory.hxx
blobd5124eedb619e86a63d460cbc26cd8cba8fa571d
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: directory.hxx,v $
10 * $Revision: 1.7 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _GVFS_UCP_RESULTSET_HXX
31 #define _GVFS_UCP_RESULTSET_HXX
33 #include <rtl/ref.hxx>
34 #include <ucbhelper/resultset.hxx>
35 #include <ucbhelper/resultsethelper.hxx>
36 #include "content.hxx"
38 namespace gvfs {
40 class DynamicResultSet : public ::ucbhelper::ResultSetImplHelper
42 rtl::Reference< Content > m_xContent;
43 com::sun::star::uno::Reference<
44 com::sun::star::ucb::XCommandEnvironment > m_xEnv;
46 private:
47 virtual void initStatic();
48 virtual void initDynamic();
50 public:
51 DynamicResultSet( const com::sun::star::uno::Reference<
52 com::sun::star::lang::XMultiServiceFactory >& rxSMgr,
53 const rtl::Reference< Content >& rxContent,
54 const com::sun::star::ucb::OpenCommandArgument2& rCommand,
55 const com::sun::star::uno::Reference<
56 com::sun::star::ucb::XCommandEnvironment >& rxEnv );
60 struct DataSupplier_Impl;
61 class DataSupplier : public ucbhelper::ResultSetDataSupplier
63 private:
64 gvfs::DataSupplier_Impl *m_pImpl;
65 sal_Bool getData();
67 public:
68 DataSupplier( const com::sun::star::uno::Reference<
69 com::sun::star::lang::XMultiServiceFactory >& rxSMgr,
70 const rtl::Reference< Content >& rContent,
71 sal_Int32 nOpenMode);
73 virtual ~DataSupplier();
75 virtual rtl::OUString queryContentIdentifierString( sal_uInt32 nIndex );
76 virtual com::sun::star::uno::Reference<
77 com::sun::star::ucb::XContentIdentifier >
78 queryContentIdentifier( sal_uInt32 nIndex );
79 virtual com::sun::star::uno::Reference< com::sun::star::ucb::XContent >
80 queryContent( sal_uInt32 nIndex );
82 virtual sal_Bool getResult( sal_uInt32 nIndex );
84 virtual sal_uInt32 totalCount();
85 virtual sal_uInt32 currentCount();
86 virtual sal_Bool isCountFinal();
88 virtual com::sun::star::uno::Reference< com::sun::star::sdbc::XRow >
89 queryPropertyValues( sal_uInt32 nIndex );
90 virtual void releasePropertyValues( sal_uInt32 nIndex );
91 virtual void close();
92 virtual void validate()
93 throw( com::sun::star::ucb::ResultSetException );
98 #endif