Bump for 3.6-28
[LibreOffice.git] / offapi / com / sun / star / awt / tab / XTabPageContainer.idl
blob4d07405a691945cc4f679e97a12805279527280b
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
28 #ifndef __com_sun_star_awt_tab_XTabPageContainer_idl__
29 #define __com_sun_star_awt_tab_XTabPageContainer_idl__
31 #include <com/sun/star/awt/tab/XTabPageContainerListener.idl>
32 #include <com/sun/star/awt/tab/XTabPage.idl>
33 //=============================================================================
35 module com { module sun { module star { module awt { module tab {
37 //=============================================================================
39 /** An interface to a control that displays tab pages.
41 @see UnoControlTabPageContainer
43 @since OOo 3.4
45 interface XTabPageContainer
47 /** Returns the number of tab pages.
48 @returns
49 the number of tab pages.
51 long getTabPageCount();
53 //-------------------------------------------------------------------------
55 /** Checks whether a tab page is activated.
56 @param
57 the tab page to be checked.
58 @returns
59 <TRUE/> if tab page is activated, else <FALSE/>.
61 boolean isTabPageActive([in] short tabPageIndex);
63 //-------------------------------------------------------------------------
65 /** Returns tab page for the given index.
66 @param
67 tabPageIndex - index of the tab page in the IndexContainer.
68 @returns
69 tab page which has tabPageIndex.
71 XTabPage getTabPage([in] short tabPageIndex);
73 //-------------------------------------------------------------------------
75 /** Returns tab page for the given ID.
76 @param
77 tabPageID - ID of the tab page.
78 @returns
79 tab page which has tabPageID.
81 XTabPage getTabPageByID([in] short tabPageID);
83 //-------------------------------------------------------------------------
85 /** Adds a listener for the <type>TabPageActivedEvent</type> posted after
86 the tab page was activated.
87 @param listener
88 the listener to add.
90 [oneway] void addTabPageListener( [in] XTabPageContainerListener listener);
92 //-------------------------------------------------------------------------
94 /** Removes a listener previously added with <method>addTabPageListener()</method>.
95 @param listener
96 the listener to remove.
98 [oneway] void removeTabPageListener( [in] XTabPageContainerListener listener);
100 //-------------------------------------------------------------------------
101 /** Specifies the ID of the current active tab page.
103 [attribute] short ActiveTabPageID;
106 //=============================================================================
108 }; }; }; }; };
110 #endif
112 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */