1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
3<script:module xmlns:script="http://openoffice.org/2000/script" script:name="util_PathSettings" script:language="StarBasic">
4
5
6'*************************************************************************
7'
8' DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
9'
10' Copyright 2000, 2010 Oracle and/or its affiliates.
11'
12' OpenOffice.org - a multi-platform office productivity suite
13'
14' This file is part of OpenOffice.org.
15'
16' OpenOffice.org is free software: you can redistribute it and/or modify
17' it under the terms of the GNU Lesser General Public License version 3
18' only, as published by the Free Software Foundation.
19'
20' OpenOffice.org is distributed in the hope that it will be useful,
21' but WITHOUT ANY WARRANTY; without even the implied warranty of
22' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23' GNU Lesser General Public License version 3 for more details
24' (a copy is included in the LICENSE file that accompanied this code).
25'
26' You should have received a copy of the GNU Lesser General Public License
27' version 3 along with OpenOffice.org.  If not, see
28' <http://www.openoffice.org/license.html>
29' for a copy of the LGPLv3 License.
30'
31'*************************************************************************
32'*************************************************************************
33
34
35
36' Be sure that all variables are dimensioned:
37option explicit
38
39
40
41Sub RunTest()
42
43'*************************************************************************
44' SERVICE:
45' com.sun.star.util.PathSettings
46'*************************************************************************
47On Error Goto ErrHndl
48
49    Dim values(1) As String
50    values(1) = oObj.Addin
51    values(0) = values(1) + "New"
52    PropertyTester.TestProperty("Addin", values())
53
54    values(1) = oObj.AutoCorrect
55    values(0) = values(1) + "New"
56    PropertyTester.TestProperty("AutoCorrect", values())
57
58    values(1) = oObj.AutoText
59    values(0) = values(1) + "New"
60    PropertyTester.TestProperty("AutoText", values())
61
62    values(1) = oObj.Backup
63    values(0) = values(1) + "New"
64    PropertyTester.TestProperty("Backup", values())
65
66    values(1) = oObj.Basic
67    values(0) = values(1) + "New"
68    PropertyTester.TestProperty("Basic", values())
69
70    values(1) = oObj.Bitmap
71    values(0) = values(1) + "New"
72    PropertyTester.TestProperty("Bitmap", values())
73
74    values(1) = oObj.Config
75    values(0) = values(1) + "New"
76    PropertyTester.TestProperty("Config", values())
77
78    values(1) = oObj.Dictionary
79    values(0) = values(1) + "New"
80    PropertyTester.TestProperty("Dictionary", values())
81
82    values(1) = oObj.Favorite
83    values(0) = values(1) + "New"
84    PropertyTester.TestProperty("Favorite", values())
85
86    values(1) = oObj.Filter
87    values(0) = values(1) + "New"
88    PropertyTester.TestProperty("Filter", values())
89
90    values(1) = oObj.Gallery
91    values(0) = values(1) + "New"
92    PropertyTester.TestProperty("Gallery", values())
93
94    values(1) = oObj.Graphic
95    values(0) = values(1) + "New"
96    PropertyTester.TestProperty("Graphic", values())
97
98    values(1) = oObj.Help
99    values(0) = values(1) + "New"
100    PropertyTester.TestProperty("Help", values())
101
102    values(1) = oObj.Linguistic
103    values(0) = values(1) + "New"
104    PropertyTester.TestProperty("Linguistic", values())
105
106    values(1) = oObj.Module
107    values(0) = values(1) + "New"
108    PropertyTester.TestProperty("Module", values())
109
110    values(1) = oObj.Palette
111    values(0) = values(1) + "New"
112    PropertyTester.TestProperty("Palette", values())
113
114    values(1) = oObj.Plugin
115    values(0) = values(1) + "New"
116    PropertyTester.TestProperty("Plugin", values())
117
118    values(1) = oObj.Storage
119    values(0) = values(1) + "New"
120    PropertyTester.TestProperty("Storage", values())
121
122    values(1) = oObj.Temp
123    values(0) = values(1) + "New"
124    PropertyTester.TestProperty("Temp", values())
125
126    values(1) = oObj.Template
127    values(0) = values(1) + "New"
128    PropertyTester.TestProperty("Template", values())
129
130    values(1) = oObj.UIConfig
131    values(0) = values(1) + "New"
132    PropertyTester.TestProperty("UIConfig", values())
133
134    values(1) = oObj.UserConfig
135    values(0) = values(1) + "New"
136    PropertyTester.TestProperty("UserConfig", values())
137
138    values(1) = oObj.UserDictionary
139    values(0) = values(1) + "New"
140    PropertyTester.TestProperty("UserDictionary", values())
141
142    values(1) = oObj.Work
143    values(0) = values(1) + "New"
144    PropertyTester.TestProperty("Work", values())
145
146Exit Sub
147ErrHndl:
148    Test.Exception()
149    resume next
150End Sub
151</script:module>
152