summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/OfficeDev
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-08 11:36:04 +0200
committerNoel Grandin <noel@peralex.com>2014-08-13 08:49:22 +0200
commitda677dfd59c2b551f3335ee0a5d5dfb33f9869c5 (patch)
tree9aa09066c95935117bf405b119ed9f89f448a54d /odk/examples/DevelopersGuide/OfficeDev
parent14d1a11ec4a7ed0deeac522403248536e8d23f57 (diff)
java: reduce scope, make fields private
found by UCDetector Change-Id: I7f97e15667159cf8ee776e8f32fdcdec8ec00ed6
Diffstat (limited to 'odk/examples/DevelopersGuide/OfficeDev')
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java6
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/JavaWindowPeerFake.java2
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/FilterOptions.java2
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/Linguistic/OneInstanceFactory.java8
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/Linguistic/PropChgHelper.java8
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/Linguistic/XHyphenatedWord_impl.java12
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/Linguistic/XMeaning_impl.java4
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/Linguistic/XPossibleHyphens_impl.java8
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/Linguistic/XSpellAlternatives_impl.java8
9 files changed, 29 insertions, 29 deletions
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java
index ff88ebe3ce08..c06dcce3bde3 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java
@@ -176,11 +176,11 @@ public class CustomizeView extends JPanel
com.sun.star.lang.XEventListener
{
/// URL, to toogle the requested UI item
- String m_sURL;
+ private String m_sURL;
/// name of the property which must be used in combination with the URL
- String m_sProp;
+ private String m_sProp;
/// we must use this frame to dispatch a request
- com.sun.star.frame.XFrame m_xFrame;
+ private com.sun.star.frame.XFrame m_xFrame;
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/JavaWindowPeerFake.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/JavaWindowPeerFake.java
index 4405f05ebf09..2d07f9642d9c 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/JavaWindowPeerFake.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/JavaWindowPeerFake.java
@@ -40,7 +40,7 @@
class JavaWindowPeerFake implements com.sun.star.awt.XSystemDependentWindowPeer,
com.sun.star.awt.XWindowPeer
{
- NativeView maView;
+ private NativeView maView;
public JavaWindowPeerFake(NativeView aNative)
{
diff --git a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/FilterOptions.java b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/FilterOptions.java
index 66ac7893f835..da283d365b98 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/FilterOptions.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/FilterOptions.java
@@ -61,7 +61,7 @@ public class FilterOptions
public com.sun.star.io.XInputStream m_xInput ;
public com.sun.star.io.XOutputStream m_xOutput ;
public boolean m_bStreamOwner ;
- public String m_sURL ;
+ private String m_sURL ;
public String m_sOld ;
public String m_sNew ;
public boolean m_bCaseChange ;
diff --git a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/OneInstanceFactory.java b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/OneInstanceFactory.java
index 7025fdd7d648..9c9978da3ac2 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/OneInstanceFactory.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/OneInstanceFactory.java
@@ -52,10 +52,10 @@ public class OneInstanceFactory implements
XSingleComponentFactory,
XServiceInfo
{
- Class aMyClass;
- String aSvcImplName;
- String[] aSupportedSvcNames;
- XInterface xInstantiatedService;
+ private Class aMyClass;
+ private String aSvcImplName;
+ private String[] aSupportedSvcNames;
+ private XInterface xInstantiatedService;
public OneInstanceFactory(
Class aMyClass,
diff --git a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/PropChgHelper.java b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/PropChgHelper.java
index b304bedc920a..2352ff8cceeb 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/PropChgHelper.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/PropChgHelper.java
@@ -47,10 +47,10 @@ public class PropChgHelper implements
XPropertyChangeListener,
XLinguServiceEventBroadcaster
{
- XInterface xEvtSource;
- String[] aPropNames;
- XPropertySet xPropSet;
- ArrayList<XLinguServiceEventListener> aLngSvcEvtListeners;
+ private XInterface xEvtSource;
+ private String[] aPropNames;
+ private XPropertySet xPropSet;
+ private ArrayList<XLinguServiceEventListener> aLngSvcEvtListeners;
public PropChgHelper(
XInterface xEvtSource,
diff --git a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/XHyphenatedWord_impl.java b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/XHyphenatedWord_impl.java
index 039b67f89f09..01b9acd7f9c9 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/XHyphenatedWord_impl.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/XHyphenatedWord_impl.java
@@ -37,12 +37,12 @@ import com.sun.star.lang.Locale;
public class XHyphenatedWord_impl implements
com.sun.star.linguistic2.XHyphenatedWord
{
- String aWord;
- String aHyphenatedWord;
- short nHyphenPos;
- short nHyphenationPos;
- Locale aLang;
- boolean bIsAltSpelling;
+ private String aWord;
+ private String aHyphenatedWord;
+ private short nHyphenPos;
+ private short nHyphenationPos;
+ private Locale aLang;
+ private boolean bIsAltSpelling;
public XHyphenatedWord_impl(
String aWord,
diff --git a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/XMeaning_impl.java b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/XMeaning_impl.java
index 133def0e4b0a..0df2eb430b09 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/XMeaning_impl.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/XMeaning_impl.java
@@ -37,8 +37,8 @@
public class XMeaning_impl implements
com.sun.star.linguistic2.XMeaning
{
- String aMeaning;
- String[] aSynonyms;
+ private String aMeaning;
+ private String[] aSynonyms;
public XMeaning_impl ( String aMeaning, String[] aSynonyms )
{
diff --git a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/XPossibleHyphens_impl.java b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/XPossibleHyphens_impl.java
index 11eb33fff6f0..cf59d407bf13 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/XPossibleHyphens_impl.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/XPossibleHyphens_impl.java
@@ -37,10 +37,10 @@ import com.sun.star.lang.Locale;
public class XPossibleHyphens_impl implements
com.sun.star.linguistic2.XPossibleHyphens
{
- String aWord;
- String aHyphWord;
- short[] aOrigHyphenPos;
- Locale aLang;
+ private String aWord;
+ private String aHyphWord;
+ private short[] aOrigHyphenPos;
+ private Locale aLang;
public XPossibleHyphens_impl(
String aWord,
diff --git a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/XSpellAlternatives_impl.java b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/XSpellAlternatives_impl.java
index 9b3d671a7b93..ae26a447ce55 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/XSpellAlternatives_impl.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/XSpellAlternatives_impl.java
@@ -38,10 +38,10 @@ import com.sun.star.lang.Locale;
public class XSpellAlternatives_impl implements
com.sun.star.linguistic2.XSpellAlternatives
{
- String aWord;
- Locale aLanguage;
- String[] aAlt; // list of alternatives, may be empty.
- short nType; // type of failure
+ private String aWord;
+ private Locale aLanguage;
+ private String[] aAlt; // list of alternatives, may be empty.
+ private short nType; // type of failure
public XSpellAlternatives_impl(
String aWord,