summaryrefslogtreecommitdiff
path: root/wizards/source
diff options
context:
space:
mode:
authorBehrend Cornelius <bc@openoffice.org>2001-06-13 11:26:01 +0000
committerBehrend Cornelius <bc@openoffice.org>2001-06-13 11:26:01 +0000
commitd88279e7a9e3b307d949ba125d62e5b1224d2412 (patch)
tree683cd4f9edb03ebe698003dc3706c4efd9ce92f6 /wizards/source
parent979007658b43d747ecacc31aa618c83793d05575 (diff)
#88056# loading of Basic dialogs changed
Diffstat (limited to 'wizards/source')
-rw-r--r--wizards/source/tools/Listbox.xba7
-rw-r--r--wizards/source/tools/Misc.xba1
-rw-r--r--wizards/source/tools/ModuleControls.xba18
3 files changed, 18 insertions, 8 deletions
diff --git a/wizards/source/tools/Listbox.xba b/wizards/source/tools/Listbox.xba
index 58f96499e2b4..0f69beab917e 100644
--- a/wizards/source/tools/Listbox.xba
+++ b/wizards/source/tools/Listbox.xba
@@ -23,29 +23,31 @@ End Sub
Sub FormMoveSelected(aEvent as Object)
Call MoveSelectedListBox(oDialogModel.lstFields, oDialogModel.lstSelFields)
Call FormSetMoveRights()
+ oDialogModel.lstSelFields.Tag = True
End Sub
Sub FormMoveAll()
Call CopyListboxItems(oDialogModel.lstFields, oDialogModel.lstSelFields)
Call FormSetMoveRights()
-&apos; CmdNext.SetFocus
+ oDialogModel.lstSelFields.Tag = True
End Sub
Sub FormRemoveSelected()
Call MoveOrderedSelectedListbox(oDialogModel.lstFields, oDialogModel.lstSelFields, False)
Call FormSetMoveRights()
+ oDialogModel.lstSelFields.Tag = True
End Sub
Sub FormRemoveAll()
Call MoveOrderedSelectedListbox(oDialogModel.lstFields, oDialogModel.lstSelFields, True)
Call FormSetMoveRights()
+ oDialogModel.lstSelFields.Tag = 1
End Sub
-
Sub MoveSelectedListBox(SourceListbox as Object, TargetListbox as Object)
Dim MaxCurTarget as Integer
Dim MaxSourceSelected as Integer
@@ -220,6 +222,7 @@ Dim SelectCount as Integer
oDialogModel.cmdMoveAll.Enabled = FieldCount &gt;=1
oDialogModel.cmdMoveSelected.Enabled = bIsFieldSelected
oDialogModel.cmdGoOn.Enabled = SelectCount&gt;=1
+ &apos; This flag is set to &apos;1&apos; when the lstSelFields has been modified
End Sub
diff --git a/wizards/source/tools/Misc.xba b/wizards/source/tools/Misc.xba
index d754468e4efd..2b60febc3b42 100644
--- a/wizards/source/tools/Misc.xba
+++ b/wizards/source/tools/Misc.xba
@@ -394,6 +394,7 @@ Function GetDocumentType(oDocument)
GetDocumentType() = &quot;swriter&quot;
ElseIf oDocument.SupportsService(&quot;com.sun.star.drawing.DrawingDocument&quot;) Then
GetDocumentType() = &quot;sdraw&quot;
+&apos; Todo: Formel services einbinden
End If
End Function
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