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: parsenode_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_PARSENODE_SIMPLE_HXX
32 #define CONNECTIVITY_PARSENODE_SIMPLE_HXX
34 #include <connectivity/virtualdbtools.hxx>
35 #include "refbase.hxx"
37 //........................................................................
38 namespace connectivity
40 //........................................................................
43 //================================================================
45 //================================================================
46 class OSimpleParseNode
47 :public simple::ISQLParseNode
51 const OSQLParseNode
* m_pFullNode
;
55 OSimpleParseNode(const OSQLParseNode
* _pNode
, sal_Bool _bTakeOwnership
= sal_True
);
59 virtual void parseNodeToStr(::rtl::OUString
& _rString
,
60 const ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XConnection
>& _rxConnection
,
61 const IParseContext
* _pContext
64 virtual void parseNodeToPredicateStr(::rtl::OUString
& _rString
,
65 const ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XConnection
>& _rxConnection
,
66 const ::com::sun::star::uno::Reference
< ::com::sun::star::util::XNumberFormatter
>& _rxFormatter
,
67 const ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
>& _rxField
,
68 const ::com::sun::star::lang::Locale
& _rIntl
,
69 const sal_Char _cDecSeparator
,
70 const IParseContext
* _pContext
73 // disambiguate IReference
74 virtual oslInterlockedCount SAL_CALL
acquire();
75 virtual oslInterlockedCount SAL_CALL
release();
78 //........................................................................
79 } // namespace connectivity
80 //........................................................................
82 #endif // CONNECTIVITY_PARSENODE_SIMPLE_HXX