Commit e3ce22c049752abc3d03bcd84093ea0ce972b8bb
1 parent
eb512797
Exists in
master
and in
5 other branches
Trabalhando na extensão oxt linux
Showing
3 changed files
with
11 additions
and
2 deletions
Show diff stats
src/oxt/actions.cxx
... | ... | @@ -70,3 +70,11 @@ |
70 | 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 | 151 | virtual ::sal_Int16 SAL_CALL cmpTextAt( ::sal_Int16 row, ::sal_Int16 col, const ::rtl::OUString& text ) throw (::com::sun::star::uno::RuntimeException); |
152 | 152 | virtual ::sal_Bool SAL_CALL isReady( ) throw (::com::sun::star::uno::RuntimeException); |
153 | 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 | 156 | private: |
156 | 157 | ... | ... |
src/oxt/pw3270.idl
... | ... | @@ -77,8 +77,8 @@ module br |
77 | 77 | short getRevision(); |
78 | 78 | short sleep([in] short seconds); |
79 | 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 | 82 | // short waitForTextAt(in] short row, [in] short col, [in] string text, [in] short seconds); |
83 | 83 | boolean isConnected(); |
84 | 84 | ... | ... |