2 * Copyright 2003-2009, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
6 * Stefano Ceccherini (stefano.ceccherini@gmail.com)
9 #ifndef __INLINEINPUT_H
10 #define __INLINEINPUT_H
12 #include <Messenger.h>
19 InlineInput(BMessenger
);
22 const BMessenger
*Method() const;
24 const char *String() const;
25 void SetString(const char *string
);
27 bool IsActive() const;
28 void SetActive(bool active
);
30 int32
SelectionLength() const;
31 void SetSelectionLength(int32
);
33 int32
SelectionOffset() const;
34 void SetSelectionOffset(int32 offset
);
36 bool AddClause(int32
, int32
);
37 bool GetClause(int32 index
, int32
*start
, int32
*end
) const;
38 int32
CountClauses() const;
43 const BMessenger fMessenger
;
48 int32 fSelectionOffset
;
49 int32 fSelectionLength
;
55 #endif //__INLINEINPUT_H