1 /* AbiWord - unix impl for selection handles
2  * Copyright (c) 2012 One laptop per child
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  * 02110-1301 USA.
18  *
19  * Author: Carlos Garnacho <carlos@lanedo.com>
20  */
21 
22 #ifndef FV_UNIXSELECTIONHANDLES_H
23 #define FV_UNIXSELECTIONHANDLES_H
24 
25 #include "fv_SelectionHandles.h"
26 #include "gtktexthandleprivate.h"
27 
28 class ABI_EXPORT FV_UnixSelectionHandles : public FV_SelectionHandles
29 {
30 	friend class fv_View;
31 
32 public:
33 	FV_UnixSelectionHandles (FV_View * pView, FV_Selection selection);
34 	virtual ~FV_UnixSelectionHandles();
35 
36 	virtual void hide(void);
37 	virtual void setCursorCoords (UT_sint32 x, UT_sint32 y, UT_uint32 height, bool visible);
38 	virtual void setSelectionCoords (UT_sint32 start_x, UT_sint32 start_y, UT_uint32 start_height, bool start_visible,
39 					 UT_sint32 end_x, UT_sint32 end_y, UT_uint32 end_height, bool end_visible);
40 
41 private:
42         FvTextHandle *m_text_handle;
43 };
44 
45 #endif /* FV_UNIXSELECTIONHANDLES_H */
46