xref: /AOO41X/main/oovbaapi/ooo/vba/excel/XWindow.idl (revision 41b4bf989e0a7abe1c207efb17b6696d0a637091)
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
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#ifndef __ooo_vba_excel_XWindow_idl__
24#define __ooo_vba_excel_XWindow_idl__
25
26#include <ooo/vba/XHelperInterface.idl>
27
28//=============================================================================
29
30module ooo {  module vba {  module excel {
31
32//=============================================================================
33
34interface XRange;
35interface XWorksheet;
36interface XPane;
37
38interface XWindow : com::sun::star::uno::XInterface
39{
40    [attribute] any Caption;
41    [attribute] boolean DisplayGridlines;
42    [attribute] boolean DisplayHeadings;
43    [attribute] boolean DisplayHorizontalScrollBar;
44    [attribute] boolean DisplayOutline;
45    [attribute] boolean DisplayVerticalScrollBar;
46    [attribute] boolean DisplayWorkbookTabs;
47    [attribute] boolean FreezePanes;
48    [attribute] boolean Split;
49    [attribute] long SplitColumn;
50    [attribute] double SplitHorizontal;
51    [attribute] long SplitRow;
52    [attribute] double SplitVertical;
53    [attribute] any ScrollColumn;
54    [attribute] any ScrollRow;
55    [attribute] any View;
56    [attribute, readonly] XRange VisibleRange;
57    [attribute] any WindowState;
58    [attribute] any Zoom;
59    any SelectedSheets( [in] any Index );
60    void SmallScroll( [in] any Down, [in] any Up, [in] any ToRight, [in] any ToLeft );
61    void LargeScroll( [in] any Down, [in] any Up, [in] any ToRight, [in] any ToLeft );
62    void ScrollWorkbookTabs( [in] any Sheets, [in] any Position );
63    void Activate();
64        void Close([in] any SaveChanges, [in] any FileName, [in] any RouteWorkBook);
65    XRange ActiveCell() raises(com::sun::star::script::BasicErrorException);
66    any Selection() raises(com::sun::star::script::BasicErrorException);
67    XRange RangeSelection() raises(com::sun::star::script::BasicErrorException);
68    long PointsToScreenPixelsX([in] long Points) raises(com::sun::star::script::BasicErrorException);
69    long PointsToScreenPixelsY([in] long Points) raises(com::sun::star::script::BasicErrorException);
70    void PrintOut([in] /*optional short*/ any From,
71        [in] /*optional short*/ any To,
72        [in] /*optional short*/ any Copies,
73        [in] /*optional boolean*/ any Preview,
74        [in] /*optional string*/ any ActivePrinter,
75        [in] /*optional boolean*/ any PrintToFile,
76        [in] /*optional boolean*/ any Collate,
77        [in] /*optional string*/ any PrToFileName
78        ) raises(com::sun::star::script::BasicErrorException);
79     void PrintPreview( [in]  /*Optional*/ any EnableChanges ) raises ( com::sun::star::script::BasicErrorException );
80
81    XWorksheet ActiveSheet() raises(com::sun::star::script::BasicErrorException);
82    XPane ActivePane() raises(com::sun::star::script::BasicErrorException);
83};
84
85//=============================================================================
86
87}; }; };
88
89#endif
90
91
92