summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Joachim Lankenau <hjs@openoffice.org>2004-06-28 16:08:26 +0000
committerHans-Joachim Lankenau <hjs@openoffice.org>2004-06-28 16:08:26 +0000
commit736ff116797c093a4dfd752aa39225d0be3cce84 (patch)
treec18723afd554cb1cd82107335a1cd3044201abeb
parent05bc0111750ecd18b7fab8212f4d4efb7399b714 (diff)
INTEGRATION: CWS dba12 (1.19.6); FILE MERGED
2004/06/14 20:58:44 fs 1.19.6.2: RESYNC: (1.19-1.21); FILE MERGED 2004/04/26 09:18:43 fs 1.19.6.1: #i27072# disable Java-like text notifications on the peer
-rw-r--r--forms/source/component/Edit.cxx17
1 files changed, 15 insertions, 2 deletions
diff --git a/forms/source/component/Edit.cxx b/forms/source/component/Edit.cxx
index a8b63f464f01..5577f353fbd6 100644
--- a/forms/source/component/Edit.cxx
+++ b/forms/source/component/Edit.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: Edit.cxx,v $
*
- * $Revision: 1.21 $
+ * $Revision: 1.22 $
*
- * last change: $Author: hr $ $Date: 2004-05-10 13:39:16 $
+ * last change: $Author: hjs $ $Date: 2004-06-28 17:08:26 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -85,6 +85,9 @@
#ifndef _COM_SUN_STAR_SDBC_DATATYPE_HPP_
#include <com/sun/star/sdbc/DataType.hpp>
#endif
+#ifndef _COM_SUN_STAR_AWT_XVCLWINDOWPEER_HPP_
+#include <com/sun/star/awt/XVclWindowPeer.hpp>
+#endif
#ifndef _SV_SVAPP_HXX
#include <vcl/svapp.hxx>
@@ -337,6 +340,16 @@ IMPL_LINK(OEditControl, OnKeyPressed, void*, EMPTYARG)
return 0L;
}
+//------------------------------------------------------------------
+void SAL_CALL OEditControl::createPeer( const Reference< XToolkit>& _rxToolkit, const Reference< XWindowPeer>& _rxParent ) throw ( RuntimeException )
+{
+ OBoundControl::createPeer(_rxToolkit, _rxParent);
+
+ Reference< XVclWindowPeer > xVclWindowPeer( getPeer(), UNO_QUERY );
+ if ( xVclWindowPeer.is() )
+ xVclWindowPeer->setProperty( ::rtl::OUString::createFromAscii("JavaCompatibleTextNotifications"), ::cppu::bool2any( sal_False ) );
+}
+
/*************************************************************************/
//------------------------------------------------------------------
InterfaceRef SAL_CALL OEditModel_CreateInstance(const Reference<XMultiServiceFactory>& _rxFactory)