diff options
author | Thomas Benisch <tbe@openoffice.org> | 2001-09-27 13:00:31 +0000 |
---|---|---|
committer | Thomas Benisch <tbe@openoffice.org> | 2001-09-27 13:00:31 +0000 |
commit | aeaf9f25aa60bf96eafef07ae95a0e0b55e12838 (patch) | |
tree | e1808f37fb1d9cd0a27ed9c5e22856c8236b54aa | |
parent | 43c6faad9a5bc0602147a4a8f28f28d2a9867002 (diff) |
#91121# adapt library management in BasicIDE to library containers
-rw-r--r-- | basctl/source/basicide/moduldl2.cxx | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx index 2bbfe6f46dd7..f7cdb1190f3e 100644 --- a/basctl/source/basicide/moduldl2.cxx +++ b/basctl/source/basicide/moduldl2.cxx @@ -2,9 +2,9 @@ * * $RCSfile: moduldl2.cxx,v $ * - * $Revision: 1.18 $ + * $Revision: 1.19 $ * - * last change: $Author: tbe $ $Date: 2001-09-27 12:12:19 $ + * last change: $Author: tbe $ $Date: 2001-09-27 14:00:31 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -189,12 +189,20 @@ void LibPage::CheckButtons() aDelButton.Disable(); */ - // TODO: enable password button SvLBoxEntry* pCur = aLibBox.GetCurEntry(); if ( pCur ) { - aPasswordButton.Disable(); - //aInsertLibButton.Disable(); // TODO: enable aInsertLibButton + String aLibName = aLibBox.GetEntryText( pCur, 0 ); + if ( aLibName.EqualsIgnoreCaseAscii( "Standard" ) ) + { + aPasswordButton.Disable(); + aDelButton.Disable(); + } + else + { + aPasswordButton.Enable(); + aDelButton.Enable(); + } } } |