summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/basic/ifc/ui
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/basic/ifc/ui')
-rw-r--r--qadevOOo/tests/basic/ifc/ui/dialogs/FilePicker/script.xlb5
-rw-r--r--qadevOOo/tests/basic/ifc/ui/dialogs/FilePicker/ui_dialogs_FilePicker.xba55
-rw-r--r--qadevOOo/tests/basic/ifc/ui/dialogs/XExecutableDialog/script.xlb5
-rw-r--r--qadevOOo/tests/basic/ifc/ui/dialogs/XExecutableDialog/ui_dialogs_XExecutableDialog.xba68
-rw-r--r--qadevOOo/tests/basic/ifc/ui/dialogs/XFilePicker/script.xlb5
-rw-r--r--qadevOOo/tests/basic/ifc/ui/dialogs/XFilePicker/ui_dialogs_XFilePicker.xba93
-rw-r--r--qadevOOo/tests/basic/ifc/ui/dialogs/XFilePickerControlAccess/script.xlb5
-rw-r--r--qadevOOo/tests/basic/ifc/ui/dialogs/XFilePickerControlAccess/ui_dialogs_XFilePickerControlAccess.xba102
-rw-r--r--qadevOOo/tests/basic/ifc/ui/dialogs/XFilePickerNotifier/script.xlb5
-rw-r--r--qadevOOo/tests/basic/ifc/ui/dialogs/XFilePickerNotifier/ui_dialogs_XFilePickerNotifier.xba93
-rw-r--r--qadevOOo/tests/basic/ifc/ui/dialogs/XFilePreview/script.xlb5
-rw-r--r--qadevOOo/tests/basic/ifc/ui/dialogs/XFilePreview/ui_dialogs_XFilePreview.xba112
-rw-r--r--qadevOOo/tests/basic/ifc/ui/dialogs/XFilterManager/script.xlb5
-rw-r--r--qadevOOo/tests/basic/ifc/ui/dialogs/XFilterManager/ui_dialogs_XFilterManager.xba73
-rw-r--r--qadevOOo/tests/basic/ifc/ui/dialogs/XFolderPicker/script.xlb5
-rw-r--r--qadevOOo/tests/basic/ifc/ui/dialogs/XFolderPicker/ui_dialogs_XFolderPicker.xba82
16 files changed, 718 insertions, 0 deletions
diff --git a/qadevOOo/tests/basic/ifc/ui/dialogs/FilePicker/script.xlb b/qadevOOo/tests/basic/ifc/ui/dialogs/FilePicker/script.xlb
new file mode 100644
index 000000000000..97d3bbc7b5e1
--- /dev/null
+++ b/qadevOOo/tests/basic/ifc/ui/dialogs/FilePicker/script.xlb
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE library:library PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "library.dtd">
+<library:library xmlns:library="http://openoffice.org/2000/library" library:name="ui_dialogs_FilePicker" library:readonly="false" library:passwordprotected="false">
+"<library:element library:name="ui_dialogs_FilePicker"/>
+"</library:library>
diff --git a/qadevOOo/tests/basic/ifc/ui/dialogs/FilePicker/ui_dialogs_FilePicker.xba b/qadevOOo/tests/basic/ifc/ui/dialogs/FilePicker/ui_dialogs_FilePicker.xba
new file mode 100644
index 000000000000..e8405adf89ad
--- /dev/null
+++ b/qadevOOo/tests/basic/ifc/ui/dialogs/FilePicker/ui_dialogs_FilePicker.xba
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
+<script:module xmlns:script="http://openoffice.org/2000/script" script:name="ui_dialogs_FilePicker" script:language="StarBasic">
+
+
+'*************************************************************************
+'
+' DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+'
+' Copyright 2000, 2010 Oracle and/or its affiliates.
+'
+' OpenOffice.org - a multi-platform office productivity suite
+'
+' This file is part of OpenOffice.org.
+'
+' OpenOffice.org is free software: you can redistribute it and/or modify
+' it under the terms of the GNU Lesser General Public License version 3
+' only, as published by the Free Software Foundation.
+'
+' OpenOffice.org is distributed in the hope that it will be useful,
+' but WITHOUT ANY WARRANTY; without even the implied warranty of
+' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+' GNU Lesser General Public License version 3 for more details
+' (a copy is included in the LICENSE file that accompanied this code).
+'
+' You should have received a copy of the GNU Lesser General Public License
+' version 3 along with OpenOffice.org. If not, see
+' <http://www.openoffice.org/license.html>
+' for a copy of the LGPLv3 License.
+'
+'*************************************************************************
+'*************************************************************************
+
+
+
+
+
+Sub RunTest()
+
+'*************************************************************************
+' SERVICE:
+' com.sun.star.ui.dialogs.FilePicker
+'*************************************************************************
+On Error Goto ErrHndl
+ Dim bOK As Boolean
+
+ PropertyTester.TestProperty("HelpURL")
+
+Exit Sub
+ErrHndl:
+ Test.Exception()
+ bOK = false
+ resume next
+End Sub
+</script:module>
diff --git a/qadevOOo/tests/basic/ifc/ui/dialogs/XExecutableDialog/script.xlb b/qadevOOo/tests/basic/ifc/ui/dialogs/XExecutableDialog/script.xlb
new file mode 100644
index 000000000000..c0953782f731
--- /dev/null
+++ b/qadevOOo/tests/basic/ifc/ui/dialogs/XExecutableDialog/script.xlb
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE library:library PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "library.dtd">
+<library:library xmlns:library="http://openoffice.org/2000/library" library:name="ui_dialogs_XExecutableDialog" library:readonly="false" library:passwordprotected="false">
+"<library:element library:name="ui_dialogs_XExecutableDialog"/>
+"</library:library>
diff --git a/qadevOOo/tests/basic/ifc/ui/dialogs/XExecutableDialog/ui_dialogs_XExecutableDialog.xba b/qadevOOo/tests/basic/ifc/ui/dialogs/XExecutableDialog/ui_dialogs_XExecutableDialog.xba
new file mode 100644
index 000000000000..95ec3646476b
--- /dev/null
+++ b/qadevOOo/tests/basic/ifc/ui/dialogs/XExecutableDialog/ui_dialogs_XExecutableDialog.xba
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
+<script:module xmlns:script="http://openoffice.org/2000/script" script:name="ui_dialogs_XExecutableDialog" script:language="StarBasic">
+
+
+'*************************************************************************
+'
+' DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+'
+' Copyright 2000, 2010 Oracle and/or its affiliates.
+'
+' OpenOffice.org - a multi-platform office productivity suite
+'
+' This file is part of OpenOffice.org.
+'
+' OpenOffice.org is free software: you can redistribute it and/or modify
+' it under the terms of the GNU Lesser General Public License version 3
+' only, as published by the Free Software Foundation.
+'
+' OpenOffice.org is distributed in the hope that it will be useful,
+' but WITHOUT ANY WARRANTY; without even the implied warranty of
+' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+' GNU Lesser General Public License version 3 for more details
+' (a copy is included in the LICENSE file that accompanied this code).
+'
+' You should have received a copy of the GNU Lesser General Public License
+' version 3 along with OpenOffice.org. If not, see
+' <http://www.openoffice.org/license.html>
+' for a copy of the LGPLv3 License.
+'
+'*************************************************************************
+'*************************************************************************
+
+
+
+' Be sure that all variables are dimensioned:
+option explicit
+
+
+
+Sub RunTest()
+
+'*************************************************************************
+' INTERFACE:
+' com.sun.star.ui.dialogs.XExecutableDialog
+'*************************************************************************
+On Error Goto ErrHndl
+ Dim bOK As Boolean
+
+
+ Test.StartMethod("setTitle()")
+ bOK = true
+ oObj.setTitle("XExecutableDialog")
+ Test.MethodTested("setTitle()", bOK)
+
+ Test.StartMethod("execute()")
+ bOK = true
+' oObj.execute()
+ Out.Log("This method is excluded from automated test since we can't close the dialog")
+ Test.MethodTested("execute()", bOK)
+
+Exit Sub
+ErrHndl:
+ Test.Exception()
+ bOK = false
+ resume next
+End Sub
+</script:module>
diff --git a/qadevOOo/tests/basic/ifc/ui/dialogs/XFilePicker/script.xlb b/qadevOOo/tests/basic/ifc/ui/dialogs/XFilePicker/script.xlb
new file mode 100644
index 000000000000..36ee0adb752c
--- /dev/null
+++ b/qadevOOo/tests/basic/ifc/ui/dialogs/XFilePicker/script.xlb
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE library:library PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "library.dtd">
+<library:library xmlns:library="http://openoffice.org/2000/library" library:name="ui_dialogs_XFilePicker" library:readonly="false" library:passwordprotected="false">
+"<library:element library:name="ui_dialogs_XFilePicker"/>
+"</library:library>
diff --git a/qadevOOo/tests/basic/ifc/ui/dialogs/XFilePicker/ui_dialogs_XFilePicker.xba b/qadevOOo/tests/basic/ifc/ui/dialogs/XFilePicker/ui_dialogs_XFilePicker.xba
new file mode 100644
index 000000000000..9b3e99ffd411
--- /dev/null
+++ b/qadevOOo/tests/basic/ifc/ui/dialogs/XFilePicker/ui_dialogs_XFilePicker.xba
@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
+<script:module xmlns:script="http://openoffice.org/2000/script" script:name="ui_dialogs_XFilePicker" script:language="StarBasic">
+
+
+'*************************************************************************
+'
+' DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+'
+' Copyright 2000, 2010 Oracle and/or its affiliates.
+'
+' OpenOffice.org - a multi-platform office productivity suite
+'
+' This file is part of OpenOffice.org.
+'
+' OpenOffice.org is free software: you can redistribute it and/or modify
+' it under the terms of the GNU Lesser General Public License version 3
+' only, as published by the Free Software Foundation.
+'
+' OpenOffice.org is distributed in the hope that it will be useful,
+' but WITHOUT ANY WARRANTY; without even the implied warranty of
+' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+' GNU Lesser General Public License version 3 for more details
+' (a copy is included in the LICENSE file that accompanied this code).
+'
+' You should have received a copy of the GNU Lesser General Public License
+' version 3 along with OpenOffice.org. If not, see
+' <http://www.openoffice.org/license.html>
+' for a copy of the LGPLv3 License.
+'
+'*************************************************************************
+'*************************************************************************
+
+
+
+' Be sure that all variables are dimensioned:
+option explicit
+
+
+
+Sub RunTest()
+
+'*************************************************************************
+' INTERFACE:
+' com.sun.star.ui.dialogs.XFilePicker
+'*************************************************************************
+On Error Goto ErrHndl
+ Dim bOK As Boolean
+ Dim fileName As String, getDir As String
+ Dim getFiles As Variant, tempURL As String
+
+ tempURL = utils.Path2URL(cTestDocsDir)
+
+ Test.StartMethod("setMultiSelectionMode()")
+ bOK = true
+ oObj.setMultiSelectionMode(true)
+ oObj.setMultiSelectionMode(false)
+ Test.MethodTested("setMultiSelectionMode()", bOK)
+
+ Test.StartMethod("setDisplayDirectory()")
+ Out.Log("Trying to set dir : '" + tempURL + "'")
+ oObj.setDisplayDirectory(tempURL)
+
+ Test.StartMethod("getDisplayDirectory()")
+ bOK = true
+ getDir = oObj.getDisplayDirectory()
+ Out.Log("Returned directory : '" + getDir + "'")
+ bOK = bOK AND (getDir = tempURL)
+ Test.MethodTested("setDisplayDirectory()", bOK)
+ Test.MethodTested("getDisplayDirectory()", bOK)
+
+ Test.StartMethod("setDefaultName()")
+ bOK = true
+ fileName = "BasicBridge.sxw"
+ oObj.setDefaultName(fileName)
+ Test.MethodTested("setDefaultName()", bOK)
+
+ Test.StartMethod("getFiles()")
+ bOK = true
+ getFiles = oObj.getFiles()
+ Out.Log("Returned files count : " + ubound(getFiles()))
+ Out.Log("To have any files returned the FilePicker dialog must be executed, but this")
+ Out.Log("requires interactivity. Thus the fact that no files are selected is OK")
+ bOK = bOK AND (ubound(getFiles()) = -1)
+ Test.MethodTested("getFiles()", bOK)
+
+Exit Sub
+ErrHndl:
+ Test.Exception()
+ bOK = false
+ resume next
+End Sub
+</script:module>
diff --git a/qadevOOo/tests/basic/ifc/ui/dialogs/XFilePickerControlAccess/script.xlb b/qadevOOo/tests/basic/ifc/ui/dialogs/XFilePickerControlAccess/script.xlb
new file mode 100644
index 000000000000..f51b76b90abc
--- /dev/null
+++ b/qadevOOo/tests/basic/ifc/ui/dialogs/XFilePickerControlAccess/script.xlb
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE library:library PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "library.dtd">
+<library:library xmlns:library="http://openoffice.org/2000/library" library:name="ui_dialogs_XFilePickerControlAccess" library:readonly="false" library:passwordprotected="false">
+"<library:element library:name="ui_dialogs_XFilePickerControlAccess"/>
+"</library:library>
diff --git a/qadevOOo/tests/basic/ifc/ui/dialogs/XFilePickerControlAccess/ui_dialogs_XFilePickerControlAccess.xba b/qadevOOo/tests/basic/ifc/ui/dialogs/XFilePickerControlAccess/ui_dialogs_XFilePickerControlAccess.xba
new file mode 100644
index 000000000000..39e2ab6e8662
--- /dev/null
+++ b/qadevOOo/tests/basic/ifc/ui/dialogs/XFilePickerControlAccess/ui_dialogs_XFilePickerControlAccess.xba
@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
+<script:module xmlns:script="http://openoffice.org/2000/script" script:name="ui_dialogs_XFilePickerControlAccess" script:language="StarBasic">
+
+
+'*************************************************************************
+'
+' DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+'
+' Copyright 2000, 2010 Oracle and/or its affiliates.
+'
+' OpenOffice.org - a multi-platform office productivity suite
+'
+' This file is part of OpenOffice.org.
+'
+' OpenOffice.org is free software: you can redistribute it and/or modify
+' it under the terms of the GNU Lesser General Public License version 3
+' only, as published by the Free Software Foundation.
+'
+' OpenOffice.org is distributed in the hope that it will be useful,
+' but WITHOUT ANY WARRANTY; without even the implied warranty of
+' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+' GNU Lesser General Public License version 3 for more details
+' (a copy is included in the LICENSE file that accompanied this code).
+'
+' You should have received a copy of the GNU Lesser General Public License
+' version 3 along with OpenOffice.org. If not, see
+' <http://www.openoffice.org/license.html>
+' for a copy of the LGPLv3 License.
+'
+'*************************************************************************
+'*************************************************************************
+
+
+
+' Be sure that all variables are dimensioned:
+option explicit
+
+'*************************************************************************
+' This Interface/Service test depends on the following GLOBAL variables,
+' which must be specified in the object creation:
+
+' - Global controlId As Short
+' Global controlInitVal As Variant
+
+'*************************************************************************
+
+
+
+
+
+
+Sub RunTest()
+
+'*************************************************************************
+' INTERFACE:
+' com.sun.star.ui.dialogs.XFilePickerControlAccess
+'*************************************************************************
+On Error Goto ErrHndl
+ Dim bOK As Boolean
+ Dim oldVal As Variant, newVal As Variant, resVal As Variant
+ Dim oldLabel As String, newLabel As String, resLabel As String
+
+ Test.StartMethod("setValue()")
+ Test.StartMethod("getValue()")
+ bOK = true
+ newVal = controlInitVal 'PropertyTester.Change(oldVal, oCoreRefl.getType(oldVal).Name)
+ oObj.setValue(controlId, 0, newVal)
+ wait(100)
+ resVal = oObj.getValue(controlId, 0)
+ Out.Log("New: " + newVal + ", Res: " + resVal)
+ bOK = bOK AND PropertyTester.equals(newVal, resVal)
+
+ Test.MethodTested("setValue()", bOK)
+ Test.MethodTested("getValue()", bOK)
+
+ Test.StartMethod("getLabel()")
+ bOK = true
+ oldLabel = oObj.getLabel(controlId)
+ Test.MethodTested("getLabel()", bOK)
+
+ Test.StartMethod("setLabel()")
+ bOK = true
+ newLabel = oldLabel + "_"
+ oObj.setLabel(controlId, newLabel)
+ resLabel = oObj.getLabel(controlId)
+ bOK = bOK AND (resLabel = newLabel)
+ Test.MethodTested("setLabel()", bOK)
+
+ Test.StartMethod("enableControl()")
+ bOK = true
+ oObj.enableControl(controlId, false)
+ oObj.enableControl(controlId, true)
+ Test.MethodTested("enableControl()", bOK)
+
+Exit Sub
+ErrHndl:
+ Test.Exception()
+ bOK = false
+ resume next
+End Sub
+</script:module>
diff --git a/qadevOOo/tests/basic/ifc/ui/dialogs/XFilePickerNotifier/script.xlb b/qadevOOo/tests/basic/ifc/ui/dialogs/XFilePickerNotifier/script.xlb
new file mode 100644
index 000000000000..a02e56e88f95
--- /dev/null
+++ b/qadevOOo/tests/basic/ifc/ui/dialogs/XFilePickerNotifier/script.xlb
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE library:library PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "library.dtd">
+<library:library xmlns:library="http://openoffice.org/2000/library" library:name="ui_dialogs_XFilePickerNotifier" library:readonly="false" library:passwordprotected="false">
+"<library:element library:name="ui_dialogs_XFilePickerNotifier"/>
+"</library:library>
diff --git a/qadevOOo/tests/basic/ifc/ui/dialogs/XFilePickerNotifier/ui_dialogs_XFilePickerNotifier.xba b/qadevOOo/tests/basic/ifc/ui/dialogs/XFilePickerNotifier/ui_dialogs_XFilePickerNotifier.xba
new file mode 100644
index 000000000000..f8f4e4093962
--- /dev/null
+++ b/qadevOOo/tests/basic/ifc/ui/dialogs/XFilePickerNotifier/ui_dialogs_XFilePickerNotifier.xba
@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
+<script:module xmlns:script="http://openoffice.org/2000/script" script:name="ui_dialogs_XFilePickerNotifier" script:language="StarBasic">
+
+
+'*************************************************************************
+'
+' DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+'
+' Copyright 2000, 2010 Oracle and/or its affiliates.
+'
+' OpenOffice.org - a multi-platform office productivity suite
+'
+' This file is part of OpenOffice.org.
+'
+' OpenOffice.org is free software: you can redistribute it and/or modify
+' it under the terms of the GNU Lesser General Public License version 3
+' only, as published by the Free Software Foundation.
+'
+' OpenOffice.org is distributed in the hope that it will be useful,
+' but WITHOUT ANY WARRANTY; without even the implied warranty of
+' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+' GNU Lesser General Public License version 3 for more details
+' (a copy is included in the LICENSE file that accompanied this code).
+'
+' You should have received a copy of the GNU Lesser General Public License
+' version 3 along with OpenOffice.org. If not, see
+' <http://www.openoffice.org/license.html>
+' for a copy of the LGPLv3 License.
+'
+'*************************************************************************
+'*************************************************************************
+
+
+
+' Be sure that all variables are dimensioned:
+option explicit
+
+
+
+Sub RunTest()
+
+'*************************************************************************
+' INTERFACE:
+' com.sun.star.ui.dialogs.XFilePickerNotifier
+'*************************************************************************
+On Error Goto ErrHndl
+ Dim bOK As Boolean
+ Dim list1 As Object, list2 As Object
+ Dim dir1 As String, dir2 As String
+
+ dir1 = utils.Path2URL(cTestDocsDir)
+ dir2 = utils.getTempFileURL("")
+
+ Test.StartMethod("addFilePickerListener()")
+
+ list1 = createUnoListener("L1_", "com.sun.star.ui.dialogs.XFilePickerListener")
+ list2 = createUnoListener("L2_", "com.sun.star.ui.dialogs.XFilePickerListener")
+
+ oObj.addFilePickerListener(list1)
+ oObj.addFilePickerListener(list2)
+
+ Test.StartMethod("removeFilePickerListener()")
+ oObj.removeFilePickerListener(list1)
+
+ called1 = false
+ called2 = false
+ oObj.setDisplayDirectory(dir1)
+ oObj.setDisplayDirectory(dir2)
+
+ bOK = called2
+ Test.MethodTested("addFilePickerListener()", bOK)
+
+ bOK = called2 AND NOT called1
+ Test.MethodTested("removeFilePickerListener()", bOK)
+
+Exit Sub
+ErrHndl:
+ Test.Exception()
+ bOK = false
+ resume next
+End Sub
+
+Dim called1 As Boolean, called2 As Boolean
+
+Sub L1_directoryChanged()
+ called1 = true
+End Sub
+
+Sub L2_directoryChanged()
+ called2 = true
+End Sub
+</script:module>
diff --git a/qadevOOo/tests/basic/ifc/ui/dialogs/XFilePreview/script.xlb b/qadevOOo/tests/basic/ifc/ui/dialogs/XFilePreview/script.xlb
new file mode 100644
index 000000000000..14a8801eee69
--- /dev/null
+++ b/qadevOOo/tests/basic/ifc/ui/dialogs/XFilePreview/script.xlb
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE library:library PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "library.dtd">
+<library:library xmlns:library="http://openoffice.org/2000/library" library:name="ui_dialogs_XFilePreview" library:readonly="false" library:passwordprotected="false">
+"<library:element library:name="ui_dialogs_XFilePreview"/>
+"</library:library>
diff --git a/qadevOOo/tests/basic/ifc/ui/dialogs/XFilePreview/ui_dialogs_XFilePreview.xba b/qadevOOo/tests/basic/ifc/ui/dialogs/XFilePreview/ui_dialogs_XFilePreview.xba
new file mode 100644
index 000000000000..88e377aeed4d
--- /dev/null
+++ b/qadevOOo/tests/basic/ifc/ui/dialogs/XFilePreview/ui_dialogs_XFilePreview.xba
@@ -0,0 +1,112 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
+<script:module xmlns:script="http://openoffice.org/2000/script" script:name="ui_dialogs_XFilePreview" script:language="StarBasic">
+
+
+'*************************************************************************
+'
+' DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+'
+' Copyright 2000, 2010 Oracle and/or its affiliates.
+'
+' OpenOffice.org - a multi-platform office productivity suite
+'
+' This file is part of OpenOffice.org.
+'
+' OpenOffice.org is free software: you can redistribute it and/or modify
+' it under the terms of the GNU Lesser General Public License version 3
+' only, as published by the Free Software Foundation.
+'
+' OpenOffice.org is distributed in the hope that it will be useful,
+' but WITHOUT ANY WARRANTY; without even the implied warranty of
+' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+' GNU Lesser General Public License version 3 for more details
+' (a copy is included in the LICENSE file that accompanied this code).
+'
+' You should have received a copy of the GNU Lesser General Public License
+' version 3 along with OpenOffice.org. If not, see
+' <http://www.openoffice.org/license.html>
+' for a copy of the LGPLv3 License.
+'
+'*************************************************************************
+'*************************************************************************
+
+
+
+' Be sure that all variables are dimensioned:
+option explicit
+
+
+
+Sub RunTest()
+
+'*************************************************************************
+' INTERFACE:
+' com.sun.star.ui.dialogs.XFilePreview
+'*************************************************************************
+On Error Goto ErrHndl
+ Dim bOK As Boolean
+ Dim formats As Variant
+ Dim tmp As Integer
+ Dim state As Boolean, resState As Boolean
+ Dim i As Integer
+
+ Test.StartMethod("getSupportedImageFormats()")
+ bOK = true
+ formats = oObj.getSupportedImageFormats()
+ bOK = bOK AND NOT isNull(formats)
+ Out.Log("Supported image formats :")
+ for i = lbound(formats()) to ubound(formats())
+ Out.Log(" " + formats(i))
+ next i
+ Test.MethodTested("getSupportedImageFormats()", bOK)
+
+ Test.StartMethod("getTargetColorDepth()")
+ bOK = true
+ tmp = oObj.getTargetColorDepth()
+ Out.Log("ColorDepth = " + tmp)
+ Test.MethodTested("getTargetColorDepth()", bOK)
+
+ Test.StartMethod("getAvailableWidth()")
+ bOK = true
+ tmp = oObj.getAvailableWidth()
+ Out.Log("AvailableWidth = " + tmp)
+ Test.MethodTested("getAvailableWidth()", bOK)
+
+ Test.StartMethod("getAvailableHeight()")
+ bOK = true
+ tmp = oObj.getAvailableHeight()
+ Out.Log("AvailableHeight = " + tmp)
+ Test.MethodTested("getAvailableHeight()", bOK)
+
+ Test.StartMethod("setImage()")
+ bOK = true
+ Dim emptyImage As Variant
+ oObj.setImage(com.sun.star.ui.dialogs.FilePreviewImageFormats.BITMAP, emptyImage)
+ Out.Log("No documentation is available for this method !!!!")
+ Test.MethodTested("setImage()", bOK)
+
+ Test.StartMethod("getShowState()")
+ bOK = true
+ state = oObj.getShowState()
+ Out.Log("Was :" + state)
+
+ Dim bRet As Boolean
+ Test.StartMethod("setShowState()")
+ bOK = true
+ Out.Log("Set to :" + (NOT state))
+ bRet = oObj.setShowState(NOT state)
+ Out.Log("The returned value is " + bRet)
+ resState = oObj.getShowState()
+ Out.Log("Get : " + resState)
+ bOK = bOK AND ( NOT bRet OR (resState = NOT state))
+ Test.MethodTested("getShowState()", bOK)
+ Test.MethodTested("setShowState()", bOK)
+
+Exit Sub
+ErrHndl:
+ Test.Exception()
+ bOK = false
+ resume next
+End Sub
+</script:module>
diff --git a/qadevOOo/tests/basic/ifc/ui/dialogs/XFilterManager/script.xlb b/qadevOOo/tests/basic/ifc/ui/dialogs/XFilterManager/script.xlb
new file mode 100644
index 000000000000..084ccdf864d5
--- /dev/null
+++ b/qadevOOo/tests/basic/ifc/ui/dialogs/XFilterManager/script.xlb
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE library:library PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "library.dtd">
+<library:library xmlns:library="http://openoffice.org/2000/library" library:name="ui_dialogs_XFilterManager" library:readonly="false" library:passwordprotected="false">
+"<library:element library:name="ui_dialogs_XFilterManager"/>
+"</library:library>
diff --git a/qadevOOo/tests/basic/ifc/ui/dialogs/XFilterManager/ui_dialogs_XFilterManager.xba b/qadevOOo/tests/basic/ifc/ui/dialogs/XFilterManager/ui_dialogs_XFilterManager.xba
new file mode 100644
index 000000000000..41b2e9ffa4ab
--- /dev/null
+++ b/qadevOOo/tests/basic/ifc/ui/dialogs/XFilterManager/ui_dialogs_XFilterManager.xba
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
+<script:module xmlns:script="http://openoffice.org/2000/script" script:name="ui_dialogs_XFilterManager" script:language="StarBasic">
+
+
+'*************************************************************************
+'
+' DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+'
+' Copyright 2000, 2010 Oracle and/or its affiliates.
+'
+' OpenOffice.org - a multi-platform office productivity suite
+'
+' This file is part of OpenOffice.org.
+'
+' OpenOffice.org is free software: you can redistribute it and/or modify
+' it under the terms of the GNU Lesser General Public License version 3
+' only, as published by the Free Software Foundation.
+'
+' OpenOffice.org is distributed in the hope that it will be useful,
+' but WITHOUT ANY WARRANTY; without even the implied warranty of
+' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+' GNU Lesser General Public License version 3 for more details
+' (a copy is included in the LICENSE file that accompanied this code).
+'
+' You should have received a copy of the GNU Lesser General Public License
+' version 3 along with OpenOffice.org. If not, see
+' <http://www.openoffice.org/license.html>
+' for a copy of the LGPLv3 License.
+'
+'*************************************************************************
+'*************************************************************************
+
+
+
+' Be sure that all variables are dimensioned:
+option explicit
+
+
+
+Sub RunTest()
+
+'*************************************************************************
+' INTERFACE:
+' com.sun.star.ui.dialogs.XFilterManager
+'*************************************************************************
+On Error Goto ErrHndl
+ Dim bOK As Boolean
+ Dim gFilter As String
+
+
+ Test.StartMethod("appendFilter()")
+ bOK = true
+ oObj.appendFilter("TestFilter", "txt")
+ Test.MethodTested("appendFilter()", bOK)
+
+ Test.StartMethod("setCurrentFilter()")
+ bOK = true
+ oObj.setCurrentFilter("TestFilter")
+
+ Test.StartMethod("getCurrentFilter()")
+ gFilter = oObj.getCurrentFilter()
+ bOK = bOK AND (gFilter = "TestFilter")
+ Test.MethodTested("setCurrentFilter()", bOK)
+ Test.MethodTested("getCurrentFilter()", bOK)
+
+Exit Sub
+ErrHndl:
+ Test.Exception()
+ bOK = false
+ resume next
+End Sub
+</script:module>
diff --git a/qadevOOo/tests/basic/ifc/ui/dialogs/XFolderPicker/script.xlb b/qadevOOo/tests/basic/ifc/ui/dialogs/XFolderPicker/script.xlb
new file mode 100644
index 000000000000..1f831d352c46
--- /dev/null
+++ b/qadevOOo/tests/basic/ifc/ui/dialogs/XFolderPicker/script.xlb
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE library:library PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "library.dtd">
+<library:library xmlns:library="http://openoffice.org/2000/library" library:name="ui_dialogs_XFolderPicker" library:readonly="false" library:passwordprotected="false">
+"<library:element library:name="ui_dialogs_XFolderPicker"/>
+"</library:library>
diff --git a/qadevOOo/tests/basic/ifc/ui/dialogs/XFolderPicker/ui_dialogs_XFolderPicker.xba b/qadevOOo/tests/basic/ifc/ui/dialogs/XFolderPicker/ui_dialogs_XFolderPicker.xba
new file mode 100644
index 000000000000..c2802dbe2e8b
--- /dev/null
+++ b/qadevOOo/tests/basic/ifc/ui/dialogs/XFolderPicker/ui_dialogs_XFolderPicker.xba
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
+<script:module xmlns:script="http://openoffice.org/2000/script" script:name="ui_dialogs_XFolderPicker" script:language="StarBasic">
+
+
+'*************************************************************************
+'
+' DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+'
+' Copyright 2000, 2010 Oracle and/or its affiliates.
+'
+' OpenOffice.org - a multi-platform office productivity suite
+'
+' This file is part of OpenOffice.org.
+'
+' OpenOffice.org is free software: you can redistribute it and/or modify
+' it under the terms of the GNU Lesser General Public License version 3
+' only, as published by the Free Software Foundation.
+'
+' OpenOffice.org is distributed in the hope that it will be useful,
+' but WITHOUT ANY WARRANTY; without even the implied warranty of
+' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+' GNU Lesser General Public License version 3 for more details
+' (a copy is included in the LICENSE file that accompanied this code).
+'
+' You should have received a copy of the GNU Lesser General Public License
+' version 3 along with OpenOffice.org. If not, see
+' <http://www.openoffice.org/license.html>
+' for a copy of the LGPLv3 License.
+'
+'*************************************************************************
+'*************************************************************************
+
+
+
+' Be sure that all variables are dimensioned:
+option explicit
+
+
+
+Sub RunTest()
+
+'*************************************************************************
+' INTERFACE:
+' com.sun.star.ui.dialogs.XFolderPicker
+'*************************************************************************
+On Error Goto ErrHndl
+ Dim bOK As Boolean
+ Dim sDir As String, gDir As String
+
+ sDir = utils.getTempFileURL("")
+
+ Test.StartMethod("setDisplayDirectory()")
+ bOK = true
+ oObj.setDisplayDirectory(sDir)
+ Test.MethodTested("setDisplayDirectory()", bOK)
+
+ Test.StartMethod("getDisplayDirectory()")
+ bOK = true
+ gDir = oObj.getDisplayDirectory()
+ out.log("Directory returned : " + gDir)
+ bOK = bOK AND (gDir = sDir)
+ Test.MethodTested("getDisplayDirectory()", bOK)
+
+ Test.StartMethod("getDirectory()")
+ bOK = true
+ gDir = oObj.getDirectory()
+ out.log("Directory returned : " + gDir)
+ Test.MethodTested("getDirectory()", bOK)
+
+ Test.StartMethod("setDescription()")
+ bOK = true
+ oObj.setDescription("XFolderPicker")
+ Test.MethodTested("setDescription()", bOK)
+
+Exit Sub
+ErrHndl:
+ Test.Exception()
+ bOK = false
+ resume next
+End Sub
+</script:module>