22 #include <autocorrection/widgets/lineeditwithautocorrection.h>
30 mComposerWin(composerWin)
42 QWidget *fw = mComposerWin->focusWidget();
47 if (::qobject_cast<PimCommon::LineEditWithAutoCorrection*>( fw )) {
48 static_cast<PimCommon::LineEditWithAutoCorrection*
>( fw )->undo();
49 }
else if ( ::qobject_cast<KMComposerEditor*>( fw ) ) {
51 }
else if (::qobject_cast<KLineEdit*>( fw )) {
58 QWidget *fw = mComposerWin->focusWidget();
63 if (::qobject_cast<PimCommon::LineEditWithAutoCorrection*>( fw )) {
64 static_cast<PimCommon::LineEditWithAutoCorrection*
>( fw )->redo();
65 }
else if ( ::qobject_cast<KMComposerEditor*>( fw ) ) {
67 }
else if (::qobject_cast<KLineEdit*>( fw )) {
75 QWidget *fw = mComposerWin->focusWidget();
80 if ( ::qobject_cast<PimCommon::LineEditWithAutoCorrection*>( fw ) ) {
81 static_cast<PimCommon::LineEditWithAutoCorrection*
>( fw )->cut();
82 }
else if ( ::qobject_cast<KMComposerEditor*>( fw ) ) {
84 }
else if ( ::qobject_cast<KLineEdit*>( fw ) ) {
92 QWidget *fw = mComposerWin->focusWidget();
97 if ( ::qobject_cast<PimCommon::LineEditWithAutoCorrection*>( fw ) ) {
98 static_cast<PimCommon::LineEditWithAutoCorrection*
>( fw )->copy();
99 }
else if ( ::qobject_cast<KMComposerEditor*>( fw ) ) {
101 }
else if ( ::qobject_cast<KLineEdit*>( fw ) ) {
109 QWidget *
const fw = mComposerWin->focusWidget();
113 if ( ::qobject_cast<PimCommon::LineEditWithAutoCorrection*>( fw ) ) {
114 static_cast<PimCommon::LineEditWithAutoCorrection*
>( fw )->paste();
115 }
else if ( ::qobject_cast<KMComposerEditor*>( fw ) ) {
117 }
else if ( ::qobject_cast<KLineEdit*>( fw ) ) {
125 QWidget *fw = mComposerWin->focusWidget();
130 if (::qobject_cast<PimCommon::LineEditWithAutoCorrection*>( fw )) {
131 static_cast<PimCommon::LineEditWithAutoCorrection*
>( fw )->selectAll();
132 }
else if ( ::qobject_cast<KLineEdit*>( fw ) ) {
133 static_cast<KLineEdit*
>( fw )->selectAll();
134 }
else if (::qobject_cast<KMComposerEditor*>( fw )) {
135 static_cast<KTextEdit*
>( fw )->selectAll();
KMComposerGlobalAction(KMComposeWin *composerWin, QObject *parent=0)
~KMComposerGlobalAction()