NotesAccess.java (34dd1e25) NotesAccess.java (a893be29)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 130 unchanged lines hidden (view full) ---

139 frames in which components can be loaded. Desktop is the
140 environment for components which can instanciate within
141 frames. */
142 XComponentLoader xLoader = ( XComponentLoader )
143 UnoRuntime.queryInterface(XComponentLoader.class,
144 xMCF.createInstanceWithContext(
145 "com.sun.star.frame.Desktop", xContext));
146
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 130 unchanged lines hidden (view full) ---

139 frames in which components can be loaded. Desktop is the
140 environment for components which can instanciate within
141 frames. */
142 XComponentLoader xLoader = ( XComponentLoader )
143 UnoRuntime.queryInterface(XComponentLoader.class,
144 xMCF.createInstanceWithContext(
145 "com.sun.star.frame.Desktop", xContext));
146
147 // Load a Writer document, which will be automaticly displayed
147 // Load a Writer document, which will be automatically displayed
148 XComponent xComponent = xLoader.loadComponentFromURL(
149 "private:factory/scalc", "_blank", 0,
150 new PropertyValue[0] );
151
152 // Querying for the interface XSpreadsheetDocument
153 XSpreadsheetDocument xSpreadsheetDoc =
154 (XSpreadsheetDocument) UnoRuntime.queryInterface(
155 XSpreadsheetDocument.class, xComponent);

--- 122 unchanged lines hidden ---
148 XComponent xComponent = xLoader.loadComponentFromURL(
149 "private:factory/scalc", "_blank", 0,
150 new PropertyValue[0] );
151
152 // Querying for the interface XSpreadsheetDocument
153 XSpreadsheetDocument xSpreadsheetDoc =
154 (XSpreadsheetDocument) UnoRuntime.queryInterface(
155 XSpreadsheetDocument.class, xComponent);

--- 122 unchanged lines hidden ---