diff options
author | Noel Grandin <noel@peralex.com> | 2014-12-10 15:36:24 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-12-11 06:09:03 +0000 |
commit | 7557f23b31dcfb4d86c122bb34d9675c0db9a694 (patch) | |
tree | 5feb7be2b0841d8ee60d935cf2e29e9a01a31a27 /wizards/com/sun/star/wizards/text | |
parent | 808fd5fbd8868dfd95c8a38676815798fa2b79c4 (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/com/sun/star/wizards/text')
4 files changed, 11 insertions, 11 deletions
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 { |