Update ooo320-m1
[ooovba.git] / connectivity / source / simpledbt / parsenode_s.hxx
blob35b0a6bcd5366d595bef7ca4a7742ef748cb08fc
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: parsenode_s.hxx,v $
10 * $Revision: 1.6 $
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 //........................................................................
42 class OSQLParseNode;
43 //================================================================
44 //= OSimpleParseNode
45 //================================================================
46 class OSimpleParseNode
47 :public simple::ISQLParseNode
48 ,public ORefBase
50 protected:
51 const OSQLParseNode* m_pFullNode;
52 sal_Bool m_bOwner;
54 public:
55 OSimpleParseNode(const OSQLParseNode* _pNode, sal_Bool _bTakeOwnership = sal_True);
56 ~OSimpleParseNode();
58 // ISQLParseNode
59 virtual void parseNodeToStr(::rtl::OUString& _rString,
60 const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection,
61 const IParseContext* _pContext
62 ) const;
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
71 ) const;
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