From e3ce22c049752abc3d03bcd84093ea0ce972b8bb Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Mon, 4 Mar 2013 12:15:29 +0000 Subject: [PATCH] Trabalhando na extensão oxt linux --- src/oxt/actions.cxx | 8 ++++++++ src/oxt/globals.hpp | 1 + src/oxt/pw3270.idl | 4 ++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/oxt/actions.cxx b/src/oxt/actions.cxx index be5d9ca..6d24020 100644 --- a/src/oxt/actions.cxx +++ b/src/oxt/actions.cxx @@ -70,3 +70,11 @@ return hSession->in_tn3270e() != 0; } +::sal_Bool SAL_CALL pw3270::uno_impl::hasTextAt( ::sal_Int16 row, ::sal_Int16 col, const ::rtl::OUString& text ) throw (::com::sun::star::uno::RuntimeException) +{ + if(!hSession->in_tn3270e()) + return false; + + return cmpTextAt(row,col,text) == 0; +} + diff --git a/src/oxt/globals.hpp b/src/oxt/globals.hpp index 63a199c..494785c 100644 --- a/src/oxt/globals.hpp +++ b/src/oxt/globals.hpp @@ -151,6 +151,7 @@ virtual ::sal_Int16 SAL_CALL cmpTextAt( ::sal_Int16 row, ::sal_Int16 col, const ::rtl::OUString& text ) throw (::com::sun::star::uno::RuntimeException); virtual ::sal_Bool SAL_CALL isReady( ) throw (::com::sun::star::uno::RuntimeException); virtual ::sal_Bool SAL_CALL isConnected( ) throw (::com::sun::star::uno::RuntimeException); + virtual ::sal_Bool SAL_CALL hasTextAt( ::sal_Int16 row, ::sal_Int16 col, const ::rtl::OUString& text ) throw (::com::sun::star::uno::RuntimeException); private: diff --git a/src/oxt/pw3270.idl b/src/oxt/pw3270.idl index 263b6c0..90abe9b 100644 --- a/src/oxt/pw3270.idl +++ b/src/oxt/pw3270.idl @@ -77,8 +77,8 @@ module br short getRevision(); short sleep([in] short seconds); boolean isReady(); -// boolean hasTextAt([in] short row, [in] short col, [in] string text); -// short waitForReady([in] short seconds); + boolean hasTextAt([in] short row, [in] short col, [in] string text); + short waitForReady([in] short seconds); // short waitForTextAt(in] short row, [in] short col, [in] string text, [in] short seconds); boolean isConnected(); -- libgit2 0.21.2