/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: WindowDescriptor.idl,v $
* $Revision: 1.12 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
*
* for a copy of the LGPLv3 License.
*
************************************************************************/
#ifndef __com_sun_star_awt_WindowDescriptor_idl__
#define __com_sun_star_awt_WindowDescriptor_idl__
#ifndef __com_sun_star_awt_WindowClass_idl__
#include
#endif
#ifndef __com_sun_star_awt_XWindowPeer_idl__
#include
#endif
#ifndef __com_sun_star_awt_Rectangle_idl__
#include
#endif
//=============================================================================
module com { module sun { module star { module awt {
//=============================================================================
/** describes a window.
*/
published struct WindowDescriptor
{
//-------------------------------------------------------------------------
/** specifies the type of window.
*/
com::sun::star::awt::WindowClass Type;
//-------------------------------------------------------------------------
/** specifies the name of the component service.
A zero length name means that the vcl creates a blank top,
a container, or a simple window.
The following service names are defined:
- buttondialog
- cancelbutton
- checkbox
- combobox
- control
- currencybox
- currencyfield
- datebox
- datefield
- dialog
- dockingarea
- dockingwindow
- edit
- errorbox
- fixedbitmap
- fixedimage
- fixedline
- fixedtext
- floatingwindow
- framewindow
- groupbox
- helpbutton
- imagebutton
- imageradiobutton
- infobox
- listbox
- longcurrencybox
- longcurrencyfield
- menubutton
- messbox
- metricbox
- metricfield
- modaldialog
- modelessdialog
- morebutton
- multilistbox
- numericbox
- numericfield
- okbutton
- patternbox
- patternfield
- pushbutton
- querybox
- radiobutton
- scrollbar
- scrollbarbox
- simpleanimation
- spinbutton
- spinfield
- throbber
- splitter
- splitwindow
- statusbar
- systemchildwindow
- tabcontrol
- tabdialog
- tabpage
- timebox
- timefield
- toolbox
- tristatebox
- warningbox
- window
- workwindow
*/
string WindowServiceName;
//-------------------------------------------------------------------------
/** specifies the parent of the component.
If Parent == 0 && ParentIndex == -1
,
then the window is on the desktop.
*/
com::sun::star::awt::XWindowPeer Parent;
//-------------------------------------------------------------------------
/** specifies the index of the parent window, if available.
If Parent == 0
and this struct is a member of an array,
then this is the offset from the beginning of the array to the parent.
A value of -1 means desktop.
*/
short ParentIndex;
//-------------------------------------------------------------------------
/** specifies the position and size of the window.
This member is ignored if the window attribute is
WindowAttribute::FULLSIZE.
*/
com::sun::star::awt::Rectangle Bounds;
//-------------------------------------------------------------------------
/** specifies the window attributes.
Use one value out of the constant group
WindowAttribute.
*/
long WindowAttributes;
};
//=============================================================================
}; }; }; };
#endif