1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: DCode.hxx,v $
10 * $Revision: 1.3.56.1 $
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 CONNECTIVITY_DBASE_DCODE_HXX
31 #define CONNECTIVITY_DBASE_DCODE_HXX
33 #include "file/fanalyzer.hxx"
34 #include <com/sun/star/container/XIndexAccess.hpp>
35 #include <com/sun/star/beans/XPropertySet.hpp>
36 #include "file/fcode.hxx"
38 namespace connectivity
46 class OFILEAnalyzer
: public file::OSQLAnalyzer
49 OFILEAnalyzer(file::OConnection
* _pConnection
) : file::OSQLAnalyzer(_pConnection
){}
50 virtual file::OOperandAttr
* createOperandAttr(sal_Int32 _nPos
,
51 const ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
>& _xCol
,
52 const ::com::sun::star::uno::Reference
< ::com::sun::star::container::XNameAccess
>& _xIndexes
=NULL
);
55 // Attribute aus einer Ergebniszeile
56 class OFILEOperandAttr
: public file::OOperandAttr
58 ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
> m_xIndex
;
60 OFILEOperandAttr(sal_uInt16 _nPos
,
61 const ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
>& _xColumn
,
62 const ::com::sun::star::uno::Reference
< ::com::sun::star::container::XNameAccess
>& _xIndexes
=NULL
);
64 virtual sal_Bool
isIndexed() const;
65 virtual file::OEvaluateSet
* preProcess(file::OBoolOperator
* pOp
, file::OOperand
* pRight
= 0);
71 #endif // CONNECTIVITY_DBASE_DCODE_HXX