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 
24 #ifndef _DBAUI_LISTVIEWITEMS_HXX_
25 #define _DBAUI_LISTVIEWITEMS_HXX_
26 
27 #ifndef _SVLBOXITM_HXX
28 #include <svtools/svlbitm.hxx>
29 #endif
30 
31 //........................................................................
32 namespace dbaui
33 {
34 //........................................................................
35 
36 	#define SV_ITEM_ID_BOLDLBSTRING	SV_ITEM_ID_LBOXSTRING
37 
38 	//====================================================================
39 	//= OBoldListboxString
40 	//====================================================================
41 	class OBoldListboxString : public SvLBoxString
42 	{
43 		sal_Bool	m_bEmphasized;
44 
45 	public:
OBoldListboxString(SvLBoxEntry * _pEntry,sal_uInt16 _nFlags,const XubString & _rStr)46 		OBoldListboxString(SvLBoxEntry* _pEntry, sal_uInt16 _nFlags, const XubString& _rStr)
47 			:SvLBoxString(_pEntry, _nFlags, _rStr)
48 			,m_bEmphasized(sal_False)
49 		{
50 		}
51 
52 		virtual sal_uInt16 IsA();
53 
54 		virtual void Paint(const Point& rPos, SvLBox& rDev, sal_uInt16 nFlags, SvLBoxEntry* pEntry);
55 		virtual void InitViewData( SvLBox* pView,SvLBoxEntry* pEntry, SvViewDataItem* _pViewData);
56 
isEmphasized() const57 		sal_Bool	isEmphasized() const { return m_bEmphasized; }
emphasize(sal_Bool _bEmphasize)58 		void		emphasize(sal_Bool _bEmphasize) { m_bEmphasized = _bEmphasize; }
59 	};
60 
61 //........................................................................
62 }	// namespace dbaui
63 //........................................................................
64 
65 #endif // _DBAUI_LISTVIEWITEMS_HXX_
66 
67