Add Keyboard type and Language locale
[platform/core/uifw/dali-adaptor.git] / adaptors / wayland / input / text / imf / imf-manager-impl-wl.cpp
index db22b2f..ab45e74 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -25,7 +25,7 @@
 // INTERNAL INCLUDES
 #include <singleton-service-impl.h>
 #include <adaptor-impl.h>
-
+#include <string.h>
 
 namespace Dali
 {
@@ -143,7 +143,7 @@ Dali::ImfManager ImfManager::Get()
   }
   else
   {
-    DALI_LOG_ERROR("Failed to get native window handle");
+    DALI_LOG_ERROR("Failed to get native window handle\n");
   }
   return manager;
 }
@@ -240,7 +240,7 @@ void ImfManager::NotifyCursorPosition()
 
 void ImfManager::DeleteSurroundingText( int index, unsigned int length )
 {
-  DALI_LOG_INFO( gLogFilter, Debug::General, "ImfManager::DeleteSurroundingText %d %d \n" index, length );
+  DALI_LOG_INFO( gLogFilter, Debug::General, "ImfManager::DeleteSurroundingText %d %d \n", index, length );
 
   Dali::ImfManager::ImfEventData imfData( Dali::ImfManager::DELETESURROUNDING, std::string(),index, length );
   Dali::ImfManager handle( this );
@@ -303,6 +303,65 @@ const std::string& ImfManager::GetSurroundingText() const
   return mSurroundingText;
 }
 
+void ImfManager::NotifyTextInputMultiLine( bool multiLine )
+{
+}
+
+Dali::Rect< int > ImfManager::GetInputMethodArea()
+{
+  TextInputManager::SeatInfo& info = mTextInputManager.GetLastActiveSeat();
+  return info.mInputPanelDimensions;
+}
+
+void ImfManager::ApplyOptions(const InputMethodOptions& options)
+{
+}
+
+void ImfManager::SetInputPanelUserData( const std::string& data )
+{
+}
+
+void ImfManager::GetInputPanelUserData( std::string& data )
+{
+}
+
+Dali::ImfManager::State ImfManager::GetInputPanelState()
+{
+  return Dali::ImfManager::DEFAULT;
+}
+
+void ImfManager::SetReturnKeyState( bool visible )
+{
+}
+
+void ImfManager::AutoEnableInputPanel( bool enabled )
+{
+}
+
+void ImfManager::ShowInputPanel()
+{
+}
+
+void ImfManager::HideInputPanel()
+{
+}
+
+Dali::ImfManager::KeyboardType ImfManager::GetKeyboardType()
+{
+  return Dali::ImfManager::KeyboardType::SOFTWARE_KEYBOARD;
+}
+
+std::string ImfManager::GetInputPanelLocale()
+{
+  return NULL;
+}
+
+Dali::ImfManager::TextDirection ImfManager::GetTextDirection()
+{
+  TextInputManager::SeatInfo& info = mTextInputManager.GetLastActiveSeat();
+  return (Dali::ImfManager::TextDirection)info.mTextDirection;
+}
+
 } // Adaptor
 
 } // Internal