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'  Licensed to the Apache Software Foundation (ASF) under one
9'  or more contributor license agreements.  See the NOTICE file
10'  distributed with this work for additional information
11'  regarding copyright ownership.  The ASF licenses this file
12'  to you under the Apache License, Version 2.0 (the
13'  "License"); you may not use this file except in compliance
14'  with the License.  You may obtain a copy of the License at
15'
16'    http://www.apache.org/licenses/LICENSE-2.0
17'
18'  Unless required by applicable law or agreed to in writing,
19'  software distributed under the License is distributed on an
20'  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21'  KIND, either express or implied.  See the License for the
22'  specific language governing permissions and limitations
23'  under the License.
24'
25'*************************************************************************
26
27
28
29
30
31' Be sure that all variables are dimensioned:
32option explicit
33
34
35
36Sub RunTest()
37
38'*************************************************************************
39' SERVICE:
40' com.sun.star.util.PathSettings
41'*************************************************************************
42On Error Goto ErrHndl
43
44    Dim values(1) As String
45    values(1) = oObj.Addin
46    values(0) = values(1) + "New"
47    PropertyTester.TestProperty("Addin", values())
48
49    values(1) = oObj.AutoCorrect
50    values(0) = values(1) + "New"
51    PropertyTester.TestProperty("AutoCorrect", values())
52
53    values(1) = oObj.AutoText
54    values(0) = values(1) + "New"
55    PropertyTester.TestProperty("AutoText", values())
56
57    values(1) = oObj.Backup
58    values(0) = values(1) + "New"
59    PropertyTester.TestProperty("Backup", values())
60
61    values(1) = oObj.Basic
62    values(0) = values(1) + "New"
63    PropertyTester.TestProperty("Basic", values())
64
65    values(1) = oObj.Bitmap
66    values(0) = values(1) + "New"
67    PropertyTester.TestProperty("Bitmap", values())
68
69    values(1) = oObj.Config
70    values(0) = values(1) + "New"
71    PropertyTester.TestProperty("Config", values())
72
73    values(1) = oObj.Dictionary
74    values(0) = values(1) + "New"
75    PropertyTester.TestProperty("Dictionary", values())
76
77    values(1) = oObj.Favorite
78    values(0) = values(1) + "New"
79    PropertyTester.TestProperty("Favorite", values())
80
81    values(1) = oObj.Filter
82    values(0) = values(1) + "New"
83    PropertyTester.TestProperty("Filter", values())
84
85    values(1) = oObj.Gallery
86    values(0) = values(1) + "New"
87    PropertyTester.TestProperty("Gallery", values())
88
89    values(1) = oObj.Graphic
90    values(0) = values(1) + "New"
91    PropertyTester.TestProperty("Graphic", values())
92
93    values(1) = oObj.Help
94    values(0) = values(1) + "New"
95    PropertyTester.TestProperty("Help", values())
96
97    values(1) = oObj.Linguistic
98    values(0) = values(1) + "New"
99    PropertyTester.TestProperty("Linguistic", values())
100
101    values(1) = oObj.Module
102    values(0) = values(1) + "New"
103    PropertyTester.TestProperty("Module", values())
104
105    values(1) = oObj.Palette
106    values(0) = values(1) + "New"
107    PropertyTester.TestProperty("Palette", values())
108
109    values(1) = oObj.Plugin
110    values(0) = values(1) + "New"
111    PropertyTester.TestProperty("Plugin", values())
112
113    values(1) = oObj.Storage
114    values(0) = values(1) + "New"
115    PropertyTester.TestProperty("Storage", values())
116
117    values(1) = oObj.Temp
118    values(0) = values(1) + "New"
119    PropertyTester.TestProperty("Temp", values())
120
121    values(1) = oObj.Template
122    values(0) = values(1) + "New"
123    PropertyTester.TestProperty("Template", values())
124
125    values(1) = oObj.UIConfig
126    values(0) = values(1) + "New"
127    PropertyTester.TestProperty("UIConfig", values())
128
129    values(1) = oObj.UserConfig
130    values(0) = values(1) + "New"
131    PropertyTester.TestProperty("UserConfig", values())
132
133    values(1) = oObj.UserDictionary
134    values(0) = values(1) + "New"
135    PropertyTester.TestProperty("UserDictionary", values())
136
137    values(1) = oObj.Work
138    values(0) = values(1) + "New"
139    PropertyTester.TestProperty("Work", values())
140
141Exit Sub
142ErrHndl:
143    Test.Exception()
144    resume next
145End Sub
146</script:module>
147