2 * Copyright 2003-2006, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
6 * Stefano Ceccherini (burton666@libero.it)
9 #ifndef __INLINEINPUT_H
10 #define __INLINEINPUT_H
12 #include <Messenger.h>
17 class BTextView::InlineInput
{
19 InlineInput(BMessenger
);
22 const BMessenger
*Method() const;
24 bool IsActive() const;
25 void SetActive(bool active
);
28 void SetLength(int32 length
);
31 void SetOffset(int32 offset
);
33 int32
SelectionLength() const;
34 void SetSelectionLength(int32
);
36 int32
SelectionOffset() const;
37 void SetSelectionOffset(int32 offset
);
39 bool AddClause(int32
, int32
);
40 bool GetClause(int32 index
, int32
*start
, int32
*end
) const;
41 int32
CountClauses() const;
46 const BMessenger fMessenger
;
53 int32 fSelectionOffset
;
54 int32 fSelectionLength
;
60 #endif //__INLINEINPUT_H