summaryrefslogtreecommitdiff
path: root/svtools/source/uno/unoiface.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2009-02-12 14:36:30 +0000
committerOliver Bolte <obo@openoffice.org>2009-02-12 14:36:30 +0000
commit24116c5a42d26a1970558f9fb65314a5a985862f (patch)
tree0629722fc2f913552bc8b40aa7c5705a811d3ecb /svtools/source/uno/unoiface.cxx
parenta6bd752f479852931e3934546de2683a1e5d694c (diff)
CWS-TOOLING: integrate CWS fwk100
2009-01-20 15:34:21 +0100 as r266589 : #159095# dont activate tab pages if they will be created automaticaly; activate already created tab pages if its requested 2009-01-20 13:52:07 +0100 fs r266575 : #i87330# JavaCompatibleTextNotifications is not supported anymore 2009-01-20 13:51:36 +0100 fs r266574 : #i87330# in a multi line edit control's setText, use the proper notification method (which is disabled elsewhere when setText is called as part of setting the model's Text property)
Diffstat (limited to 'svtools/source/uno/unoiface.cxx')
-rw-r--r--svtools/source/uno/unoiface.cxx23
1 files changed, 5 insertions, 18 deletions
diff --git a/svtools/source/uno/unoiface.cxx b/svtools/source/uno/unoiface.cxx
index f454fbd135a7..07cae571b2ae 100644
--- a/svtools/source/uno/unoiface.cxx
+++ b/svtools/source/uno/unoiface.cxx
@@ -175,7 +175,6 @@ SAL_DLLPUBLIC_EXPORT Window* CreateWindow( VCLXWindow** ppNewComp, const ::com::
// ----------------------------------------------------
VCLXMultiLineEdit::VCLXMultiLineEdit()
:maTextListeners( *this )
- ,mbJavaCompatibleTextNotifications( true )
,meLineEndType( LINEEND_LF ) // default behavior before introducing this property: LF (unix-like)
{
}
@@ -221,17 +220,11 @@ void VCLXMultiLineEdit::setText( const ::rtl::OUString& aText ) throw(::com::sun
{
pEdit->SetText( aText );
- if ( mbJavaCompatibleTextNotifications )
- {
- // In JAVA wird auch ein textChanged ausgeloest, in VCL nicht.
- // ::com::sun::star::awt::Toolkit soll JAVA-komform sein...
- if ( maTextListeners.getLength() )
- {
- ::com::sun::star::awt::TextEvent aEvent;
- aEvent.Source = (::cppu::OWeakObject*)this;
- maTextListeners.textChanged( aEvent );
- }
- }
+ // #107218# Call same listeners like VCL would do after user interaction
+ SetSynthesizingVCLEvent( sal_True );
+ pEdit->SetModifyFlag();
+ pEdit->Modify();
+ SetSynthesizingVCLEvent( sal_False );
}
}
@@ -422,12 +415,6 @@ void VCLXMultiLineEdit::setProperty( const ::rtl::OUString& PropertyName, const
MultiLineEdit* pMultiLineEdit = (MultiLineEdit*)GetWindow();
if ( pMultiLineEdit )
{
- if ( PropertyName.equalsAscii( "JavaCompatibleTextNotifications" ) )
- {
- Value >>= mbJavaCompatibleTextNotifications;
- return;
- }
-
sal_uInt16 nPropType = GetPropertyId( PropertyName );
switch ( nPropType )
{