1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 #ifndef CONNECTIVITY_DBASE_DCODE_HXX 24 #define CONNECTIVITY_DBASE_DCODE_HXX 25 26 #include "file/fanalyzer.hxx" 27 #include <com/sun/star/container/XIndexAccess.hpp> 28 #include <com/sun/star/beans/XPropertySet.hpp> 29 #include "file/fcode.hxx" 30 31 namespace connectivity 32 { 33 namespace file 34 { 35 class OConnection; 36 } 37 namespace dbase 38 { 39 class OFILEAnalyzer : public file::OSQLAnalyzer 40 { 41 public: OFILEAnalyzer(file::OConnection * _pConnection)42 OFILEAnalyzer(file::OConnection* _pConnection) : file::OSQLAnalyzer(_pConnection){} 43 virtual file::OOperandAttr* createOperandAttr(sal_Int32 _nPos, 44 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>& _xCol, 45 const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess>& _xIndexes=NULL); 46 }; 47 48 // Attribute aus einer Ergebniszeile 49 class OFILEOperandAttr : public file::OOperandAttr 50 { 51 ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> m_xIndex; 52 public: 53 OFILEOperandAttr(sal_uInt16 _nPos, 54 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>& _xColumn, 55 const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess>& _xIndexes=NULL); 56 57 virtual sal_Bool isIndexed() const; 58 virtual file::OEvaluateSet* preProcess(file::OBoolOperator* pOp, file::OOperand* pRight = 0); 59 TYPEINFO(); 60 }; 61 } 62 } 63 64 #endif // CONNECTIVITY_DBASE_DCODE_HXX 65 66