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 _EXTENSIONS_PROPCTRLR_LINEDESCRIPTOR_HXX_
24 #define _EXTENSIONS_PROPCTRLR_LINEDESCRIPTOR_HXX_
25 
26 #include <vcl/image.hxx>
27 /** === begin UNO includes === **/
28 #include <com/sun/star/inspection/LineDescriptor.hpp>
29 /** === end UNO includes === **/
30 
31 //............................................................................
32 namespace pcr
33 {
34 //............................................................................
35 
36 	//========================================================================
37 	//= OLineDescriptor
38 	//========================================================================
39     struct OLineDescriptor : public ::com::sun::star::inspection::LineDescriptor
40 	{
41         ::rtl::OUString             sName;	            // the name of the property
42         ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XPropertyHandler >
43                                     xPropertyHandler;   // the handler for this property
44         ::com::sun::star::uno::Any  aValue;             // the current value of the property
45 
46 		bool                        bUnknownValue	 : 1;   // is the property value currently "unknown"? (PropertyState_AMBIGUOUS)
47         bool                        bReadOnly        : 1;
48 
OLineDescriptorpcr::OLineDescriptor49         OLineDescriptor()
50             :bUnknownValue( false )
51             ,bReadOnly( false )
52         {
53         }
54 
assignFrompcr::OLineDescriptor55         void assignFrom( const ::com::sun::star::inspection::LineDescriptor& _rhs )
56         {
57             ::com::sun::star::inspection::LineDescriptor::operator=( _rhs );
58         }
59 	};
60 
61 //............................................................................
62 } // namespace pcr
63 //............................................................................
64 
65 #endif // _EXTENSIONS_PROPCTRLR_LINEDESCRIPTOR_HXX_
66 
67