2 * Copyright 2006-2009, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
12 class BStringItem
: public BListItem
{
14 BStringItem(const char* text
,
15 uint32 outlineLevel
= 0,
16 bool expanded
= true);
17 BStringItem(BMessage
* archive
);
18 virtual ~BStringItem();
20 static BArchivable
* Instantiate(BMessage
* archive
);
21 virtual status_t
Archive(BMessage
* archive
,
22 bool deep
= true) const;
24 virtual void DrawItem(BView
* owner
, BRect frame
,
25 bool complete
= false);
26 virtual void SetText(const char* text
);
27 const char* Text() const;
29 virtual void Update(BView
* owner
, const BFont
* font
);
31 virtual status_t
Perform(perform_code code
, void* arg
);
34 float BaselineOffset() const;
37 // FBC padding and forbidden methods
38 virtual void _ReservedStringItem1();
39 virtual void _ReservedStringItem2();
41 BStringItem(const BStringItem
& item
);
42 BStringItem
& operator=(const BStringItem
& item
);
46 float fBaselineOffset
;
50 #endif // _STRING_ITEM_H