summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-10 15:36:24 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-12-11 06:09:03 +0000
commit7557f23b31dcfb4d86c122bb34d9675c0db9a694 (patch)
tree5feb7be2b0841d8ee60d935cf2e29e9a01a31a27 /wizards
parent808fd5fbd8868dfd95c8a38676815798fa2b79c4 (diff)
java: reduce visibility of fields and methods
found by PMD Change-Id: Id6737916b68ccbdbdeec5d314747a38410923ac6 Reviewed-on: https://gerrit.libreoffice.org/13409 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/common/Configuration.java4
-rw-r--r--wizards/com/sun/star/wizards/common/Desktop.java16
-rw-r--r--wizards/com/sun/star/wizards/common/FileAccess.java10
-rw-r--r--wizards/com/sun/star/wizards/common/Helper.java2
-rw-r--r--wizards/com/sun/star/wizards/common/JavaTools.java2
-rw-r--r--wizards/com/sun/star/wizards/common/NumberFormatter.java24
-rw-r--r--wizards/com/sun/star/wizards/common/NumericalHelper.java24
-rw-r--r--wizards/com/sun/star/wizards/common/ParaStyled.java2
-rw-r--r--wizards/com/sun/star/wizards/common/PlaceholderTextElement.java6
-rw-r--r--wizards/com/sun/star/wizards/common/Properties.java4
-rw-r--r--wizards/com/sun/star/wizards/common/PropertySetHelper.java4
-rw-r--r--wizards/com/sun/star/wizards/common/Resource.java8
-rw-r--r--wizards/com/sun/star/wizards/common/TextElement.java2
-rw-r--r--wizards/com/sun/star/wizards/db/BlindtextCreator.java2
-rw-r--r--wizards/com/sun/star/wizards/db/ColumnPropertySet.java2
-rw-r--r--wizards/com/sun/star/wizards/db/CommandMetaData.java8
-rw-r--r--wizards/com/sun/star/wizards/db/CommandName.java24
-rw-r--r--wizards/com/sun/star/wizards/db/DBMetaData.java18
-rw-r--r--wizards/com/sun/star/wizards/db/FieldColumn.java2
-rw-r--r--wizards/com/sun/star/wizards/db/QueryMetaData.java2
-rw-r--r--wizards/com/sun/star/wizards/db/RecordParser.java14
-rw-r--r--wizards/com/sun/star/wizards/db/SQLQueryComposer.java28
-rw-r--r--wizards/com/sun/star/wizards/db/TableDescriptor.java24
-rw-r--r--wizards/com/sun/star/wizards/db/TypeInspector.java6
-rw-r--r--wizards/com/sun/star/wizards/document/Control.java22
-rw-r--r--wizards/com/sun/star/wizards/document/DatabaseControl.java4
-rw-r--r--wizards/com/sun/star/wizards/document/FormHandler.java36
-rw-r--r--wizards/com/sun/star/wizards/document/GridControl.java4
-rw-r--r--wizards/com/sun/star/wizards/document/OfficeDocument.java4
-rw-r--r--wizards/com/sun/star/wizards/document/Shape.java4
-rw-r--r--wizards/com/sun/star/wizards/document/TimeStampControl.java16
-rw-r--r--wizards/com/sun/star/wizards/form/FieldLinker.java2
-rw-r--r--wizards/com/sun/star/wizards/form/Finalizer.java10
-rw-r--r--wizards/com/sun/star/wizards/form/FormConfiguration.java24
-rw-r--r--wizards/com/sun/star/wizards/form/FormControlArranger.java2
-rw-r--r--wizards/com/sun/star/wizards/form/FormDocument.java24
-rw-r--r--wizards/com/sun/star/wizards/form/FormWizard.java10
-rw-r--r--wizards/com/sun/star/wizards/form/StyleApplier.java2
-rw-r--r--wizards/com/sun/star/wizards/query/QuerySummary.java14
-rw-r--r--wizards/com/sun/star/wizards/query/QueryWizard.java10
-rw-r--r--wizards/com/sun/star/wizards/report/DBColumn.java28
-rw-r--r--wizards/com/sun/star/wizards/report/Dataimport.java12
-rw-r--r--wizards/com/sun/star/wizards/report/GroupFieldHandler.java4
-rw-r--r--wizards/com/sun/star/wizards/report/ReportFinalizer.java12
-rw-r--r--wizards/com/sun/star/wizards/report/ReportLayouter.java20
-rw-r--r--wizards/com/sun/star/wizards/report/ReportTextDocument.java22
-rw-r--r--wizards/com/sun/star/wizards/report/ReportTextImplementation.java12
-rw-r--r--wizards/com/sun/star/wizards/report/ReportWizard.java14
-rw-r--r--wizards/com/sun/star/wizards/reportbuilder/layout/ReportBuilderLayouter.java80
-rw-r--r--wizards/com/sun/star/wizards/reportbuilder/layout/SectionLabel.java2
-rw-r--r--wizards/com/sun/star/wizards/reportbuilder/layout/SectionObject.java2
-rw-r--r--wizards/com/sun/star/wizards/reportbuilder/layout/SectionTextField.java2
-rw-r--r--wizards/com/sun/star/wizards/table/CGCategory.java6
-rw-r--r--wizards/com/sun/star/wizards/table/CGTable.java4
-rw-r--r--wizards/com/sun/star/wizards/table/FieldDescription.java2
-rw-r--r--wizards/com/sun/star/wizards/table/FieldFormatter.java26
-rw-r--r--wizards/com/sun/star/wizards/table/Finalizer.java20
-rw-r--r--wizards/com/sun/star/wizards/table/ScenarioSelector.java10
-rw-r--r--wizards/com/sun/star/wizards/table/TableWizard.java22
-rw-r--r--wizards/com/sun/star/wizards/text/TextDocument.java6
-rw-r--r--wizards/com/sun/star/wizards/text/TextFieldHandler.java6
-rw-r--r--wizards/com/sun/star/wizards/text/TextSectionHandler.java6
-rw-r--r--wizards/com/sun/star/wizards/text/TextTableHandler.java4
-rw-r--r--wizards/com/sun/star/wizards/ui/AggregateComponent.java46
-rw-r--r--wizards/com/sun/star/wizards/ui/ButtonList.java12
-rw-r--r--wizards/com/sun/star/wizards/ui/CommandFieldSelection.java12
-rw-r--r--wizards/com/sun/star/wizards/ui/ControlScroller.java38
-rw-r--r--wizards/com/sun/star/wizards/ui/DBLimitedFieldSelection.java6
-rw-r--r--wizards/com/sun/star/wizards/ui/FieldSelection.java10
-rw-r--r--wizards/com/sun/star/wizards/ui/FilterComponent.java74
-rw-r--r--wizards/com/sun/star/wizards/ui/PeerConfig.java14
-rw-r--r--wizards/com/sun/star/wizards/ui/SortingComponent.java30
-rw-r--r--wizards/com/sun/star/wizards/ui/TitlesComponent.java16
-rw-r--r--wizards/com/sun/star/wizards/ui/UnoDialog.java24
-rw-r--r--wizards/com/sun/star/wizards/ui/UnoDialog2.java6
-rw-r--r--wizards/com/sun/star/wizards/ui/WizardDialog.java22
-rw-r--r--wizards/com/sun/star/wizards/ui/event/DataAware.java14
77 files changed, 536 insertions, 536 deletions
diff --git a/wizards/com/sun/star/wizards/common/Configuration.java b/wizards/com/sun/star/wizards/common/Configuration.java
index 3a48692e3adb..c69d029e7cc5 100644
--- a/wizards/com/sun/star/wizards/common/Configuration.java
+++ b/wizards/com/sun/star/wizards/common/Configuration.java
@@ -83,7 +83,7 @@ public abstract class Configuration
}
}
- public static String getLocaleString(XMultiServiceFactory xMSF, String root, String key)
+ private static String getLocaleString(XMultiServiceFactory xMSF, String root, String key)
{
String sLocale = PropertyNames.EMPTY_STRING;
try
@@ -102,7 +102,7 @@ public abstract class Configuration
return sLocale;
}
- public static Locale getLocale(XMultiServiceFactory xMSF, String root, String key)
+ private static Locale getLocale(XMultiServiceFactory xMSF, String root, String key)
{
Locale aLocLocale = new Locale();
String sLocale = getLocaleString(xMSF, root, key);
diff --git a/wizards/com/sun/star/wizards/common/Desktop.java b/wizards/com/sun/star/wizards/common/Desktop.java
index 3093e8a74415..14c3a7a77561 100644
--- a/wizards/com/sun/star/wizards/common/Desktop.java
+++ b/wizards/com/sun/star/wizards/common/Desktop.java
@@ -66,7 +66,7 @@ public class Desktop
return xFrameSuppl.getActiveFrame();
}
- public static XDispatch getDispatcher(XFrame xFrame, String _stargetframe, com.sun.star.util.URL oURL)
+ private static XDispatch getDispatcher(XFrame xFrame, String _stargetframe, com.sun.star.util.URL oURL)
{
try
{
@@ -82,7 +82,7 @@ public class Desktop
return null;
}
- public static com.sun.star.util.URL getDispatchURL(XMultiServiceFactory xMSF, String _sURL)
+ private static com.sun.star.util.URL getDispatchURL(XMultiServiceFactory xMSF, String _sURL)
{
try
{
@@ -101,7 +101,7 @@ public class Desktop
return null;
}
- public static void dispatchURL(XMultiServiceFactory xMSF, String sURL, XFrame xFrame, String _stargetframe)
+ private static void dispatchURL(XMultiServiceFactory xMSF, String sURL, XFrame xFrame, String _stargetframe)
{
com.sun.star.util.URL oURL = getDispatchURL(xMSF, sURL);
XDispatch xDispatch = getDispatcher(xFrame, _stargetframe, oURL);
@@ -113,13 +113,13 @@ public class Desktop
dispatchURL(xMSF, sURL, xFrame, PropertyNames.EMPTY_STRING);
}
- public static void dispatchURL(XDispatch _xDispatch, com.sun.star.util.URL oURL)
+ private static void dispatchURL(XDispatch _xDispatch, com.sun.star.util.URL oURL)
{
PropertyValue[] oArg = new PropertyValue[0];
_xDispatch.dispatch(oURL, oArg);
}
- public static XMultiComponentFactory getMultiComponentFactory() throws com.sun.star.uno.Exception, RuntimeException, java.lang.Exception
+ private static XMultiComponentFactory getMultiComponentFactory() throws com.sun.star.uno.Exception, RuntimeException, java.lang.Exception
{
XComponentContext xcomponentcontext = Bootstrap.createInitialComponentContext(null);
// initial serviceManager
@@ -156,7 +156,7 @@ public class Desktop
return sIncSuffix;
}
- public static String getIncrementSuffix(XHierarchicalNameAccess xElementContainer, String ElementName)
+ private static String getIncrementSuffix(XHierarchicalNameAccess xElementContainer, String ElementName)
{
boolean bElementexists = true;
int i = 1;
@@ -178,7 +178,7 @@ public class Desktop
return sIncSuffix;
}
- public static int checkforfirstSpecialCharacter(XMultiServiceFactory _xMSF, String _sString, Locale _aLocale)
+ private static int checkforfirstSpecialCharacter(XMultiServiceFactory _xMSF, String _sString, Locale _aLocale)
{
try
{
@@ -267,7 +267,7 @@ public class Desktop
- public static String getTemplatePath(XMultiServiceFactory _xMSF)
+ private static String getTemplatePath(XMultiServiceFactory _xMSF)
{
try
{
diff --git a/wizards/com/sun/star/wizards/common/FileAccess.java b/wizards/com/sun/star/wizards/common/FileAccess.java
index 63a531874625..14f77ed4d312 100644
--- a/wizards/com/sun/star/wizards/common/FileAccess.java
+++ b/wizards/com/sun/star/wizards/common/FileAccess.java
@@ -49,7 +49,7 @@ import com.sun.star.document.XDocumentProperties;
public class FileAccess
{
- public static String deleteLastSlashfromUrl(String _sPath)
+ private static String deleteLastSlashfromUrl(String _sPath)
{
if (_sPath.endsWith("/"))
{
@@ -338,7 +338,7 @@ public class FileAccess
/**
* We search in all given path for a given file
*/
- public static String addPath(String _sPath, String _sPath2)
+ private static String addPath(String _sPath, String _sPath2)
{
String sNewPath;
if (!_sPath.endsWith("/"))
@@ -481,7 +481,7 @@ public class FileAccess
return LocLayoutFiles;
}
- public XSimpleFileAccess2 fileAccess;
+ private XSimpleFileAccess2 fileAccess;
public FileAccess(XMultiServiceFactory xmsf) throws com.sun.star.uno.Exception
{
@@ -496,7 +496,7 @@ public class FileAccess
/**
* @return the extension of the given filename.
*/
- public static String getExtension(String filename)
+ private static String getExtension(String filename)
{
int p = filename.indexOf('.');
if (p == -1)
@@ -540,7 +540,7 @@ public class FileAccess
return getFilename(path, "/");
}
- public static String getFilename(String path, String pathSeparator)
+ private static String getFilename(String path, String pathSeparator)
{
String[] s = JavaTools.ArrayoutofString(path, pathSeparator);
return s[s.length - 1];
diff --git a/wizards/com/sun/star/wizards/common/Helper.java b/wizards/com/sun/star/wizards/common/Helper.java
index 58f83cdda243..efb0a970a997 100644
--- a/wizards/com/sun/star/wizards/common/Helper.java
+++ b/wizards/com/sun/star/wizards/common/Helper.java
@@ -199,7 +199,7 @@ public class Helper
* @param oValue the parameter that has to represent an object
* @return a null reference if the array is empty
*/
- public static Object getArrayValue(Object oValue)
+ private static Object getArrayValue(Object oValue)
{
try
{
diff --git a/wizards/com/sun/star/wizards/common/JavaTools.java b/wizards/com/sun/star/wizards/common/JavaTools.java
index df7bfe11152e..2c0d28c90846 100644
--- a/wizards/com/sun/star/wizards/common/JavaTools.java
+++ b/wizards/com/sun/star/wizards/common/JavaTools.java
@@ -431,7 +431,7 @@ public class JavaTools
return -1;
}
- public static boolean isEqual(PropertyValue firstPropValue, PropertyValue secPropValue)
+ private static boolean isEqual(PropertyValue firstPropValue, PropertyValue secPropValue)
{
if (!firstPropValue.Name.equals(secPropValue.Name))
{
diff --git a/wizards/com/sun/star/wizards/common/NumberFormatter.java b/wizards/com/sun/star/wizards/common/NumberFormatter.java
index 52651bba0269..dfbd742aef8e 100644
--- a/wizards/com/sun/star/wizards/common/NumberFormatter.java
+++ b/wizards/com/sun/star/wizards/common/NumberFormatter.java
@@ -36,17 +36,17 @@ import com.sun.star.util.XNumberFormatter;
public class NumberFormatter
{
- public int iDateFormatKey = -1;
- public int iDateTimeFormatKey = -1;
- public int iNumberFormatKey = -1;
- public int iTextFormatKey = -1;
- public int iTimeFormatKey = -1;
- public int iLogicalFormatKey = -1;
- public long lDateCorrection;
- public XNumberFormatter xNumberFormatter;
- public XNumberFormats xNumberFormats;
- public XNumberFormatTypes xNumberFormatTypes;
- public XPropertySet xNumberFormatSettings;
+ private int iDateFormatKey = -1;
+ private int iDateTimeFormatKey = -1;
+ private int iNumberFormatKey = -1;
+ private int iTextFormatKey = -1;
+ private int iTimeFormatKey = -1;
+ private int iLogicalFormatKey = -1;
+ private long lDateCorrection;
+ private XNumberFormatter xNumberFormatter;
+ private XNumberFormats xNumberFormats;
+ private XNumberFormatTypes xNumberFormatTypes;
+ private XPropertySet xNumberFormatSettings;
private final Locale aLocale;
@@ -108,7 +108,7 @@ public class NumberFormatter
/**
* returns a numberformat for a FormatString.
*/
- public int defineNumberFormat(String _FormatString, Locale _aLocale)
+ private int defineNumberFormat(String _FormatString, Locale _aLocale)
{
try
{
diff --git a/wizards/com/sun/star/wizards/common/NumericalHelper.java b/wizards/com/sun/star/wizards/common/NumericalHelper.java
index 7505b7b444dc..af74704df4a2 100644
--- a/wizards/com/sun/star/wizards/common/NumericalHelper.java
+++ b/wizards/com/sun/star/wizards/common/NumericalHelper.java
@@ -33,16 +33,16 @@ import com.sun.star.uno.TypeClass;
public class NumericalHelper
{
- public static final int BYTE_TYPE = 0;
- public static final int SHORT_TYPE = 1;
- public static final int INT_TYPE = 2;
- public static final int LONG_TYPE = 3;
- public static final int FLOAT_TYPE = 4;
- public static final int DOUBLE_TYPE = 5;
- public static final int CHAR_TYPE = 6;
- public static final int STRING_TYPE = -1;
- public static final int BOOLEAN_TYPE = -2;
- public static final int SEQUENCE_TYPE = -3;
+ private static final int BYTE_TYPE = 0;
+ private static final int SHORT_TYPE = 1;
+ private static final int INT_TYPE = 2;
+ private static final int LONG_TYPE = 3;
+ private static final int FLOAT_TYPE = 4;
+ private static final int DOUBLE_TYPE = 5;
+ private static final int CHAR_TYPE = 6;
+ private static final int STRING_TYPE = -1;
+ private static final int BOOLEAN_TYPE = -2;
+ private static final int SEQUENCE_TYPE = -3;
/**
* private c'tor to prevent instantiation
@@ -272,7 +272,7 @@ public class NumericalHelper
* @return
* @throws com.sun.star.lang.IllegalArgumentException
*/
- static int getInt(TypeObject typeObject)
+ private static int getInt(TypeObject typeObject)
throws com.sun.star.lang.IllegalArgumentException
{
if (typeObject.iType != INT_TYPE)
@@ -287,7 +287,7 @@ public class NumericalHelper
* get the simple float type
* @throws com.sun.star.lang.IllegalArgumentException
*/
- static float getFloat(TypeObject typeObject)
+ private static float getFloat(TypeObject typeObject)
throws com.sun.star.lang.IllegalArgumentException
{
if (typeObject.iType != FLOAT_TYPE)
diff --git a/wizards/com/sun/star/wizards/common/ParaStyled.java b/wizards/com/sun/star/wizards/common/ParaStyled.java
index 0a80f452ad1e..495423bfcb66 100644
--- a/wizards/com/sun/star/wizards/common/ParaStyled.java
+++ b/wizards/com/sun/star/wizards/common/ParaStyled.java
@@ -24,7 +24,7 @@ import com.sun.star.text.*;
class ParaStyled implements TemplateElement
{
- String paraStyle;
+ private String paraStyle;
ParaStyled(String paraStyle_)
{
diff --git a/wizards/com/sun/star/wizards/common/PlaceholderTextElement.java b/wizards/com/sun/star/wizards/common/PlaceholderTextElement.java
index a7b5d2af9d45..ae517250e65d 100644
--- a/wizards/com/sun/star/wizards/common/PlaceholderTextElement.java
+++ b/wizards/com/sun/star/wizards/common/PlaceholderTextElement.java
@@ -26,9 +26,9 @@ import com.sun.star.text.*;
public class PlaceholderTextElement extends TextElement
{
- String hint;
+ private String hint;
String placeHolderText;
- XMultiServiceFactory xmsf;
+ private XMultiServiceFactory xmsf;
public PlaceholderTextElement(XTextRange textRange, String placeHolderText_, String hint_, XMultiServiceFactory xmsf_)
{
@@ -56,7 +56,7 @@ public class PlaceholderTextElement extends TextElement
}
}
- public static XTextContent createPlaceHolder(XMultiServiceFactory xmsf, String ph, String hint)
+ private static XTextContent createPlaceHolder(XMultiServiceFactory xmsf, String ph, String hint)
{
Object placeHolder;
try
diff --git a/wizards/com/sun/star/wizards/common/Properties.java b/wizards/com/sun/star/wizards/common/Properties.java
index 59e48e6810ca..372c7c4a3b76 100644
--- a/wizards/com/sun/star/wizards/common/Properties.java
+++ b/wizards/com/sun/star/wizards/common/Properties.java
@@ -59,7 +59,7 @@ public class Properties extends HashMap<String,Object>
return getProperties(this);
}
- public static PropertyValue[] getProperties(Map<String,Object> map)
+ private static PropertyValue[] getProperties(Map<String,Object> map)
{
PropertyValue[] pv = new PropertyValue[map.size()];
@@ -71,7 +71,7 @@ public class Properties extends HashMap<String,Object>
return pv;
}
- public static PropertyValue createProperty(String name, Map<String,Object> map)
+ private static PropertyValue createProperty(String name, Map<String,Object> map)
{
return createProperty(name, map.get(name));
}
diff --git a/wizards/com/sun/star/wizards/common/PropertySetHelper.java b/wizards/com/sun/star/wizards/common/PropertySetHelper.java
index 15c7f447d062..1def4f063580 100644
--- a/wizards/com/sun/star/wizards/common/PropertySetHelper.java
+++ b/wizards/com/sun/star/wizards/common/PropertySetHelper.java
@@ -25,7 +25,7 @@ import java.util.HashMap;
public class PropertySetHelper
{
- protected XPropertySet m_xPropertySet;
+ private XPropertySet m_xPropertySet;
private HashMap<String, Object> m_aHashMap;
public PropertySetHelper(Object _aObj)
@@ -68,7 +68,7 @@ public class PropertySetHelper
@param _sName name of the property to set
@param _aValue property value as object
*/
- public void setPropertyValue(String _sName, Object _aValue) throws java.lang.Exception
+ private void setPropertyValue(String _sName, Object _aValue) throws java.lang.Exception
{
if (m_xPropertySet != null)
{
diff --git a/wizards/com/sun/star/wizards/common/Resource.java b/wizards/com/sun/star/wizards/common/Resource.java
index 64a1526673f9..f4381906575c 100644
--- a/wizards/com/sun/star/wizards/common/Resource.java
+++ b/wizards/com/sun/star/wizards/common/Resource.java
@@ -27,10 +27,10 @@ import com.sun.star.uno.UnoRuntime;
public class Resource
{
- XMultiServiceFactory xMSF;
- String Module;
- XIndexAccess xStringIndexAccess;
- XIndexAccess xStringListIndexAccess;
+ private XMultiServiceFactory xMSF;
+ private String Module;
+ private XIndexAccess xStringIndexAccess;
+ private XIndexAccess xStringListIndexAccess;
/** Creates a new instance of Resource
*/
diff --git a/wizards/com/sun/star/wizards/common/TextElement.java b/wizards/com/sun/star/wizards/common/TextElement.java
index 4549a9fc8ee1..08afd2dbe511 100644
--- a/wizards/com/sun/star/wizards/common/TextElement.java
+++ b/wizards/com/sun/star/wizards/common/TextElement.java
@@ -31,7 +31,7 @@ public class TextElement extends ParaStyled
this(range.getString(), (String) Helper.getUnoPropertyValue(range.getStart(), "ParaStyleName"));
}
- TextElement(String text_, String paraStyle_)
+ private TextElement(String text_, String paraStyle_)
{
super(paraStyle_);
text = text_;
diff --git a/wizards/com/sun/star/wizards/db/BlindtextCreator.java b/wizards/com/sun/star/wizards/db/BlindtextCreator.java
index 6f532f188d41..0d79f457d6f4 100644
--- a/wizards/com/sun/star/wizards/db/BlindtextCreator.java
+++ b/wizards/com/sun/star/wizards/db/BlindtextCreator.java
@@ -23,7 +23,7 @@ import com.sun.star.wizards.common.PropertyNames;
public class BlindtextCreator
{
- public static final String BlindText =
+ private static final String BlindText =
"Ut wisi enim ad minim veniam, quis nostrud exerci tation " + "ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor " + "in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at " + "vero et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore " + "te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy " + "nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, " + "quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. " + "Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum " + "dolore eu feugiat nulla facilisis at vero et accumsan et iusto odio dignissim qui blandit praesent " + "luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis " + "eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum.";
public static String adjustBlindTextlength(String FieldTitle, int FieldWidth, boolean bIsCurLandscape, boolean bIsGroupTable, String[] _RecordFieldNames)
diff --git a/wizards/com/sun/star/wizards/db/ColumnPropertySet.java b/wizards/com/sun/star/wizards/db/ColumnPropertySet.java
index 3fdbf1228c3b..209d2ffd0522 100644
--- a/wizards/com/sun/star/wizards/db/ColumnPropertySet.java
+++ b/wizards/com/sun/star/wizards/db/ColumnPropertySet.java
@@ -26,7 +26,7 @@ import com.sun.star.wizards.common.PropertyNames;
public class ColumnPropertySet
{
- TypeInspector oTypeInspector;
+ private TypeInspector oTypeInspector;
public XPropertySet xPropertySet;
private int nType;
private String sTypeName = PropertyNames.EMPTY_STRING;
diff --git a/wizards/com/sun/star/wizards/db/CommandMetaData.java b/wizards/com/sun/star/wizards/db/CommandMetaData.java
index 607760fb35bd..a6225b053740 100644
--- a/wizards/com/sun/star/wizards/db/CommandMetaData.java
+++ b/wizards/com/sun/star/wizards/db/CommandMetaData.java
@@ -60,10 +60,10 @@ public class CommandMetaData extends DBMetaData
public String[] NonAggregateFieldNames;
private int CommandType;
private String Command;
- boolean bCatalogAtStart = true;
+ private boolean bCatalogAtStart = true;
String sCatalogSep = PropertyNames.EMPTY_STRING;
String sIdentifierQuote = PropertyNames.EMPTY_STRING;
- boolean bCommandComposerAttributesalreadyRetrieved = false;
+ private boolean bCommandComposerAttributesalreadyRetrieved = false;
public CommandMetaData(XMultiServiceFactory xMSF)
{
@@ -332,7 +332,7 @@ public class CommandMetaData extends DBMetaData
CommandType = _commandType;
}
- public boolean isnumeric(FieldColumn _oFieldColumn)
+ private boolean isnumeric(FieldColumn _oFieldColumn)
{
try
{
@@ -523,7 +523,7 @@ public class CommandMetaData extends DBMetaData
return RecordFieldNames[i];
}
- public void setCommandComposingAttributes()
+ private void setCommandComposingAttributes()
{
try
{
diff --git a/wizards/com/sun/star/wizards/db/CommandName.java b/wizards/com/sun/star/wizards/db/CommandName.java
index 804c6475ac52..be65ffd06b1b 100644
--- a/wizards/com/sun/star/wizards/db/CommandName.java
+++ b/wizards/com/sun/star/wizards/db/CommandName.java
@@ -25,16 +25,16 @@ import com.sun.star.wizards.common.PropertyNames;
public class CommandName
{
- protected CommandMetaData oCommandMetaData;
- protected String CatalogName = PropertyNames.EMPTY_STRING;
- protected String SchemaName = PropertyNames.EMPTY_STRING;
- protected String TableName = PropertyNames.EMPTY_STRING;
- protected String DisplayName = PropertyNames.EMPTY_STRING;
- protected String ComposedName = PropertyNames.EMPTY_STRING;
- protected String AliasName = PropertyNames.EMPTY_STRING;
- protected boolean bCatalogAtStart;
- protected String sCatalogSep;
- protected boolean baddQuotation = true;
+ private CommandMetaData oCommandMetaData;
+ private String CatalogName = PropertyNames.EMPTY_STRING;
+ private String SchemaName = PropertyNames.EMPTY_STRING;
+ private String TableName = PropertyNames.EMPTY_STRING;
+ private String DisplayName = PropertyNames.EMPTY_STRING;
+ private String ComposedName = PropertyNames.EMPTY_STRING;
+ private String AliasName = PropertyNames.EMPTY_STRING;
+ private boolean bCatalogAtStart;
+ private String sCatalogSep;
+ private boolean baddQuotation = true;
public CommandName(CommandMetaData _CommandMetaData, String _DisplayName)
{
@@ -130,7 +130,7 @@ public class CommandName
}
}
- public void setComposedCommandName()
+ private void setComposedCommandName()
{
if (this.setMetaDataAttributes())
{
@@ -185,7 +185,7 @@ public class CommandName
}
}
- public String quoteName(String _sName)
+ private String quoteName(String _sName)
{
if (baddQuotation)
{
diff --git a/wizards/com/sun/star/wizards/db/DBMetaData.java b/wizards/com/sun/star/wizards/db/DBMetaData.java
index eaa2d78e1387..f870e96b685b 100644
--- a/wizards/com/sun/star/wizards/db/DBMetaData.java
+++ b/wizards/com/sun/star/wizards/db/DBMetaData.java
@@ -85,13 +85,13 @@ public class DBMetaData
private XPropertySet m_dataSourceSettings;
private XOfficeDatabaseDocument xModel;
private XPropertySet xDataSourcePropertySet;
- public java.util.ArrayList<CommandObject> CommandObjects = new ArrayList<CommandObject>(1);
- public Locale aLocale;
+ private java.util.ArrayList<CommandObject> CommandObjects = new ArrayList<CommandObject>(1);
+ private Locale aLocale;
public String DataSourceName;
public com.sun.star.sdbc.XConnection DBConnection;
private com.sun.star.sdb.tools.XConnectionTools m_connectionTools;
public com.sun.star.lang.XMultiServiceFactory xMSF;
- public XComponent xConnectionComponent;
+ private XComponent xConnectionComponent;
private XNameAccess xNameAccess;
private XInterface xDatabaseContext;
@@ -254,7 +254,7 @@ public class DBMetaData
private String Name;
private int CommandType;
- public CommandObject(String _CommandName, int _CommandType)
+ private CommandObject(String _CommandName, int _CommandType)
{
try
{
@@ -310,7 +310,7 @@ public class DBMetaData
return bHasEscapeProcessing;
}
- public XNameAccess getQueryNamesAsNameAccess()
+ private XNameAccess getQueryNamesAsNameAccess()
{
XQueriesSupplier xDBQueries = UnoRuntime.queryInterface( XQueriesSupplier.class, DBConnection );
xQueryNames = xDBQueries.getQueries();
@@ -519,7 +519,7 @@ public class DBMetaData
}
}
- public void getDataSourceInterfaces() throws Exception
+ private void getDataSourceInterfaces() throws Exception
{
xDataSourcePropertySet = UnoRuntime.queryInterface( XPropertySet.class, getDataSource() );
bPasswordIsRequired = ((Boolean) xDataSourcePropertySet.getPropertyValue("IsPasswordRequired")).booleanValue();
@@ -737,7 +737,7 @@ public class DBMetaData
return supportsPrimaryKeys;
}
- public boolean supportsCoreSQLGrammar()
+ private boolean supportsCoreSQLGrammar()
{
try
{
@@ -856,7 +856,7 @@ public class DBMetaData
* the document may not be open
* @param i_createTemplate describes the type of the document: "form" or "report"
*/
- public void addDatabaseDocument(XComponent _xComponent, XHierarchicalNameAccess _xDocNameAccess, boolean i_createTemplate)
+ private void addDatabaseDocument(XComponent _xComponent, XHierarchicalNameAccess _xDocNameAccess, boolean i_createTemplate)
{
try
{
@@ -980,7 +980,7 @@ public class DBMetaData
/**
* @return Returns the xWindowPeer.
*/
- public XWindowPeer getWindowPeer()
+ private XWindowPeer getWindowPeer()
{
return xWindowPeer;
}
diff --git a/wizards/com/sun/star/wizards/db/FieldColumn.java b/wizards/com/sun/star/wizards/db/FieldColumn.java
index aae60495b43e..808c75933739 100644
--- a/wizards/com/sun/star/wizards/db/FieldColumn.java
+++ b/wizards/com/sun/star/wizards/db/FieldColumn.java
@@ -356,7 +356,7 @@ public class FieldColumn
}
}
- public void initDefaultValue()
+ private void initDefaultValue()
{
switch (getFieldType())
{
diff --git a/wizards/com/sun/star/wizards/db/QueryMetaData.java b/wizards/com/sun/star/wizards/db/QueryMetaData.java
index fb48d02fb7c0..4cb4bcd15c91 100644
--- a/wizards/com/sun/star/wizards/db/QueryMetaData.java
+++ b/wizards/com/sun/star/wizards/db/QueryMetaData.java
@@ -34,7 +34,7 @@ public class QueryMetaData extends CommandMetaData
public PropertyValue[][] GroupByFilterConditions = new PropertyValue[][]
{
};
- public String[] UniqueAggregateFieldNames = new String[]
+ private String[] UniqueAggregateFieldNames = new String[]
{
};
public int Type = QueryType.SODETAILQUERY;
diff --git a/wizards/com/sun/star/wizards/db/RecordParser.java b/wizards/com/sun/star/wizards/db/RecordParser.java
index 649434de2da4..b71ae9997262 100644
--- a/wizards/com/sun/star/wizards/db/RecordParser.java
+++ b/wizards/com/sun/star/wizards/db/RecordParser.java
@@ -38,13 +38,13 @@ import com.sun.star.wizards.common.PropertyNames;
public class RecordParser extends QueryMetaData
{
- XNameAccess xColumns;
- com.sun.star.sdbc.XRow xResultSetRow;
+ private XNameAccess xColumns;
+ private com.sun.star.sdbc.XRow xResultSetRow;
public XResultSet ResultSet;
- XInterface xRowSet;
- XCompletedExecution xExecute;
- XComponent xRowSetComponent;
- XInteractionHandler xInteraction;
+ private XInterface xRowSet;
+ private XCompletedExecution xExecute;
+ private XComponent xRowSetComponent;
+ private XInteractionHandler xInteraction;
public FieldColumn[] GroupFieldColumns;
public FieldColumn[] RecordFieldColumns;
@@ -115,7 +115,7 @@ public class RecordParser extends QueryMetaData
return Any.VOID;
}
- public Object getColumnValue(int ColIndex, int iType)
+ private Object getColumnValue(int ColIndex, int iType)
{
Object oAny = Any.VOID;
switch (iType)
diff --git a/wizards/com/sun/star/wizards/db/SQLQueryComposer.java b/wizards/com/sun/star/wizards/db/SQLQueryComposer.java
index de387166800a..0a30846ae1c0 100644
--- a/wizards/com/sun/star/wizards/db/SQLQueryComposer.java
+++ b/wizards/com/sun/star/wizards/db/SQLQueryComposer.java
@@ -38,12 +38,12 @@ import java.util.ArrayList;
public class SQLQueryComposer
{
- QueryMetaData CurDBMetaData;
+ private QueryMetaData CurDBMetaData;
public XSingleSelectQueryAnalyzer m_xQueryAnalyzer;
- ArrayList<CommandName> composedCommandNames = new ArrayList<CommandName>(1);
+ private ArrayList<CommandName> composedCommandNames = new ArrayList<CommandName>(1);
private XSingleSelectQueryComposer m_queryComposer;
- XMultiServiceFactory xMSF;
- boolean bincludeGrouping = true;
+ private XMultiServiceFactory xMSF;
+ private boolean bincludeGrouping = true;
public SQLQueryComposer(QueryMetaData _CurDBMetaData)
{
@@ -106,7 +106,7 @@ public class SQLQueryComposer
return sSelectClause;
}
- public String getAliasFieldNameClause(String _FieldName)
+ private String getAliasFieldNameClause(String _FieldName)
{
String FieldTitle = CurDBMetaData.getFieldTitle(_FieldName);
if (!FieldTitle.equals(_FieldName))
@@ -126,7 +126,7 @@ public class SQLQueryComposer
prependSortingCriteria(false);
}
- public void prependSortingCriteria(boolean _baddAliasFieldNames) throws SQLException
+ private void prependSortingCriteria(boolean _baddAliasFieldNames) throws SQLException
{
XIndexAccess xColumnIndexAccess = m_xQueryAnalyzer.getOrderColumns();
m_queryComposer.setOrder("");
@@ -167,7 +167,7 @@ public class SQLQueryComposer
m_queryComposer.appendOrderByColumn(xColumn, bascend);
}
- public void appendSortingcriteria(boolean _baddAliasFieldNames) throws SQLException
+ private void appendSortingcriteria(boolean _baddAliasFieldNames) throws SQLException
{
String sOrder = "";
m_queryComposer.setOrder("");
@@ -196,7 +196,7 @@ public class SQLQueryComposer
sOrder = m_queryComposer.getOrder();
}
- public void appendGroupByColumns(boolean _baddAliasFieldNames) throws SQLException
+ private void appendGroupByColumns(boolean _baddAliasFieldNames) throws SQLException
{
for (int i = 0; i < CurDBMetaData.GroupFieldNames.length; i++)
{
@@ -205,7 +205,7 @@ public class SQLQueryComposer
}
}
- public void setDBMetaData(QueryMetaData _oDBMetaData)
+ private void setDBMetaData(QueryMetaData _oDBMetaData)
{
this.CurDBMetaData = _oDBMetaData;
updateComposedCommandNames();
@@ -262,12 +262,12 @@ public class SQLQueryComposer
return setQueryCommand(_xParentWindow, _bincludeGrouping, _baddAliasFieldNames, true);
}
- public boolean setQueryCommand(XWindow _xParentWindow, boolean _bincludeGrouping, boolean _baddAliasFieldNames, boolean addQuery)
+ private boolean setQueryCommand(XWindow _xParentWindow, boolean _bincludeGrouping, boolean _baddAliasFieldNames, boolean addQuery)
{
return setQueryCommand(_xParentWindow, _bincludeGrouping, _baddAliasFieldNames, addQuery, false);
}
- public boolean setQueryCommand(XWindow _xParentWindow, boolean _bincludeGrouping, boolean _baddAliasFieldNames, boolean addQuery, boolean prependSortingCriteria)
+ private boolean setQueryCommand(XWindow _xParentWindow, boolean _bincludeGrouping, boolean _baddAliasFieldNames, boolean addQuery, boolean prependSortingCriteria)
{
try
{
@@ -344,7 +344,7 @@ public class SQLQueryComposer
return null;
}
- public CommandName getComposedCommandByDisplayName(String _DisplayName)
+ private CommandName getComposedCommandByDisplayName(String _DisplayName)
{
if (composedCommandNames != null)
{
@@ -359,7 +359,7 @@ public class SQLQueryComposer
return null;
}
- public String getuniqueAliasName(String _TableName)
+ private String getuniqueAliasName(String _TableName)
{
int a = 0;
String AliasName = "";
@@ -386,7 +386,7 @@ public class SQLQueryComposer
return CommandName.quoteName(_sname, CurDBMetaData.getIdentifierQuote());
}
- public void displaySQLErrorDialog(Exception _exception, XWindow _xParentWindow)
+ private void displaySQLErrorDialog(Exception _exception, XWindow _xParentWindow)
{
try
{
diff --git a/wizards/com/sun/star/wizards/db/TableDescriptor.java b/wizards/com/sun/star/wizards/db/TableDescriptor.java
index e4ff97157b69..f844d59bc3a6 100644
--- a/wizards/com/sun/star/wizards/db/TableDescriptor.java
+++ b/wizards/com/sun/star/wizards/db/TableDescriptor.java
@@ -52,14 +52,14 @@ import com.sun.star.wizards.common.PropertyNames;
public class TableDescriptor extends CommandMetaData implements XContainerListener
{
- XDataDescriptorFactory xTableDataDescriptorFactory;
- XPropertySet xPropTableDataDescriptor;
+ private XDataDescriptorFactory xTableDataDescriptorFactory;
+ private XPropertySet xPropTableDataDescriptor;
private XNameAccess xNameAccessColumns;
private XIndexAccess xIndexAccessKeys;
- public XDataDescriptorFactory xColumnDataDescriptorFactory;
- XContainer xTableContainer;
- XAppend xTableAppend;
- XDrop xTableDrop;
+ private XDataDescriptorFactory xColumnDataDescriptorFactory;
+ private XContainer xTableContainer;
+ private XAppend xTableAppend;
+ private XDrop xTableDrop;
private XAppend xKeyAppend;
private XDrop xKeyDrop;
private String[] sTableFilters = null;
@@ -135,7 +135,7 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen
}
}
- public boolean createPrimaryKeys(String[] _fieldnames, boolean _bAutoincrementation)
+ private boolean createPrimaryKeys(String[] _fieldnames, boolean _bAutoincrementation)
{
try
{
@@ -201,7 +201,7 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen
return false;
}
- public boolean isColunnNameDuplicate(XNameAccess _xColumns, XPropertySet _xToBeAppendedPropertySet)
+ private boolean isColunnNameDuplicate(XNameAccess _xColumns, XPropertySet _xToBeAppendedPropertySet)
{
try
{
@@ -382,7 +382,7 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen
}
}
- public boolean modifyColumn(String _sname, String _spropname, Object _oValue)
+ private boolean modifyColumn(String _sname, String _spropname, Object _oValue)
{
try
{
@@ -476,7 +476,7 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen
}
}
- public String[] getColumnNames()
+ private String[] getColumnNames()
{
if (columncontainer.size() > 0)
{
@@ -640,7 +640,7 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen
- public XPropertySet addPrimaryKeyColumn(String _columnname)
+ private XPropertySet addPrimaryKeyColumn(String _columnname)
{
try
{
@@ -765,7 +765,7 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen
{
}
- public boolean appendTableNameToFilter(String _scomposedtablename)
+ private boolean appendTableNameToFilter(String _scomposedtablename)
{
boolean bhastoinsert = true;
for (int i = 0; i < sTableFilters.length; i++)
diff --git a/wizards/com/sun/star/wizards/db/TypeInspector.java b/wizards/com/sun/star/wizards/db/TypeInspector.java
index d930b6724a64..b51a3ff04eee 100644
--- a/wizards/com/sun/star/wizards/db/TypeInspector.java
+++ b/wizards/com/sun/star/wizards/db/TypeInspector.java
@@ -45,7 +45,7 @@ public class TypeInspector
DataType.INTEGER, DataType.FLOAT, DataType.REAL, DataType.DOUBLE, DataType.NUMERIC, DataType.DECIMAL
};
static final int INVALID = 999999;
- XResultSet xResultSet;
+ private XResultSet xResultSet;
public class TypeInfo
{
@@ -201,12 +201,12 @@ public class TypeInspector
return -1;
}
- public boolean supportsDataType(int _curDataType)
+ private boolean supportsDataType(int _curDataType)
{
return (JavaTools.FieldInIntTable(nDataTypeInfos, _curDataType) > -1);
}
- public int getLastConversionFallbackDataType()
+ private int getLastConversionFallbackDataType()
{
if (supportsDataType(DataType.VARCHAR))
{
diff --git a/wizards/com/sun/star/wizards/document/Control.java b/wizards/com/sun/star/wizards/document/Control.java
index fd6241a28998..ae26efe6cce5 100644
--- a/wizards/com/sun/star/wizards/document/Control.java
+++ b/wizards/com/sun/star/wizards/document/Control.java
@@ -40,14 +40,14 @@ public class Control extends Shape
{
XControlModel xControlModel;
- XControl xControl;
+ private XControl xControl;
public XPropertySet xPropertySet;
XWindowPeer xWindowPeer;
- String sServiceName;
- static final int SOMAXTEXTSIZE = 50;
+ private String sServiceName;
+ private static final int SOMAXTEXTSIZE = 50;
private int icontroltype;
- protected XNameContainer xFormName;
- protected static final int IIMGFIELDWIDTH = 3000;
+ private XNameContainer xFormName;
+ private static final int IIMGFIELDWIDTH = 3000;
public Control()
{
@@ -71,7 +71,7 @@ public class Control extends Shape
createControl(_icontroltype, null, null);
}
- public void createControl(int _icontroltype, XShapes _xGroupShapes, String _FieldName)
+ private void createControl(int _icontroltype, XShapes _xGroupShapes, String _FieldName)
{
try
{
@@ -105,7 +105,7 @@ public class Control extends Shape
}
}
- public void insertControlInContainer(String _fieldname)
+ private void insertControlInContainer(String _fieldname)
{
try
{
@@ -123,7 +123,7 @@ public class Control extends Shape
}
}
- public String getControlName(String _fieldname)
+ private String getControlName(String _fieldname)
{
String controlname = PropertyNames.EMPTY_STRING;
switch (getControlType())
@@ -215,7 +215,7 @@ public class Control extends Shape
}
}
- public Size getPreferredSize(String sText)
+ private Size getPreferredSize(String sText)
{
try
{
@@ -251,12 +251,12 @@ public class Control extends Shape
/** the peer should be retrieved every time before it is used because it
* might be disposed otherwise
*/
- public XLayoutConstrains getPeer()
+ private XLayoutConstrains getPeer()
{
return UnoRuntime.queryInterface(XLayoutConstrains.class, xControl.getPeer());
}
- public Size getPeerSize()
+ private Size getPeerSize()
{
try
{
diff --git a/wizards/com/sun/star/wizards/document/DatabaseControl.java b/wizards/com/sun/star/wizards/document/DatabaseControl.java
index 14168115520d..a90cc849fb7f 100644
--- a/wizards/com/sun/star/wizards/document/DatabaseControl.java
+++ b/wizards/com/sun/star/wizards/document/DatabaseControl.java
@@ -52,7 +52,7 @@ public class DatabaseControl extends Control
createGridColumn(_oGridControl, _curfieldcolumn, _fieldtype, _columntitle);
}
- protected int getFieldType()
+ private int getFieldType()
{
return m_nFieldType;
}
@@ -159,7 +159,7 @@ public class DatabaseControl extends Control
}
}
- public void setNumericLimits()
+ private void setNumericLimits()
{
try
{
diff --git a/wizards/com/sun/star/wizards/document/FormHandler.java b/wizards/com/sun/star/wizards/document/FormHandler.java
index 3f9d3702f53a..86243bfcb4e4 100644
--- a/wizards/com/sun/star/wizards/document/FormHandler.java
+++ b/wizards/com/sun/star/wizards/document/FormHandler.java
@@ -60,7 +60,7 @@ public class FormHandler
private static final String TEXTFIELD = "TextField";
private static final String TIMEFIELD = "TimeField";
- public XFormsSupplier xFormsSupplier;
+ private XFormsSupplier xFormsSupplier;
public XMultiServiceFactory xMSFDoc;
public XMultiServiceFactory xMSF;
public XDrawPage xDrawPage;
@@ -76,24 +76,24 @@ public class FormHandler
public final static int SOGRIDCONTROL = 6;
public final static int SOIMAGECONTROL = 7;
public final static int SODATETIMECONTROL = 8;
- int iImageControlHeight = 2000;
+ private int iImageControlHeight = 2000;
public static String SOSIZETEXT = "The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.";
- int iXPixelFactor = -1;
- int iYPixelFactor = -1;
- int iXNirwanaPos = 50000;
- int iYNirwanaPos = 50000;
- public int nLabelHeight = -1;
- public int nDBRefHeight = -1;
- public int BasicLabelDiffHeight = -1;
- XNameAccess xNamedForms;
+ private int iXPixelFactor = -1;
+ private int iYPixelFactor = -1;
+ private int iXNirwanaPos = 50000;
+ private int iYNirwanaPos = 50000;
+ private int nLabelHeight = -1;
+ private int nDBRefHeight = -1;
+ private int BasicLabelDiffHeight = -1;
+ private XNameAccess xNamedForms;
XControlAccess xControlAccess;
XShapeGrouper xShapeGrouper;
- XNameContainer xNamedFormContainer;
+ private XNameContainer xNamedFormContainer;
- public class ControlData
+ public static class ControlData
{
int DataType;
- int ControlType;
+ private int ControlType;
String GridColumnName;
}
@@ -154,7 +154,7 @@ public class FormHandler
return -1;
}
- public void initializeBasicControlValues()
+ private void initializeBasicControlValues()
{
Control oLabelControl = new Control(this, SOLABEL, new Point(), new Size());
XDevice xDevice = UnoRuntime.queryInterface(XDevice.class, oLabelControl.xWindowPeer);
@@ -169,7 +169,7 @@ public class FormHandler
xDrawPage.remove(oTextControl.xShape);
}
- public ControlData createControlData(int _datatype, int _controltype, String _gridcolumnname)
+ private ControlData createControlData(int _datatype, int _controltype, String _gridcolumnname)
{
ControlData curControlData = new ControlData();
curControlData.DataType = _datatype;
@@ -222,7 +222,7 @@ public class FormHandler
}
}
- public boolean hasFormByName(String _FormName)
+ private boolean hasFormByName(String _FormName)
{
xNamedFormContainer = getDocumentForms();
xNamedForms = UnoRuntime.queryInterface(XNameAccess.class, xNamedFormContainer);
@@ -264,7 +264,7 @@ public class FormHandler
}
}
- public boolean belongsToForm(Object _oDrawPageElement, String _FormName)
+ private boolean belongsToForm(Object _oDrawPageElement, String _FormName)
{
XServiceInfo xServiceInfo = UnoRuntime.queryInterface(XServiceInfo.class, _oDrawPageElement);
if (xServiceInfo.supportsService("com.sun.star.drawing.ControlShape"))
@@ -313,7 +313,7 @@ public class FormHandler
return insertFormbyName(_FormName, getDocumentForms());
}
- public XNameContainer getFormByName(String _sname)
+ private XNameContainer getFormByName(String _sname)
{
XNameContainer xNamedForm = null;
try
diff --git a/wizards/com/sun/star/wizards/document/GridControl.java b/wizards/com/sun/star/wizards/document/GridControl.java
index 9fd2d54b3225..359b1aa97ad3 100644
--- a/wizards/com/sun/star/wizards/document/GridControl.java
+++ b/wizards/com/sun/star/wizards/document/GridControl.java
@@ -35,12 +35,12 @@ import com.sun.star.lang.XMultiServiceFactory;
public class GridControl extends Shape
{
- FieldColumn[] fieldcolumns;
+ private FieldColumn[] fieldcolumns;
public XNameContainer xNameContainer;
public XGridColumnFactory xGridColumnFactory;
public XPropertySet xPropertySet;
XNameAccess xNameAccess;
- XControlModel xControlModel;
+ private XControlModel xControlModel;
public XComponent xComponent;
public GridControl(XMultiServiceFactory _xMSF, String _sname, FormHandler _oFormHandler, XNameContainer _xFormName, FieldColumn[] _fieldcolumns, Point _aPoint, Size _aSize)
diff --git a/wizards/com/sun/star/wizards/document/OfficeDocument.java b/wizards/com/sun/star/wizards/document/OfficeDocument.java
index b577a04f2afe..7e0202d095c5 100644
--- a/wizards/com/sun/star/wizards/document/OfficeDocument.java
+++ b/wizards/com/sun/star/wizards/document/OfficeDocument.java
@@ -79,7 +79,7 @@ public class OfficeDocument
return createNewFrame(xMSF, listener, "_blank");
}
- public static XFrame createNewFrame(XMultiServiceFactory xMSF, XTerminateListener listener, String FrameName)
+ private static XFrame createNewFrame(XMultiServiceFactory xMSF, XTerminateListener listener, String FrameName)
{
XFrame xFrame = null;
if (FrameName.equalsIgnoreCase("WIZARD_LIVE_PREVIEW"))
@@ -102,7 +102,7 @@ public class OfficeDocument
return xFrame;
}
- public static XFrame createNewPreviewFrame(XMultiServiceFactory xMSF, XTerminateListener listener)
+ private static XFrame createNewPreviewFrame(XMultiServiceFactory xMSF, XTerminateListener listener)
{
XToolkit xToolkit = null;
try
diff --git a/wizards/com/sun/star/wizards/document/Shape.java b/wizards/com/sun/star/wizards/document/Shape.java
index 93f0606a4207..d6e03f3449b1 100644
--- a/wizards/com/sun/star/wizards/document/Shape.java
+++ b/wizards/com/sun/star/wizards/document/Shape.java
@@ -41,9 +41,9 @@ public class Shape
protected FormHandler oFormHandler;
public XServiceInfo xServiceInfo;
protected Point aPoint;
- protected Size aSize;
+ private Size aSize;
protected XControlShape xControlShape;
- public XMultiServiceFactory xMSF;
+ private XMultiServiceFactory xMSF;
public XShapes xShapes;
public Shape(FormHandler _oFormHandler, Point _aPoint, Size _aSize)
diff --git a/wizards/com/sun/star/wizards/document/TimeStampControl.java b/wizards/com/sun/star/wizards/document/TimeStampControl.java
index c00263171a49..ed5a30bf9461 100644
--- a/wizards/com/sun/star/wizards/document/TimeStampControl.java
+++ b/wizards/com/sun/star/wizards/document/TimeStampControl.java
@@ -34,14 +34,14 @@ import com.sun.star.drawing.XShape;
public class TimeStampControl extends DatabaseControl
{
- DatabaseControl oDateControl;
- DatabaseControl oTimeControl;
- Resource oResource;
- double nreldatewidth;
- double nreltimewidth;
- int nTimeWidth;
- int nDBWidth;
- int nDateWidth;
+ private DatabaseControl oDateControl;
+ private DatabaseControl oTimeControl;
+ private Resource oResource;
+ private double nreldatewidth;
+ private double nreltimewidth;
+ private int nTimeWidth;
+ private int nDBWidth;
+ private int nDateWidth;
XShape xShapeGroup;
public TimeStampControl(Resource _oResource, FormHandler _oFormHandler, XNameContainer _xFormName, String _curFieldName, Point _aPoint)
diff --git a/wizards/com/sun/star/wizards/form/FieldLinker.java b/wizards/com/sun/star/wizards/form/FieldLinker.java
index 4f7ffb101722..f5374c142db4 100644
--- a/wizards/com/sun/star/wizards/form/FieldLinker.java
+++ b/wizards/com/sun/star/wizards/form/FieldLinker.java
@@ -277,7 +277,7 @@ public class FieldLinker extends DBLimitedFieldSelection
CurUnoDialog.setStepEnabled(IStep.intValue(), _bdoenable);
}
- class ItemListenerImpl implements com.sun.star.awt.XItemListener
+ private class ItemListenerImpl implements com.sun.star.awt.XItemListener
{
public void itemStateChanged(ItemEvent EventObject)
diff --git a/wizards/com/sun/star/wizards/form/Finalizer.java b/wizards/com/sun/star/wizards/form/Finalizer.java
index c1ed3a03db70..557814a431f6 100644
--- a/wizards/com/sun/star/wizards/form/Finalizer.java
+++ b/wizards/com/sun/star/wizards/form/Finalizer.java
@@ -33,11 +33,11 @@ import com.sun.star.wizards.ui.event.XTextListenerAdapter;
public class Finalizer
{
- WizardDialog CurUnoDialog;
- short curtabindex;
- XRadioButton optModifyForm;
- XTextComponent txtFormName;
- FormDocument oFormDocument;
+ private WizardDialog CurUnoDialog;
+ private short curtabindex;
+ private XRadioButton optModifyForm;
+ private XTextComponent txtFormName;
+ private FormDocument oFormDocument;
public Finalizer(WizardDialog _CurUnoDialog)
{
diff --git a/wizards/com/sun/star/wizards/form/FormConfiguration.java b/wizards/com/sun/star/wizards/form/FormConfiguration.java
index ef46eeb1fc1f..e39f3cfd512f 100644
--- a/wizards/com/sun/star/wizards/form/FormConfiguration.java
+++ b/wizards/com/sun/star/wizards/form/FormConfiguration.java
@@ -40,17 +40,17 @@ import com.sun.star.wizards.ui.event.XItemListenerAdapter;
public class FormConfiguration
{
- WizardDialog CurUnoDialog;
- short curtabindex;
- XRadioButton optOnExistingRelation;
- XCheckBox chkcreateSubForm;
- XRadioButton optSelectManually;
- XFixedText lblRelations;
- XListBox lstRelations;
- String[] sreferencedTables;
- CommandFieldSelection CurSubFormFieldSelection;
- boolean bsupportsRelations;
- RelationController oRelationController = null;
+ private WizardDialog CurUnoDialog;
+ private short curtabindex;
+ private XRadioButton optOnExistingRelation;
+ private XCheckBox chkcreateSubForm;
+ private XRadioButton optSelectManually;
+ private XFixedText lblRelations;
+ private XListBox lstRelations;
+ private String[] sreferencedTables;
+ private CommandFieldSelection CurSubFormFieldSelection;
+ private boolean bsupportsRelations;
+ private RelationController oRelationController = null;
public FormConfiguration(WizardDialog _CurUnoDialog)
{
@@ -176,7 +176,7 @@ public class FormConfiguration
Helper.setUnoPropertyValue(UnoDialog.getModel(optOnExistingRelation), PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(bsupportsRelations && (chkcreateSubForm.getState() == 1)));
}
- public void toggleSteps()
+ private void toggleSteps()
{
if (chkcreateSubForm.getState() == 1)
{
diff --git a/wizards/com/sun/star/wizards/form/FormControlArranger.java b/wizards/com/sun/star/wizards/form/FormControlArranger.java
index 41c975faceff..92e42997b02d 100644
--- a/wizards/com/sun/star/wizards/form/FormControlArranger.java
+++ b/wizards/com/sun/star/wizards/form/FormControlArranger.java
@@ -38,7 +38,7 @@ import com.sun.star.wizards.document.TimeStampControl;
public class FormControlArranger
{
- public static final String LABELCONTROL = "LabelControl";
+ private static final String LABELCONTROL = "LabelControl";
protected DatabaseControl[] DBControlList = null;
private final XNameContainer xFormName;
private final XMultiServiceFactory xMSF;
diff --git a/wizards/com/sun/star/wizards/form/FormDocument.java b/wizards/com/sun/star/wizards/form/FormDocument.java
index 8ef1936fb883..17698c29f40c 100644
--- a/wizards/com/sun/star/wizards/form/FormDocument.java
+++ b/wizards/com/sun/star/wizards/form/FormDocument.java
@@ -264,7 +264,7 @@ public class FormDocument extends TextDocument
}
}
- public ControlForm getControlFormByName(String _sname)
+ private ControlForm getControlFormByName(String _sname)
{
for (int i = 0; i < oControlForms.size(); i++)
{
@@ -334,16 +334,16 @@ public class FormDocument extends TextDocument
public class ControlForm
{
- XNameContainer xFormContainer;
+ private XNameContainer xFormContainer;
GridControl oGridControl;
- FormControlArranger oFormController;
- int curArrangement;
- FormDocument oFormDocument;
- String Name;
- Point aStartPoint;
+ private FormControlArranger oFormController;
+ private int curArrangement;
+ private FormDocument oFormDocument;
+ private String Name;
+ private Point aStartPoint;
private Size aFormSize;
- CommandMetaData oDBMetaData;
- XPropertySet xPropertySet;
+ private CommandMetaData oDBMetaData;
+ private XPropertySet xPropertySet;
public ControlForm(FormDocument _oFormDocument, String _sname, Point _astartPoint, Size _aFormSize)
{
@@ -432,12 +432,12 @@ public class FormDocument extends TextDocument
}
}
- public Size getFormSize()
+ private Size getFormSize()
{
return aFormSize;
}
- public void setFormSize(Size _aSize)
+ private void setFormSize(Size _aSize)
{
aFormSize = _aSize;
oFormController.setFormSize(aFormSize);
@@ -537,7 +537,7 @@ public class FormDocument extends TextDocument
}
}
- public void finalizeControls()
+ private void finalizeControls()
{
Control[] oLabelControls = getLabelControls();
Control[] oDBControls = getDatabaseControls();
diff --git a/wizards/com/sun/star/wizards/form/FormWizard.java b/wizards/com/sun/star/wizards/form/FormWizard.java
index 5c57fe4cde6f..fe1791e6b3ae 100644
--- a/wizards/com/sun/star/wizards/form/FormWizard.java
+++ b/wizards/com/sun/star/wizards/form/FormWizard.java
@@ -47,7 +47,7 @@ public class FormWizard extends DatabaseObjectWizard
private static String slblSelFields;
private String sShowBinaryFields = PropertyNames.EMPTY_STRING;
private String serrFormNameexists = PropertyNames.EMPTY_STRING;
- public static final int SOMAIN_PAGE = 1;
+ private static final int SOMAIN_PAGE = 1;
public static final int SOSUBFORM_PAGE = 2;
public static final int SOSUBFORMFIELDS_PAGE = 3;
public static final int SOFIELDLINKER_PAGE = 4;
@@ -209,7 +209,7 @@ public class FormWizard extends DatabaseObjectWizard
}
}
- public void buildSteps()
+ private void buildSteps()
{
curDBCommandFieldSelection = new CommandFieldSelection(this, curFormDocument.oMainFormDBMetaData, 92, slblFields, slblSelFields, slblTables, true, 34411);
curDBCommandFieldSelection.addFieldSelectionListener(new FieldSelectionListener());
@@ -308,7 +308,7 @@ public class FormWizard extends DatabaseObjectWizard
xDialog.endExecute();
}
- public void insertFormRelatedSteps()
+ private void insertFormRelatedSteps()
{
addRoadmap();
int i = 0;
@@ -370,10 +370,10 @@ public class FormWizard extends DatabaseObjectWizard
serrFormNameexists = m_oResource.getResText(UIConsts.RID_FORM + 98);
}
- public class FieldSelectionListener implements com.sun.star.wizards.ui.XFieldSelectionListener
+ private class FieldSelectionListener implements com.sun.star.wizards.ui.XFieldSelectionListener
{
- protected int ID;
+ private int ID;
// @Override
public int getID()
diff --git a/wizards/com/sun/star/wizards/form/StyleApplier.java b/wizards/com/sun/star/wizards/form/StyleApplier.java
index cfb94438e70a..4a171e022fba 100644
--- a/wizards/com/sun/star/wizards/form/StyleApplier.java
+++ b/wizards/com/sun/star/wizards/form/StyleApplier.java
@@ -375,7 +375,7 @@ public class StyleApplier
}
}
- public void applyDBControlProperties(int[] _iStyleColors)
+ private void applyDBControlProperties(int[] _iStyleColors)
{
try
{
diff --git a/wizards/com/sun/star/wizards/query/QuerySummary.java b/wizards/com/sun/star/wizards/query/QuerySummary.java
index cd2b37ba2639..9e9e4c2f03bb 100644
--- a/wizards/com/sun/star/wizards/query/QuerySummary.java
+++ b/wizards/com/sun/star/wizards/query/QuerySummary.java
@@ -29,9 +29,9 @@ import com.sun.star.wizards.ui.FilterComponent;
public class QuerySummary extends QueryMetaData
{
- static final protected int RID_QUERY = 2300;
- String sSummary;
- Resource oResource;
+ static final private int RID_QUERY = 2300;
+ private String sSummary;
+ private Resource oResource;
private final String sSeparator;
private final String sReturnChar;
private final String sAnd;
@@ -148,7 +148,7 @@ public class QuerySummary extends QueryMetaData
}
// TODO: How can you merge the following two methods to a single one in a smarter way??
- public String combinePartString(int _InitResID, String[] _FieldNames, int _AlternativeResID)
+ private String combinePartString(int _InitResID, String[] _FieldNames, int _AlternativeResID)
{
if (_FieldNames != null && _FieldNames.length > 0)
{
@@ -157,7 +157,7 @@ public class QuerySummary extends QueryMetaData
return oResource.getResText(_AlternativeResID);
}
- protected String ArrayFieldsToString(int _InitResID, String[] _FieldNames)
+ private String ArrayFieldsToString(int _InitResID, String[] _FieldNames)
{
String sReturn = oResource.getResText(_InitResID);
int FieldCount = _FieldNames.length;
@@ -172,7 +172,7 @@ public class QuerySummary extends QueryMetaData
return (sReturn);
}
- public String combinePartString(int _InitResID, String[][] _FieldNames, int _AlternativeResID, int _BaseStringID, String[] _ReplaceTags)
+ private String combinePartString(int _InitResID, String[][] _FieldNames, int _AlternativeResID, int _BaseStringID, String[] _ReplaceTags)
{
if (_FieldNames != null && _FieldNames.length > 0)
{
@@ -181,7 +181,7 @@ public class QuerySummary extends QueryMetaData
return oResource.getResText(_AlternativeResID);
}
- public String ArrayFieldsToString(int _InitResID, String[][] _FieldNames, int _BaseStringID, String[] _ReplaceTags)
+ private String ArrayFieldsToString(int _InitResID, String[][] _FieldNames, int _BaseStringID, String[] _ReplaceTags)
{
String CurString = PropertyNames.EMPTY_STRING;
String sReturn = oResource.getResText(_InitResID);
diff --git a/wizards/com/sun/star/wizards/query/QueryWizard.java b/wizards/com/sun/star/wizards/query/QueryWizard.java
index 00c39ba84cf2..c058e4dae049 100644
--- a/wizards/com/sun/star/wizards/query/QueryWizard.java
+++ b/wizards/com/sun/star/wizards/query/QueryWizard.java
@@ -143,7 +143,7 @@ public class QueryWizard extends DatabaseObjectWizard
return m_createdQuery;
}
- public void enableRoadmapItems(boolean _bEnabled)
+ private void enableRoadmapItems(boolean _bEnabled)
{
try
{
@@ -194,7 +194,7 @@ public class QueryWizard extends DatabaseObjectWizard
}
}
- public void insertQueryRelatedSteps()
+ private void insertQueryRelatedSteps()
{
try
{
@@ -225,7 +225,7 @@ public class QueryWizard extends DatabaseObjectWizard
}
}
- public void buildSteps()
+ private void buildSteps()
{
try
{
@@ -394,10 +394,10 @@ public class QueryWizard extends DatabaseObjectWizard
enableRoadmapItems(bEnabled); // Note: Performancewise this could be improved
}
- public class FieldSelectionListener implements com.sun.star.wizards.ui.XFieldSelectionListener
+ private class FieldSelectionListener implements com.sun.star.wizards.ui.XFieldSelectionListener
{
- protected int ID;
+ private int ID;
public int getID()
{
diff --git a/wizards/com/sun/star/wizards/report/DBColumn.java b/wizards/com/sun/star/wizards/report/DBColumn.java
index 0785ff3de2e3..5ca1f56a8844 100644
--- a/wizards/com/sun/star/wizards/report/DBColumn.java
+++ b/wizards/com/sun/star/wizards/report/DBColumn.java
@@ -43,25 +43,25 @@ import com.sun.star.wizards.text.TextFieldHandler;
public class DBColumn
{
- public XCell xValCell;
- public XTextRange xValTextCell;
- public XTextCursor xValCellCursor;
+ private XCell xValCell;
+ private XTextRange xValTextCell;
+ private XTextCursor xValCellCursor;
public XCell xNameCell;
- public XTextRange xNameTextCell;
- public boolean bAlignLeft;
- public String CharFontName;
- public PropertyState PropertyState;
+ private XTextRange xNameTextCell;
+ private boolean bAlignLeft;
+ private String CharFontName;
+ private PropertyState PropertyState;
public int ValColumn = 1;
- public int ValRow = 0;
+ private int ValRow = 0;
public FieldColumn CurDBField;
private XTextTable xTextTable;
private XTableColumns xTableColumns;
private XCellRange xCellRange;
public XNamed xTableName;
private boolean bIsGroupColumn;
- RecordParser CurDBMetaData;
- RecordTable CurRecordTable;
- TextTableHandler oTextTableHandler;
+ private RecordParser CurDBMetaData;
+ private RecordTable CurRecordTable;
+ private TextTableHandler oTextTableHandler;
public DBColumn(RecordTable _CurRecordTable, TextTableHandler _oTextTableHandler, RecordParser _CurDBMetaData, int i, boolean _bforce)
{
@@ -230,7 +230,7 @@ public class DBColumn
replaceValueCellofTable(_bIsLandscape);
}
- public void insertUserFieldToTableCell(TextFieldHandler oTextFieldHandler)
+ private void insertUserFieldToTableCell(TextFieldHandler oTextFieldHandler)
{
XTextCursor xTextCursor = TextDocument.createTextCursor(xNameCell);
xTextCursor.gotoStart(false);
@@ -275,7 +275,7 @@ public class DBColumn
}
}
- public void modifyCellContent(Object CurGroupValue)
+ private void modifyCellContent(Object CurGroupValue)
{
double dblValue = 0;
try
@@ -327,7 +327,7 @@ public class DBColumn
}
}
// If the parameter CurGroupValue is null the placeholders are inserted
- public void replaceValueCellofTable(boolean _bIsLandscape)
+ private void replaceValueCellofTable(boolean _bIsLandscape)
{
try
{
diff --git a/wizards/com/sun/star/wizards/report/Dataimport.java b/wizards/com/sun/star/wizards/report/Dataimport.java
index 92a63d65e836..329dcea92d46 100644
--- a/wizards/com/sun/star/wizards/report/Dataimport.java
+++ b/wizards/com/sun/star/wizards/report/Dataimport.java
@@ -34,10 +34,10 @@ public class Dataimport extends UnoDialog2 implements com.sun.star.awt.XActionLi
// ReportTextDocument CurReportDocument;
IReportDocument CurReportDocument;
- static String sProgressDBConnection;
- static String sProgressDataImport;
- static String sProgressTitle;
- static String sStop;
+ private static String sProgressDBConnection;
+ private static String sProgressDataImport;
+ private static String sProgressTitle;
+ private static String sStop;
public Dataimport(XMultiServiceFactory _xMSF)
{
@@ -61,7 +61,7 @@ public class Dataimport extends UnoDialog2 implements com.sun.star.awt.XActionLi
CurReportDocument.StopProcess();
}
- public void showProgressDisplay(boolean bgetConnection)
+ private void showProgressDisplay(boolean bgetConnection)
{
try
{
@@ -146,7 +146,7 @@ public class Dataimport extends UnoDialog2 implements com.sun.star.awt.XActionLi
}
}
- public void importReportData(final XMultiServiceFactory _xMSF, PropertyValue[] _properties)
+ private void importReportData(final XMultiServiceFactory _xMSF, PropertyValue[] _properties)
{
if (CurReportDocument.reconnectToDatabase(_xMSF, _properties))
{
diff --git a/wizards/com/sun/star/wizards/report/GroupFieldHandler.java b/wizards/com/sun/star/wizards/report/GroupFieldHandler.java
index cbadd8205d5a..b0dc12782476 100644
--- a/wizards/com/sun/star/wizards/report/GroupFieldHandler.java
+++ b/wizards/com/sun/star/wizards/report/GroupFieldHandler.java
@@ -65,7 +65,7 @@ public class GroupFieldHandler extends FieldSelection
}
}
- public boolean isGroupField(String _FieldName)
+ private boolean isGroupField(String _FieldName)
{
return (JavaTools.FieldInList(CurDBMetaData.GroupFieldNames, _FieldName) != -1);
}
@@ -135,7 +135,7 @@ public class GroupFieldHandler extends FieldSelection
}
- /* protected */ class FieldSelectionListener implements com.sun.star.wizards.ui.XFieldSelectionListener
+ /* protected */ private class FieldSelectionListener implements com.sun.star.wizards.ui.XFieldSelectionListener
{
public void moveItemDown(String Selitem)
diff --git a/wizards/com/sun/star/wizards/report/ReportFinalizer.java b/wizards/com/sun/star/wizards/report/ReportFinalizer.java
index c20e9fd488b9..682c958a2f4c 100644
--- a/wizards/com/sun/star/wizards/report/ReportFinalizer.java
+++ b/wizards/com/sun/star/wizards/report/ReportFinalizer.java
@@ -35,12 +35,12 @@ import com.sun.star.wizards.ui.event.XTextListenerAdapter;
public class ReportFinalizer
{
- WizardDialog CurUnoDialog;
- XTextComponent xTitleTextBox;
- String StoreName;
- String DefaultName;
- String OldDefaultName;
- IReportDocument CurReportDocument;
+ private WizardDialog CurUnoDialog;
+ private XTextComponent xTitleTextBox;
+ private String StoreName;
+ private String DefaultName;
+ private String OldDefaultName;
+ private IReportDocument CurReportDocument;
public static final int SOCREATEDOCUMENT = 1;
public static final int SOCREATETEMPLATE = 2;
public static final int SOUSETEMPLATE = 3;
diff --git a/wizards/com/sun/star/wizards/report/ReportLayouter.java b/wizards/com/sun/star/wizards/report/ReportLayouter.java
index f092b65a1412..1431fc225355 100644
--- a/wizards/com/sun/star/wizards/report/ReportLayouter.java
+++ b/wizards/com/sun/star/wizards/report/ReportLayouter.java
@@ -36,18 +36,18 @@ import java.util.ArrayList;
public class ReportLayouter
{
- UnoDialog CurUnoDialog;
- static final int SOCONTENTLST = 29;
+ private UnoDialog CurUnoDialog;
+ private static final int SOCONTENTLST = 29;
final static public int SOOPTLANDSCAPE = 30;
final static public int SOOPTPORTRAIT = 31;
- static final int SOLAYOUTLST = 32;
- XListBox xContentListBox;
- XListBox xLayoutListBox;
+ private static final int SOLAYOUTLST = 32;
+ private XListBox xContentListBox;
+ private XListBox xLayoutListBox;
int iOldContentPos;
int iOldLayoutPos;
- IReportDocument CurReportDocument;
- public String[][] LayoutFiles;
- public String[][] ContentFiles;
+ private IReportDocument CurReportDocument;
+ private String[][] LayoutFiles;
+ private String[][] ContentFiles;
Object aOrientationImage;
private final XMultiServiceFactory m_xMSF;
private XTextRange trTitleconst, trAuthorconst, trDateconst, trPageconst;
@@ -365,7 +365,7 @@ public class ReportLayouter
}
}
- public void clearConstants()
+ private void clearConstants()
{
constRangeList.clear();
trTitleconst = null;
@@ -384,7 +384,7 @@ public class ReportLayouter
te.write(tr);
}
- public List<XTextRange> searchFillInItems(int type)
+ private List<XTextRange> searchFillInItems(int type)
{
try
{
diff --git a/wizards/com/sun/star/wizards/report/ReportTextDocument.java b/wizards/com/sun/star/wizards/report/ReportTextDocument.java
index 3484975b985b..e3092bd959c3 100644
--- a/wizards/com/sun/star/wizards/report/ReportTextDocument.java
+++ b/wizards/com/sun/star/wizards/report/ReportTextDocument.java
@@ -56,14 +56,14 @@ class ReportTextDocument extends com.sun.star.wizards.text.TextDocument implemen
private RecordTable CurRecordTable;
private String sMsgCommonReportError;
private String ContentTemplatePath;
- public boolean bIsCurLandscape;
+ private boolean bIsCurLandscape;
public TextTableHandler oTextTableHandler;
public TextSectionHandler oTextSectionHandler;
public FormHandler oFormHandler;
- public TextStyleHandler oTextStyleHandler;
+ private TextStyleHandler oTextStyleHandler;
public TextFieldHandler oTextFieldHandler;
public ViewHandler oViewHandler;
- public NumberFormatter oNumberFormatter;
+ private NumberFormatter oNumberFormatter;
public static final String TBLRECORDSECTION = "Tbl_RecordSection";
public static final String TBLGROUPSECTION = "Tbl_GroupField";
public static final String RECORDSECTION = "RecordSection";
@@ -185,7 +185,7 @@ class ReportTextDocument extends com.sun.star.wizards.text.TextDocument implemen
oFormHandler.insertHiddenControl(xNameAccess, xNamedForm, "RecordFieldNames", JavaTools.ArraytoString(CurDBMetaData.getRecordFieldNames()));
}
- public void getReportPageStyles()
+ private void getReportPageStyles()
{
try
{
@@ -228,7 +228,7 @@ class ReportTextDocument extends com.sun.star.wizards.text.TextDocument implemen
}
}
- public boolean loadSectionsfromTemplate(String sTemplateUrl)
+ private boolean loadSectionsfromTemplate(String sTemplateUrl)
{
try
{
@@ -304,7 +304,7 @@ class ReportTextDocument extends com.sun.star.wizards.text.TextDocument implemen
}
}
- public void updateTextSections(String[] SelGroupNames)
+ private void updateTextSections(String[] SelGroupNames)
{
String TableName;
DBColumn OldDBColumn;
@@ -322,7 +322,7 @@ class ReportTextDocument extends com.sun.star.wizards.text.TextDocument implemen
}
}
- public void replaceFieldValueInGroupTable(DBColumn CurDBColumn, int TableIndex)
+ private void replaceFieldValueInGroupTable(DBColumn CurDBColumn, int TableIndex)
{
String TableName = TBLGROUPSECTION + (TableIndex + 1);
// Note: for some reason the table might lose its name and has to be renamed therefore
@@ -335,7 +335,7 @@ class ReportTextDocument extends com.sun.star.wizards.text.TextDocument implemen
CurDBColumn.setCellFont();
}
- public void insertColumnstoRecordTable()
+ private void insertColumnstoRecordTable()
{
int GroupCount = CurDBMetaData.GroupFieldNames.length;
DBColumn CurDBColumn;
@@ -420,7 +420,7 @@ class ReportTextDocument extends com.sun.star.wizards.text.TextDocument implemen
DBColumnsVector.remove(iSelItemCount);
}
- public void removeGroupNamesofRecordTable(int GroupFieldCount)
+ private void removeGroupNamesofRecordTable(int GroupFieldCount)
{
int CurFieldCount = DBColumnsVector.size();
if (CurFieldCount > GroupFieldCount)
@@ -432,7 +432,7 @@ class ReportTextDocument extends com.sun.star.wizards.text.TextDocument implemen
}
}
- public void showCommonReportErrorBox(Exception exception)
+ private void showCommonReportErrorBox(Exception exception)
{
String SystemContentPath = JavaTools.convertfromURLNotation(ContentTemplatePath);
String sMsgCurCommonReportError = JavaTools.replaceSubString(sMsgCommonReportError, SystemContentPath, "%PATH");
@@ -529,7 +529,7 @@ class ReportTextDocument extends com.sun.star.wizards.text.TextDocument implemen
return null;
}
- public static FieldColumn[] removeFieldColumnByFieldName(String _FieldName, FieldColumn[] _FieldColumns)
+ private static FieldColumn[] removeFieldColumnByFieldName(String _FieldName, FieldColumn[] _FieldColumns)
{
try
{
diff --git a/wizards/com/sun/star/wizards/report/ReportTextImplementation.java b/wizards/com/sun/star/wizards/report/ReportTextImplementation.java
index 3527d7ddd7b8..be202282f3fc 100644
--- a/wizards/com/sun/star/wizards/report/ReportTextImplementation.java
+++ b/wizards/com/sun/star/wizards/report/ReportTextImplementation.java
@@ -70,7 +70,7 @@ public class ReportTextImplementation extends ReportImplementationHelper impleme
* We have to remove this!!!
* @return
*/
- ReportTextDocument getDoc()
+ private ReportTextDocument getDoc()
{
if (m_aDoc == null)
{
@@ -125,9 +125,9 @@ public class ReportTextImplementation extends ReportImplementationHelper impleme
{
return getDoc().xWindowPeer;
}
- static String sMsgQueryCreationImpossible;
- static String sReportFormNotExisting;
- static String sMsgEndAutopilot;
+ private static String sMsgQueryCreationImpossible;
+ private static String sReportFormNotExisting;
+ private static String sMsgEndAutopilot;
private void initialResources()
{
@@ -138,7 +138,7 @@ public class ReportTextImplementation extends ReportImplementationHelper impleme
m_resource.getResText(UIConsts.RID_DB_COMMON + 14);
}
- public void addTextSectionCopies()
+ private void addTextSectionCopies()
{
m_aDoc.setLayoutSectionsVisible(false);
XTextCursor xTextCursor = ReportTextDocument.createTextCursor(m_aDoc.xTextDocument.getText());
@@ -454,7 +454,7 @@ public class ReportTextImplementation extends ReportImplementationHelper impleme
return m_aDoc.xFrame;
}
- public XMultiServiceFactory getDocumentServiceFactory()
+ private XMultiServiceFactory getDocumentServiceFactory()
{
return m_aDoc.xMSFDoc;
}
diff --git a/wizards/com/sun/star/wizards/report/ReportWizard.java b/wizards/com/sun/star/wizards/report/ReportWizard.java
index 5a68433ee2fc..708e43bdc3a6 100644
--- a/wizards/com/sun/star/wizards/report/ReportWizard.java
+++ b/wizards/com/sun/star/wizards/report/ReportWizard.java
@@ -53,7 +53,7 @@ import java.util.Map;
public class ReportWizard extends DatabaseObjectWizard implements XTextListener
{
- protected FieldSelection CurGroupFieldSelection;
+ private FieldSelection CurGroupFieldSelection;
private SortingComponent CurSortingComponent;
private TitlesComponent CurTitlesComponent;
private CommandFieldSelection CurDBCommandFieldSelection;
@@ -302,7 +302,7 @@ public class ReportWizard extends DatabaseObjectWizard implements XTextListener
return bQueryCreated;
}
- public void buildSteps()
+ private void buildSteps()
{
// CurReportDocument.getDoc().xProgressBar.setValue(30);
CurDBCommandFieldSelection = new CommandFieldSelection(this, m_reportDocument.getRecordParser(), 100, slblFields, slblSelFields, slblTables, true, 34330);
@@ -353,7 +353,7 @@ public class ReportWizard extends DatabaseObjectWizard implements XTextListener
xDialog.endExecute();
}
- public void insertQueryRelatedSteps()
+ private void insertQueryRelatedSteps()
{
setRMItemLabels(m_oResource, UIConsts.RID_QUERY + 80);
addRoadmap();
@@ -523,7 +523,7 @@ public class ReportWizard extends DatabaseObjectWizard implements XTextListener
m_reportDocument.getRecordParser().dispose();
}
- public boolean getReportResources(boolean bgetProgressResourcesOnly)
+ private boolean getReportResources(boolean bgetProgressResourcesOnly)
{
sMsgWizardName = super.m_oResource.getResText(UIConsts.RID_REPORT);
if (!bgetProgressResourcesOnly)
@@ -555,7 +555,7 @@ public class ReportWizard extends DatabaseObjectWizard implements XTextListener
return sBlindTextNote;
}
- public void enableRoadmapItems(boolean _bEnabled)
+ private void enableRoadmapItems(boolean _bEnabled)
{
try
{
@@ -637,10 +637,10 @@ public class ReportWizard extends DatabaseObjectWizard implements XTextListener
super.setStepEnabled(SOSORTPAGE, bdoenable);
}
- public class FieldSelectionListener implements com.sun.star.wizards.ui.XFieldSelectionListener
+ private class FieldSelectionListener implements com.sun.star.wizards.ui.XFieldSelectionListener
{
- protected int m_nID;
+ private int m_nID;
public int getID()
{
diff --git a/wizards/com/sun/star/wizards/reportbuilder/layout/ReportBuilderLayouter.java b/wizards/com/sun/star/wizards/reportbuilder/layout/ReportBuilderLayouter.java
index 8b0aef149f67..fc84743e0654 100644
--- a/wizards/com/sun/star/wizards/reportbuilder/layout/ReportBuilderLayouter.java
+++ b/wizards/com/sun/star/wizards/reportbuilder/layout/ReportBuilderLayouter.java
@@ -164,7 +164,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
/**
* Remove all Groups
*/
- protected void clearGroups()
+ private void clearGroups()
{
final XGroups xGroups = getReportDefinition().getGroups();
while (xGroups.hasElements())
@@ -233,7 +233,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
return nIndent;
}
- int m_nLeftIndent = -1;
+ private int m_nLeftIndent = -1;
/**
* Get left page indent.
@@ -250,7 +250,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
return m_nLeftIndent;
}
- int m_nRightIndent = -1;
+ private int m_nRightIndent = -1;
/**
* Get right page indent.
@@ -298,7 +298,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
return aUsedStyle;
}
- protected int getFromPageStyles(String _sStyleName, int _nDefault)
+ private int getFromPageStyles(String _sStyleName, int _nDefault)
{
int nValue = _nDefault;
final XStyle xStyle = getUsedStyle("PageStyles");
@@ -311,7 +311,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
return nValue;
}
- protected void setToPageStyles(String _sStyleName, Object _aObj)
+ private void setToPageStyles(String _sStyleName, Object _aObj)
{
final XStyle xStyle = getUsedStyle("PageStyles");
if (xStyle != null)
@@ -321,7 +321,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
}
}
- int m_nPageWidth = -1;
+ private int m_nPageWidth = -1;
/**
* Get page width. The default is 21000 1/100mm what is 21cm of DIN A4.
@@ -382,7 +382,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
}
- protected int insertGroups()
+ private int insertGroups()
{
final XGroups xGroups = getReportDefinition().getGroups();
int lastGroupPosition = -1;
@@ -474,7 +474,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
}
- protected String getTitleFromFieldName(String _sField)
+ private String getTitleFromFieldName(String _sField)
{
for (int i = 0; i < m_aFieldNames.length; i++)
{
@@ -486,7 +486,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
return PropertyNames.EMPTY_STRING;
}
- protected int getTypeFromFieldName(String _sField)
+ private int getTypeFromFieldName(String _sField)
{
for (int i = 0; i < m_aFieldNames.length; i++)
{
@@ -498,7 +498,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
return 0;
}
- protected boolean listContains(String[] _aList, String _aValue)
+ private boolean listContains(String[] _aList, String _aValue)
{
for (int i = 0; i < _aList.length; i++)
{
@@ -517,7 +517,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
* @param _aGetResultFrom
* @return
*/
- protected String[] getNamesWithoutGroupNames(String[] _aList, String[] _aGetResultFrom)
+ private String[] getNamesWithoutGroupNames(String[] _aList, String[] _aGetResultFrom)
{
if (_aList == null)
{
@@ -695,7 +695,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
}
- protected String convertFromFieldName(String _sName)
+ private String convertFromFieldName(String _sName)
{
if (_sName.startsWith("field:["))
{
@@ -723,7 +723,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
return insertFormattedField(_xSection, _sFormattedfield, _aRect, _nWidth, _aSO, (short) com.sun.star.awt.TextAlign.LEFT);
}
- protected Rectangle insertFormattedField(XSection _xSection, String _sFormattedfield, Rectangle _aRect, int _nWidth, SectionObject _aSO, short _nAlignment)
+ private Rectangle insertFormattedField(XSection _xSection, String _sFormattedfield, Rectangle _aRect, int _nWidth, SectionObject _aSO, short _nAlignment)
{
if (_xSection != null)
{
@@ -832,9 +832,9 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
getReportDefinition().setCommandType(_aType);
getReportDefinition().setCommand(_sTableName);
}
- protected XMultiServiceFactory m_xMSF;
+ private XMultiServiceFactory m_xMSF;
- protected XMultiServiceFactory getMSFofReportDefinition()
+ private XMultiServiceFactory getMSFofReportDefinition()
{
if (m_xMSF == null)
{
@@ -846,12 +846,12 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
- protected Rectangle insertHorizontalLine(XSection _xSection, Rectangle _aRect, int _nWidth, int _nHeight)
+ private Rectangle insertHorizontalLine(XSection _xSection, Rectangle _aRect, int _nWidth, int _nHeight)
{
return insertLine(_xSection, _aRect, _nWidth, _nHeight, 0);
}
- protected Rectangle insertLine(XSection _xSection, Rectangle _aRect, int _nWidth, int _nHeight, int _nOrientation)
+ private Rectangle insertLine(XSection _xSection, Rectangle _aRect, int _nWidth, int _nHeight, int _nOrientation)
{
if (_xSection != null)
{
@@ -881,7 +881,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
}
- protected void clearReportHeader()
+ private void clearReportHeader()
{
XSection xSection;
try
@@ -898,7 +898,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
}
}
- protected void insertReportHeader()
+ private void insertReportHeader()
{
if (getDesignTemplate() != null)
{
@@ -931,7 +931,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
}
}
- protected void clearReportFooter()
+ private void clearReportFooter()
{
XSection xSection;
try
@@ -948,7 +948,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
}
}
- protected void insertReportFooter()
+ private void insertReportFooter()
{
if (getDesignTemplate() != null)
{
@@ -982,7 +982,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
}
- protected void clearPageHeader()
+ private void clearPageHeader()
{
XSection xSection;
try
@@ -999,7 +999,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
}
}
- protected void clearPageFooter()
+ private void clearPageFooter()
{
XSection xSection;
try
@@ -1051,7 +1051,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
* @param _aFont
* @return width of given text in 1/100mm
*/
- Size getPreferredSize(String _sText, FontDescriptor _aFont)
+ private Size getPreferredSize(String _sText, FontDescriptor _aFont)
{
Size aSizeMM_100TH = new Size(0, 0);
try
@@ -1098,7 +1098,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
return aSizeMM_100TH;
}
- protected String getTableName()
+ private String getTableName()
{
if (m_sTableName != null)
{
@@ -1107,7 +1107,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
return PropertyNames.EMPTY_STRING;
}
- protected String getUserNameFromConfiguration()
+ private String getUserNameFromConfiguration()
{
String sFirstName = PropertyNames.EMPTY_STRING;
String sLastName = PropertyNames.EMPTY_STRING;
@@ -1200,7 +1200,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
}
}
- protected void insertPageHeader()
+ private void insertPageHeader()
{
if (getDesignTemplate() != null)
{
@@ -1301,7 +1301,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
}
}
- protected void insertPageFooter()
+ private void insertPageFooter()
{
if (getDesignTemplate() != null)
{
@@ -1395,13 +1395,13 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
{
return m_aResource;
}
- protected int m_aCommandType; // Table or Query
- protected String m_sTableName;
- protected String[] m_aGroupNames;
- protected String[] m_aFieldNames;
- protected String[] m_aFieldTitleNames;
- protected int[] m_aFieldWidths;
- protected int[] m_aFieldTypes;
+ private int m_aCommandType; // Table or Query
+ private String m_sTableName;
+ private String[] m_aGroupNames;
+ private String[] m_aFieldNames;
+ private String[] m_aFieldTitleNames;
+ private int[] m_aFieldWidths;
+ private int[] m_aFieldTypes;
private DesignTemplate m_xDesignTemplate = null;
public void initializeData(IReportBuilderLayouter _aOther)
@@ -1460,14 +1460,14 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
* @param _sLabel
* @return the width in 1/100mm
*/
- protected int getLabelWidth(String _sLabel)
+ private int getLabelWidth(String _sLabel)
{
return getLabelWidth(_sLabel, 0.0f, 0.0f);
}
- XFixedText m_aFixedTextHelper = null;
- HashMap<String, Integer> m_aLabelWidthMap;
+ private XFixedText m_aFixedTextHelper = null;
+ private HashMap<String, Integer> m_aLabelWidthMap;
- protected int getLabelWidth(String _sLabel, FontDescriptor _aFD)
+ private int getLabelWidth(String _sLabel, FontDescriptor _aFD)
{
float fCharWeight = 0.0f;
float fCharHeight = 0.0f;
@@ -1479,7 +1479,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
return getLabelWidth(_sLabel, fCharWeight, fCharHeight);
}
- protected int getLabelWidth(String _sLabel, float _nCharWeight, float _nCharHeight)
+ private int getLabelWidth(String _sLabel, float _nCharWeight, float _nCharHeight)
{
int nWidth = 0;
diff --git a/wizards/com/sun/star/wizards/reportbuilder/layout/SectionLabel.java b/wizards/com/sun/star/wizards/reportbuilder/layout/SectionLabel.java
index b00d24cb01a7..8ee85ffc4d8b 100644
--- a/wizards/com/sun/star/wizards/reportbuilder/layout/SectionLabel.java
+++ b/wizards/com/sun/star/wizards/reportbuilder/layout/SectionLabel.java
@@ -23,7 +23,7 @@ import com.sun.star.report.XFixedText;
public class SectionLabel extends SectionObject
{
- protected SectionLabel(XFixedText _aFixedText)
+ private SectionLabel(XFixedText _aFixedText)
{
m_aParentObject = _aFixedText;
}
diff --git a/wizards/com/sun/star/wizards/reportbuilder/layout/SectionObject.java b/wizards/com/sun/star/wizards/reportbuilder/layout/SectionObject.java
index de2d1cd4aded..c6d3887cccaf 100644
--- a/wizards/com/sun/star/wizards/reportbuilder/layout/SectionObject.java
+++ b/wizards/com/sun/star/wizards/reportbuilder/layout/SectionObject.java
@@ -25,7 +25,7 @@ abstract public class SectionObject
{
Object m_aParentObject; // this could be FixedText or FormattedField or null
- PropertySetHelper m_aPropertySetHelper;
+ private PropertySetHelper m_aPropertySetHelper;
public SectionObject()
{
diff --git a/wizards/com/sun/star/wizards/reportbuilder/layout/SectionTextField.java b/wizards/com/sun/star/wizards/reportbuilder/layout/SectionTextField.java
index fae7d9a2fe37..46a42a0bd2a9 100644
--- a/wizards/com/sun/star/wizards/reportbuilder/layout/SectionTextField.java
+++ b/wizards/com/sun/star/wizards/reportbuilder/layout/SectionTextField.java
@@ -23,7 +23,7 @@ import com.sun.star.report.XFormattedField;
public class SectionTextField extends SectionObject
{
- protected SectionTextField(XFormattedField _aFormattedField)
+ private SectionTextField(XFormattedField _aFormattedField)
{
m_aParentObject = _aFormattedField;
// We would like to know, what properties are in this object.
diff --git a/wizards/com/sun/star/wizards/table/CGCategory.java b/wizards/com/sun/star/wizards/table/CGCategory.java
index d2b649afc383..5c2c3ad00412 100644
--- a/wizards/com/sun/star/wizards/table/CGCategory.java
+++ b/wizards/com/sun/star/wizards/table/CGCategory.java
@@ -31,10 +31,10 @@ public class CGCategory
{
private static final String CGROOTPATH = "/org.openoffice.Office.TableWizard/TableWizard/";
- XMultiServiceFactory xMSF;
+ private XMultiServiceFactory xMSF;
XNameAccess xNameAccessTablesNode;
- XNameAccess xNameAccessCurBusinessNode;
- Object oconfigView;
+ private XNameAccess xNameAccessCurBusinessNode;
+ private Object oconfigView;
public CGCategory(XMultiServiceFactory _xMSF)
{
diff --git a/wizards/com/sun/star/wizards/table/CGTable.java b/wizards/com/sun/star/wizards/table/CGTable.java
index b6c8d1bb34f8..0d4d8e0ad8b2 100644
--- a/wizards/com/sun/star/wizards/table/CGTable.java
+++ b/wizards/com/sun/star/wizards/table/CGTable.java
@@ -26,9 +26,9 @@ import com.sun.star.wizards.common.PropertyNames;
public class CGTable
{
- XMultiServiceFactory xMSF;
+ private XMultiServiceFactory xMSF;
XNameAccess xNameAccessFieldsNode;
- XNameAccess xNameAccessTableNode;
+ private XNameAccess xNameAccessTableNode;
public CGTable(XMultiServiceFactory _xMSF)
{
diff --git a/wizards/com/sun/star/wizards/table/FieldDescription.java b/wizards/com/sun/star/wizards/table/FieldDescription.java
index 3979199c5787..2128a760eabe 100644
--- a/wizards/com/sun/star/wizards/table/FieldDescription.java
+++ b/wizards/com/sun/star/wizards/table/FieldDescription.java
@@ -106,7 +106,7 @@ public class FieldDescription
return bexists;
}
- public void setFieldProperties(XNameAccess _xNameAccessFieldNode)
+ private void setFieldProperties(XNameAccess _xNameAccessFieldNode)
{
try
{
diff --git a/wizards/com/sun/star/wizards/table/FieldFormatter.java b/wizards/com/sun/star/wizards/table/FieldFormatter.java
index 42d118616fca..97dcf3b70e2c 100644
--- a/wizards/com/sun/star/wizards/table/FieldFormatter.java
+++ b/wizards/com/sun/star/wizards/table/FieldFormatter.java
@@ -41,18 +41,18 @@ import com.sun.star.wizards.ui.event.XTextListenerAdapter;
public class FieldFormatter implements XItemListener
{
- TableWizard CurUnoDialog;
- TableDescriptor curTableDescriptor;
- Object oColumnDescriptorModel;
- XTextComponent txtfieldname;
- XListBox xlstFieldNames;
- XButton btnplus;
- XButton btnminus;
- XButton btnShiftUp;
- XButton btnShiftDown;
+ private TableWizard CurUnoDialog;
+ private TableDescriptor curTableDescriptor;
+ private Object oColumnDescriptorModel;
+ private XTextComponent txtfieldname;
+ private XListBox xlstFieldNames;
+ private XButton btnplus;
+ private XButton btnminus;
+ private XButton btnShiftUp;
+ private XButton btnShiftDown;
short curtabindex;
String suntitled;
- Integer IFieldFormatStep;
+ private Integer IFieldFormatStep;
public FieldFormatter(TableWizard _CurUnoDialog)
{
@@ -235,7 +235,7 @@ public class FieldFormatter implements XItemListener
CurUnoDialog.setFocus("lstfieldnames");
}
- public void toggleButtons()
+ private void toggleButtons()
{
boolean benableShiftUpButton = false;
boolean benableShiftDownButton = false;
@@ -321,7 +321,7 @@ public class FieldFormatter implements XItemListener
CurUnoDialog.repaintDialogStep();
}
- public void modifyFieldName()
+ private void modifyFieldName()
{
String newfieldname = txtfieldname.getText();
String oldfieldname = xlstFieldNames.getSelectedItem();
@@ -379,7 +379,7 @@ public class FieldFormatter implements XItemListener
toggleButtons();
}
- public String[] shiftArrayItem(String[] _slist, int _oldindex, int _shiftcount)
+ private String[] shiftArrayItem(String[] _slist, int _oldindex, int _shiftcount)
{
int newindex = _oldindex + _shiftcount;
if ((newindex >= 0) && (newindex < _slist.length))
diff --git a/wizards/com/sun/star/wizards/table/Finalizer.java b/wizards/com/sun/star/wizards/table/Finalizer.java
index 1e5832ffe1f2..5e83129b5636 100644
--- a/wizards/com/sun/star/wizards/table/Finalizer.java
+++ b/wizards/com/sun/star/wizards/table/Finalizer.java
@@ -32,15 +32,15 @@ import com.sun.star.wizards.ui.event.XTextListenerAdapter;
public class Finalizer
{
- TableWizard CurUnoDialog;
- short curtabindex;
- XRadioButton optModifyTable;
- XRadioButton optWorkWithTable;
- XTextComponent txtTableName;
- XListBox xCatalogListBox;
- XListBox xSchemaListBox;
- TableDescriptor curtabledescriptor;
- public static int WORKWITHTABLEMODE = 0;
+ private TableWizard CurUnoDialog;
+ private short curtabindex;
+ private XRadioButton optModifyTable;
+ private XRadioButton optWorkWithTable;
+ private XTextComponent txtTableName;
+ private XListBox xCatalogListBox;
+ private XListBox xSchemaListBox;
+ private TableDescriptor curtabledescriptor;
+ private static int WORKWITHTABLEMODE = 0;
public static int MODIFYTABLEMODE = 1;
public static int STARTFORMWIZARDMODE = 2;
@@ -296,7 +296,7 @@ public class Finalizer
return curtabledescriptor.getComposedTableName(scatalogname, sschemaname, _stablename);
}
- public void setTableName(String _tablename)
+ private void setTableName(String _tablename)
{
if (txtTableName.getText().equals(PropertyNames.EMPTY_STRING))
{
diff --git a/wizards/com/sun/star/wizards/table/ScenarioSelector.java b/wizards/com/sun/star/wizards/table/ScenarioSelector.java
index 77bad43d6ec1..99958fa72587 100644
--- a/wizards/com/sun/star/wizards/table/ScenarioSelector.java
+++ b/wizards/com/sun/star/wizards/table/ScenarioSelector.java
@@ -45,8 +45,8 @@ import com.sun.star.wizards.ui.event.XItemListenerAdapter;
*/
public class ScenarioSelector extends FieldSelection implements XItemListener, XFieldSelectionListener
{
- final static int PRIVATE = 0;
- final static int BUSINESS = 1;
+ private final static int PRIVATE = 0;
+ private final static int BUSINESS = 1;
private final XRadioButton optBusiness;
private XListBox xTableListBox;
@@ -171,7 +171,7 @@ public class ScenarioSelector extends FieldSelection implements XItemListener, X
}
}
- public void initializeCategory(int _iCategory)
+ private void initializeCategory(int _iCategory)
{
try
{
@@ -187,7 +187,7 @@ public class ScenarioSelector extends FieldSelection implements XItemListener, X
}
}
- public void initializeTable(int _iTable)
+ private void initializeTable(int _iTable)
{
Helper.setUnoPropertyValue(UnoDialog.getModel(xTableListBox), PropertyNames.SELECTED_ITEMS, new short[]
{
@@ -293,7 +293,7 @@ public class ScenarioSelector extends FieldSelection implements XItemListener, X
public void disposing(EventObject arg0)
{
}
- protected int ID;
+ private int ID;
public int getID()
{
diff --git a/wizards/com/sun/star/wizards/table/TableWizard.java b/wizards/com/sun/star/wizards/table/TableWizard.java
index 8ece17c023e8..20af479290c6 100644
--- a/wizards/com/sun/star/wizards/table/TableWizard.java
+++ b/wizards/com/sun/star/wizards/table/TableWizard.java
@@ -38,19 +38,19 @@ import com.sun.star.wizards.ui.*;
public class TableWizard extends DatabaseObjectWizard implements XTextListener
{
- static String slblFields;
- static String slblSelFields;
- Finalizer curFinalizer;
- ScenarioSelector curScenarioSelector;
- FieldFormatter curFieldFormatter;
- PrimaryKeyHandler curPrimaryKeyHandler;
+ private static String slblFields;
+ private static String slblSelFields;
+ private Finalizer curFinalizer;
+ private ScenarioSelector curScenarioSelector;
+ private FieldFormatter curFieldFormatter;
+ private PrimaryKeyHandler curPrimaryKeyHandler;
public HashMap<String, FieldDescription> fielditems;
int wizardmode;
String tablename;
String serrToManyFields;
String serrTableNameexists;
String scomposedtablename;
- TableDescriptor curTableDescriptor;
+ private TableDescriptor curTableDescriptor;
public static final int SOMAINPAGE = 1;
public static final int SOFIELDSFORMATPAGE = 2;
public static final int SOPRIMARYKEYPAGE = 3;
@@ -231,7 +231,7 @@ public class TableWizard extends DatabaseObjectWizard implements XTextListener
}
}
*/
- public void buildSteps()
+ private void buildSteps()
{
curScenarioSelector = new ScenarioSelector(this, this.curTableDescriptor, slblFields, slblSelFields);
curFieldFormatter = new FieldFormatter(this);
@@ -243,7 +243,7 @@ public class TableWizard extends DatabaseObjectWizard implements XTextListener
enableNavigationButtons(false, false, false);
}
- public boolean createTable()
+ private boolean createTable()
{
boolean bIsSuccessfull = true;
boolean bTableCreated = false;
@@ -334,7 +334,7 @@ public class TableWizard extends DatabaseObjectWizard implements XTextListener
xDialog.endExecute();
}
- public void insertFormRelatedSteps()
+ private void insertFormRelatedSteps()
{
addRoadmap();
int i = 0;
@@ -378,7 +378,7 @@ public class TableWizard extends DatabaseObjectWizard implements XTextListener
return PropertyNames.EMPTY_STRING;
}
- public boolean getTableResources()
+ private boolean getTableResources()
{
super.m_oResource.getResText(UIConsts.RID_TABLE + 1);
slblFields = m_oResource.getResText(UIConsts.RID_TABLE + 19);
diff --git a/wizards/com/sun/star/wizards/text/TextDocument.java b/wizards/com/sun/star/wizards/text/TextDocument.java
index ecb490739be6..ea14f14d98b5 100644
--- a/wizards/com/sun/star/wizards/text/TextDocument.java
+++ b/wizards/com/sun/star/wizards/text/TextDocument.java
@@ -78,7 +78,7 @@ public class TextDocument
private final String m_identifier;
- protected final String getIdentifier()
+ private final String getIdentifier()
{
return m_identifier;
}
@@ -178,7 +178,7 @@ public class TextDocument
xProgressBar.setValue(5);
}
- public XTextDocument loadAsPreview(String sDefaultTemplate, boolean asTemplate)
+ private XTextDocument loadAsPreview(String sDefaultTemplate, boolean asTemplate)
{
PropertyValue loadValues[] = new PropertyValue[3];
// open document in the Preview mode
@@ -227,7 +227,7 @@ public class TextDocument
}
- public Size getPageSize()
+ private Size getPageSize()
{
try
{
diff --git a/wizards/com/sun/star/wizards/text/TextFieldHandler.java b/wizards/com/sun/star/wizards/text/TextFieldHandler.java
index 28e0ef9e9aae..da43b3d883cc 100644
--- a/wizards/com/sun/star/wizards/text/TextFieldHandler.java
+++ b/wizards/com/sun/star/wizards/text/TextFieldHandler.java
@@ -45,7 +45,7 @@ import com.sun.star.wizards.common.PropertyNames;
public class TextFieldHandler
{
- public XTextFieldsSupplier xTextFieldsSupplier;
+ private XTextFieldsSupplier xTextFieldsSupplier;
private final XMultiServiceFactory xMSFDoc;
/**
@@ -57,7 +57,7 @@ public class TextFieldHandler
xTextFieldsSupplier = UnoRuntime.queryInterface(XTextFieldsSupplier.class, xTextDocument);
}
- public void refreshTextFields()
+ private void refreshTextFields()
{
XRefreshable xUp = UnoRuntime.queryInterface(XRefreshable.class, xTextFieldsSupplier.getTextFields());
xUp.refresh();
@@ -111,7 +111,7 @@ public class TextFieldHandler
}
}
- public XPropertySet createUserField(String FieldName, String FieldTitle) throws com.sun.star.uno.Exception
+ private XPropertySet createUserField(String FieldName, String FieldTitle) throws com.sun.star.uno.Exception
{
Object oMaster = xMSFDoc.createInstance("com.sun.star.text.FieldMaster.User");
XPropertySet xPSet = UnoRuntime.queryInterface(XPropertySet.class, oMaster);
diff --git a/wizards/com/sun/star/wizards/text/TextSectionHandler.java b/wizards/com/sun/star/wizards/text/TextSectionHandler.java
index 527e705486c5..14348b455674 100644
--- a/wizards/com/sun/star/wizards/text/TextSectionHandler.java
+++ b/wizards/com/sun/star/wizards/text/TextSectionHandler.java
@@ -84,7 +84,7 @@ public class TextSectionHandler
}
}
- public void removeTextSection(Object _oTextSection)
+ private void removeTextSection(Object _oTextSection)
{
try
{
@@ -180,7 +180,7 @@ public class TextSectionHandler
}
}
- public void linkSectiontoTemplate(Object oTextSection, String TemplateName, String SectionName)
+ private void linkSectiontoTemplate(Object oTextSection, String TemplateName, String SectionName)
{
SectionFileLink oSectionLink = new SectionFileLink();
oSectionLink.FileURL = TemplateName;
@@ -220,7 +220,7 @@ public class TextSectionHandler
}
}
- public void insertTextSection(String sectionName, String templateName, XTextCursor position)
+ private void insertTextSection(String sectionName, String templateName, XTextCursor position)
{
try
{
diff --git a/wizards/com/sun/star/wizards/text/TextTableHandler.java b/wizards/com/sun/star/wizards/text/TextTableHandler.java
index 94f7da83424e..74e8966392c6 100644
--- a/wizards/com/sun/star/wizards/text/TextTableHandler.java
+++ b/wizards/com/sun/star/wizards/text/TextTableHandler.java
@@ -42,7 +42,7 @@ public class TextTableHandler
{
public XTextTablesSupplier xTextTablesSupplier;
- public XTextDocument xTextDocument;
+ private XTextDocument xTextDocument;
private NumberFormatter oNumberFormatter;
/** Creates a new instance of TextTableHandler */
@@ -136,7 +136,7 @@ public class TextTableHandler
}
}
- public void removeTextTable(Object oTextTable)
+ private void removeTextTable(Object oTextTable)
{
try
{
diff --git a/wizards/com/sun/star/wizards/ui/AggregateComponent.java b/wizards/com/sun/star/wizards/ui/AggregateComponent.java
index 458868357952..10aa56b4e42b 100644
--- a/wizards/com/sun/star/wizards/ui/AggregateComponent.java
+++ b/wizards/com/sun/star/wizards/ui/AggregateComponent.java
@@ -37,23 +37,23 @@ import com.sun.star.wizards.db.QueryMetaData;
public class AggregateComponent extends ControlScroller
{
- String[] sFunctions;
- String[] sFunctionOperators = new String[]
+ private String[] sFunctions;
+ private String[] sFunctionOperators = new String[]
{
"SUM", "AVG", "MIN", "MAX"
};
- QueryMetaData CurDBMetaData;
- String soptDetailQuery;
- String soptSummaryQuery;
- String slblAggregate;
- String slblFieldNames;
- String sDuplicateAggregateFunction;
- int Count;
- static final int SOADDROW = 1;
- static final int SOREMOVEROW = 2;
- ArrayList<ControlRow> ControlRowVector;
- int curHelpID;
- int lastHelpIndex;
+ private QueryMetaData CurDBMetaData;
+ private String soptDetailQuery;
+ private String soptSummaryQuery;
+ private String slblAggregate;
+ private String slblFieldNames;
+ private String sDuplicateAggregateFunction;
+ private int Count;
+ private static final int SOADDROW = 1;
+ private static final int SOREMOVEROW = 2;
+ private ArrayList<ControlRow> ControlRowVector;
+ private int curHelpID;
+ private int lastHelpIndex;
/** Creates a new instance of AggrgateComponent */
public AggregateComponent(WizardDialog _CurUnoDialog, QueryMetaData _CurDBMetaData, int _iStep, int _iPosX, int _iPosY, int _iWidth, int _uitextfieldcount, int _firstHelpID)
@@ -133,7 +133,7 @@ public class AggregateComponent extends ControlScroller
}
}
- public int getQueryType()
+ private int getQueryType()
{
if (((Short) CurUnoDialog.getControlProperty("optDetailQuery", PropertyNames.PROPERTY_STATE)).intValue() == 1)
{
@@ -145,7 +145,7 @@ public class AggregateComponent extends ControlScroller
}
}
- class ActionListenerImpl implements com.sun.star.awt.XActionListener
+ private class ActionListenerImpl implements com.sun.star.awt.XActionListener
{
public void disposing(EventObject eventObject)
@@ -216,7 +216,7 @@ public class AggregateComponent extends ControlScroller
}
}
- protected void addRow()
+ private void addRow()
{
int fieldcount = super.getTotalFieldCount();
registerControlGroupAtIndex(fieldcount);
@@ -238,7 +238,7 @@ public class AggregateComponent extends ControlScroller
CurUnoDialog.repaintDialogStep();
}
- protected void removeRow()
+ private void removeRow()
{
int fieldcount = super.getTotalFieldCount();
if (fieldcount > 0)
@@ -258,7 +258,7 @@ public class AggregateComponent extends ControlScroller
CurUnoDialog.repaintDialogStep();
}
- protected void toggleButtons()
+ private void toggleButtons()
{
ControlRow curcontrolrow = null;
boolean biscomplete = true;
@@ -274,7 +274,7 @@ public class AggregateComponent extends ControlScroller
togglefollowingDialogSteps();
}
- public void toggleComponent()
+ private void toggleComponent()
{
CurDBMetaData.Type = getQueryType();
boolean benableComponent = isAggregateComponentEnabled();
@@ -490,14 +490,14 @@ public class AggregateComponent extends ControlScroller
}
}
- protected class ControlRow
+ private class ControlRow
{
private XListBox xFieldListBox;
private XListBox xFunctionListBox;
private int index;
- protected ControlRow(int _index, int ypos, int _curHelpID)
+ private ControlRow(int _index, int ypos, int _curHelpID)
{
try
{
@@ -553,7 +553,7 @@ public class AggregateComponent extends ControlScroller
UnoDialog.deselectListBox(xFunctionListBox);
}
- protected class ItemListenerImpl implements com.sun.star.awt.XItemListener
+ private class ItemListenerImpl implements com.sun.star.awt.XItemListener
{
public void itemStateChanged(com.sun.star.awt.ItemEvent EventObject)
diff --git a/wizards/com/sun/star/wizards/ui/ButtonList.java b/wizards/com/sun/star/wizards/ui/ButtonList.java
index 3ae9bc8832f5..6fab9de4a712 100644
--- a/wizards/com/sun/star/wizards/ui/ButtonList.java
+++ b/wizards/com/sun/star/wizards/ui/ButtonList.java
@@ -65,7 +65,7 @@ public class ButtonList implements XItemEventBroadcaster, XActionListener
public int helpURL = 0;
private IImageRenderer renderer;
private ListModel listModel;
- public IRenderer counterRenderer = new SimpleCounterRenderer();
+ private IRenderer counterRenderer = new SimpleCounterRenderer();
private final static int LINE_HEIGHT = 8;
/** Getter for property m_aButtonSize.
@@ -420,7 +420,7 @@ public class ButtonList implements XItemEventBroadcaster, XActionListener
return gap;
}
- public ListModel getListModel()
+ private ListModel getListModel()
{
return listModel;
}
@@ -485,7 +485,7 @@ public class ButtonList implements XItemEventBroadcaster, XActionListener
step = short1;
}
- public void setPageStart(int i)
+ private void setPageStart(int i)
{
if (i == pageStart)
{
@@ -614,12 +614,12 @@ public class ButtonList implements XItemEventBroadcaster, XActionListener
}
}
- public static class Counter
+ private static class Counter
{
- public int start, end, max;
+ private int start, end, max;
- public Counter(int start_, int end_, int max_)
+ private Counter(int start_, int end_, int max_)
{
start = start_;
end = end_;
diff --git a/wizards/com/sun/star/wizards/ui/CommandFieldSelection.java b/wizards/com/sun/star/wizards/ui/CommandFieldSelection.java
index 54797e3e3b7d..59bd1c770644 100644
--- a/wizards/com/sun/star/wizards/ui/CommandFieldSelection.java
+++ b/wizards/com/sun/star/wizards/ui/CommandFieldSelection.java
@@ -43,7 +43,7 @@ public class CommandFieldSelection extends FieldSelection implements Comparator<
private final WizardDialog oWizardDialog;
private Collator aCollator = null;
- class ItemListenerImpl implements com.sun.star.awt.XItemListener
+ private class ItemListenerImpl implements com.sun.star.awt.XItemListener
{
public void itemStateChanged(com.sun.star.awt.ItemEvent EventObject)
@@ -133,7 +133,7 @@ public class CommandFieldSelection extends FieldSelection implements Comparator<
/**
* @return Returns the sQueryPrefix.
*/
- public String getQueryPrefix()
+ private String getQueryPrefix()
{
if (sQueryPrefix == null)
{
@@ -161,7 +161,7 @@ public class CommandFieldSelection extends FieldSelection implements Comparator<
/**
* @return Returns the sTablePrefix.
*/
- public String getTablePrefix()
+ private String getTablePrefix()
{
if (sTablePrefix == null)
{
@@ -188,7 +188,7 @@ public class CommandFieldSelection extends FieldSelection implements Comparator<
}
}
- public void fillUpFieldsListbox()
+ private void fillUpFieldsListbox()
{
try
{
@@ -318,7 +318,7 @@ public class CommandFieldSelection extends FieldSelection implements Comparator<
toggleCommandListBox(bdoenable);
}
- public void toggleCommandListBox(boolean _bdoenable)
+ private void toggleCommandListBox(boolean _bdoenable)
{
Helper.setUnoPropertyValue(UnoDialog.getModel(xTableListBox), PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(_bdoenable));
Helper.setUnoPropertyValue(UnoDialog.getModel(xlblTable), PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(_bdoenable));
@@ -374,7 +374,7 @@ public class CommandFieldSelection extends FieldSelection implements Comparator<
}
}
- public void preselectCommand(String _selitem, int _nCommandType, boolean _bReadOnly)
+ private void preselectCommand(String _selitem, int _nCommandType, boolean _bReadOnly)
{
if (_selitem.length() > 0)
{
diff --git a/wizards/com/sun/star/wizards/ui/ControlScroller.java b/wizards/com/sun/star/wizards/ui/ControlScroller.java
index afa33bf9e1c5..ed2afa0d38dc 100644
--- a/wizards/com/sun/star/wizards/ui/ControlScroller.java
+++ b/wizards/com/sun/star/wizards/ui/ControlScroller.java
@@ -28,28 +28,28 @@ public abstract class ControlScroller
protected WizardDialog CurUnoDialog;
protected int ncurfieldcount;
- protected int nblockincrement;
+ private int nblockincrement;
private int nlineincrement;
- protected int nscrollvalue = 0;
- protected int ntotfieldcount;
- XScrollBar xScrollBar;
- protected ArrayList<PropertyValue[]> scrollfields;
+ private int nscrollvalue = 0;
+ private int ntotfieldcount;
+ private XScrollBar xScrollBar;
+ private ArrayList<PropertyValue[]> scrollfields;
protected int iCompPosX;
protected int iCompPosY;
protected int iCompWidth;
protected int iCompHeight;
- protected int iStartPosY;
+ private int iStartPosY;
protected short curtabindex;
- int iStep;
+ private int iStep;
protected Integer IStep;
- protected int linedistance;
+ private int linedistance;
int iScrollBarWidth = 10;
- int SORELFIRSTPOSY = 3;
+ private int SORELFIRSTPOSY = 3;
protected int curHelpIndex;
- String sIncSuffix;
+ private String sIncSuffix;
protected ArrayList<Object> ControlGroupVector = new ArrayList<Object>();
- class AdjustmentListenerImpl implements com.sun.star.awt.XAdjustmentListener
+ private class AdjustmentListenerImpl implements com.sun.star.awt.XAdjustmentListener
{
public void disposing(com.sun.star.lang.EventObject eventObject)
@@ -150,7 +150,7 @@ public abstract class ControlScroller
}
}
- protected void fillupControls(boolean binitialize)
+ private void fillupControls(boolean binitialize)
{
for (int a = 0; a < this.nblockincrement; a++)
{
@@ -169,7 +169,7 @@ public abstract class ControlScroller
}
}
- protected void fillupControls(int guiRow)
+ private void fillupControls(int guiRow)
{
PropertyValue[] nameProps = scrollfields.get(guiRow);
PropertyValue[] valueProps = scrollfields.get(guiRow + nscrollvalue);
@@ -186,7 +186,7 @@ public abstract class ControlScroller
}
}
- protected void setScrollValue(int _nscrollvalue)
+ private void setScrollValue(int _nscrollvalue)
{
if (_nscrollvalue >= 0)
{
@@ -297,7 +297,7 @@ public abstract class ControlScroller
}
}
- protected void scrollRowsInfo()
+ private void scrollRowsInfo()
{
int cols =
scrollfields.size() > 0
@@ -320,7 +320,7 @@ public abstract class ControlScroller
* @return the propertyValue object corresponding to
* this control.
*/
- protected PropertyValue fieldInfo(int guiRow, int column)
+ private PropertyValue fieldInfo(int guiRow, int column)
{
if (guiRow + nscrollvalue < scrollfields.size())
{
@@ -334,7 +334,7 @@ public abstract class ControlScroller
}
}
- protected PropertyValue fieldInfo(PropertyValue valueProp, PropertyValue nameProp)
+ private PropertyValue fieldInfo(PropertyValue valueProp, PropertyValue nameProp)
{
if (CurUnoDialog.getDlgNameAccess().hasByName(nameProp.Name))
{
@@ -370,7 +370,7 @@ public abstract class ControlScroller
- protected void setControlData(String controlname, Object newvalue)
+ private void setControlData(String controlname, Object newvalue)
{
Object oControlModel = UnoDialog.getModel(CurUnoDialog.xDlgContainer.getControl(controlname));
String propertyname = UnoDialog.getDisplayProperty(oControlModel);
@@ -380,7 +380,7 @@ public abstract class ControlScroller
}
}
- protected Object getControlData(String controlname)
+ private Object getControlData(String controlname)
{
Object oControlModel = UnoDialog.getModel(CurUnoDialog.xDlgContainer.getControl(controlname));
String propertyname = UnoDialog.getDisplayProperty(oControlModel);
diff --git a/wizards/com/sun/star/wizards/ui/DBLimitedFieldSelection.java b/wizards/com/sun/star/wizards/ui/DBLimitedFieldSelection.java
index 3282282636db..b134b77715f6 100644
--- a/wizards/com/sun/star/wizards/ui/DBLimitedFieldSelection.java
+++ b/wizards/com/sun/star/wizards/ui/DBLimitedFieldSelection.java
@@ -30,14 +30,14 @@ public abstract class DBLimitedFieldSelection
{
protected WizardDialog CurUnoDialog;
- protected String sNoField;
+ private String sNoField;
protected Integer IStep;
protected static final int rowcount = 4;
- protected static final int MAXSELINDEX = rowcount - 1;
+ private static final int MAXSELINDEX = rowcount - 1;
protected short curtabindex;
protected int iCurPosY;
protected int FirstHelpIndex;
- protected int iCompPosX;
+ private int iCompPosX;
public DBLimitedFieldSelection(WizardDialog _CurUnoDialog, int iStep, int _iCompPosX, int iCompPosY, int _FirstHelpIndex)
{
diff --git a/wizards/com/sun/star/wizards/ui/FieldSelection.java b/wizards/com/sun/star/wizards/ui/FieldSelection.java
index 62cfbf051fd0..f20007434f60 100644
--- a/wizards/com/sun/star/wizards/ui/FieldSelection.java
+++ b/wizards/com/sun/star/wizards/ui/FieldSelection.java
@@ -34,8 +34,8 @@ public class FieldSelection
protected boolean AppendMode = false;
protected Integer IStep;
- protected int CompPosY;
- protected int CompHeight;
+ private int CompPosY;
+ private int CompHeight;
private XFieldSelectionListener xFieldSelection;
private int maxfieldcount = 10000000;
@@ -54,7 +54,7 @@ public class FieldSelection
private final static int SOSELFLDSLST = 8;
- class ItemListenerImpl implements com.sun.star.awt.XItemListener
+ private class ItemListenerImpl implements com.sun.star.awt.XItemListener
{
public void itemStateChanged(com.sun.star.awt.ItemEvent EventObject)
@@ -79,7 +79,7 @@ public class FieldSelection
}
}
- class ActionListenerImpl implements com.sun.star.awt.XActionListener
+ private class ActionListenerImpl implements com.sun.star.awt.XActionListener
{
public void disposing(com.sun.star.lang.EventObject eventObject)
@@ -557,7 +557,7 @@ public class FieldSelection
}
}
- public void deselectFields(boolean bMoveAll)
+ private void deselectFields(boolean bMoveAll)
{
String SearchString;
short iOldFieldSelected = xFieldsListBox.getSelectedItemPos();
diff --git a/wizards/com/sun/star/wizards/ui/FilterComponent.java b/wizards/com/sun/star/wizards/ui/FilterComponent.java
index 7ffab7e89439..3543c18639b9 100644
--- a/wizards/com/sun/star/wizards/ui/FilterComponent.java
+++ b/wizards/com/sun/star/wizards/ui/FilterComponent.java
@@ -59,46 +59,46 @@ public class FilterComponent
private final String slblFieldNames;
private final String slblOperators;
private final String slblValue;
- WizardDialog CurUnoDialog;
+ private WizardDialog CurUnoDialog;
private static final int BaseID = 2300;
private final String sIncSuffix;
private final ControlRow[] oControlRows;
private final String sDuplicateCondition;
- static final int SOOPTORMODE = 100;
- static final int SOOPTANDMODE = 101;
- QueryMetaData oQueryMetaData;
- int iDateFormat;
- int iTimeFormat;
+ private static final int SOOPTORMODE = 100;
+ private static final int SOOPTANDMODE = 101;
+ private QueryMetaData oQueryMetaData;
+ private int iDateFormat;
+ private int iTimeFormat;
private PropertyValue[][] filterconditions;
private short curtabindex;
- static final int SO_FIRSTFIELDNAME = 1;
- static final int SO_SECONDFIELDNAME = 2;
- static final int SO_THIRDFIELDNAME = 3;
- static final int SO_FOURTHFIELDNAME = 4;
- int[] SO_FIELDNAMELIST = new int[]
+ private static final int SO_FIRSTFIELDNAME = 1;
+ private static final int SO_SECONDFIELDNAME = 2;
+ private static final int SO_THIRDFIELDNAME = 3;
+ private static final int SO_FOURTHFIELDNAME = 4;
+ private int[] SO_FIELDNAMELIST = new int[]
{
SO_FIRSTFIELDNAME, SO_SECONDFIELDNAME, SO_THIRDFIELDNAME, SO_FOURTHFIELDNAME
};
- static final int SO_FIRSTCONDITION = 5;
- static final int SO_SECONDCONDITION = 6;
- static final int SO_THIRDCONDITION = 7;
- static final int SO_FOURTHCONDITION = 8;
- int[] SO_CONDITIONLIST = new int[]
+ private static final int SO_FIRSTCONDITION = 5;
+ private static final int SO_SECONDCONDITION = 6;
+ private static final int SO_THIRDCONDITION = 7;
+ private static final int SO_FOURTHCONDITION = 8;
+ private int[] SO_CONDITIONLIST = new int[]
{
SO_FIRSTCONDITION, SO_SECONDCONDITION, SO_THIRDCONDITION, SO_FOURTHCONDITION
};
- static final int SO_FIRSTTEXTFIELD = 1;
- static final int SO_SECONDTEXTFIELD = 2;
- static final int SO_THIRDTEXTFIELD = 3;
- static final int SO_FOURTHTEXTFIELD = 4;
- int[] SO_TEXTFIELDLIST = new int[]
+ private static final int SO_FIRSTTEXTFIELD = 1;
+ private static final int SO_SECONDTEXTFIELD = 2;
+ private static final int SO_THIRDTEXTFIELD = 3;
+ private static final int SO_FOURTHTEXTFIELD = 4;
+ private int[] SO_TEXTFIELDLIST = new int[]
{
SO_FIRSTTEXTFIELD, SO_SECONDTEXTFIELD, SO_THIRDTEXTFIELD, SO_FOURTHTEXTFIELD
};
- static final int SO_FIRSTBOOLFIELDNAME = 256 + 1;
- static final int SO_SECONDBOOLFIELDNAME = 256 + 2;
- static final int SO_THIRDBOOLFIELDNAME = 256 + 3;
- static final int SO_FOURTHBOOLFIELDNAME = 256 + 4;
+ private static final int SO_FIRSTBOOLFIELDNAME = 256 + 1;
+ private static final int SO_SECONDBOOLFIELDNAME = 256 + 2;
+ private static final int SO_THIRDBOOLFIELDNAME = 256 + 3;
+ private static final int SO_FOURTHBOOLFIELDNAME = 256 + 4;
int SOI_MATCHALL = 0;
int SOI_MATCHANY = 1;
int curHelpID;
@@ -173,7 +173,7 @@ public class FilterComponent
}
- public static String getIndexNumber(String _sStr)
+ private static String getIndexNumber(String _sStr)
{
return _sStr.substring(_sStr.length() - 1, _sStr.length());
}
@@ -499,17 +499,17 @@ public class FilterComponent
- final class ControlRow
+ private final class ControlRow
{
private final static int SOLSTFIELDNAME = 3;
private final static int SOLSTOPERATOR = 4;
private final static int SOTXTVALUE = 5;
- protected XInterface[] ControlElements = new XInterface[6];
+ private XInterface[] ControlElements = new XInterface[6];
private boolean m_bEnabled;
- String[] FieldNames;
+ private String[] FieldNames;
- protected ControlRow(int iCompPosX, int iCompPosY, int Index, boolean _bEnabled, int _firstRowHelpID)
+ private ControlRow(int iCompPosX, int iCompPosY, int Index, boolean _bEnabled, int _firstRowHelpID)
{
int nFieldWidth = 71;
int nOperatorWidth = 70;
@@ -693,7 +693,7 @@ public class FilterComponent
* @return true if the current condition is complete, all needed fields are filled with values.
* So we can enable the next.
*/
- boolean isConditionComplete()
+ private boolean isConditionComplete()
{
try
{
@@ -737,7 +737,7 @@ public class FilterComponent
}
}
- protected void setCondition(PropertyValue _filtercondition)
+ private void setCondition(PropertyValue _filtercondition)
{
try
{
@@ -807,13 +807,13 @@ public class FilterComponent
}
}
- protected void setFieldNames(String[] _FieldNames)
+ private void setFieldNames(String[] _FieldNames)
{
Helper.setUnoPropertyValue(UnoDialog.getModel(ControlElements[SOLSTFIELDNAME]), PropertyNames.STRING_ITEM_LIST, _FieldNames);
FieldNames = _FieldNames;
}
- protected boolean isEnabled()
+ private boolean isEnabled()
{
return m_bEnabled;
}
@@ -860,7 +860,7 @@ public class FilterComponent
}
}
- protected String getSelectedFieldName()
+ private String getSelectedFieldName()
{
try
{
@@ -876,7 +876,7 @@ public class FilterComponent
// TODO: check if it is really useful to match the indices of the listbox the API constants
// =, <>, <, >, <=, >=, like, !like, is null, !is null
- protected short getSelectedOperator()
+ private short getSelectedOperator()
{
try
{
@@ -915,7 +915,7 @@ public class FilterComponent
}
// TODO make a difference between Text and Numbers
- protected Object getValue()
+ private Object getValue()
{
return (Helper.getUnoPropertyValue(UnoDialog.getModel(ControlElements[SOTXTVALUE]), "EffectiveValue"));
}
diff --git a/wizards/com/sun/star/wizards/ui/PeerConfig.java b/wizards/com/sun/star/wizards/ui/PeerConfig.java
index b25ebe6a6a1f..0250f2e6f816 100644
--- a/wizards/com/sun/star/wizards/ui/PeerConfig.java
+++ b/wizards/com/sun/star/wizards/ui/PeerConfig.java
@@ -33,9 +33,9 @@ public class PeerConfig implements XWindowListener
{
private final ArrayList<PeerTask> m_aPeerTasks = new ArrayList<PeerTask>();
- ArrayList<ControlTask> aControlTasks = new ArrayList<ControlTask>();
- ArrayList<ImageUrlTask> aImageUrlTasks = new ArrayList<ImageUrlTask>();
- UnoDialog oUnoDialog = null;
+ private ArrayList<ControlTask> aControlTasks = new ArrayList<ControlTask>();
+ private ArrayList<ImageUrlTask> aImageUrlTasks = new ArrayList<ImageUrlTask>();
+ private UnoDialog oUnoDialog = null;
public PeerConfig(UnoDialog _oUnoDialog)
{
@@ -46,9 +46,9 @@ public class PeerConfig implements XWindowListener
class PeerTask
{
- XControl xControl;
- String[] propnames;
- Object[] propvalues;
+ private XControl xControl;
+ private String[] propnames;
+ private Object[] propvalues;
public PeerTask(XControl _xControl, String[] propNames_, Object[] propValues_)
{
@@ -159,7 +159,7 @@ public class PeerConfig implements XWindowListener
- public void setPeerProperties(XControl _xControl, String[] propnames, Object[] propvalues)
+ private void setPeerProperties(XControl _xControl, String[] propnames, Object[] propvalues)
{
PeerTask oPeerTask = new PeerTask(_xControl, propnames, propvalues);
this.m_aPeerTasks.add(oPeerTask);
diff --git a/wizards/com/sun/star/wizards/ui/SortingComponent.java b/wizards/com/sun/star/wizards/ui/SortingComponent.java
index 587c38d451fc..a15f3a78ce20 100644
--- a/wizards/com/sun/star/wizards/ui/SortingComponent.java
+++ b/wizards/com/sun/star/wizards/ui/SortingComponent.java
@@ -27,23 +27,23 @@ import java.util.ArrayList;
public class SortingComponent
{
- WizardDialog CurUnoDialog;
- int MaxSortIndex = -1;
- static String sNoSorting;
- static String sSortCriteriaisduplicate;
- static String[] sSortHeader = new String[4];
- static String[] sSortAscend = new String[4];
- static String[] sSortDescend = new String[4];
- public int MAXSORTCRITERIAINDEX = 3;
- static final int SOFIRSTSORTLST = 0;
- static final int SOSECSORTLST = 1;
- static final int SOTHIRDSORTLST = 2;
- static final int SOFOURTHSORTLST = 3;
- static final int[] SOSORTLST = new int[]
+ private WizardDialog CurUnoDialog;
+ private int MaxSortIndex = -1;
+ private static String sNoSorting;
+ private static String sSortCriteriaisduplicate;
+ private static String[] sSortHeader = new String[4];
+ private static String[] sSortAscend = new String[4];
+ private static String[] sSortDescend = new String[4];
+ private int MAXSORTCRITERIAINDEX = 3;
+ private static final int SOFIRSTSORTLST = 0;
+ private static final int SOSECSORTLST = 1;
+ private static final int SOTHIRDSORTLST = 2;
+ private static final int SOFOURTHSORTLST = 3;
+ private static final int[] SOSORTLST = new int[]
{
SOFIRSTSORTLST, SOSECSORTLST, SOTHIRDSORTLST, SOFOURTHSORTLST
};
- XListBox[] xSortListBox = new XListBox[4];
+ private XListBox[] xSortListBox = new XListBox[4];
class ItemListenerImpl implements com.sun.star.awt.XItemListener
{
@@ -191,7 +191,7 @@ public class SortingComponent
* sets the controls of a Sorting criterion to readonly or not.
* @param _index index of the Sorting criterion
*/
- public void setReadOnly(int _index, boolean _breadonly)
+ private void setReadOnly(int _index, boolean _breadonly)
{
CurUnoDialog.setControlProperty("lstSort" + Integer.toString(_index + 1), PropertyNames.READ_ONLY, Boolean.valueOf(_breadonly));
}
diff --git a/wizards/com/sun/star/wizards/ui/TitlesComponent.java b/wizards/com/sun/star/wizards/ui/TitlesComponent.java
index 7fc279c778f8..1041568fb26e 100644
--- a/wizards/com/sun/star/wizards/ui/TitlesComponent.java
+++ b/wizards/com/sun/star/wizards/ui/TitlesComponent.java
@@ -29,13 +29,13 @@ import java.util.*;
public class TitlesComponent extends ControlScroller
{
- int iLabelPosX;
- static final int iRelLabelPosXDist = 6;
- public String[] fieldnames;
- public Map<String, String> fieldtitleset;
- public String[] fieldtitles;
- static final String SOLABELPREFIX = "lblColumnName_";
- static final String SOTITLEPREFIX = "lblTitleName_";
+ private int iLabelPosX;
+ private static final int iRelLabelPosXDist = 6;
+ private String[] fieldnames;
+ private Map<String, String> fieldtitleset;
+ private String[] fieldtitles;
+ private static final String SOLABELPREFIX = "lblColumnName_";
+ private static final String SOTITLEPREFIX = "lblTitleName_";
public TitlesComponent(WizardDialog _CurUnoDialog, int _iStep, int _iCompPosX, int _iCompPosY, int _iCompWidth, int _uitextfieldcount, String _slblColumnNames, String _slblColumnTitles, int _firsthelpindex)
{
@@ -86,7 +86,7 @@ public class TitlesComponent extends ControlScroller
class ControlRow
{
- XTextComponent xTextComponent;
+ private XTextComponent xTextComponent;
public ControlRow(int _index, int _iCompPosY)
{
diff --git a/wizards/com/sun/star/wizards/ui/UnoDialog.java b/wizards/com/sun/star/wizards/ui/UnoDialog.java
index d9ccac6fd77d..0690c72478db 100644
--- a/wizards/com/sun/star/wizards/ui/UnoDialog.java
+++ b/wizards/com/sun/star/wizards/ui/UnoDialog.java
@@ -36,7 +36,7 @@ public class UnoDialog
public XMultiServiceFactory xMSF;
public XMultiServiceFactory MSFDialogModel;
- public XNameContainer xDlgNames;
+ private XNameContainer xDlgNames;
public XControlContainer xDlgContainer;
private XNameAccess m_xDlgNameAccess;
public XControl xControl;
@@ -45,8 +45,8 @@ public class UnoDialog
public XWindow xWindow;
public XComponent xComponent;
public XInterface xDialogModel;
- public XInterface xUnoDialog;
- public XVclWindowPeer xVclWindowPeer;
+ private XInterface xUnoDialog;
+ private XVclWindowPeer xVclWindowPeer;
public HashMap<String, Integer> ControlList;
public Resource m_oResource;
public XWindowPeer xWindowPeer = null;
@@ -98,7 +98,7 @@ public class UnoDialog
return iKey;
}
- public void createPeerConfiguration()
+ private void createPeerConfiguration()
{
m_oPeerConfig = new PeerConfig(this);
}
@@ -316,7 +316,7 @@ public class UnoDialog
return insertEditField("com.sun.star.awt.UnoControlFormattedFieldModel", sName, iControlKey, xTextListener, sProperties, sValues);
}
- public XTextComponent insertEditField(String ServiceName, String sName, int iControlKey, XTextListener xTextListener, String[] sProperties, Object[] sValues)
+ private XTextComponent insertEditField(String ServiceName, String sName, int iControlKey, XTextListener xTextListener, String[] sProperties, Object[] sValues)
{
try
{
@@ -626,7 +626,7 @@ public class UnoDialog
setEnabled(control, enabled ? Boolean.TRUE : Boolean.FALSE);
}
- public static void setEnabled(Object control, Boolean enabled)
+ private static void setEnabled(Object control, Boolean enabled)
{
Helper.setUnoPropertyValue(getModel(control), PropertyNames.PROPERTY_ENABLED, enabled);
}
@@ -635,7 +635,7 @@ public class UnoDialog
* @param oControlModel the model of a control
* @return the LabelType according to UIConsts.CONTROLTYPE
*/
- public static int getControlModelType(Object oControlModel)
+ private static int getControlModelType(Object oControlModel)
{
XServiceInfo xServiceInfo = UnoRuntime.queryInterface(XServiceInfo.class, oControlModel);
if (xServiceInfo.supportsService("com.sun.star.awt.UnoControlFixedTextModel"))
@@ -729,7 +729,7 @@ public class UnoDialog
* @param itype The type of the control conforming to UIConst.ControlType
* @return the name of the property that contains the value of a controlmodel
*/
- public static String getDisplayProperty(int itype)
+ private static String getDisplayProperty(int itype)
{
switch (itype)
{
@@ -783,7 +783,7 @@ public class UnoDialog
}
private Boolean BisHighContrastModeActivated = null;
- public boolean isHighContrastModeActivated()
+ private boolean isHighContrastModeActivated()
{
if (xVclWindowPeer != null)
{
@@ -819,20 +819,20 @@ public class UnoDialog
}
}
- public static int getRedColorShare(int _nColor)
+ private static int getRedColorShare(int _nColor)
{
int nRed = _nColor / 65536;
return nRed;
}
- public static int getGreenColorShare(int _nColor)
+ private static int getGreenColorShare(int _nColor)
{
int nRedModulo = _nColor % 65536;
int nGreen = nRedModulo / 256;
return nGreen;
}
- public static int getBlueColorShare(int _nColor)
+ private static int getBlueColorShare(int _nColor)
{
int nRedModulo = _nColor % 65536;
int nGreenModulo = (nRedModulo % 256);
diff --git a/wizards/com/sun/star/wizards/ui/UnoDialog2.java b/wizards/com/sun/star/wizards/ui/UnoDialog2.java
index 59fa0bc5a456..0e70598e696f 100644
--- a/wizards/com/sun/star/wizards/ui/UnoDialog2.java
+++ b/wizards/com/sun/star/wizards/ui/UnoDialog2.java
@@ -114,7 +114,7 @@ public class UnoDialog2 extends UnoDialog
return (XTextComponent) insertEditField(sName, textListener, "com.sun.star.awt.UnoControlEditModel", sPropNames, oPropValues, XTextComponent.class);
}
- public XControl insertImage(String sName, String[] sPropNames, Object[] oPropValues)
+ private XControl insertImage(String sName, String[] sPropNames, Object[] oPropValues)
{
return (XControl) insertControlModel2("com.sun.star.awt.UnoControlImageControlModel", sName, sPropNames, oPropValues, XControl.class);
}
@@ -160,7 +160,7 @@ public class UnoDialog2 extends UnoDialog
- public Object insertControlModel2(String serviceName, String componentName, String[] sPropNames, Object[] oPropValues)
+ private Object insertControlModel2(String serviceName, String componentName, String[] sPropNames, Object[] oPropValues)
{
try
{
@@ -179,7 +179,7 @@ public class UnoDialog2 extends UnoDialog
return xDlgContainer.getControl(componentName);
}
- public Object insertControlModel2(String serviceName, String componentName, String[] sPropNames, Object[] oPropValues, Class<? extends XInterface> type)
+ private Object insertControlModel2(String serviceName, String componentName, String[] sPropNames, Object[] oPropValues, Class<? extends XInterface> type)
{
return UnoRuntime.queryInterface(type, insertControlModel2(serviceName, componentName, sPropNames, oPropValues));
}
diff --git a/wizards/com/sun/star/wizards/ui/WizardDialog.java b/wizards/com/sun/star/wizards/ui/WizardDialog.java
index bd2b896880b4..3218daed72d1 100644
--- a/wizards/com/sun/star/wizards/ui/WizardDialog.java
+++ b/wizards/com/sun/star/wizards/ui/WizardDialog.java
@@ -51,8 +51,8 @@ public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeL
private int nNewStep = 1;
private int nOldStep = 1;
private int nMaxStep = 1;
- XItemEventBroadcaster xRoadmapBroadcaster;
- String[] sRMItemLabels;
+ private XItemEventBroadcaster xRoadmapBroadcaster;
+ private String[] sRMItemLabels;
private Object oRoadmap;
private XSingleServiceFactory xSSFRoadmap;
public XIndexContainer xIndexContRoadmap;
@@ -82,7 +82,7 @@ public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeL
return oWizardResource;
}
- public void activate()
+ private void activate()
{
try
{
@@ -146,7 +146,7 @@ public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeL
Helper.setUnoPropertyValue(oRoadmap, "Complete", Boolean.valueOf(bComplete));
}
- public boolean isRoadmapComplete()
+ private boolean isRoadmapComplete()
{
try
{
@@ -171,7 +171,7 @@ public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeL
}
}
- public int getCurrentRoadmapItemID()
+ private int getCurrentRoadmapItemID()
{
try
{
@@ -350,7 +350,7 @@ public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeL
abstract protected void enterStep(int nOldStep, int nNewStep);
- protected void changeToStep(int nNewStep)
+ private void changeToStep(int nNewStep)
{
Helper.setUnoPropertyValue(xDialogModel, PropertyNames.PROPERTY_STEP, Integer.valueOf(nNewStep));
setCurrentRoadmapItemID((short) (nNewStep));
@@ -509,7 +509,7 @@ public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeL
enableFinishButton(_bEnableFinish);
}
- public void enableBackButton(boolean enabled)
+ private void enableBackButton(boolean enabled)
{
setControlProperty("btnWizardBack", PropertyNames.PROPERTY_ENABLED, enabled ? Boolean.TRUE : Boolean.FALSE);
}
@@ -553,7 +553,7 @@ public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeL
}
}
- public boolean isStepEnabled(int _nStep)
+ private boolean isStepEnabled(int _nStep)
{
try
{
@@ -599,7 +599,7 @@ public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeL
}
//TODO discuss with rp
- protected int getNextAvailableStep()
+ private int getNextAvailableStep()
{
if (isRoadmapComplete())
{
@@ -702,12 +702,12 @@ public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeL
xDialog.endExecute();
}
- protected void callHelp()
+ private void callHelp()
{
//should be overridden by extending class
}
- public void removeTerminateListener()
+ private void removeTerminateListener()
{
if (bTerminateListenermustberemoved)
{
diff --git a/wizards/com/sun/star/wizards/ui/event/DataAware.java b/wizards/com/sun/star/wizards/ui/event/DataAware.java
index 5b9ad62a537f..cc34373f04ee 100644
--- a/wizards/com/sun/star/wizards/ui/event/DataAware.java
+++ b/wizards/com/sun/star/wizards/ui/event/DataAware.java
@@ -38,12 +38,12 @@ public abstract class DataAware {
/**
* this is the data object.
*/
- protected Object dataObject;
+ private Object dataObject;
/**
* A Value Object knows how to get/set a value
* from/to the data object.
*/
- protected Value value;
+ private Value value;
/**
* creates a DataAware object for the given data object and Value object.
@@ -58,7 +58,7 @@ public abstract class DataAware {
/**
* returns the data object.
*/
- public Object getDataObject() {
+ private Object getDataObject() {
return dataObject;
}
@@ -69,7 +69,7 @@ public abstract class DataAware {
* another kind of Data is needed.
* @param newValue the new value to set to the DataObject.
*/
- protected void setToData(Object newValue) {
+ private void setToData(Object newValue) {
value.set(newValue,getDataObject());
}
@@ -79,7 +79,7 @@ public abstract class DataAware {
* the value object.
* @return the current value of the data object.
*/
- protected Object getFromData() {
+ private Object getFromData() {
return value.get(getDataObject());
}
@@ -99,7 +99,7 @@ public abstract class DataAware {
* enables
* @param currentValue
*/
- protected void enableControls(Object currentValue) {
+ private void enableControls(Object currentValue) {
}
/**
@@ -126,7 +126,7 @@ public abstract class DataAware {
* @param b second object to compare.
* @return true if both are null or both are equal.
*/
- protected boolean equals(Object a, Object b) {
+ private boolean equals(Object a, Object b) {
if (a == null && b == null)
return true;
if (a == null || b == null)