xref: /trunk/main/oovbaapi/ooo/vba/excel/XWindow.idl (revision cdf0e10c)
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27#ifndef __ooo_vba_excel_XWindow_idl__
28#define __ooo_vba_excel_XWindow_idl__
29
30#include <ooo/vba/XHelperInterface.idl>
31
32//=============================================================================
33
34module ooo {  module vba {  module excel {
35
36//=============================================================================
37
38interface XRange;
39interface XWorksheet;
40interface XPane;
41
42interface XWindow : com::sun::star::uno::XInterface
43{
44	[attribute] any Caption;
45	[attribute] boolean DisplayGridlines;
46	[attribute] boolean DisplayHeadings;
47	[attribute] boolean DisplayHorizontalScrollBar;
48	[attribute] boolean DisplayOutline;
49	[attribute] boolean DisplayVerticalScrollBar;
50	[attribute] boolean DisplayWorkbookTabs;
51	[attribute] boolean FreezePanes;
52	[attribute] boolean Split;
53	[attribute] long SplitColumn;
54	[attribute] double SplitHorizontal;
55	[attribute] long SplitRow;
56	[attribute] double SplitVertical;
57	[attribute] any ScrollColumn;
58	[attribute] any ScrollRow;
59	[attribute] any View;
60	[attribute, readonly] XRange VisibleRange;
61	[attribute] any WindowState;
62	[attribute] any Zoom;
63	any SelectedSheets( [in] any Index );
64	void SmallScroll( [in] any Down, [in] any Up, [in] any ToRight, [in] any ToLeft );
65	void LargeScroll( [in] any Down, [in] any Up, [in] any ToRight, [in] any ToLeft );
66	void ScrollWorkbookTabs( [in] any Sheets, [in] any Position );
67	void Activate();
68        void Close([in] any SaveChanges, [in] any FileName, [in] any RouteWorkBook);
69	XRange ActiveCell() raises(com::sun::star::script::BasicErrorException);
70	any Selection() raises(com::sun::star::script::BasicErrorException);
71	XRange RangeSelection() raises(com::sun::star::script::BasicErrorException);
72	long PointsToScreenPixelsX([in] long Points) raises(com::sun::star::script::BasicErrorException);
73	long PointsToScreenPixelsY([in] long Points) raises(com::sun::star::script::BasicErrorException);
74    void PrintOut([in] /*optional short*/ any From,
75        [in] /*optional short*/ any To,
76        [in] /*optional short*/ any Copies,
77        [in] /*optional boolean*/ any Preview,
78        [in] /*optional string*/ any ActivePrinter,
79        [in] /*optional boolean*/ any PrintToFile,
80        [in] /*optional boolean*/ any Collate,
81        [in] /*optional string*/ any PrToFileName
82        ) raises(com::sun::star::script::BasicErrorException);
83     void PrintPreview( [in]  /*Optional*/ any EnableChanges ) raises ( com::sun::star::script::BasicErrorException );
84
85	XWorksheet ActiveSheet() raises(com::sun::star::script::BasicErrorException);
86	XPane ActivePane() raises(com::sun::star::script::BasicErrorException);
87};
88
89//=============================================================================
90
91}; }; };
92
93#endif
94
95
96