diff options
author | Behrend Cornelius <bc@openoffice.org> | 2001-06-13 11:26:01 +0000 |
---|---|---|
committer | Behrend Cornelius <bc@openoffice.org> | 2001-06-13 11:26:01 +0000 |
commit | d88279e7a9e3b307d949ba125d62e5b1224d2412 (patch) | |
tree | 683cd4f9edb03ebe698003dc3706c4efd9ce92f6 /wizards/source/tools/ModuleControls.xba | |
parent | 979007658b43d747ecacc31aa618c83793d05575 (diff) |
#88056# loading of Basic dialogs changed
Diffstat (limited to 'wizards/source/tools/ModuleControls.xba')
-rw-r--r-- | wizards/source/tools/ModuleControls.xba | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/wizards/source/tools/ModuleControls.xba b/wizards/source/tools/ModuleControls.xba index 874afe2dd678..ab85b7438e88 100644 --- a/wizards/source/tools/ModuleControls.xba +++ b/wizards/source/tools/ModuleControls.xba @@ -142,13 +142,19 @@ Dim oCell as Object End Function -Function LoadDialog(Libname as String, DialogName as String) +Function LoadDialog(Libname as String, DialogName as String, Optional oLibContainer) Dim oLib as Object -Dim oDialog as Object - DialogLibraries.loadLibrary(Libname) - oLib = DialogLibraries.GetByName(Libname) - oDialog = CreateUnoDialog(oLib, DialogName) - LoadDialog() = oDialog +Dim oLibDialog as Object +Dim oRuntimeDialog as Object + + If IsMissing( oLibContainer ) then + oLibContainer = DialogLibraries + End If + oLibContainer.LoadLibrary(Libname) + oLib = oLibContainer.GetByName(Libname) + oLibDialog = oLib.GetByName(DialogName) + oRuntimeDialog = CreateUnoDialog(oLibDialog) + LoadDialog() = oRuntimeDialog End Function |