diff options
Diffstat (limited to 'vcl/unx/generic/app/i18n_cb.cxx')
-rw-r--r-- | vcl/unx/generic/app/i18n_cb.cxx | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/vcl/unx/generic/app/i18n_cb.cxx b/vcl/unx/generic/app/i18n_cb.cxx index ac62b621275d..015f226ed8fb 100644 --- a/vcl/unx/generic/app/i18n_cb.cxx +++ b/vcl/unx/generic/app/i18n_cb.cxx @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - #include <stdio.h> #include <string.h> @@ -38,12 +37,8 @@ #include "unx/i18n_im.hxx" #include "salframe.hxx" - - // i. preedit start callback - - int PreeditStartCallback ( XIC, XPointer client_data, XPointer ) { @@ -58,12 +53,8 @@ PreeditStartCallback ( XIC, XPointer client_data, XPointer ) return -1; } - - // ii. preedit done callback - - void PreeditDoneCallback ( XIC, XPointer client_data, XPointer ) { @@ -76,17 +67,11 @@ PreeditDoneCallback ( XIC, XPointer client_data, XPointer ) pPreeditData->eState = ePreeditStatusStartPending; } - - // iii. preedit draw callback - - - // Handle deletion of text in a preedit_draw_callback // from and howmuch are guaranteed to be nonnegative - void Preedit_DeleteText(preedit_text_t *ptext, int from, int howmuch) { @@ -148,11 +133,9 @@ enlarge_buffer ( preedit_text_t *ptext, int nnewlimit ) nnewsize * sizeof(XIMFeedback)); } - // Handle insertion of text in a preedit_draw_callback // string field of XIMText struct is guaranteed to be != NULL - void Preedit_InsertText(preedit_text_t *pText, XIMText *pInsertText, int where) { @@ -241,7 +224,6 @@ Preedit_InsertText(preedit_text_t *pText, XIMText *pInsertText, int where) pText->pUnicodeBuffer[pText->nLength] = (sal_Unicode)0; } - // Handle the change of attributes in a preedit_draw_callback void @@ -376,7 +358,6 @@ PreeditDrawCallback(XIC ic, XPointer client_data, } } - // build the SalExtTextInputEvent and send it up pPreeditData->aInputEv.mnTime = 0; @@ -423,12 +404,8 @@ GetPreeditSpotLocation(XIC ic, XPointer client_data) return; } - - // iv. preedit caret callback - - #if OSL_DEBUG_LEVEL > 1 void PreeditCaretCallback ( XIC ic, XPointer client_data, @@ -472,13 +449,9 @@ PreeditCaretCallback ( XIC, XPointer,XIMPreeditCaretCallbackStruct* ) #endif } - - // v. commit string callback: convert an extended text input (iiimp ... ) // into an ordinary key-event - - Bool IsControlCode(sal_Unicode nChar) { @@ -488,12 +461,8 @@ IsControlCode(sal_Unicode nChar) return False; } - - // vi. status callbacks: for now these are empty, they are just needed for turbo linux - - void StatusStartCallback (XIC, XPointer, XPointer) { @@ -557,12 +526,8 @@ SwitchIMCallback (XIC, XPointer, XPointer call_data) ::vcl::I18NStatus::get().changeIM( OStringToOUString(pCallData->to->name, RTL_TEXTENCODING_UTF8) ); } - - // vii. destroy callbacks: internally disable all IC/IM calls - - void IC_IMDestroyCallback (XIM, XPointer client_data, XPointer) { |