Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef FV_SELECTIONHANDLES_H
00023 #define FV_SELECTIONHANDLES_H
00024
00025 #include "pt_Types.h"
00026 #include "fv_Selection.h"
00027
00028 class FV_View;
00029
00030 class ABI_EXPORT FV_SelectionHandles
00031 {
00032 public:
00033 FV_SelectionHandles (FV_View * pView, FV_Selection selection);
00034 virtual ~FV_SelectionHandles();
00035
00036 virtual void hide(void) {}
00037 virtual void setCursorCoords(UT_sint32 , UT_sint32 , UT_uint32 , bool ) {}
00038 virtual void setSelectionCoords(UT_sint32 , UT_sint32 , UT_uint32 , bool ,
00039 UT_sint32 , UT_sint32 , UT_uint32 , bool ) {}
00040
00041 void setCursor(PT_DocPosition cursor);
00042 void setSelection(PT_DocPosition start, PT_DocPosition end);
00043
00044 void updateSelectionStart(UT_sint32 x, UT_sint32 y);
00045 void updateSelectionEnd(UT_sint32 x, UT_sint32 y);
00046 void updateCursor(UT_sint32 x, UT_sint32 y);
00047
00048 protected:
00049 FV_View * m_pView;
00050 FV_Selection m_pSelection;
00051
00052 private:
00053 bool _getPositionCoords(PT_DocPosition pos, UT_sint32& x, UT_sint32& y, UT_uint32& height);
00054 };
00055
00056 #endif