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: parser_s.hxx,v $
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 ************************************************************************/
31 #ifndef CONNECTIVITY_DBTOOLS_PARSER_SIMPLE_HXX
32 #define CONNECTIVITY_DBTOOLS_PARSER_SIMPLE_HXX
34 #include <connectivity/virtualdbtools.hxx>
35 #include "refbase.hxx"
36 #include <connectivity/sqlparse.hxx>
38 //........................................................................
39 namespace connectivity
41 //........................................................................
43 //================================================================
45 //================================================================
46 class OSimpleSQLParser
47 :public simple::ISQLParser
51 OSQLParser m_aFullParser
;
54 OSimpleSQLParser(const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>& _rxServiceFactory
,const IParseContext
* _pContext
);
57 virtual ::rtl::Reference
< simple::ISQLParseNode
> predicateTree(
58 ::rtl::OUString
& rErrorMessage
,
59 const ::rtl::OUString
& rStatement
,
60 const ::com::sun::star::uno::Reference
< ::com::sun::star::util::XNumberFormatter
>& _rxFormatter
,
61 const ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
>& _rxField
64 virtual const IParseContext
& getContext() const;
66 // disambiguate IReference
67 virtual oslInterlockedCount SAL_CALL
acquire();
68 virtual oslInterlockedCount SAL_CALL
release();
71 //........................................................................
72 } // namespace connectivity
73 //........................................................................
75 #endif // CONNECTIVITY_DBTOOLS_PARSER_SIMPLE_HXX