summaryrefslogtreecommitdiff
path: root/svx/source/dialog/dlgname.cxx
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2002-02-28 15:47:13 +0000
committerOliver Specht <os@openoffice.org>2002-02-28 15:47:13 +0000
commit4428083c6a455f1c62b71492e0a013c55878be82 (patch)
tree6be2914071132c9709e58b2860214c855136bb30 /svx/source/dialog/dlgname.cxx
parentd0cc1e39036248f0724d1dfcb73fd5e42d3a5243 (diff)
#97664# name modify link added
Diffstat (limited to 'svx/source/dialog/dlgname.cxx')
-rw-r--r--svx/source/dialog/dlgname.cxx16
1 files changed, 10 insertions, 6 deletions
diff --git a/svx/source/dialog/dlgname.cxx b/svx/source/dialog/dlgname.cxx
index 0d15c4e14ba7..bc0407f6c818 100644
--- a/svx/source/dialog/dlgname.cxx
+++ b/svx/source/dialog/dlgname.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: dlgname.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 17:01:08 $
+ * last change: $Author: os $ $Date: 2002-02-28 16:47:13 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -97,13 +97,17 @@ SvxNameDialog::SvxNameDialog( Window* pWindow, const String& rName, const String
aFtDescription.SetText( rDesc );
aEdtName.SetText( rName );
+ ModifyHdl(&aEdtName);
+ aEdtName.SetModifyHdl(LINK(this, SvxNameDialog, ModifyHdl));
}
+/* -----------------------------27.02.2002 15:22------------------------------
-/*************************************************************************/
-
-void SvxNameDialog::GetName( String& rName )
+ ---------------------------------------------------------------------------*/
+IMPL_LINK(SvxNameDialog, ModifyHdl, Edit*, pEdit)
{
- rName = aEdtName.GetText();
+ if(aCheckNameHdl.IsSet())
+ aBtnOK.Enable(aCheckNameHdl.Call(this) > 0);
+ return 0;
}
/*************************************************************************