1*24acc546SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*24acc546SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*24acc546SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*24acc546SAndrew Rist  * distributed with this work for additional information
6*24acc546SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*24acc546SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*24acc546SAndrew Rist  * "License"); you may not use this file except in compliance
9*24acc546SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*24acc546SAndrew Rist  *
11*24acc546SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*24acc546SAndrew Rist  *
13*24acc546SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*24acc546SAndrew Rist  * software distributed under the License is distributed on an
15*24acc546SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*24acc546SAndrew Rist  * KIND, either express or implied.  See the License for the
17*24acc546SAndrew Rist  * specific language governing permissions and limitations
18*24acc546SAndrew Rist  * under the License.
19*24acc546SAndrew Rist  *
20*24acc546SAndrew Rist  *************************************************************/
21*24acc546SAndrew Rist 
22*24acc546SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_forms.hxx"
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include "boolexpression.hxx"
28cdf0e10cSrcweir 
29cdf0e10cSrcweir 
30cdf0e10cSrcweir namespace xforms
31cdf0e10cSrcweir {
32cdf0e10cSrcweir 
33cdf0e10cSrcweir /** BoolExpression represents a computed XPath expression that returns
34cdf0e10cSrcweir  * a bool value and caches the results.
35cdf0e10cSrcweir  *
36cdf0e10cSrcweir  * As this class has no virtual methods, it should never be used
37cdf0e10cSrcweir  * polymorphically. */
38cdf0e10cSrcweir 
BoolExpression()39cdf0e10cSrcweir BoolExpression::BoolExpression() : ComputedExpression()
40cdf0e10cSrcweir {
41cdf0e10cSrcweir }
42cdf0e10cSrcweir 
~BoolExpression()43cdf0e10cSrcweir BoolExpression::~BoolExpression()
44cdf0e10cSrcweir {
45cdf0e10cSrcweir }
46cdf0e10cSrcweir 
setExpression(const rtl::OUString & rExpression)47cdf0e10cSrcweir void BoolExpression::setExpression( const rtl::OUString& rExpression )
48cdf0e10cSrcweir {
49cdf0e10cSrcweir     ComputedExpression::setExpression( rExpression );
50cdf0e10cSrcweir     mbIsSimple = _checkExpression( " *(true)|(false) *\\( *\\) *" );
51cdf0e10cSrcweir }
52cdf0e10cSrcweir 
53cdf0e10cSrcweir 
54cdf0e10cSrcweir } // namespace xforms
55cdf0e10cSrcweir 
56