diff options
author | Noel Grandin <noel@peralex.com> | 2012-09-07 13:39:37 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-09-10 23:43:38 +0200 |
commit | 6bf09ecf1d97455af4a07ae3564886ee69e0a33b (patch) | |
tree | 0a6664ddbb9df2758d69b77ebcac6a9089f97407 /odk/examples/DevelopersGuide/Charts | |
parent | 0f1dba83596b5e8e19203892cb1334b6bbe8f147 (diff) |
Java cleanup, remove unnecessary imports
I guess I missed some last time :-)
Change-Id: I164a8baa07850f783b8cdf2e7f3eeaac53a3d29b
Diffstat (limited to 'odk/examples/DevelopersGuide/Charts')
8 files changed, 0 insertions, 115 deletions
diff --git a/odk/examples/DevelopersGuide/Charts/CalcHelper.java b/odk/examples/DevelopersGuide/Charts/CalcHelper.java index c7a82f327118..9e5f7430fd34 100644 --- a/odk/examples/DevelopersGuide/Charts/CalcHelper.java +++ b/odk/examples/DevelopersGuide/Charts/CalcHelper.java @@ -36,22 +36,8 @@ import java.util.Random; -// base classes -import com.sun.star.uno.XInterface; import com.sun.star.uno.UnoRuntime; -import com.sun.star.lang.*; - -// factory for creating components -import com.sun.star.comp.servicemanager.ServiceManager; import com.sun.star.lang.XMultiServiceFactory; -import com.sun.star.bridge.XUnoUrlResolver; -import com.sun.star.uno.XNamingService; -import com.sun.star.frame.XDesktop; -import com.sun.star.frame.XComponentLoader; - -// property access -import com.sun.star.beans.*; - // container access import com.sun.star.container.*; @@ -63,8 +49,6 @@ import com.sun.star.text.XText; import com.sun.star.document.XEmbeddedObjectSupplier; import com.sun.star.frame.XModel; -import com.sun.star.frame.XController; - // base graphics things import com.sun.star.awt.Point; import com.sun.star.awt.Size; @@ -73,8 +57,6 @@ import com.sun.star.awt.Rectangle; // Exceptions import com.sun.star.uno.RuntimeException; import com.sun.star.container.NoSuchElementException; -import com.sun.star.beans.UnknownPropertyException; -import com.sun.star.lang.IndexOutOfBoundsException; // __________ Implementation __________ diff --git a/odk/examples/DevelopersGuide/Charts/ChartHelper.java b/odk/examples/DevelopersGuide/Charts/ChartHelper.java index 0cffc0e3e954..da61cb36377e 100644 --- a/odk/examples/DevelopersGuide/Charts/ChartHelper.java +++ b/odk/examples/DevelopersGuide/Charts/ChartHelper.java @@ -35,14 +35,11 @@ // __________ Imports __________ -// base classes -import com.sun.star.uno.XInterface; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.Any; // factory for creating components import com.sun.star.lang.XMultiServiceFactory; -import com.sun.star.lang.XComponent; import com.sun.star.beans.XPropertySet; // application specific classes @@ -54,20 +51,10 @@ import com.sun.star.text.XTextDocument; import com.sun.star.text.XTextContent; import com.sun.star.text.XTextCursor; import com.sun.star.text.XText; -//import com.sun.star.text.VertOrientation; -//import com.sun.star.text.HoriOrientation; -import com.sun.star.document.XEmbeddedObjectSupplier; - // base graphics things import com.sun.star.awt.Point; import com.sun.star.awt.Size; -// Exceptions -import com.sun.star.uno.RuntimeException; -import com.sun.star.container.NoSuchElementException; -import com.sun.star.beans.UnknownPropertyException; -import com.sun.star.lang.IndexOutOfBoundsException; - // __________ Implementation __________ /** Helper for creating an OLE chart diff --git a/odk/examples/DevelopersGuide/Charts/ChartInCalc.java b/odk/examples/DevelopersGuide/Charts/ChartInCalc.java index 06f571bec304..28e6266638fa 100644 --- a/odk/examples/DevelopersGuide/Charts/ChartInCalc.java +++ b/odk/examples/DevelopersGuide/Charts/ChartInCalc.java @@ -34,8 +34,6 @@ // __________ Imports __________ -// base classes -import com.sun.star.uno.XInterface; import com.sun.star.uno.UnoRuntime; import com.sun.star.lang.*; @@ -51,18 +49,13 @@ import com.sun.star.table.XCellRange; import com.sun.star.sheet.XCellRangeAddressable; import com.sun.star.frame.XModel; -import com.sun.star.frame.XController; - import com.sun.star.util.XNumberFormatsSupplier; import com.sun.star.util.XNumberFormats; // base graphics things import com.sun.star.awt.Point; import com.sun.star.awt.Size; -import com.sun.star.awt.Rectangle; import com.sun.star.awt.FontWeight; -import com.sun.star.awt.FontRelief; - // Exceptions import com.sun.star.uno.Exception; import com.sun.star.uno.RuntimeException; diff --git a/odk/examples/DevelopersGuide/Charts/ChartInDraw.java b/odk/examples/DevelopersGuide/Charts/ChartInDraw.java index 9b206f5f7635..224997b75e9c 100644 --- a/odk/examples/DevelopersGuide/Charts/ChartInDraw.java +++ b/odk/examples/DevelopersGuide/Charts/ChartInDraw.java @@ -34,8 +34,6 @@ // __________ Imports __________ -// base classes -import com.sun.star.uno.XInterface; import com.sun.star.uno.UnoRuntime; import com.sun.star.lang.*; @@ -46,26 +44,14 @@ import com.sun.star.beans.*; import com.sun.star.chart.*; import com.sun.star.drawing.*; -import com.sun.star.table.CellRangeAddress; import com.sun.star.frame.XModel; -import com.sun.star.frame.XController; - -import com.sun.star.util.XNumberFormatsSupplier; -import com.sun.star.util.XNumberFormats; - // base graphics things import com.sun.star.awt.Point; import com.sun.star.awt.Size; -import com.sun.star.awt.Rectangle; -import com.sun.star.awt.FontWeight; -import com.sun.star.awt.FontRelief; - // Exceptions import com.sun.star.uno.Exception; import com.sun.star.uno.RuntimeException; import com.sun.star.beans.UnknownPropertyException; -import com.sun.star.lang.IndexOutOfBoundsException; -import com.sun.star.util.MalformedNumberFormatException; // __________ Implementation __________ diff --git a/odk/examples/DevelopersGuide/Charts/ChartInWriter.java b/odk/examples/DevelopersGuide/Charts/ChartInWriter.java index 9f64e1f49c22..f23a4ea262bc 100644 --- a/odk/examples/DevelopersGuide/Charts/ChartInWriter.java +++ b/odk/examples/DevelopersGuide/Charts/ChartInWriter.java @@ -34,8 +34,6 @@ // __________ Imports __________ -// base classes -import com.sun.star.uno.XInterface; import com.sun.star.uno.UnoRuntime; import com.sun.star.lang.*; @@ -45,28 +43,14 @@ import com.sun.star.beans.*; // application specific classes import com.sun.star.chart.*; import com.sun.star.drawing.*; -import com.sun.star.text.XTextDocument; - -import com.sun.star.table.CellRangeAddress; import com.sun.star.frame.XModel; -import com.sun.star.frame.XController; - -import com.sun.star.util.XNumberFormatsSupplier; -import com.sun.star.util.XNumberFormats; - // base graphics things import com.sun.star.awt.Point; import com.sun.star.awt.Size; -import com.sun.star.awt.Rectangle; -import com.sun.star.awt.FontWeight; -import com.sun.star.awt.FontRelief; - // Exceptions import com.sun.star.uno.Exception; import com.sun.star.uno.RuntimeException; import com.sun.star.beans.UnknownPropertyException; -import com.sun.star.lang.IndexOutOfBoundsException; -import com.sun.star.util.MalformedNumberFormatException; // __________ Implementation __________ diff --git a/odk/examples/DevelopersGuide/Charts/Helper.java b/odk/examples/DevelopersGuide/Charts/Helper.java index 13efc37d177a..928acee220d9 100644 --- a/odk/examples/DevelopersGuide/Charts/Helper.java +++ b/odk/examples/DevelopersGuide/Charts/Helper.java @@ -34,41 +34,18 @@ // __________ Imports __________ -import java.util.Random; - -// base classes -import com.sun.star.uno.XInterface; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XComponentContext; import com.sun.star.lang.*; -// factory for creating components -import com.sun.star.comp.servicemanager.ServiceManager; -import com.sun.star.lang.XMultiServiceFactory; -import com.sun.star.bridge.XUnoUrlResolver; -import com.sun.star.uno.XNamingService; -import com.sun.star.frame.XDesktop; import com.sun.star.frame.XComponentLoader; // property access import com.sun.star.beans.*; -// container access -import com.sun.star.container.*; - // application specific classes import com.sun.star.sheet.XSpreadsheetDocument; -import com.sun.star.text.XTextDocument; - -import com.sun.star.document.XEmbeddedObjectSupplier; import com.sun.star.frame.XModel; -import com.sun.star.frame.XController; - -// Exceptions -import com.sun.star.uno.RuntimeException; -import com.sun.star.container.NoSuchElementException; -import com.sun.star.beans.UnknownPropertyException; -import com.sun.star.lang.IndexOutOfBoundsException; // __________ Implementation __________ diff --git a/odk/examples/DevelopersGuide/Charts/JavaSampleChartAddIn.java b/odk/examples/DevelopersGuide/Charts/JavaSampleChartAddIn.java index 06239b6c9851..3ddb9d814fd3 100644 --- a/odk/examples/DevelopersGuide/Charts/JavaSampleChartAddIn.java +++ b/odk/examples/DevelopersGuide/Charts/JavaSampleChartAddIn.java @@ -32,10 +32,7 @@ * *************************************************************************/ -// base classes -import com.sun.star.uno.XInterface; import com.sun.star.uno.UnoRuntime; -import com.sun.star.uno.Type; import com.sun.star.container.XIndexAccess; import com.sun.star.lib.uno.helper.WeakBase; @@ -46,7 +43,6 @@ import com.sun.star.lang.XSingleServiceFactory; // graphics stuff import com.sun.star.drawing.*; import com.sun.star.awt.Point; -import com.sun.star.awt.Rectangle; import com.sun.star.awt.Size; // chart stuff @@ -60,8 +56,6 @@ import com.sun.star.lang.XInitialization; import com.sun.star.util.XRefreshable; import com.sun.star.lang.XServiceName; import com.sun.star.lang.XServiceInfo; -import com.sun.star.lang.XTypeProvider; - // Exceptions import com.sun.star.uno.Exception; import com.sun.star.uno.RuntimeException; diff --git a/odk/examples/DevelopersGuide/Charts/ListenAtCalcRangeInDraw.java b/odk/examples/DevelopersGuide/Charts/ListenAtCalcRangeInDraw.java index 9c37b4d19954..15484004dc03 100644 --- a/odk/examples/DevelopersGuide/Charts/ListenAtCalcRangeInDraw.java +++ b/odk/examples/DevelopersGuide/Charts/ListenAtCalcRangeInDraw.java @@ -34,8 +34,6 @@ // __________ Imports __________ -// base classes -import com.sun.star.uno.XInterface; import com.sun.star.uno.UnoRuntime; import com.sun.star.lang.*; @@ -44,31 +42,15 @@ import com.sun.star.beans.*; // application specific classes import com.sun.star.chart.*; -import com.sun.star.drawing.*; - -import com.sun.star.table.CellRangeAddress; import com.sun.star.table.XCellRange; import com.sun.star.sheet.XSpreadsheetDocument; import com.sun.star.frame.XModel; -import com.sun.star.frame.XController; - -import com.sun.star.util.XNumberFormatsSupplier; -import com.sun.star.util.XNumberFormats; - // base graphics things import com.sun.star.awt.Point; import com.sun.star.awt.Size; -import com.sun.star.awt.Rectangle; -import com.sun.star.awt.FontWeight; -import com.sun.star.awt.FontRelief; - // Exceptions import com.sun.star.uno.Exception; -import com.sun.star.uno.RuntimeException; -import com.sun.star.beans.UnknownPropertyException; -import com.sun.star.lang.IndexOutOfBoundsException; -import com.sun.star.util.MalformedNumberFormatException; // __________ Implementation __________ |