summaryrefslogtreecommitdiff
path: root/unotest
diff options
context:
space:
mode:
Diffstat (limited to 'unotest')
-rw-r--r--unotest/source/java/org/openoffice/test/tools/OfficeDocument.java8
-rw-r--r--unotest/source/java/org/openoffice/test/tools/OfficeDocumentView.java4
-rw-r--r--unotest/source/java/org/openoffice/test/tools/SpreadsheetDocument.java2
3 files changed, 7 insertions, 7 deletions
diff --git a/unotest/source/java/org/openoffice/test/tools/OfficeDocument.java b/unotest/source/java/org/openoffice/test/tools/OfficeDocument.java
index 4d5630824e90..fe3035fcefa1 100644
--- a/unotest/source/java/org/openoffice/test/tools/OfficeDocument.java
+++ b/unotest/source/java/org/openoffice/test/tools/OfficeDocument.java
@@ -61,7 +61,7 @@ public class OfficeDocument
}
/* ------------------------------------------------------------------ */
- protected static XComponent implLoadAsComponent( XMultiServiceFactory orb, String documentOrFactoryURL, final PropertyValue[] i_args ) throws com.sun.star.uno.Exception
+ private static XComponent implLoadAsComponent( XMultiServiceFactory orb, String documentOrFactoryURL, final PropertyValue[] i_args ) throws com.sun.star.uno.Exception
{
XComponentLoader aLoader = UnoRuntime.queryInterface( XComponentLoader.class,
orb.createInstance( "com.sun.star.frame.Desktop" ) );
@@ -147,7 +147,7 @@ public class OfficeDocument
}
/* ------------------------------------------------------------------ */
- public <T> T query( Class<T> aInterfaceClass )
+ private <T> T query( Class<T> aInterfaceClass )
{
return UnoRuntime.queryInterface( aInterfaceClass, m_documentComponent );
}
@@ -207,7 +207,7 @@ public class OfficeDocument
/* ------------------------------------------------------------------ */
/** returns a URL which can be used to create a document of a certain type
*/
- public static String getDocumentFactoryURL( DocumentType eType )
+ private static String getDocumentFactoryURL( DocumentType eType )
{
if ( eType == DocumentType.WRITER )
return "private:factory/swriter";
@@ -227,7 +227,7 @@ public class OfficeDocument
/* ------------------------------------------------------------------ */
/** classifies a document
*/
- public DocumentType classify( )
+ private DocumentType classify( )
{
XServiceInfo xSI = UnoRuntime.queryInterface( XServiceInfo.class, m_documentComponent );
diff --git a/unotest/source/java/org/openoffice/test/tools/OfficeDocumentView.java b/unotest/source/java/org/openoffice/test/tools/OfficeDocumentView.java
index e309504a42c0..fee1da989688 100644
--- a/unotest/source/java/org/openoffice/test/tools/OfficeDocumentView.java
+++ b/unotest/source/java/org/openoffice/test/tools/OfficeDocumentView.java
@@ -68,7 +68,7 @@ public class OfficeDocumentView
@return
the dispatcher for the URL in question
*/
- public XDispatch getDispatcher( URL[] aURL ) throws com.sun.star.uno.Exception
+ private XDispatch getDispatcher( URL[] aURL ) throws com.sun.star.uno.Exception
{
XDispatch xReturn = null;
@@ -109,7 +109,7 @@ public class OfficeDocumentView
}
/* ------------------------------------------------------------------ */
- public boolean dispatch( final String i_url, final PropertyValue[] i_arguments ) throws com.sun.star.uno.Exception
+ private boolean dispatch( final String i_url, final PropertyValue[] i_arguments ) throws com.sun.star.uno.Exception
{
URL[] completeURL = new URL[] { new URL() };
completeURL[0].Complete = i_url;
diff --git a/unotest/source/java/org/openoffice/test/tools/SpreadsheetDocument.java b/unotest/source/java/org/openoffice/test/tools/SpreadsheetDocument.java
index 13a82db8ecfb..7db4291034b4 100644
--- a/unotest/source/java/org/openoffice/test/tools/SpreadsheetDocument.java
+++ b/unotest/source/java/org/openoffice/test/tools/SpreadsheetDocument.java
@@ -44,7 +44,7 @@ public class SpreadsheetDocument extends OfficeDocument
/* ------------------------------------------------------------------ */
/** returns the sheets collection
*/
- public XSpreadsheets getSheets()
+ private XSpreadsheets getSheets()
{
XSpreadsheetDocument spreadsheetDoc = UnoRuntime.queryInterface( XSpreadsheetDocument.class, getDocument() );
return spreadsheetDoc.getSheets();