1 //******************************************************************************
2 // Copyright (c) 2005-2013 by Jan Van hijfte
3 //
4 // See the included file COPYING.TXT for details about the copyright.
5 //
6 // This program is distributed in the hope that it will be useful,
7 // but WITHOUT ANY WARRANTY; without even the implied warranty of
8 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9 //******************************************************************************
10
11
12 #include "qtextedit_hook_c.h"
13
QTextEdit_hook_Create(QObjectH handle)14 QTextEdit_hookH QTextEdit_hook_Create(QObjectH handle)
15 {
16 return (QTextEdit_hookH) new QTextEdit_hook((QObject*)handle);
17 }
18
QTextEdit_hook_Destroy(QTextEdit_hookH handle)19 void QTextEdit_hook_Destroy(QTextEdit_hookH handle)
20 {
21 delete (QTextEdit_hook *)handle;
22 }
23
QTextEdit_hook_hook_textChanged(QTextEdit_hookH handle,QHookH hook)24 void QTextEdit_hook_hook_textChanged(QTextEdit_hookH handle, QHookH hook)
25 {
26 ((QTextEdit_hook *)handle)->hook_textChanged(hook);
27 }
28
QTextEdit_hook_hook_undoAvailable(QTextEdit_hookH handle,QHookH hook)29 void QTextEdit_hook_hook_undoAvailable(QTextEdit_hookH handle, QHookH hook)
30 {
31 ((QTextEdit_hook *)handle)->hook_undoAvailable(hook);
32 }
33
QTextEdit_hook_hook_redoAvailable(QTextEdit_hookH handle,QHookH hook)34 void QTextEdit_hook_hook_redoAvailable(QTextEdit_hookH handle, QHookH hook)
35 {
36 ((QTextEdit_hook *)handle)->hook_redoAvailable(hook);
37 }
38
QTextEdit_hook_hook_currentCharFormatChanged(QTextEdit_hookH handle,QHookH hook)39 void QTextEdit_hook_hook_currentCharFormatChanged(QTextEdit_hookH handle, QHookH hook)
40 {
41 ((QTextEdit_hook *)handle)->hook_currentCharFormatChanged(hook);
42 }
43
QTextEdit_hook_hook_copyAvailable(QTextEdit_hookH handle,QHookH hook)44 void QTextEdit_hook_hook_copyAvailable(QTextEdit_hookH handle, QHookH hook)
45 {
46 ((QTextEdit_hook *)handle)->hook_copyAvailable(hook);
47 }
48
QTextEdit_hook_hook_selectionChanged(QTextEdit_hookH handle,QHookH hook)49 void QTextEdit_hook_hook_selectionChanged(QTextEdit_hookH handle, QHookH hook)
50 {
51 ((QTextEdit_hook *)handle)->hook_selectionChanged(hook);
52 }
53
QTextEdit_hook_hook_cursorPositionChanged(QTextEdit_hookH handle,QHookH hook)54 void QTextEdit_hook_hook_cursorPositionChanged(QTextEdit_hookH handle, QHookH hook)
55 {
56 ((QTextEdit_hook *)handle)->hook_cursorPositionChanged(hook);
57 }
58
59