diff options
Diffstat (limited to 'odk/examples/DevelopersGuide/Spreadsheet/ViewSample.java')
-rw-r--r-- | odk/examples/DevelopersGuide/Spreadsheet/ViewSample.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/odk/examples/DevelopersGuide/Spreadsheet/ViewSample.java b/odk/examples/DevelopersGuide/Spreadsheet/ViewSample.java index dd89ce017ead..36a3029b2310 100644 --- a/odk/examples/DevelopersGuide/Spreadsheet/ViewSample.java +++ b/odk/examples/DevelopersGuide/Spreadsheet/ViewSample.java @@ -2,7 +2,7 @@ * * The Contents of this file are made available subject to the terms of * the BSD license. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * All rights reserved. * @@ -29,7 +29,7 @@ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * + * *************************************************************************/ import com.sun.star.uno.UnoRuntime; @@ -75,7 +75,7 @@ public class ViewSample extends SpreadsheetDocHelper com.sun.star.frame.XModel xModel = (com.sun.star.frame.XModel) UnoRuntime.queryInterface( com.sun.star.frame.XModel.class, xDoc); com.sun.star.frame.XController xController = xModel.getCurrentController(); - + // --- Spreadsheet view --- // freeze the first column and first two rows com.sun.star.sheet.XViewFreezable xFreeze = (com.sun.star.sheet.XViewFreezable) @@ -96,7 +96,7 @@ public class ViewSample extends SpreadsheetDocHelper UnoRuntime.queryInterface( com.sun.star.beans.XPropertySet.class, xRange ); xRangeProp.setPropertyValue( "IsCellBackgroundTransparent", new Boolean( false ) ); xRangeProp.setPropertyValue( "CellBackColor", new Integer( 0xFFFFCC ) ); - + // --- View settings --- // change the view to display green grid lines com.sun.star.beans.XPropertySet xProp = (com.sun.star.beans.XPropertySet) |