Commit e3ce22c049752abc3d03bcd84093ea0ce972b8bb

Authored by perry.werneck@gmail.com
1 parent eb512797

Trabalhando na extensão oxt linux

src/oxt/actions.cxx
@@ -70,3 +70,11 @@ @@ -70,3 +70,11 @@
70 return hSession->in_tn3270e() != 0; 70 return hSession->in_tn3270e() != 0;
71 } 71 }
72 72
  73 +::sal_Bool SAL_CALL pw3270::uno_impl::hasTextAt( ::sal_Int16 row, ::sal_Int16 col, const ::rtl::OUString& text ) throw (::com::sun::star::uno::RuntimeException)
  74 +{
  75 + if(!hSession->in_tn3270e())
  76 + return false;
  77 +
  78 + return cmpTextAt(row,col,text) == 0;
  79 +}
  80 +
src/oxt/globals.hpp
@@ -151,6 +151,7 @@ @@ -151,6 +151,7 @@
151 virtual ::sal_Int16 SAL_CALL cmpTextAt( ::sal_Int16 row, ::sal_Int16 col, const ::rtl::OUString& text ) throw (::com::sun::star::uno::RuntimeException); 151 virtual ::sal_Int16 SAL_CALL cmpTextAt( ::sal_Int16 row, ::sal_Int16 col, const ::rtl::OUString& text ) throw (::com::sun::star::uno::RuntimeException);
152 virtual ::sal_Bool SAL_CALL isReady( ) throw (::com::sun::star::uno::RuntimeException); 152 virtual ::sal_Bool SAL_CALL isReady( ) throw (::com::sun::star::uno::RuntimeException);
153 virtual ::sal_Bool SAL_CALL isConnected( ) throw (::com::sun::star::uno::RuntimeException); 153 virtual ::sal_Bool SAL_CALL isConnected( ) throw (::com::sun::star::uno::RuntimeException);
  154 + virtual ::sal_Bool SAL_CALL hasTextAt( ::sal_Int16 row, ::sal_Int16 col, const ::rtl::OUString& text ) throw (::com::sun::star::uno::RuntimeException);
154 155
155 private: 156 private:
156 157
src/oxt/pw3270.idl
@@ -77,8 +77,8 @@ module br @@ -77,8 +77,8 @@ module br
77 short getRevision(); 77 short getRevision();
78 short sleep([in] short seconds); 78 short sleep([in] short seconds);
79 boolean isReady(); 79 boolean isReady();
80 -// boolean hasTextAt([in] short row, [in] short col, [in] string text);  
81 -// short waitForReady([in] short seconds); 80 + boolean hasTextAt([in] short row, [in] short col, [in] string text);
  81 + short waitForReady([in] short seconds);
82 // short waitForTextAt(in] short row, [in] short col, [in] string text, [in] short seconds); 82 // short waitForTextAt(in] short row, [in] short col, [in] string text, [in] short seconds);
83 boolean isConnected(); 83 boolean isConnected();
84 84