From ed5640d8b587fbcfed7dd7967f3de04b37a76f26 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:06:44 +0200 Subject: Adding upstream version 4:7.4.7. Signed-off-by: Daniel Baumann --- .../tests/java/ifc/form/component/_CheckBox.java | 35 ++++++++ .../tests/java/ifc/form/component/_ComboBox.java | 34 ++++++++ .../java/ifc/form/component/_CommandButton.java | 36 ++++++++ .../java/ifc/form/component/_CurrencyField.java | 50 +++++++++++ .../tests/java/ifc/form/component/_DataForm.java | 83 +++++++++++++++++++ .../java/ifc/form/component/_DatabaseComboBox.java | 37 +++++++++ .../java/ifc/form/component/_DatabaseForm.java | 88 ++++++++++++++++++++ .../form/component/_DatabaseFormattedField.java | 35 ++++++++ .../ifc/form/component/_DatabaseImageControl.java | 35 ++++++++ .../java/ifc/form/component/_DatabaseListBox.java | 37 +++++++++ .../ifc/form/component/_DatabasePatternField.java | 36 ++++++++ .../ifc/form/component/_DatabaseTextField.java | 36 ++++++++ .../tests/java/ifc/form/component/_DateField.java | 47 +++++++++++ .../java/ifc/form/component/_FileControl.java | 35 ++++++++ .../java/ifc/form/component/_FormattedField.java | 26 ++++++ .../java/ifc/form/component/_GridControl.java | 96 ++++++++++++++++++++++ .../tests/java/ifc/form/component/_HTMLForm.java | 38 +++++++++ .../java/ifc/form/component/_HiddenControl.java | 35 ++++++++ .../java/ifc/form/component/_ImageButton.java | 37 +++++++++ .../tests/java/ifc/form/component/_ListBox.java | 37 +++++++++ .../ifc/form/component/_NavigationToolBar.java | 45 ++++++++++ .../java/ifc/form/component/_NumericField.java | 49 +++++++++++ .../java/ifc/form/component/_PatternField.java | 35 ++++++++ .../java/ifc/form/component/_RadioButton.java | 37 +++++++++ .../java/ifc/form/component/_RichTextControl.java | 25 ++++++ .../tests/java/ifc/form/component/_ScrollBar.java | 25 ++++++ .../tests/java/ifc/form/component/_SpinButton.java | 25 ++++++ .../tests/java/ifc/form/component/_TextField.java | 35 ++++++++ .../tests/java/ifc/form/component/_TimeField.java | 49 +++++++++++ 29 files changed, 1218 insertions(+) create mode 100644 qadevOOo/tests/java/ifc/form/component/_CheckBox.java create mode 100644 qadevOOo/tests/java/ifc/form/component/_ComboBox.java create mode 100644 qadevOOo/tests/java/ifc/form/component/_CommandButton.java create mode 100644 qadevOOo/tests/java/ifc/form/component/_CurrencyField.java create mode 100644 qadevOOo/tests/java/ifc/form/component/_DataForm.java create mode 100644 qadevOOo/tests/java/ifc/form/component/_DatabaseComboBox.java create mode 100644 qadevOOo/tests/java/ifc/form/component/_DatabaseForm.java create mode 100644 qadevOOo/tests/java/ifc/form/component/_DatabaseFormattedField.java create mode 100644 qadevOOo/tests/java/ifc/form/component/_DatabaseImageControl.java create mode 100644 qadevOOo/tests/java/ifc/form/component/_DatabaseListBox.java create mode 100644 qadevOOo/tests/java/ifc/form/component/_DatabasePatternField.java create mode 100644 qadevOOo/tests/java/ifc/form/component/_DatabaseTextField.java create mode 100644 qadevOOo/tests/java/ifc/form/component/_DateField.java create mode 100644 qadevOOo/tests/java/ifc/form/component/_FileControl.java create mode 100644 qadevOOo/tests/java/ifc/form/component/_FormattedField.java create mode 100644 qadevOOo/tests/java/ifc/form/component/_GridControl.java create mode 100644 qadevOOo/tests/java/ifc/form/component/_HTMLForm.java create mode 100644 qadevOOo/tests/java/ifc/form/component/_HiddenControl.java create mode 100644 qadevOOo/tests/java/ifc/form/component/_ImageButton.java create mode 100644 qadevOOo/tests/java/ifc/form/component/_ListBox.java create mode 100644 qadevOOo/tests/java/ifc/form/component/_NavigationToolBar.java create mode 100644 qadevOOo/tests/java/ifc/form/component/_NumericField.java create mode 100644 qadevOOo/tests/java/ifc/form/component/_PatternField.java create mode 100644 qadevOOo/tests/java/ifc/form/component/_RadioButton.java create mode 100644 qadevOOo/tests/java/ifc/form/component/_RichTextControl.java create mode 100644 qadevOOo/tests/java/ifc/form/component/_ScrollBar.java create mode 100644 qadevOOo/tests/java/ifc/form/component/_SpinButton.java create mode 100644 qadevOOo/tests/java/ifc/form/component/_TextField.java create mode 100644 qadevOOo/tests/java/ifc/form/component/_TimeField.java (limited to 'qadevOOo/tests/java/ifc/form/component') diff --git a/qadevOOo/tests/java/ifc/form/component/_CheckBox.java b/qadevOOo/tests/java/ifc/form/component/_CheckBox.java new file mode 100644 index 000000000..9fc401a5a --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_CheckBox.java @@ -0,0 +1,35 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +/** +* Testing com.sun.star.form.component.CheckBox +* service properties : +*

+* @see com.sun.star.form.component.CheckBox +*/ +public class _CheckBox extends MultiPropertyTest { + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_ComboBox.java b/qadevOOo/tests/java/ifc/form/component/_ComboBox.java new file mode 100644 index 000000000..84001ce11 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_ComboBox.java @@ -0,0 +1,34 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +/** +* Testing com.sun.star.form.component.ComboBox +* service properties : +*

+* @see com.sun.star.form.component.ComboBox +*/ +public class _ComboBox extends MultiPropertyTest { + // these properties don't needed in special code. +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_CommandButton.java b/qadevOOo/tests/java/ifc/form/component/_CommandButton.java new file mode 100644 index 000000000..ac1bfaafd --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_CommandButton.java @@ -0,0 +1,36 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +/** +* Testing com.sun.star.form.component.CommandButton +* service properties : +*

+* @see com.sun.star.form.component.CommandButton +*/ +public class _CommandButton extends MultiPropertyTest { + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_CurrencyField.java b/qadevOOo/tests/java/ifc/form/component/_CurrencyField.java new file mode 100644 index 000000000..ae1d7de26 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_CurrencyField.java @@ -0,0 +1,50 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + + +/** +* Testing com.sun.star.form.component.CurrencyField +* service properties : +*

+* Properties testing is automated by lib.MultiPropertyTest. +* @see com.sun.star.form.component.CurrencyField +*/ +public class _CurrencyField extends MultiPropertyTest { + + /** + * This property can be void, so if old value is null + * new value must be specified. + */ + public void _DefaultValue() { + testProperty("DefaultValue", new PropertyTester() { + @Override + protected Object getNewValue(String p, Object old) { + return util.utils.isVoid(old) ? new Double(17.5) : + super.getNewValue(p, old) ; + } + }) ; + } +} // finish class _CurrencyField + + diff --git a/qadevOOo/tests/java/ifc/form/component/_DataForm.java b/qadevOOo/tests/java/ifc/form/component/_DataForm.java new file mode 100644 index 000000000..4ea3e11ce --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_DataForm.java @@ -0,0 +1,83 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +import com.sun.star.form.TabulatorCycle; +import com.sun.star.uno.Enum; + +/** +* Testing com.sun.star.form.component.DataForm +* service properties : +*

+* Properties testing is automated by lib.MultiPropertyTest. +* @see com.sun.star.form.component.DataForm +*/ +public class _DataForm extends MultiPropertyTest { + + /** + * This property can be VOID, and in case if it is so new + * value must be defined. + */ + public void _NavigationBarMode() { + testProperty("NavigationBarMode", new PropertyTester() { + @Override + public String toString(Object obj) { + if (util.utils.isVoid(obj)) { + return "null"; + } else { + return "(" + obj.getClass().toString() + ")" + + ((Enum)obj).getValue(); + } + } + }); + } + + /** + * This property can be VOID, and in case if it is so new + * value must be defined. + */ + public void _Cycle() { + testProperty("Cycle", new PropertyTester() { + @Override + public Object getNewValue(String propName, Object oldValue) { + return TabulatorCycle.CURRENT; + } + @Override + public String toString(Object obj) { + if (util.utils.isVoid(obj)) + return "null"; + else + return "(" + obj.getClass().toString() + ")" + + ((Enum)obj).getValue(); + } + }); + } + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_DatabaseComboBox.java b/qadevOOo/tests/java/ifc/form/component/_DatabaseComboBox.java new file mode 100644 index 000000000..cb72ff5ed --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_DatabaseComboBox.java @@ -0,0 +1,37 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component ; + +import lib.MultiPropertyTest; + +/** +* Testing com.sun.star.form.component.DatabaseComboBox +* service properties : +*

+* All properties are tested by class MultiPropertyTest +* @see com.sun.star.form.component.DatabaseComboBox +*/ +public class _DatabaseComboBox extends MultiPropertyTest { + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_DatabaseForm.java b/qadevOOo/tests/java/ifc/form/component/_DatabaseForm.java new file mode 100644 index 000000000..887c881a2 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_DatabaseForm.java @@ -0,0 +1,88 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; +import util.dbg; + +import com.sun.star.form.TabulatorCycle; +import com.sun.star.uno.Enum; +import java.io.UnsupportedEncodingException; + +/** +* Testing com.sun.star.form.component.DatabaseForm +* service properties: +*

+* Properties testing is automated by lib.MultiPropertyTest. +* @see com.sun.star.form.component.DatabaseForm +*/ +public class _DatabaseForm extends MultiPropertyTest { + + /** + * In this property test only debugging information output + * is customized. + */ + public void _NavigationBarMode() throws UnsupportedEncodingException { + dbg.printPropertyInfo(oObj, "NavigationBarMode"); + testProperty("NavigationBarMode", new PropertyTester() { + @Override + public String toString(Object obj) { + if (obj == null) { + return "null"; + } else { + return "(" + obj.getClass().toString() + ")" + + ((Enum)obj).getValue(); + } + } + }); + } + + /** + * This property new value is always fixed and debugging + * information output is customized. + */ + public void _Cycle() throws UnsupportedEncodingException { + dbg.printPropertyInfo(oObj, "Cycle"); + testProperty("Cycle", new PropertyTester() { + @Override + public Object getNewValue(String propName, Object oldValue) { + return TabulatorCycle.CURRENT; + } + + @Override + public String toString(Object obj) { + if (obj == null) { + return "null"; + } else { + return "(" + obj.getClass().toString() + ")" + + ((Enum)obj).getValue(); + } + } + }); + } +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_DatabaseFormattedField.java b/qadevOOo/tests/java/ifc/form/component/_DatabaseFormattedField.java new file mode 100644 index 000000000..85b352ef6 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_DatabaseFormattedField.java @@ -0,0 +1,35 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component ; + +import lib.MultiPropertyTest; + +/** +* Testing com.sun.star.form.component.DatabaseFormattedField +* service properties : +*

+* Properties testing is automated by lib.MultiPropertyTest. +* @see com.sun.star.form.component.DatabaseFormattedField +*/ +public class _DatabaseFormattedField extends MultiPropertyTest { + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_DatabaseImageControl.java b/qadevOOo/tests/java/ifc/form/component/_DatabaseImageControl.java new file mode 100644 index 000000000..ab675911a --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_DatabaseImageControl.java @@ -0,0 +1,35 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +/** +* Testing com.sun.star.form.component.DatabaseImageControl +* service properties : +*

+* Properties testing is automated by lib.MultiPropertyTest. +* @see com.sun.star.form.component.DatabaseImageControl +*/ +public class _DatabaseImageControl extends MultiPropertyTest { + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_DatabaseListBox.java b/qadevOOo/tests/java/ifc/form/component/_DatabaseListBox.java new file mode 100644 index 000000000..ef8299080 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_DatabaseListBox.java @@ -0,0 +1,37 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +/* +* Testing com.sun.star.form.component.DatabaseListBox +* service properties : +*

+* All properties testing is automated by +* lib.MultiPropertyTest. +* @see com.sun.star.form.component.DatabaseListBox +*/ +public class _DatabaseListBox extends MultiPropertyTest { + // these properties don't needed in special code. +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_DatabasePatternField.java b/qadevOOo/tests/java/ifc/form/component/_DatabasePatternField.java new file mode 100644 index 000000000..184e92511 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_DatabasePatternField.java @@ -0,0 +1,36 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + + +/** +* Testing com.sun.star.form.component.DatabasePatternField +* service properties : +*

+* Properties testing is automated by lib.MultiPropertyTest. +* @see com.sun.star.form.component.DatabasePatternField +*/ +public class _DatabasePatternField extends MultiPropertyTest { + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_DatabaseTextField.java b/qadevOOo/tests/java/ifc/form/component/_DatabaseTextField.java new file mode 100644 index 000000000..37ff264c6 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_DatabaseTextField.java @@ -0,0 +1,36 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + + +/** +* Testing com.sun.star.form.component.DatabaseTextField +* service properties : +*

+* All properties are tested by class MultiPropertyTest +* @see com.sun.star.form.component.DatabaseTextField +*/ +public class _DatabaseTextField extends MultiPropertyTest { + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_DateField.java b/qadevOOo/tests/java/ifc/form/component/_DateField.java new file mode 100644 index 000000000..4a0688a22 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_DateField.java @@ -0,0 +1,47 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +/** +* Testing com.sun.star.form.component.DateField +* service properties : +*

+* @see com.sun.star.form.component.DateField +*/ +public class _DateField extends MultiPropertyTest { + + /** + * This property can be void, so if old value is null + * new value must be specified. + */ + public void _DefaultDate() { + testProperty("DefaultDate", new PropertyTester() { + @Override + protected Object getNewValue(String prop, Object old) { + return util.utils.isVoid(old) ? Integer.valueOf(20010507) : + super.getNewValue(prop, old) ; + } + }) ; + } +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_FileControl.java b/qadevOOo/tests/java/ifc/form/component/_FileControl.java new file mode 100644 index 000000000..2cc5e5292 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_FileControl.java @@ -0,0 +1,35 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +/* +* Testing com.sun.star.form.component.FileControl +* service properties : +* +* Properties testing is automated by lib.MultiPropertyTest. +* @see com.sun.star.form.component.FileControl +*/ +public class _FileControl extends MultiPropertyTest { + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_FormattedField.java b/qadevOOo/tests/java/ifc/form/component/_FormattedField.java new file mode 100644 index 000000000..37ce620f3 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_FormattedField.java @@ -0,0 +1,26 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component ; + +import lib.MultiPropertyTest; + +public class _FormattedField extends MultiPropertyTest { + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_GridControl.java b/qadevOOo/tests/java/ifc/form/component/_GridControl.java new file mode 100644 index 000000000..de773f4d2 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_GridControl.java @@ -0,0 +1,96 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +/** +* Testing com.sun.star.form.component.GridControl +* service properties : +* +* Properties testing is automated by lib.MultiPropertyTest. +* @see com.sun.star.form.component.GridControl +*/ +public class _GridControl extends MultiPropertyTest { + + /** + * This property can be void, so if old value is null + * new value must be specified. + */ + public void _RowHeight() { + testProperty("RowHeight", new PropertyTester() { + @Override + protected Object getNewValue(String prop, Object old) { + return util.utils.isVoid(old) ? Integer.valueOf(11) : + super.getNewValue(prop, old) ; + } + }) ; + } + + /** + * This property can be void, so if old value is null + * new value must be specified. + */ + public void _Tabstop() { + testProperty("Tabstop", new PropertyTester() { + @Override + protected Object getNewValue(String prop, Object old) { + return util.utils.isVoid(old) ? Boolean.TRUE : + super.getNewValue(prop, old) ; + } + }) ; + } + + /** + * This property can be void, so if old value is null + * new value must be specified. + */ + public void _TextColor() { + testProperty("TextColor", new PropertyTester() { + @Override + protected Object getNewValue(String prop, Object old) { + return util.utils.isVoid(old) ? Integer.valueOf(342) : + super.getNewValue(prop, old) ; + } + }) ; + } + + /** + * This property can be void, so if old value is null + * new value must be specified. + */ + public void _BorderColor() { + testProperty("BorderColor", new PropertyTester() { + @Override + protected Object getNewValue(String prop, Object old) { + return util.utils.isVoid(old) ? Integer.valueOf(342) : + super.getNewValue(prop, old) ; + } + }) ; + } +} // finish class _GridControl + + diff --git a/qadevOOo/tests/java/ifc/form/component/_HTMLForm.java b/qadevOOo/tests/java/ifc/form/component/_HTMLForm.java new file mode 100644 index 000000000..a79e2500e --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_HTMLForm.java @@ -0,0 +1,38 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +/** +* Testing com.sun.star.form.component.HTMLForm +* service properties : +*

+* Properties testing is automated by lib.MultiPropertyTest. +* @see com.sun.star.form.component.HTMLForm +*/ +public class _HTMLForm extends MultiPropertyTest { + +} // finish class _HTMLForm + diff --git a/qadevOOo/tests/java/ifc/form/component/_HiddenControl.java b/qadevOOo/tests/java/ifc/form/component/_HiddenControl.java new file mode 100644 index 000000000..eb77e1cd5 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_HiddenControl.java @@ -0,0 +1,35 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +/** +* Testing com.sun.star.form.component.HiddenControl +* service properties : +*

+* Properties testing is automated by lib.MultiPropertyTest. +* @see com.sun.star.form.component.HiddenControl +*/ +public class _HiddenControl extends MultiPropertyTest { + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_ImageButton.java b/qadevOOo/tests/java/ifc/form/component/_ImageButton.java new file mode 100644 index 000000000..208defc43 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_ImageButton.java @@ -0,0 +1,37 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +/** +* Testing com.sun.star.form.component.ImageButton +* service properties : +* +* Properties testing is automated by lib.MultiPropertyTest. +* @see com.sun.star.form.component.ImageButton +*/ +public class _ImageButton extends MultiPropertyTest { + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_ListBox.java b/qadevOOo/tests/java/ifc/form/component/_ListBox.java new file mode 100644 index 000000000..bdcdad7f1 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_ListBox.java @@ -0,0 +1,37 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + + +/** +* Testing com.sun.star.form.component.ListBox +* service properties : +*

+* Properties testing is automated by lib.MultiPropertyTest. +* @see com.sun.star.form.component.ListBox +*/ +public class _ListBox extends MultiPropertyTest { + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_NavigationToolBar.java b/qadevOOo/tests/java/ifc/form/component/_NavigationToolBar.java new file mode 100644 index 000000000..23e3473c1 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_NavigationToolBar.java @@ -0,0 +1,45 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +public class _NavigationToolBar extends MultiPropertyTest { + + public void _TextColor() { + testProperty("TextColor", new PropertyTester() { + @Override + protected Object getNewValue(String prop, Object old) { + return util.utils.isVoid(old) ? Integer.valueOf(20010507) : + super.getNewValue(prop, old) ; + } + }) ; + } + + public void _TextLineColor() { + testProperty("TextLineColor", new PropertyTester() { + @Override + protected Object getNewValue(String prop, Object old) { + return util.utils.isVoid(old) ? Integer.valueOf(20050507) : + super.getNewValue(prop, old) ; + } + }) ; + } + +} \ No newline at end of file diff --git a/qadevOOo/tests/java/ifc/form/component/_NumericField.java b/qadevOOo/tests/java/ifc/form/component/_NumericField.java new file mode 100644 index 000000000..463e780c9 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_NumericField.java @@ -0,0 +1,49 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + + +/** +* Testing com.sun.star.form.component.NumericField +* service properties : +*

+* Properties testing is automated by lib.MultiPropertyTest. +* @see com.sun.star.form.component.NumericField +*/ +public class _NumericField extends MultiPropertyTest { + + /** + * This property can be void, so if old value is null + * new value must be specified. + */ + public void _DefaultValue() { + testProperty("DefaultValue", new PropertyTester() { + @Override + protected Object getNewValue(String prop, Object old) { + return util.utils.isVoid(old) ? new Double(111.11) : + super.getNewValue(prop, old) ; + } + }) ; + } +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_PatternField.java b/qadevOOo/tests/java/ifc/form/component/_PatternField.java new file mode 100644 index 000000000..67623ddfd --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_PatternField.java @@ -0,0 +1,35 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +/** +* Testing com.sun.star.form.component.PatternField +* service properties : +*

+* Properties testing is automated by lib.MultiPropertyTest. +* @see com.sun.star.form.component.PatternField +*/ +public class _PatternField extends MultiPropertyTest { + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_RadioButton.java b/qadevOOo/tests/java/ifc/form/component/_RadioButton.java new file mode 100644 index 000000000..17a45a46f --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_RadioButton.java @@ -0,0 +1,37 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + + +/** +* Testing com.sun.star.form.component.RadioButton +* service properties : +*

+* Properties testing is automated by lib.MultiPropertyTest. +* @see com.sun.star.form.component.RadioButton +*/ +public class _RadioButton extends MultiPropertyTest { + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_RichTextControl.java b/qadevOOo/tests/java/ifc/form/component/_RichTextControl.java new file mode 100644 index 000000000..4150be3a5 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_RichTextControl.java @@ -0,0 +1,25 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +public class _RichTextControl extends MultiPropertyTest { + +} diff --git a/qadevOOo/tests/java/ifc/form/component/_ScrollBar.java b/qadevOOo/tests/java/ifc/form/component/_ScrollBar.java new file mode 100644 index 000000000..d6021c73d --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_ScrollBar.java @@ -0,0 +1,25 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +public class _ScrollBar extends MultiPropertyTest{ + +} diff --git a/qadevOOo/tests/java/ifc/form/component/_SpinButton.java b/qadevOOo/tests/java/ifc/form/component/_SpinButton.java new file mode 100644 index 000000000..8d7ae9c11 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_SpinButton.java @@ -0,0 +1,25 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +public class _SpinButton extends MultiPropertyTest { + +} diff --git a/qadevOOo/tests/java/ifc/form/component/_TextField.java b/qadevOOo/tests/java/ifc/form/component/_TextField.java new file mode 100644 index 000000000..f6b81a1ea --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_TextField.java @@ -0,0 +1,35 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +/** +* Testing com.sun.star.form.component.TextField +* service properties : +*

+* Properties testing is automated by lib.MultiPropertyTest. +* @see com.sun.star.form.component.TextField +*/ +public class _TextField extends MultiPropertyTest { + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_TimeField.java b/qadevOOo/tests/java/ifc/form/component/_TimeField.java new file mode 100644 index 000000000..1faa5d959 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_TimeField.java @@ -0,0 +1,49 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; +import util.utils; + +/** +* Testing com.sun.star.form.component.TimeField +* service properties : +*

+* Properties testing is automated by lib.MultiPropertyTest. +* @see com.sun.star.form.component.TimeField +*/ +public class _TimeField extends MultiPropertyTest { + + /** + * This property can be VOID, and in case if it is so new + * value must defined. + */ + public void _DefaultTime() { + testProperty("DefaultTime", new PropertyTester() { + @Override + protected Object getNewValue(String p, Object old) { + return utils.isVoid(old) ? Integer.valueOf(4321) : + super.getNewValue(p, old) ; + } + }) ; + } +} + -- cgit v1.2.3