diff options
Diffstat (limited to 'offapi/com/sun/star/awt')
339 files changed, 35095 insertions, 0 deletions
diff --git a/offapi/com/sun/star/awt/AccessibleButton.idl b/offapi/com/sun/star/awt/AccessibleButton.idl new file mode 100644 index 000000000000..16e35e2018ec --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleButton.idl @@ -0,0 +1,136 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessibleButton_idl__ +#define __com_sun_star_awt_AccessibleButton_idl__ + +#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__ +#include <com/sun/star/accessibility/XAccessibleContext.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleEventBroadcaster_idl__ +#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleExtendedComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleExtendedComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleText_idl__ +#include <com/sun/star/accessibility/XAccessibleText.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleAction_idl__ +#include <com/sun/star/accessibility/XAccessibleAction.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleValue_idl__ +#include <com/sun/star/accessibility/XAccessibleValue.idl> +#endif + +module com { module sun { module star { module awt { + +/** specifies accessibility support for a button. + + @since OOo 1.1.2 + */ +published service AccessibleButton +{ + /** This interface gives access to the structural information of a button: + + <ul> + <li>Role: The role of a button is <const + scope="com::sun::star::accessibility" + >AccessibleRole::PUSH_BUTTON</const>.</li> + <li>Name: The name of a button is its localized label.</li> + <li>Description: The description of a button is its localized + help text.</li> + <li>Children: There are no children.</li> + <li>Parent: The parent is the window that contains the button.</li> + <li>Relations: There are no relations.</li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::CHECKED</const> is set + if the object is currently checked.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is set + if the object is enabled.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSED</const> is set + if the object currently has the keyboard focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::PRESSED</const> is set + if the object is currently pressed.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + </ul> + </li> + </ul> + */ + interface ::com::sun::star::accessibility::XAccessibleContext; + + interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster; + + interface ::com::sun::star::accessibility::XAccessibleComponent; + + interface ::com::sun::star::accessibility::XAccessibleExtendedComponent; + + /** This interface gives read-only access to the text representation + of a button. + */ + interface ::com::sun::star::accessibility::XAccessibleText; + + /** This interface gives access to the actions that can be executed for + a button. The supported actions for a button are: + <ul> + <li>click</li> + </ul> + */ + interface ::com::sun::star::accessibility::XAccessibleAction; + + /** This interface gives access to the numerical value of a button, + which is related to the button's + <const scope="com::sun::star::accessibility" + >AccessibleStateType::PRESSED</const> state. + */ + interface ::com::sun::star::accessibility::XAccessibleValue; + +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AccessibleCheckBox.idl b/offapi/com/sun/star/awt/AccessibleCheckBox.idl new file mode 100644 index 000000000000..1781f6543a77 --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleCheckBox.idl @@ -0,0 +1,137 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessibleCheckBox_idl__ +#define __com_sun_star_awt_AccessibleCheckBox_idl__ + +#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__ +#include <com/sun/star/accessibility/XAccessibleContext.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleEventBroadcaster_idl__ +#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleExtendedComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleExtendedComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleText_idl__ +#include <com/sun/star/accessibility/XAccessibleText.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleAction_idl__ +#include <com/sun/star/accessibility/XAccessibleAction.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleValue_idl__ +#include <com/sun/star/accessibility/XAccessibleValue.idl> +#endif + +module com { module sun { module star { module awt { + +/** specifies accessibility support for a check box. + + @since OOo 1.1.2 + */ +published service AccessibleCheckBox +{ + /** This interface gives access to the structural information of a + check box: + + <ul> + <li>Role: The role of a check box is <const + scope="com::sun::star::accessibility" + >AccessibleRole::CHECK_BOX</const>.</li> + <li>Name: The name of a check box is its localized label.</li> + <li>Description: The description of a check box is its localized + help text.</li> + <li>Children: There are no children.</li> + <li>Parent: The parent is the window that contains the check box.</li> + <li>Relations: There are no relations.</li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::CHECKED</const> is set + if the object is currently checked.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is set + if the object is enabled.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSED</const> is set + if the object currently has the keyboard focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + </ul> + </li> + </ul> + */ + interface ::com::sun::star::accessibility::XAccessibleContext; + + interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster; + + interface ::com::sun::star::accessibility::XAccessibleComponent; + + interface ::com::sun::star::accessibility::XAccessibleExtendedComponent; + + /** This interface gives read-only access to the text representation + of a check box. + */ + interface ::com::sun::star::accessibility::XAccessibleText; + + /** This interface gives access to the actions that can be executed for + a check box. The supported actions for a check box are: + <ul> + <li>click</li> + </ul> + */ + interface ::com::sun::star::accessibility::XAccessibleAction; + + /** This interface gives access to the numerical value of a + check box, which is related to the check box state: + + <pre> + 0: not checked + 1: checked + 2: don't know + </pre> + */ + interface ::com::sun::star::accessibility::XAccessibleValue; +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AccessibleComboBox.idl b/offapi/com/sun/star/awt/AccessibleComboBox.idl new file mode 100644 index 000000000000..5e492724c10b --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleComboBox.idl @@ -0,0 +1,108 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessibleComboBox_idl__ +#define __com_sun_star_awt_AccessibleComboBox_idl__ + +#ifndef __com_sun_star_accessibility_AccessibleContext_idl__ +#include <com/sun/star/accessibility/AccessibleContext.idl> +#endif + +module com { module sun { module star { module accessibility { + + published interface XAccessibleText; + published interface XAccessibleExtendedComponent; + published interface XAccessibleComponent; + +}; }; }; }; + +module com { module sun { module star { module awt { + +/** specifies accessibility support for a combo box. + + @see com::sun::star::accessibility::AccessibleContext + @see com::sun::star::accessibility::XAccessibleComponent + @see com::sun::star::accessibility::XAccessibleExtendedComponent + @since OOo 1.1.2 +*/ +published service AccessibleComboBox +{ + /** This interface gives access to the structural information of a combo box: + + <ul> + <li>Role: The role of a combo box is <const + scope="com::sun::star::accessibility" + >AccessibleRole::COMBO_BOX</const>.</li> + <li>Name: The name of a combo box is its localized label.</li> + <li>Description: The description of a combo box is its localized + help text.</li> + <li>Children: There exists two children. + The first is a <type scope="com::sun::star::awt">AccessibleTextField</type> + and the 2nd is a <type scope="com::sun::star::awt">AccessibleList</type>. </li> + <li>Parent: The parent is the window that contains the combo box.</li> + <li>Relations: There are no relations.</li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is set + if the object is enabled.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSED</const> is set + if the object currently has the keyboard focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ACTIVE</const> is set + if a child has currently the focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::RESIZABLE</const> is set + if the object can be resized.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + </ul> + </li> + </ul> + */ + + service com::sun::star::accessibility::AccessibleContext; + + interface com::sun::star::accessibility::XAccessibleComponent; + interface com::sun::star::accessibility::XAccessibleExtendedComponent; +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AccessibleDropDownComboBox.idl b/offapi/com/sun/star/awt/AccessibleDropDownComboBox.idl new file mode 100644 index 000000000000..01d8b7cb1c80 --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleDropDownComboBox.idl @@ -0,0 +1,119 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessibleDropDownComboBox_idl__ +#define __com_sun_star_awt_AccessibleDropDownComboBox_idl__ + +#ifndef __com_sun_star_accessibility_AccessibleContext_idl__ +#include <com/sun/star/accessibility/AccessibleContext.idl> +#endif + + +module com { module sun { module star { module accessibility { + + published interface XAccessibleAction; + published interface XAccessibleExtendedComponent; + published interface XAccessibleComponent; + +}; }; }; }; + +module com { module sun { module star { module awt { + +/** specifies accessibility support for a dropdown combo box. + + @see com::sun::star::accessibility::AccessibleContext + + @see com::sun::star::accessibility::XAccessibleComponent + @see com::sun::star::accessibility::XAccessibleExtendedComponent + @see com::sun::star::accessibility::XAccessibleAction + + @since OOo 1.1.2 +*/ +published service AccessibleDropDownComboBox +{ + /** This interface gives access to the structural information of a dropdown combo box: + + <ul> + <li>Role: The role of a dropdown combo box is <const + scope="com::sun::star::accessibility" + >AccessibleRole::COMBO_BOX</const>.</li> + <li>Name: The name of a dropdown combo box is its localized label.</li> + <li>Description: The description of a dropdown combo box is its localized + help text.</li> + <li>Children: There exists two children. + The first is a <type scope="com::sun::star::awt">AccessibleTextField</type> + and the 2nd is a <type scope="com::sun::star::awt">AccessibleList</type>. </li> + <li>Parent: The parent is the window that contains the dropdown combo box.</li> + <li>Relations: There are no relations.</li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is set + if the object is enabled.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSED</const> is set + if the object currently has the keyboard focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ACTIVE</const> is set + if a child has currently the focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::RESIZABLE</const> is set + if the object can be resized.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + </ul> + </li> + </ul> + */ + service com::sun::star::accessibility::AccessibleContext; + + interface com::sun::star::accessibility::XAccessibleComponent; + interface com::sun::star::accessibility::XAccessibleExtendedComponent; + + /** This interface gives access to the actions that can be executed for + a dropdown combo box. The supported actions for a dropdown combo box are: + <ul> + <li>togglePopup</li> + </ul> + */ + interface com::sun::star::accessibility::XAccessibleAction; +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AccessibleDropDownListBox.idl b/offapi/com/sun/star/awt/AccessibleDropDownListBox.idl new file mode 100644 index 000000000000..2f3ca4989083 --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleDropDownListBox.idl @@ -0,0 +1,119 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessibleDropDownListBox_idl__ +#define __com_sun_star_awt_AccessibleDropDownListBox_idl__ + +#ifndef __com_sun_star_accessibility_AccessibleContext_idl__ +#include <com/sun/star/accessibility/AccessibleContext.idl> +#endif + + +module com { module sun { module star { module accessibility { + + published interface XAccessibleAction; + published interface XAccessibleExtendedComponent; + published interface XAccessibleComponent; + +}; }; }; }; + +module com { module sun { module star { module awt { + + +/** specifies accessibility support for a dropdown list box. + + @see com::sun::star::accessibility::AccessibleContext + + @see com::sun::star::accessibility::XAccessibleComponent + @see com::sun::star::accessibility::XAccessibleExtendedComponent + @see com::sun::star::accessibility::XAccessibleAction + + @since OOo 1.1.2 +*/ +published service AccessibleDropDownListBox +{ + /** This interface gives access to the structural information of a dropdown list box: + + <ul> + <li>Role: The role of a dropdown list box is <const + scope="com::sun::star::accessibility" + >AccessibleRole::COMBO_BOX</const>.</li> + <li>Name: The name of a dropdown list box is its localized label.</li> + <li>Description: The description of a dropdown list box is its localized + help text.</li> + <li>Children: There exists one child. + It is of type <type scope="com::sun::star::awt">AccessibleList</type>.</li> + <li>Parent: The parent is the window that contains the dropdown list box.</li> + <li>Relations: There are no relations.</li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is set + if the object is enabled.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSED</const> is set + if the object currently has the keyboard focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ACTIVE</const> is set + if a child has currently the focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::RESIZABLE</const> is set + if the object can be resized.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + </ul> + </li> + </ul> + */ + service com::sun::star::accessibility::AccessibleContext; + + interface com::sun::star::accessibility::XAccessibleComponent; + interface com::sun::star::accessibility::XAccessibleExtendedComponent; + + /** This interface gives access to the actions that can be executed for + a dropdown list box. The supported actions for a dropdown list box are: + <ul> + <li>togglePopup</li> + </ul> + */ + interface com::sun::star::accessibility::XAccessibleAction; +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AccessibleEdit.idl b/offapi/com/sun/star/awt/AccessibleEdit.idl new file mode 100644 index 000000000000..720b9204e14e --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleEdit.idl @@ -0,0 +1,135 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessibleEdit_idl__ +#define __com_sun_star_awt_AccessibleEdit_idl__ + +#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__ +#include <com/sun/star/accessibility/XAccessibleContext.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleEventBroadcaster_idl__ +#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleExtendedComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleExtendedComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleText_idl__ +#include <com/sun/star/accessibility/XAccessibleText.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleEditableText_idl__ +#include <com/sun/star/accessibility/XAccessibleEditableText.idl> +#endif + +module com { module sun { module star { module awt { + +/** specifies accessibility support for an edit. + + @since OOo 1.1.2 + */ +published service AccessibleEdit +{ + /** This interface gives access to the structural information of an edit: + + <ul> + <li>Role: The role of an edit is <const + scope="com::sun::star::accessibility" + >AccessibleRole::TEXT</const>. + If the text content of the edit is password protected + the role is <const scope="com::sun::star::accessibility" + >AccessibleRole::PASSWORD_TEXT</const>.</li> + <li>Name: If the relation of type <const + scope="com::sun::star::accessibility" + >AccessibleRelationType::LABELED_BY</const> is set, + the name of the edit is the localized label of the target + object, otherwise there is no name.</li> + <li>Description: The description of an edit is its localized + help text.</li> + <li>Children: There are no children.</li> + <li>Parent: The parent is the window that contains the edit.</li> + <li>Relations: The relations supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleRelationType::LABELED_BY</const> is set + if the object is labeled by one or more target + objects.</li> + </ul> + </li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::EDITABLE</const> is set + if the content of the object can be changed by the user.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is set + if the object is enabled.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSED</const> is set + if the object currently has the keyboard focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + </ul> + </li> + </ul> + */ + interface ::com::sun::star::accessibility::XAccessibleContext; + + interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster; + + interface ::com::sun::star::accessibility::XAccessibleComponent; + + interface ::com::sun::star::accessibility::XAccessibleExtendedComponent; + + /** This interface gives read-only access to the text representation + of an edit. + */ + interface ::com::sun::star::accessibility::XAccessibleText; + + /** This interface extends the + <type scope="com::sun::star::accessibility">XAccessibleText</type> + interface and gives read and write access to the text representation + of an edit. + */ + interface ::com::sun::star::accessibility::XAccessibleEditableText; +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AccessibleFixedText.idl b/offapi/com/sun/star/awt/AccessibleFixedText.idl new file mode 100644 index 000000000000..bef95c95bfea --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleFixedText.idl @@ -0,0 +1,114 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessibleFixedText_idl__ +#define __com_sun_star_awt_AccessibleFixedText_idl__ + +#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__ +#include <com/sun/star/accessibility/XAccessibleContext.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleEventBroadcaster_idl__ +#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleExtendedComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleExtendedComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleText_idl__ +#include <com/sun/star/accessibility/XAccessibleText.idl> +#endif + +module com { module sun { module star { module awt { + +/** specifies accessibility support for a fixed text. + + @since OOo 1.1.2 + */ +published service AccessibleFixedText +{ + /** This interface gives access to the structural information of a + fixed text: + + <ul> + <li>Role: The role of a fixed text is <const + scope="com::sun::star::accessibility" + >AccessibleRole::LABEL</const>.</li> + <li>Name: The name of a fixed text is its localized label.</li> + <li>Description: The description of a fixed text is its localized + help text.</li> + <li>Children: There are no children.</li> + <li>Parent: The parent is the window that contains the fixed text.</li> + <li>Relations: The relations supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleRelationType::LABEL_FOR</const> is set + if the object is a label for one or more target + objects.</li> + </ul> + </li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is set + if the object is enabled.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::MULTI_LINE</const> is set + if the object contains multiple lines of text.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + </ul> + </li> + </ul> + */ + interface ::com::sun::star::accessibility::XAccessibleContext; + + interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster; + + interface ::com::sun::star::accessibility::XAccessibleComponent; + + interface ::com::sun::star::accessibility::XAccessibleExtendedComponent; + + /** This interface gives read-only access to the text representation + of a fixed text. + */ + interface ::com::sun::star::accessibility::XAccessibleText; +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AccessibleIconChoiceControl.idl b/offapi/com/sun/star/awt/AccessibleIconChoiceControl.idl new file mode 100644 index 000000000000..20f447fdf592 --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleIconChoiceControl.idl @@ -0,0 +1,115 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessibleIconChoiceControl_idl__ +#define __com_sun_star_awt_AccessibleIconChoiceControl_idl__ + +#ifndef __com_sun_star_accessibility_AccessibleContext_idl__ +#include <com/sun/star/accessibility/AccessibleContext.idl> +#endif + + +module com { module sun { module star { module accessibility { + + published interface XAccessibleSelection; + published interface XAccessibleComponent; + +}; }; }; }; + +module com { module sun { module star { module awt { + +/** specifies accessibility support for an icon choice control. + + @see com::sun::star::accessibility::AccessibleContext + @see com::sun::star::accessibility::XAccessibleComponent + + @since OOo 1.1.2 +*/ +published service AccessibleIconChoiceControl +{ + /** This interface gives access to the structural information of an icon choice control: + + <ul> + <li>Role: The role of an icon choice control is <const + scope="com::sun::star::accessibility" + >AccessibleRole::TREE</const>.</li> + <li>Name: The name of an icon choice control is IconChoiceControl.</li> + <li>Description: The description of an icon choice control is its localized + help text.</li> + <li>Children: There exists children of type <type scope="com::sun::star::awt">AccessibleIconChoiceControlEntry</type>. + </li> + <li>Parent: The parent is the window that contains the icon choice control.</li> + <li>Relations: There are no relations.</li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is set + if the object is enabled.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSED</const> is set + if the object currently has the keyboard focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ACTIVE</const> is set + if a child has currently the focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::RESIZABLE</const> is set + if the object can be resized.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::MANAGES_DESCENDANTS</const> is always set. Children are transient.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::MULTI_SELECTABLE</const> is set when mutli selection is enabled.</li> + </ul> + </li> + </ul> + */ + service com::sun::star::accessibility::AccessibleContext; + + interface com::sun::star::accessibility::XAccessibleComponent; + + /** This interface gives access to the selectable children of a + icon choice control. + */ + interface com::sun::star::accessibility::XAccessibleSelection; +}; + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/awt/AccessibleIconChoiceControlEntry.idl b/offapi/com/sun/star/awt/AccessibleIconChoiceControlEntry.idl new file mode 100644 index 000000000000..0b8cf1ef973d --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleIconChoiceControlEntry.idl @@ -0,0 +1,107 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessibleIconChoiceControlEntry_idl__ +#define __com_sun_star_awt_AccessibleIconChoiceControlEntry_idl__ + +#ifndef __com_sun_star_accessibility_AccessibleContext_idl__ +#include <com/sun/star/accessibility/AccessibleContext.idl> +#endif + + +module com { module sun { module star { module accessibility { + + published interface XAccessibleText; + published interface XAccessibleComponent; + +}; }; }; }; + +module com { module sun { module star { module awt { + +/** specifies accessibility support for an icon choice control entry. + + @see com::sun::star::accessibility::AccessibleContext + + @see com::sun::star::accessibility::XAccessibleComponent + @see com::sun::star::accessibility::XAccessibleText + + @since OOo 1.1.2 +*/ +published service AccessibleIconChoiceControlEntry +{ + /** This interface gives access to the structural information of an icon choice control entry: + + <ul> + <li>Role: The role of an icon choice control entry is <const + scope="com::sun::star::accessibility" + >AccessibleRole::LABEL</const>.</li> + <li>Name: The name of an icon choice control entry is it's text.</li> + <li>Description: The description of an icon choice control entry is empty.</li> + <li>Children: There exist no children. + </li> + <li>Parent: The parent is either the <type scope="com::sun::star::awt">AccessibleIconChoiceControl</type>.</li> + <li>Relations: There are no relations.</li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is set + if the object is enabled.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::TRANSIENT</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SELECTABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SELECTED</const> is set when it is selected.</li> + </ul> + </li> + </ul> + */ + service com::sun::star::accessibility::AccessibleContext; + + interface com::sun::star::accessibility::XAccessibleComponent; + + /** This interface gives read-only access to the text representation + of an icon choice control entry. + */ + interface com::sun::star::accessibility::XAccessibleText; +}; + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/awt/AccessibleList.idl b/offapi/com/sun/star/awt/AccessibleList.idl new file mode 100644 index 000000000000..5e86d6102de1 --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleList.idl @@ -0,0 +1,138 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessibleList_idl__ +#define __com_sun_star_awt_AccessibleList_idl__ + +#ifndef __com_sun_star_accessibility_AccessibleContext_idl__ +#include <com/sun/star/accessibility/AccessibleContext.idl> +#endif + +module com { module sun { module star { module accessibility { + + published interface XAccessible; + published interface XAccessibleExtendedComponent; + published interface XAccessibleComponent; + published interface XAccessibleSelection; + +}; }; }; }; + +module com { module sun { module star { module awt { + + + +/** Accessible lists are used by combo boxes as container for + the list items. + + @see com::sun::star::accessibility::AccessibleContext + + @see com::sun::star::accessibility::XAccessibleComponent + @see com::sun::star::accessibility::XAccessibleExtendedComponent + @see ::com::sun::star::accessibility::XAccessibleSelection + + @since OOo 1.1.2 +*/ +published service AccessibleList +{ + /** This interface gives access to the structural information of a list: + + <ul> + <li>Role: The role of a list is <const + scope="::com::sun::star::accessibility" + >AccessibleRole::LIST</const>.</li> + <li>Name: The name of a list is its localized label.</li> + <li>Description: The description of a list is its localized + help text.</li> + <li>Children: There exists children. + Each child is of type <type scope="com::sun::star::awt">AccessibleListItem</type>. </li> + <li>Parent: The parent can be of type + <ul> + <li> + <type scope="com::sun::star::awt">AccessibleComboBox</type> + <type scope="com::sun::star::awt">AccessibleListBox</type> + <type scope="com::sun::star::awt">AccessibleDropDownListBox</type> + <type scope="com::sun::star::awt">AccessibleDropDownComboBox</type> + </li> + . + </li> + <li>Relations: There are no relations.</li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is set + if the object is enabled.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSED</const> is set + if the object currently has the keyboard focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ACTIVE</const> is set + if a child has currently the focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::RESIZABLE</const> is set + if the object can be resized.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::MULTI_SELECTABLE</const> is set + if the list supports multi selection.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::MANAGES_DESCENDANTS</const> is always set. + The children are transient.</li> + </ul> + </li> + </ul> + */ + service com::sun::star::accessibility::AccessibleContext; + + interface com::sun::star::accessibility::XAccessibleComponent; + interface com::sun::star::accessibility::XAccessibleExtendedComponent; + + /** Support of the <type scope="com::sun::star::accessibility">XAccessible</type> interface may be + discontinued in the future. + */ + interface com::sun::star::accessibility::XAccessible; + + /** This interface gives access to the selectable children of a + list. + */ + interface com::sun::star::accessibility::XAccessibleSelection; +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AccessibleListBox.idl b/offapi/com/sun/star/awt/AccessibleListBox.idl new file mode 100644 index 000000000000..282306d7c70f --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleListBox.idl @@ -0,0 +1,107 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessibleListBox_idl__ +#define __com_sun_star_awt_AccessibleListBox_idl__ + +#ifndef __com_sun_star_accessibility_AccessibleContext_idl__ +#include <com/sun/star/accessibility/AccessibleContext.idl> +#endif + +module com { module sun { module star { module accessibility { + + published interface XAccessibleSelection; + published interface XAccessibleExtendedComponent; + published interface XAccessibleComponent; + +}; }; }; }; + +module com { module sun { module star { module awt { +/** specifies accessibility support for a list box. + + @see com::sun::star::accessibility::AccessibleContext + + @see com::sun::star::accessibility::XAccessibleComponent + @see com::sun::star::accessibility::XAccessibleExtendedComponent + + @since OOo 1.1.2 +*/ +published service AccessibleListBox +{ + /** This interface gives access to the structural information of a list box: + + <ul> + <li>Role: The role of a list box is <const + scope="com::sun::star::accessibility" + >AccessibleRole::PANEL</const>.</li> + <li>Name: The name of a list box is its localized label.</li> + <li>Description: The description of a list box is its localized + help text.</li> + <li>Children: There exists one child. + It is of type <type scope="com::sun::star::awt">AccessibleList</type>.</li> + <li>Parent: The parent is the window that contains the list box.</li> + <li>Relations: There are no relations.</li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is set + if the object is enabled.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSED</const> is set + if the object currently has the keyboard focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ACTIVE</const> is set + if a child has currently the focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::RESIZABLE</const> is set + if the object can be resized.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + </ul> + </li> + </ul> + */ + service com::sun::star::accessibility::AccessibleContext; + + interface com::sun::star::accessibility::XAccessibleComponent; + interface com::sun::star::accessibility::XAccessibleExtendedComponent; +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AccessibleListBoxList.idl b/offapi/com/sun/star/awt/AccessibleListBoxList.idl new file mode 100644 index 000000000000..f7bf3e55a4e4 --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleListBoxList.idl @@ -0,0 +1,52 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessibleListBoxList_idl__ +#define __com_sun_star_awt_AccessibleListBoxList_idl__ + +#ifndef __com_sun_star_awt_AccessibleList_idl__ +#include <com/sun/star/awt/AccessibleList.idl> +#endif + + +module com { module sun { module star { module awt { + +/** Accessible list box lists are used by list boxes as container for + the list items. In addtion of the simple container functionality of the + <type>AccessibleList</type> service the + <type scope="com::sun::star::accessibility">XAccessibleSelection</type> interface is supported. + + @since OOo 1.1.2 +*/ +published service AccessibleListBoxList +{ + service AccessibleList; +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AccessibleListItem.idl b/offapi/com/sun/star/awt/AccessibleListItem.idl new file mode 100644 index 000000000000..70020f0c2056 --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleListItem.idl @@ -0,0 +1,104 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessibleListItem_idl__ +#define __com_sun_star_awt_AccessibleListItem_idl__ + +#ifndef __com_sun_star_accessibility_AccessibleContext_idl__ +#include <com/sun/star/accessibility/AccessibleContext.idl> +#endif + + +module com { module sun { module star { module accessibility { + + published interface XAccessibleText; + published interface XAccessibleComponent; + +}; }; }; }; + +module com { module sun { module star { module awt { + +/** specifies accessibility support for a list item. + + @see com::sun::star::accessibility::AccessibleContext + @see com::sun::star::accessibility::XAccessibleComponent + @see com::sun::star::accessibility::XAccessibleText + + @since OOo 1.1.2 +*/ +published service AccessibleListItem +{ + /** This interface gives access to the structural information of a list item: + + <ul> + <li>Role: The role of a list item is <const + scope="com::sun::star::accessibility" + >AccessibleRole::LIST_ITEM</const>.</li> + <li>Name: The name of a list item is the text of the item.</li> + <li>Description: The description of a list item is empty.</li> + <li>Children: There exists no children.</li> + <li>Parent: The parent is of type <type scope="com::sun::star::awt">AccessibleList</type>.</li> + <li>Relations: There are no relations.</li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::TRANSIENT</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SELECTABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SELECTED</const> is set + when the item is selected.</li> + </ul> + </li> + </ul> + */ + service com::sun::star::accessibility::AccessibleContext; + + interface com::sun::star::accessibility::XAccessibleComponent; + + /** This interface gives read-only access to the text representation + of a list item. + */ + interface com::sun::star::accessibility::XAccessibleText; +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AccessibleMenu.idl b/offapi/com/sun/star/awt/AccessibleMenu.idl new file mode 100644 index 000000000000..440d49543787 --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleMenu.idl @@ -0,0 +1,152 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessibleMenu_idl__ +#define __com_sun_star_awt_AccessibleMenu_idl__ + +#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__ +#include <com/sun/star/accessibility/XAccessibleContext.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleEventBroadcaster_idl__ +#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleExtendedComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleExtendedComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleText_idl__ +#include <com/sun/star/accessibility/XAccessibleText.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleAction_idl__ +#include <com/sun/star/accessibility/XAccessibleAction.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleValue_idl__ +#include <com/sun/star/accessibility/XAccessibleValue.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleSelection_idl__ +#include <com/sun/star/accessibility/XAccessibleSelection.idl> +#endif + +module com { module sun { module star { module awt { + +/** specifies accessibility support for a menu. + + @since OOo 1.1.2 + */ +published service AccessibleMenu +{ + /** This interface gives access to the structural information of a menu: + + <ul> + <li>Role: The role of a menu is <const + scope="com::sun::star::accessibility" + >AccessibleRole::MENU</const>.</li> + <li>Name: The name of a menu is the localized item text.</li> + <li>Description: The description of a menu is its localized + help text.</li> + <li>Children: The children of a menu are menus, menu items or + menu separators, whose accessible context supports the services + <type>AccessibleMenu</type>, <type>AccessibleMenuItem</type> or + <type>AccessibleMenuSeparator</type>.</li> + <li>Parent: The parent of a menu is a menu bar, a popup menu or + a menu, whose accessible context supports the services + <type>AccessibleMenuBar</type>, <type>AccessiblePopupMenu</type> + or <type>AccessibleMenu</type>.</li> + <li>Relations: There are no relations.</li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ARMED</const> is set + if the object is highlighted.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::CHECKED</const> is set + if the object is currently checked.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is set + if the object is enabled.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::OPAQUE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SELECTABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SELECTED</const> is set + if the object is selected.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + </ul> + </li> + </ul> + */ + interface ::com::sun::star::accessibility::XAccessibleContext; + + interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster; + + interface ::com::sun::star::accessibility::XAccessibleComponent; + + interface ::com::sun::star::accessibility::XAccessibleExtendedComponent; + + /** This interface gives read-only access to the text representation + of a menu. + */ + interface ::com::sun::star::accessibility::XAccessibleText; + + /** This interface gives access to the actions that can be executed for + a menu. The supported actions for a menu are: + <ul> + <li>select</li> + </ul> + */ + interface ::com::sun::star::accessibility::XAccessibleAction; + + /** This interface gives access to the numerical value of a + menu, which is related to the menu's + <const scope="com::sun::star::accessibility" + >AccessibleStateType::SELECTED</const> state. + */ + interface ::com::sun::star::accessibility::XAccessibleValue; + + /** This interface gives access to the selectable children of a + menu. + */ + interface ::com::sun::star::accessibility::XAccessibleSelection; + +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AccessibleMenuBar.idl b/offapi/com/sun/star/awt/AccessibleMenuBar.idl new file mode 100644 index 000000000000..e001471b9149 --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleMenuBar.idl @@ -0,0 +1,115 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessibleMenuBar_idl__ +#define __com_sun_star_awt_AccessibleMenuBar_idl__ + +#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__ +#include <com/sun/star/accessibility/XAccessibleContext.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleEventBroadcaster_idl__ +#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleExtendedComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleExtendedComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleSelection_idl__ +#include <com/sun/star/accessibility/XAccessibleSelection.idl> +#endif + +module com { module sun { module star { module awt { + +/** specifies accessibility support for a menu bar. + + @since OOo 1.1.2 + */ +published service AccessibleMenuBar +{ + /** This interface gives access to the structural information of a + menu bar: + + <ul> + <li>Role: The role of a menu bar is <const + scope="com::sun::star::accessibility" + >AccessibleRole::MENU_BAR</const>.</li> + <li>Name: There is no name.</li> + <li>Description: The description of a menu bar is its localized + help text.</li> + <li>Children: The children of a menu bar are menus, menu items or + menu separators, whose accessible context supports the services + <type>AccessibleMenu</type>, <type>AccessibleMenuItem</type> or + <type>AccessibleMenuSeparator</type>.</li> + <li>Parent: The parent is the window that contains the menu bar.</li> + <li>Relations: There are no relations.</li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is set + if the object is enabled.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSED</const> is set + if the object currently has the keyboard focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::OPAQUE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + </ul> + </li> + </ul> + */ + interface ::com::sun::star::accessibility::XAccessibleContext; + + interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster; + + interface ::com::sun::star::accessibility::XAccessibleComponent; + + interface ::com::sun::star::accessibility::XAccessibleExtendedComponent; + + /** This interface gives access to the selectable children of a + menu bar. + */ + interface ::com::sun::star::accessibility::XAccessibleSelection; + +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AccessibleMenuItem.idl b/offapi/com/sun/star/awt/AccessibleMenuItem.idl new file mode 100644 index 000000000000..05ad03a88ca3 --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleMenuItem.idl @@ -0,0 +1,141 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessibleMenuItem_idl__ +#define __com_sun_star_awt_AccessibleMenuItem_idl__ + +#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__ +#include <com/sun/star/accessibility/XAccessibleContext.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleEventBroadcaster_idl__ +#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleExtendedComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleExtendedComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleText_idl__ +#include <com/sun/star/accessibility/XAccessibleText.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleAction_idl__ +#include <com/sun/star/accessibility/XAccessibleAction.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleValue_idl__ +#include <com/sun/star/accessibility/XAccessibleValue.idl> +#endif + +module com { module sun { module star { module awt { + +/** specifies accessibility support for a menu item. + + @since OOo 1.1.2 + */ +published service AccessibleMenuItem +{ + /** This interface gives access to the structural information of a + menu item: + + <ul> + <li>Role: The role of a menu item is <const + scope="com::sun::star::accessibility" + >AccessibleRole::MENU_ITEM</const>.</li> + <li>Name: The name of a menu item is the localized item text.</li> + <li>Description: The description of a menu item is its localized + help text.</li> + <li>Children: There are no children.</li> + <li>Parent: The parent of a menu item is a menu bar, a popup menu or + a menu, whose accessible context supports the services + <type>AccessibleMenuBar</type>, <type>AccessiblePopupMenu</type> + or <type>AccessibleMenu</type>.</li> + <li>Relations: There are no relations.</li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ARMED</const> is set + if the object is highlighted.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::CHECKED</const> is set + if the object is currently checked.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is set + if the object is enabled.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::OPAQUE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SELECTABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SELECTED</const> is set + if the object is selected.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + </ul> + </li> + </ul> + */ + interface ::com::sun::star::accessibility::XAccessibleContext; + + interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster; + + interface ::com::sun::star::accessibility::XAccessibleComponent; + + interface ::com::sun::star::accessibility::XAccessibleExtendedComponent; + + /** This interface gives read-only access to the text representation + of a menu item. + */ + interface ::com::sun::star::accessibility::XAccessibleText; + + /** This interface gives access to the actions that can be executed for + a menu item. The supported actions for a menu item are: + <ul> + <li>select</li> + </ul> + */ + interface ::com::sun::star::accessibility::XAccessibleAction; + + /** This interface gives access to the numerical value of a + menu item, which is related to the menu item's + <const scope="com::sun::star::accessibility" + >AccessibleStateType::SELECTED</const> state. + */ + interface ::com::sun::star::accessibility::XAccessibleValue; +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AccessibleMenuSeparator.idl b/offapi/com/sun/star/awt/AccessibleMenuSeparator.idl new file mode 100644 index 000000000000..47f3a62124ac --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleMenuSeparator.idl @@ -0,0 +1,107 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessibleMenuSeparator_idl__ +#define __com_sun_star_awt_AccessibleMenuSeparator_idl__ + +#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__ +#include <com/sun/star/accessibility/XAccessibleContext.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleEventBroadcaster_idl__ +#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleExtendedComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleExtendedComponent.idl> +#endif + +module com { module sun { module star { module awt { + +/** specifies accessibility support for a menu separator. + + @since OOo 1.1.2 + */ +published service AccessibleMenuSeparator +{ + /** This interface gives access to the structural information of a + menu separator: + + <ul> + <li>Role: The role of a menu separator is <const + scope="com::sun::star::accessibility" + >AccessibleRole::SEPARATOR</const>.</li> + <li>Name: There is no name.</li> + <li>Description: There is no description.</li> + <li>Children: There are no children.</li> + <li>Parent: The parent of a menu separator is a menu bar, + a popup menu or a menu, whose accessible context supports the + services <type>AccessibleMenuBar</type>, + <type>AccessiblePopupMenu</type> or + <type>AccessibleMenu</type>.</li> + <li>Relations: There are no relations.</li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is set + if the object is enabled.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::OPAQUE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SELECTABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SELECTED</const> is set + if the object is selected.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + </ul> + </li> + </ul> + */ + interface ::com::sun::star::accessibility::XAccessibleContext; + + interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster; + + interface ::com::sun::star::accessibility::XAccessibleComponent; + + interface ::com::sun::star::accessibility::XAccessibleExtendedComponent; + +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AccessiblePopupMenu.idl b/offapi/com/sun/star/awt/AccessiblePopupMenu.idl new file mode 100644 index 000000000000..f7d3d2162087 --- /dev/null +++ b/offapi/com/sun/star/awt/AccessiblePopupMenu.idl @@ -0,0 +1,115 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessiblePopupMenu_idl__ +#define __com_sun_star_awt_AccessiblePopupMenu_idl__ + +#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__ +#include <com/sun/star/accessibility/XAccessibleContext.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleEventBroadcaster_idl__ +#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleExtendedComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleExtendedComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleSelection_idl__ +#include <com/sun/star/accessibility/XAccessibleSelection.idl> +#endif + +module com { module sun { module star { module awt { + +/** specifies accessibility support for a popup menu. + + @since OOo 1.1.2 + */ +published service AccessiblePopupMenu +{ + /** This interface gives access to the structural information of a + popup menu: + + <ul> + <li>Role: The role of a popup menu is <const + scope="com::sun::star::accessibility" + >AccessibleRole::POPUP_MENU</const>.</li> + <li>Name: There is no name.</li> + <li>Description: The description of a popup menu is its localized + help text.</li> + <li>Children: The children of a popup menu are menus, menu items or + menu separators, whose accessible context supports the services + <type>AccessibleMenu</type>, <type>AccessibleMenuItem</type> or + <type>AccessibleMenuSeparator</type>.</li> + <li>Parent: The parent is the window that contains the popup menu.</li> + <li>Relations: There are no relations.</li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is set + if the object is enabled.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSED</const> is set + if the object currently has the keyboard focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::OPAQUE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + </ul> + </li> + </ul> + */ + interface ::com::sun::star::accessibility::XAccessibleContext; + + interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster; + + interface ::com::sun::star::accessibility::XAccessibleComponent; + + interface ::com::sun::star::accessibility::XAccessibleExtendedComponent; + + /** This interface gives access to the selectable children of a + popup menu. + */ + interface ::com::sun::star::accessibility::XAccessibleSelection; + +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AccessibleRadioButton.idl b/offapi/com/sun/star/awt/AccessibleRadioButton.idl new file mode 100644 index 000000000000..94744ecc5301 --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleRadioButton.idl @@ -0,0 +1,141 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessibleRadioButton_idl__ +#define __com_sun_star_awt_AccessibleRadioButton_idl__ + +#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__ +#include <com/sun/star/accessibility/XAccessibleContext.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleEventBroadcaster_idl__ +#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleExtendedComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleExtendedComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleText_idl__ +#include <com/sun/star/accessibility/XAccessibleText.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleAction_idl__ +#include <com/sun/star/accessibility/XAccessibleAction.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleValue_idl__ +#include <com/sun/star/accessibility/XAccessibleValue.idl> +#endif + +module com { module sun { module star { module awt { + +/** specifies accessibility support for a radio button. + + @since OOo 1.1.2 + */ +published service AccessibleRadioButton +{ + /** This interface gives access to the structural information of a + radio button: + + <ul> + <li>Role: The role of a radio button is <const + scope="com::sun::star::accessibility" + >AccessibleRole::RADIO_BUTTON</const>.</li> + <li>Name: The name of a radio button is its localized label.</li> + <li>Description: The description of a radio button is its localized + help text.</li> + <li>Children: There are no children.</li> + <li>Parent: The parent is the window that contains the radio button.</li> + <li>Relations: The relations supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleRelationType::MEMBER_OF</const> is set + if the object is a member of a group of one or more + target objects.</li> + </ul> + </li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::CHECKED</const> is set + if the object is currently checked.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is set + if the object is enabled.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSED</const> is set + if the object currently has the keyboard focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + </ul> + </li> + </ul> + */ + interface ::com::sun::star::accessibility::XAccessibleContext; + + interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster; + + interface ::com::sun::star::accessibility::XAccessibleComponent; + + interface ::com::sun::star::accessibility::XAccessibleExtendedComponent; + + /** This interface gives read-only access to the text representation + of a radio button. + */ + interface ::com::sun::star::accessibility::XAccessibleText; + + /** This interface gives access to the actions that can be executed for + a radio button. The supported actions for a radio button are: + <ul> + <li>click</li> + </ul> + */ + interface ::com::sun::star::accessibility::XAccessibleAction; + + /** This interface gives access to the numerical value of a + radio button, which is related to the radio button's + <const scope="com::sun::star::accessibility" + >AccessibleStateType::CHECKED</const> state. + */ + interface ::com::sun::star::accessibility::XAccessibleValue; + +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AccessibleScrollBar.idl b/offapi/com/sun/star/awt/AccessibleScrollBar.idl new file mode 100644 index 000000000000..d3337c737563 --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleScrollBar.idl @@ -0,0 +1,129 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessibleScrollBar_idl__ +#define __com_sun_star_awt_AccessibleScrollBar_idl__ + +#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__ +#include <com/sun/star/accessibility/XAccessibleContext.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleEventBroadcaster_idl__ +#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleExtendedComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleExtendedComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleAction_idl__ +#include <com/sun/star/accessibility/XAccessibleAction.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleValue_idl__ +#include <com/sun/star/accessibility/XAccessibleValue.idl> +#endif + +module com { module sun { module star { module awt { + +/** specifies accessibility support for a scroll bar. + + @since OOo 1.1.2 + */ +published service AccessibleScrollBar +{ + /** This interface gives access to the structural information of a + scroll bar: + + <ul> + <li>Role: The role of a scroll bar is <const + scope="com::sun::star::accessibility" + >AccessibleRole::SCROLL_BAR</const>.</li> + <li>Name: There is no name.</li> + <li>Description: The description of a scroll bar is its localized + help text.</li> + <li>Children: There are no children.</li> + <li>Parent: The parent is the window that contains the scroll bar.</li> + <li>Relations: There are no relations.</li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is set + if the object is enabled.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSED</const> is set + if the object currently has the keyboard focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::HORIZONTAL</const> is set + if the orientation of the object is horizontal.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VERTICAL</const> is set + if the orientation of the object is vertical.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + </ul> + </li> + </ul> + */ + interface ::com::sun::star::accessibility::XAccessibleContext; + + interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster; + + interface ::com::sun::star::accessibility::XAccessibleComponent; + + interface ::com::sun::star::accessibility::XAccessibleExtendedComponent; + + /** This interface gives access to the actions that can be executed for + a scroll bar. The supported actions for a scroll bar are: + <ul> + <li>decrementLine</li> + <li>incrementLine</li> + <li>decrementBlock</li> + <li>incrementBlock</li> + </ul> + */ + interface ::com::sun::star::accessibility::XAccessibleAction; + + /** This interface gives access to the numerical value of a scroll bar, + which is related to the position of the scroll bar thumb. + */ + interface ::com::sun::star::accessibility::XAccessibleValue; +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AccessibleStatusBar.idl b/offapi/com/sun/star/awt/AccessibleStatusBar.idl new file mode 100644 index 000000000000..b3618150235e --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleStatusBar.idl @@ -0,0 +1,98 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessibleStatusBar_idl__ +#define __com_sun_star_awt_AccessibleStatusBar_idl__ + +#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__ +#include <com/sun/star/accessibility/XAccessibleContext.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleEventBroadcaster_idl__ +#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleExtendedComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleExtendedComponent.idl> +#endif + +module com { module sun { module star { module awt { + +/** specifies accessibility support for a status bar. + + @since OOo 1.1.2 + */ +published service AccessibleStatusBar +{ + /** This interface gives access to the structural information of a + status bar: + + <ul> + <li>Role: The role of a status bar is <const + scope="com::sun::star::accessibility" + >AccessibleRole::STATUS_BAR</const>.</li> + <li>Name: There is no name.</li> + <li>Description: There is no description.</li> + <li>Children: The children of a status bar are status bar items, + whose accessible context supports the service + <type>AccessibleStatusBarItem</type>.</li> + <li>Parent: The parent is the window that contains the status bar.</li> + <li>Relations: There are no relations.</li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is set + if the object is enabled.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + </ul> + </li> + </ul> + */ + interface ::com::sun::star::accessibility::XAccessibleContext; + + interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster; + + interface ::com::sun::star::accessibility::XAccessibleComponent; + + interface ::com::sun::star::accessibility::XAccessibleExtendedComponent; + +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AccessibleStatusBarItem.idl b/offapi/com/sun/star/awt/AccessibleStatusBarItem.idl new file mode 100644 index 000000000000..ceea05097428 --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleStatusBarItem.idl @@ -0,0 +1,107 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessibleStatusBarItem_idl__ +#define __com_sun_star_awt_AccessibleStatusBarItem_idl__ + +#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__ +#include <com/sun/star/accessibility/XAccessibleContext.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleEventBroadcaster_idl__ +#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleExtendedComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleExtendedComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleText_idl__ +#include <com/sun/star/accessibility/XAccessibleText.idl> +#endif + +module com { module sun { module star { module awt { + +/** specifies accessibility support for a status bar item. + + @since OOo 1.1.2 + */ +published service AccessibleStatusBarItem +{ + /** This interface gives access to the structural information of a + status bar item: + + <ul> + <li>Role: The role of a status bar item is <const + scope="com::sun::star::accessibility" + >AccessibleRole::LABEL</const>.</li> + <li>Name: The name of a status bar item is its localized + configuration name.</li> + <li>Description: The description of a status bar item is + its localized help text.</li> + <li>Children: There are no children.</li> + <li>Parent: The parent of a status bar item is the status bar, + whose accessible context supports the service + <type>AccessibleStatusBar</type>.</li> + <li>Relations: There are no relations.</li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + </ul> + </li> + </ul> + */ + interface ::com::sun::star::accessibility::XAccessibleContext; + + interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster; + + interface ::com::sun::star::accessibility::XAccessibleComponent; + + interface ::com::sun::star::accessibility::XAccessibleExtendedComponent; + + /** This interface gives read-only access to the text representation + of the status bar item. + */ + interface ::com::sun::star::accessibility::XAccessibleText; + +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AccessibleTabBar.idl b/offapi/com/sun/star/awt/AccessibleTabBar.idl new file mode 100644 index 000000000000..4e2bdceadb1c --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleTabBar.idl @@ -0,0 +1,109 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessibleTabBar_idl__ +#define __com_sun_star_awt_AccessibleTabBar_idl__ + +#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__ +#include <com/sun/star/accessibility/XAccessibleContext.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleEventBroadcaster_idl__ +#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleExtendedComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleExtendedComponent.idl> +#endif + +module com { module sun { module star { module awt { + +/** specifies accessibility support for a tabbar. + + @since OOo 1.1.2 + */ +published service AccessibleTabBar +{ + /** This interface gives access to the structural information of a + tabbar: + + <ul> + <li>Role: The role of a tabbar is <const + scope="com::sun::star::accessibility" + >AccessibleRole::PANEL</const>.</li> + <li>Name: There is no name.</li> + <li>Description: The description of a tabbar is its localized + help text.</li> + <li>Children: The children of a tabbar are tabbar buttons, + the tabbar sizer and the tabbar page list, + whose accessible context supports the service + <type>AccessibleTabBarPageList</type>.</li> + <li>Parent: The parent is the window that contains the + tabbar.</li> + <li>Relations: There are no relations.</li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is set + if the object is enabled.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSED</const> is set + if the object currently has the keyboard focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::RESIZABLE</const> is set + if the size of the object is not fixed.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + </ul> + </li> + </ul> + */ + interface ::com::sun::star::accessibility::XAccessibleContext; + + interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster; + + interface ::com::sun::star::accessibility::XAccessibleComponent; + + interface ::com::sun::star::accessibility::XAccessibleExtendedComponent; + +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AccessibleTabBarPage.idl b/offapi/com/sun/star/awt/AccessibleTabBarPage.idl new file mode 100644 index 000000000000..3937066b6897 --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleTabBarPage.idl @@ -0,0 +1,105 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessibleTabBarPage_idl__ +#define __com_sun_star_awt_AccessibleTabBarPage_idl__ + +#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__ +#include <com/sun/star/accessibility/XAccessibleContext.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleEventBroadcaster_idl__ +#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleExtendedComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleExtendedComponent.idl> +#endif + +module com { module sun { module star { module awt { + +/** specifies accessibility support for a tabbar page. + + @since OOo 1.1.2 + */ +published service AccessibleTabBarPage +{ + /** This interface gives access to the structural information of a + tabbar page: + + <ul> + <li>Role: The role of a tabbar page is <const + scope="com::sun::star::accessibility" + >AccessibleRole::PAGE_TAB</const>.</li> + <li>Name: The name of a tabbar page is the localized + tabbar page text.</li> + <li>Description: The description of a tabbar page is its localized + help text.</li> + <li>Children: There are no children.</li> + <li>Parent: The parent of a tabbar page is the tabbar page list, + whose accessible context supports the service + <type>AccessibleTabBarPageList</type>.</li> + <li>Relations: There are no relations.</li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is set + if the object is enabled.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SELECTABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SELECTED</const> is set + if the object is selected.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + </ul> + </li> + </ul> + */ + interface ::com::sun::star::accessibility::XAccessibleContext; + + interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster; + + interface ::com::sun::star::accessibility::XAccessibleComponent; + + interface ::com::sun::star::accessibility::XAccessibleExtendedComponent; + +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AccessibleTabBarPageList.idl b/offapi/com/sun/star/awt/AccessibleTabBarPageList.idl new file mode 100644 index 000000000000..80bceb661f9c --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleTabBarPageList.idl @@ -0,0 +1,108 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessibleTabBarPageList_idl__ +#define __com_sun_star_awt_AccessibleTabBarPageList_idl__ + +#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__ +#include <com/sun/star/accessibility/XAccessibleContext.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleEventBroadcaster_idl__ +#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleExtendedComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleExtendedComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleSelection_idl__ +#include <com/sun/star/accessibility/XAccessibleSelection.idl> +#endif + +module com { module sun { module star { module awt { + +/** specifies accessibility support for a tabbar page list. + + @since OOo 1.1.2 + */ +published service AccessibleTabBarPageList +{ + /** This interface gives access to the structural information of a + tabbar page list: + + <ul> + <li>Role: The role of a tabbar page list is <const + scope="com::sun::star::accessibility" + >AccessibleRole::PAGE_TAB_LIST</const>.</li> + <li>Name: There is no name.</li> + <li>Description: There is no description.</li> + <li>Children: The children of a tabbar page list are tabbar pages, + whose accessible context supports the service + <type>AccessibleTabBarPage</type>.</li> + <li>Parent: The parent of a tabbar page list is the tabbar, + whose accessible context supports the service + <type>AccessibleTabBar</type>.</li> + <li>Relations: There are no relations.</li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is set + if the object is enabled.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + </ul> + </li> + </ul> + */ + interface ::com::sun::star::accessibility::XAccessibleContext; + + interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster; + + interface ::com::sun::star::accessibility::XAccessibleComponent; + + interface ::com::sun::star::accessibility::XAccessibleExtendedComponent; + + /** This interface gives access to the selectable children of a + tabbar page list. + */ + interface ::com::sun::star::accessibility::XAccessibleSelection; + +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AccessibleTabControl.idl b/offapi/com/sun/star/awt/AccessibleTabControl.idl new file mode 100644 index 000000000000..09b1f6b91efa --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleTabControl.idl @@ -0,0 +1,113 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessibleTabControl_idl__ +#define __com_sun_star_awt_AccessibleTabControl_idl__ + +#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__ +#include <com/sun/star/accessibility/XAccessibleContext.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleEventBroadcaster_idl__ +#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleExtendedComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleExtendedComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleSelection_idl__ +#include <com/sun/star/accessibility/XAccessibleSelection.idl> +#endif + +module com { module sun { module star { module awt { + +/** specifies accessibility support for a tab control. + + @since OOo 1.1.2 + */ +published service AccessibleTabControl +{ + /** This interface gives access to the structural information of a + tab control: + + <ul> + <li>Role: The role of a tab control is <const + scope="com::sun::star::accessibility" + >AccessibleRole::PAGE_TAB_LIST</const>.</li> + <li>Name: There is no name.</li> + <li>Description: The description of a tab control is its localized + help text.</li> + <li>Children: The children of a tab control are tab pages, + whose accessible context supports the service + <type>AccessibleTabPage</type>.</li> + <li>Parent: The parent is the window that contains the + tab control.</li> + <li>Relations: There are no relations.</li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is set + if the object is enabled.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSED</const> is set + if the object currently has the keyboard focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + </ul> + </li> + </ul> + */ + interface ::com::sun::star::accessibility::XAccessibleContext; + + interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster; + + interface ::com::sun::star::accessibility::XAccessibleComponent; + + interface ::com::sun::star::accessibility::XAccessibleExtendedComponent; + + /** This interface gives access to the selectable children of a + tab control. + */ + interface ::com::sun::star::accessibility::XAccessibleSelection; + +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AccessibleTabPage.idl b/offapi/com/sun/star/awt/AccessibleTabPage.idl new file mode 100644 index 000000000000..061024b62fc8 --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleTabPage.idl @@ -0,0 +1,117 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessibleTabPage_idl__ +#define __com_sun_star_awt_AccessibleTabPage_idl__ + +#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__ +#include <com/sun/star/accessibility/XAccessibleContext.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleEventBroadcaster_idl__ +#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleExtendedComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleExtendedComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleText_idl__ +#include <com/sun/star/accessibility/XAccessibleText.idl> +#endif + +module com { module sun { module star { module awt { + +/** specifies accessibility support for a tab page. + + @since OOo 1.1.2 + */ +published service AccessibleTabPage +{ + /** This interface gives access to the structural information of a + tab page: + + <ul> + <li>Role: The role of a tab page is <const + scope="com::sun::star::accessibility" + >AccessibleRole::PAGE_TAB</const>.</li> + <li>Name: The name of a tab page is the localized tab page text.</li> + <li>Description: The description of a tab page is its localized + help text.</li> + <li>Children: The child of a tab page is a panel.</li> + <li>Parent: The parent of a tab page is the tab control, + whose accessible context supports the service + <type>AccessibleTabControl</type>.</li> + <li>Relations: There are no relations.</li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is set + if the object is enabled.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSED</const> is set + if the object currently has the keyboard focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SELECTABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SELECTED</const> is set + if the object is selected.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + </ul> + </li> + </ul> + */ + interface ::com::sun::star::accessibility::XAccessibleContext; + + interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster; + + interface ::com::sun::star::accessibility::XAccessibleComponent; + + interface ::com::sun::star::accessibility::XAccessibleExtendedComponent; + + /** This interface gives read-only access to the text representation + of a tab page. + */ + interface ::com::sun::star::accessibility::XAccessibleText; + +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AccessibleTextField.idl b/offapi/com/sun/star/awt/AccessibleTextField.idl new file mode 100644 index 000000000000..65c422e7e604 --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleTextField.idl @@ -0,0 +1,116 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_accessibility_AccessibleTextField_idl__ +#define __com_sun_star_accessibility_AccessibleTextField_idl__ + +#ifndef __com_sun_star_accessibility_AccessibleContext_idl__ +#include <com/sun/star/accessibility/AccessibleContext.idl> +#endif + + +module com { module sun { module star { module accessibility { + + published interface XAccessibleExtendedComponent; + published interface XAccessibleComponent; + published interface XAccessibleText; + +}; }; }; }; + +module com { module sun { module star { module awt { + + +/** Text fields are like edit fields as described by the + <type>AccessibleEdit</type> service but without the ability to edit the + text. + @see com::sun::star::accessibility::AccessibleContext + @see com::sun::star::accessibility::XAccessibleComponent + @see com::sun::star::accessibility::XAccessibleExtendedComponent + @see com::sun::star::accessibility::XAccessibleText + + @since OOo 1.1.2 +*/ +published service AccessibleTextField +{ + /** This interface gives access to the structural information of a text filed: + + <ul> + <li>Role: The role of a text filed is <const + scope="com::sun::star::accessibility" + >AccessibleRole::TEXT</const>.</li> + <li>Name: The name of a text filed is its localized label.</li> + <li>Description: The description of a text filed is its localized + help text.</li> + <li>Children: There exists no children.</li> + <li>Parent: The parent is the window that contains the text filed.</li> + <li>Relations: There are no relations.</li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is set + if the object is enabled.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSED</const> is set + if the object currently has the keyboard focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ACTIVE</const> is set + if a child has currently the focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::RESIZABLE</const> is set + if the object can be resized.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + </ul> + </li> + </ul> + */ + + service com::sun::star::accessibility::AccessibleContext; + + /** This interface gives read-only access to the text representation + of a text field. + */ + interface com::sun::star::accessibility::XAccessibleText; + interface com::sun::star::accessibility::XAccessibleComponent; + interface com::sun::star::accessibility::XAccessibleExtendedComponent; + +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AccessibleToolBox.idl b/offapi/com/sun/star/awt/AccessibleToolBox.idl new file mode 100644 index 000000000000..b86003badf17 --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleToolBox.idl @@ -0,0 +1,116 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_accessibility_AccessibleToolBox_idl__ +#define __com_sun_star_accessibility_AccessibleToolBox_idl__ + +#ifndef __com_sun_star_accessibility_AccessibleContext_idl__ +#include <com/sun/star/accessibility/AccessibleContext.idl> +#endif + + +module com { module sun { module star { module accessibility { + + published interface XAccessibleExtendedComponent; + published interface XAccessibleComponent; + +}; }; }; }; + +module com { module sun { module star { module awt { + + + +/** specifies accessibility support for a tool box. + + @see com::sun::star::accessibility::AccessibleContext + @see com::sun::star::accessibility::XAccessibleComponent + @see com::sun::star::accessibility::XAccessibleExtendedComponent + + @since OOo 1.1.2 +*/ +published service AccessibleToolBox +{ + /** This interface gives access to the structural information of a tool box: + + <ul> + <li>Role: The role of a tool box is <const + scope="com::sun::star::accessibility" + >AccessibleRole::TOOL_BAR</const>.</li> + <li>Name: The name of a tool box is its localized label.</li> + <li>Description: The description of a tool box is its localized + help text.</li> + <li>Children: There exists children of type <type scope="com::sun::star::awt">AccessibleToolBoxItem</type>. + </li> + <li>Parent: The parent is the window that contains the tool box.</li> + <li>Relations: There are no relations.</li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is set + if the object is enabled.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSED</const> is set + if the object currently has the keyboard focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ACTIVE</const> is set + if a child has currently the focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::RESIZABLE</const> is set + if the object can be resized.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VERTICAL</const> is set + if the tool box is vertical.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::HORIZONTAL</const> is set + if the tool box is horizontal.</li> + </ul> + </li> + </ul> + */ + service com::sun::star::accessibility::AccessibleContext; + + interface com::sun::star::accessibility::XAccessibleComponent; + interface com::sun::star::accessibility::XAccessibleExtendedComponent; + +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AccessibleToolBoxItem.idl b/offapi/com/sun/star/awt/AccessibleToolBoxItem.idl new file mode 100644 index 000000000000..b2aafcd4be47 --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleToolBoxItem.idl @@ -0,0 +1,134 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessibleToolBoxItem_idl__ +#define __com_sun_star_awt_AccessibleToolBoxItem_idl__ + +#ifndef __com_sun_star_accessibility_AccessibleContext_idl__ +#include <com/sun/star/accessibility/AccessibleContext.idl> +#endif + + +module com { module sun { module star { module accessibility { + + published interface XAccessibleAction; + published interface XAccessibleText; + published interface XAccessibleValue; + published interface XAccessibleExtendedComponent; + published interface XAccessibleComponent; + +}; }; }; }; + +module com { module sun { module star { module awt { + +/** specifies accessibility support for a tool box item. + + @see com::sun::star::accessibility::AccessibleContext + + @see com::sun::star::accessibility::XAccessibleComponent + @see com::sun::star::accessibility::XAccessibleExtendedComponent + + @see com::sun::star::accessibility::XAccessibleAction + @see com::sun::star::accessibility::XAccessibleText + @see com::sun::star::accessibility::XAccessibleValue + + @since OOo 1.1.2 +*/ +published service AccessibleToolBoxItem +{ + /** This interface gives access to the structural information of a tool box item: + + <ul> + <li>Role: The role of a tool box item is + <const scope="com::sun::star::accessibility">AccessibleRole::PUSH_BUTTON</const> when the item is a push button, or + <const scope="com::sun::star::accessibility">AccessibleRole::TOGGLE_BUTTON</const> when the item is a button and checkable, or + <const scope="com::sun::star::accessibility">AccessibleRole::PANEL</const> when the item is a window, or + <const scope="com::sun::star::accessibility">AccessibleRole::FILLER</const> when the item is a fill item, or + <const scope="com::sun::star::accessibility">AccessibleRole::SEPARATOR</const> when the item is a separator.</li> + <li>Name: The name of a tool box item is the name set.</li> + <li>Description: The description of a tool box item is its localized + help text.</li> + <li>Children: There can exist one child. + This can be any kind of accessible object.</li> + <li>Parent: The parent is the tool box that contains the tool box item.</li> + <li>Relations: There are no relations.</li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is set + if the object is enabled.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSED</const> is set + if the object currently has the keyboard focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::CHECKED</const> is set + if the tool box item is checked.</li> + </ul> + </li> + </ul> + */ + service com::sun::star::accessibility::AccessibleContext; + + interface com::sun::star::accessibility::XAccessibleComponent; + interface com::sun::star::accessibility::XAccessibleExtendedComponent; + + /** This interface gives access to the actions that can be executed for + a menu. The supported actions for a tool box item are: + <ul> + <li>click</li> + </ul> + */ + interface com::sun::star::accessibility::XAccessibleAction; + + /** This interface gives read-only access to the text representation + of a tool box item. + */ + interface com::sun::star::accessibility::XAccessibleText; + /** This interface gives access to the numerical value of a + tool box item, which is related to the tool box item's + <const scope="com::sun::star::accessibility" + >AccessibleStateType::CHECKED</const> state. + */ + interface com::sun::star::accessibility::XAccessibleValue; +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AccessibleTreeListBox.idl b/offapi/com/sun/star/awt/AccessibleTreeListBox.idl new file mode 100644 index 000000000000..f6e521f689e7 --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleTreeListBox.idl @@ -0,0 +1,115 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessibleTreeListBox_idl__ +#define __com_sun_star_awt_AccessibleTreeListBox_idl__ + +#ifndef __com_sun_star_accessibility_AccessibleContext_idl__ +#include <com/sun/star/accessibility/AccessibleContext.idl> +#endif + + +module com { module sun { module star { module accessibility { + + published interface XAccessibleSelection; + published interface XAccessibleComponent; + +}; }; }; }; + +module com { module sun { module star { module awt { + +/** specifies accessibility support for a tree list box. + + @see com::sun::star::accessibility::AccessibleContext + + @see com::sun::star::accessibility::XAccessibleComponent + @see com::sun::star::accessibility::XAccessibleSelection + + @since OOo 1.1.2 +*/ +published service AccessibleTreeListBox +{ + /** This interface gives access to the structural information of a tree list box: + + <ul> + <li>Role: The role of a tree list box is <const + scope="com::sun::star::accessibility" + >AccessibleRole::TREE</const>.</li> + <li>Name: The name of a tree list box is its localized label.</li> + <li>Description: The description of a tree list box is its localized + help text.</li> + <li>Children: There exists children of type <type scope="com::sun::star::awt">AccessibleTreeListBoxEntry</type>. + </li> + <li>Parent: The parent is the window that contains the tree list box.</li> + <li>Relations: There are no relations.</li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is set + if the object is enabled.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSED</const> is set + if the object currently has the keyboard focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ACTIVE</const> is set + if a child has currently the focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::RESIZABLE</const> is set + if the object can be resized.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::MULTI_SELECTABLE</const> is set when mutli selection is enabled.</li> + </ul> + </li> + </ul> + */ + service com::sun::star::accessibility::AccessibleContext; + + interface com::sun::star::accessibility::XAccessibleComponent; + + /** This interface gives access to the selectable children of a + tree list box. + */ + interface com::sun::star::accessibility::XAccessibleSelection; +}; + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/awt/AccessibleTreeListBoxEntry.idl b/offapi/com/sun/star/awt/AccessibleTreeListBoxEntry.idl new file mode 100644 index 000000000000..cec5b4d3819d --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleTreeListBoxEntry.idl @@ -0,0 +1,133 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessibleTreeListBoxEntry_idl__ +#define __com_sun_star_awt_AccessibleTreeListBoxEntry_idl__ + +#ifndef __com_sun_star_accessibility_AccessibleContext_idl__ +#include <com/sun/star/accessibility/AccessibleContext.idl> +#endif + + +module com { module sun { module star { module accessibility { + + published interface XAccessibleAction; + published interface XAccessibleSelection; + published interface XAccessibleText; + published interface XAccessibleComponent; + +}; }; }; }; + +module com { module sun { module star { module awt { + + +/** specifies accessibility support for a treelistbox entry. + + @see com::sun::star::accessibility::AccessibleContext + + @see com::sun::star::accessibility::XAccessibleAction + @see com::sun::star::accessibility::XAccessibleSelection + @see com::sun::star::accessibility::XAccessibleText + + @since OOo 1.1.2 +*/ +published service AccessibleTreeListBoxEntry +{ + /** This interface gives access to the structural information of a tree list box entry: + + <ul> + <li>Role: The role of a tree list box entry is <const + scope="com::sun::star::accessibility" + >AccessibleRole::LABEL</const>.</li> + <li>Name: The name of a tree list box entry is it's text.</li> + <li>Description: The description of a tree list box entry is empty.</li> + <li>Children: There can exist children of type <type scope="com::sun::star::awt">AccessibleTreeListBoxEntry</type>. + </li> + <li>Parent: The parent is either the <type scope="com::sun::star::awt">AccessibleTreeListBox</type> + or an <type scope="com::sun::star::awt">AccessibleTreeListBoxEntry</type> that contains the tree list box entry.</li> + <li>Relations: There are no relations.</li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is set + if the object is enabled.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::EDITABLE</const> is set when a tree list box entry can be edited.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::EXPANDABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::EXPANDED</const> is set when it is expanded.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::COLLAPSED</const> is set when it is collapsed.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::CHECKED</const> is set when it is checked.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SELECTABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SELECTED</const> is set when it is selected.</li> + </ul> + </li> + </ul> + */ + service com::sun::star::accessibility::AccessibleContext; + + interface com::sun::star::accessibility::XAccessibleComponent; + + /** This interface gives access to the actions that can be executed for + a menu. The supported actions for a tree list box entry are: + <ul> + <li>toggleExpand</li> + </ul> + */ + interface com::sun::star::accessibility::XAccessibleAction; + + /** This interface gives access to the selectable children of a + tree list box entry. + */ + interface com::sun::star::accessibility::XAccessibleSelection; + + /** This interface gives read-only access to the text representation + of a tool box item. + */ + interface com::sun::star::accessibility::XAccessibleText; +}; + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/awt/AccessibleWindow.idl b/offapi/com/sun/star/awt/AccessibleWindow.idl new file mode 100644 index 000000000000..59ae5bf25c28 --- /dev/null +++ b/offapi/com/sun/star/awt/AccessibleWindow.idl @@ -0,0 +1,125 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AccessibleWindow_idl__ +#define __com_sun_star_awt_AccessibleWindow_idl__ + +#ifndef __com_sun_star_accessibility_XAccessibleContext_idl__ +#include <com/sun/star/accessibility/XAccessibleContext.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleEventBroadcaster_idl__ +#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleComponent.idl> +#endif +#ifndef __com_sun_star_accessibility_XAccessibleExtendedComponent_idl__ +#include <com/sun/star/accessibility/XAccessibleExtendedComponent.idl> +#endif + +module com { module sun { module star { module awt { + +/** specifies accessibility support for a window. + + @since OOo 1.1.2 + */ +published service AccessibleWindow +{ + /** This interface gives access to the structural information of a window: + + <ul> + <li>Role: The role of a window is not fixed. A window may have + one of the following roles: + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleRole::DIALOG</const></li> + <li><const scope="com::sun::star::accessibility" + >AccessibleRole::FRAME</const></li> + <li><const scope="com::sun::star::accessibility" + >AccessibleRole::LAYERED_PANE</const></li> + <li><const scope="com::sun::star::accessibility" + >AccessibleRole::PANEL</const></li> + <li><const scope="com::sun::star::accessibility" + >AccessibleRole::ROOT_PANE</const></li> + <li><const scope="com::sun::star::accessibility" + >AccessibleRole::SCROLL_PANE</const></li> + <li><const scope="com::sun::star::accessibility" + >AccessibleRole::SPLIT_PANE</const></li> + <li><const scope="com::sun::star::accessibility" + >AccessibleRole::WINDOW</const></li> + <li>...</li> + </ul> + </li> + <li>Name: The name of a window is its localized title.</li> + <li>Description: The description of a window is its localized + help text.</li> + <li>Children: The children of a window are the child windows.</li> + <li>Parent: The parent of a window is the parent window.</li> + <li>Relations: There are no relations.</li> + <li>States: The states supported by this service are + <ul> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ACTIVE</const> is set + if the object is currently the active object.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::DEFUNC</const> + is set if the object has already been disposed + and subsequent calls to this object result in + <type scope="com::sun::star::lang">DisposedException</type> + exceptions.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::ENABLED</const> is set + if the object is enabled.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSABLE</const> is always set.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::FOCUSED</const> is set + if the object currently has the keyboard focus.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::MODAL</const> is set + if the object is modal.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::RESIZABLE</const> is set + if the size of the object is not fixed.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::SHOWING</const> is set + if the object is displayed on the screen.</li> + <li><const scope="com::sun::star::accessibility" + >AccessibleStateType::VISIBLE</const> is always set.</li> + </ul> + </li> + </ul> + */ + interface ::com::sun::star::accessibility::XAccessibleContext; + interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster; + interface ::com::sun::star::accessibility::XAccessibleComponent; + interface ::com::sun::star::accessibility::XAccessibleExtendedComponent; +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/ActionEvent.idl b/offapi/com/sun/star/awt/ActionEvent.idl new file mode 100644 index 000000000000..29cf1ab2e65b --- /dev/null +++ b/offapi/com/sun/star/awt/ActionEvent.idl @@ -0,0 +1,69 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_ActionEvent_idl__ +#define __com_sun_star_awt_ActionEvent_idl__ + +#ifndef __com_sun_star_lang_EventObject_idl__ +#include <com/sun/star/lang/EventObject.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** a semantic event which indicates that a component-defined action occurred. + + <p>This high-level event is generated by a component (such as a Button) + when the component-specific action occurs (such as being pressed). + The event is passed to every <type>XActionListener</type> object + that registered to receive such events using the component's + <code>addActionListener</code> method.</p> + + <p>The object that implements the <type>XActionListener</type> interface + gets this ActionEvent when the event occurs. The listener is therefore + spared the details of processing individual mouse movements and mouse + clicks, and can instead process a "meaningful" (semantic) event like + "button pressed".</p> + */ +published struct ActionEvent: com::sun::star::lang::EventObject +{ + //------------------------------------------------------------------------- + + /** contains the command string associated with this action. + */ + string ActionCommand; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AdjustmentEvent.idl b/offapi/com/sun/star/awt/AdjustmentEvent.idl new file mode 100644 index 000000000000..e2835a239529 --- /dev/null +++ b/offapi/com/sun/star/awt/AdjustmentEvent.idl @@ -0,0 +1,67 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_AdjustmentEvent_idl__ +#define __com_sun_star_awt_AdjustmentEvent_idl__ + +#ifndef __com_sun_star_lang_EventObject_idl__ +#include <com/sun/star/lang/EventObject.idl> +#endif + +#ifndef __com_sun_star_awt_AdjustmentType_idl__ +#include <com/sun/star/awt/AdjustmentType.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** adjustment event emitted by adjustable objects. + */ +published struct AdjustmentEvent: com::sun::star::lang::EventObject +{ + //------------------------------------------------------------------------- + + /** contains the current value in the adjustment event. + */ + long Value; + + //------------------------------------------------------------------------- + + /** contains the type of the adjustment event. + */ + com::sun::star::awt::AdjustmentType Type; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AdjustmentType.idl b/offapi/com/sun/star/awt/AdjustmentType.idl new file mode 100644 index 000000000000..247b3c8eacf4 --- /dev/null +++ b/offapi/com/sun/star/awt/AdjustmentType.idl @@ -0,0 +1,72 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_AdjustmentType_idl__ +#define __com_sun_star_awt_AdjustmentType_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the adjustment type. + */ +published enum AdjustmentType +{ + //------------------------------------------------------------------------- + + /** adjustment is originated by a line jump. + + <p>A line jump can, for example, be caused by a click on + one of the pointer buttons.</p> + */ + ADJUST_LINE, + + //------------------------------------------------------------------------- + + /** adjustment is originated by a page jump. + + <p>A page jump can, for example, be caused by a click in the + background area of the scrollbar (neither one of the pointer + buttons, nor the thumb).</p> + */ + ADJUST_PAGE, + + //------------------------------------------------------------------------- + + /** adjustment is originated by dragging the thumb. + */ + ADJUST_ABS + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/AsyncCallback.idl b/offapi/com/sun/star/awt/AsyncCallback.idl new file mode 100644 index 000000000000..6c1d9feef993 --- /dev/null +++ b/offapi/com/sun/star/awt/AsyncCallback.idl @@ -0,0 +1,47 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_AsyncCallback_idl__ +#define __com_sun_star_awt_AsyncCallback_idl__ + +#ifndef __com_sun_star_awt_XRequestCallback_idl__ +#include <com/sun/star/awt/XRequestCallback.idl> +#endif + +module com { module sun { module star { module awt { + +//============================================================================ +/** An implementation which uses the message queue to call the + callback implementation asynchronously. + + @see XRequestCallback + */ +service AsyncCallback: XRequestCallback; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/CharSet.idl b/offapi/com/sun/star/awt/CharSet.idl new file mode 100644 index 000000000000..c483ee56a196 --- /dev/null +++ b/offapi/com/sun/star/awt/CharSet.idl @@ -0,0 +1,123 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_CharSet_idl__ +#define __com_sun_star_awt_CharSet_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** These values are used to specify the characters which are available in + a font and their codes. + + <P>The currently defined constants of <CODE>CharSet</CODE> have the same + numerical values as the corresponding enum values of the C/C++ + <CODE>rtl_TextEncoding</CODE> (from <CODE>rtl/textenc.h</CODE>). This + correspondence is by design. Since <CODE>CharSet</CODE> is deprecated, + however, it is not planned to add further constants to keep it in sync with + <CODE>rtl_TextEncoding</CODE>.</P> + + @deprecated + */ +published constants CharSet +{ + //------------------------------------------------------------------------- + + /** specifies an unknown character set. + */ + const short DONTKNOW = 0; + + //------------------------------------------------------------------------- + + /** specifies the ANSI character set. + */ + const short ANSI = 1; + + //------------------------------------------------------------------------- + + /** specifies the <regtm>Apple Macintosh</regtm> character set. + */ + const short MAC = 2; + + //------------------------------------------------------------------------- + + /** specifies the IBM PC character set number 437. + */ + const short IBMPC_437 = 3; + + //------------------------------------------------------------------------- + + /** specifies the IBM PC character set number 850. + */ + const short IBMPC_850 = 4; + + //------------------------------------------------------------------------- + + /** specifies the IBM PC character set number 860. + */ + const short IBMPC_860 = 5; + + //------------------------------------------------------------------------- + + /** specifies the IBM PC character set number 861. + */ + const short IBMPC_861 = 6; + + //------------------------------------------------------------------------- + + /** specifies the IBM PC character set number 863. + */ + const short IBMPC_863 = 7; + + //------------------------------------------------------------------------- + + /** specifies the IBM PC character set number 865. + */ + const short IBMPC_865 = 8; + + //------------------------------------------------------------------------- + + /** specifies the system character set. + */ + const short SYSTEM = 9; + + //------------------------------------------------------------------------- + + /** specifies a set of symbols. + */ + const short SYMBOL = 10; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/Command.idl b/offapi/com/sun/star/awt/Command.idl new file mode 100644 index 000000000000..cce6ed126092 --- /dev/null +++ b/offapi/com/sun/star/awt/Command.idl @@ -0,0 +1,134 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_Command_idl__ +#define __com_sun_star_awt_Command_idl__ + +//============================================================================= + +module com { module sun { module star { module awt { + +/** these values specify the different command types available. +*/ + +published constants Command +{ + + //------------------------------------------------------------------------- + + /** specifies a requests for a context menu. + */ + const short CONTEXTMENU = 1; + + //------------------------------------------------------------------------- + + /** specifies the beginning of a drag operation. + */ + const short STARTDRAG = 2; + + //------------------------------------------------------------------------- + + /** specifies a mouse wheel operation. + */ + const short WHEEL = 3; + + //------------------------------------------------------------------------- + + /** specifies the begining of an auto scroll operation. + */ + const short STARTAUTOSCROLL = 4; + + //------------------------------------------------------------------------- + + /** specifies an auto scroll operation. + */ + const short AUTOSCROLL = 5; + + //------------------------------------------------------------------------- + + /** specifies a request for a voice operation. + */ + const short VOICE = 6; + + //------------------------------------------------------------------------- + + /** specifies the beginning of an extended text input operation. + */ + const short STARTEXTTEXTINPUT = 7; + + //------------------------------------------------------------------------- + + /** specifies an extended text input operation. + */ + const short EXTTEXTINPUT = 8; + + //------------------------------------------------------------------------- + + /** specifies the end of an extended text input operation. + */ + const short ENDEXTTEXTINPUT = 9; + + //------------------------------------------------------------------------- + + /** specifies that the input context has been changed. + */ + const short INPUTCONTEXTCHANGE = 10; + + //------------------------------------------------------------------------- + + /** specifies the cursor position. + */ + const short CURSORPOS = 11; + + //------------------------------------------------------------------------- + + /** specifies a paste selection command. + */ + const short PASTESELECTION = 12; + + //------------------------------------------------------------------------- + + /** specifies that the state of a key modifier has changed. + */ + const short MODKEYCHANGE = 13; + + //------------------------------------------------------------------------- + + /** specifies a hangual hanja conversion command. + */ + const short HANGUL_HANJA_CONVERSION = 14; + + //------------------------------------------------------------------------- + + /** specifies a user-defined command. + */ + const short USER = 4096; +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/ContainerWindowProvider.idl b/offapi/com/sun/star/awt/ContainerWindowProvider.idl new file mode 100644 index 000000000000..74bc62d11b56 --- /dev/null +++ b/offapi/com/sun/star/awt/ContainerWindowProvider.idl @@ -0,0 +1,56 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_ContainerWindowProvider_idl__ +#define __com_sun_star_awt_ContainerWindowProvider_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XContainerWindowProvider_idl__ +#include <com/sun/star/awt/XContainerWindowProvider.idl> +#endif + + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a provider for container windows implementing the + <type scope="com::sun::star::awt">XWindow</type> interface. + */ +service ContainerWindowProvider : com::sun::star::awt::XContainerWindowProvider; + + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/DeviceCapability.idl b/offapi/com/sun/star/awt/DeviceCapability.idl new file mode 100644 index 000000000000..1f90be3bb4ac --- /dev/null +++ b/offapi/com/sun/star/awt/DeviceCapability.idl @@ -0,0 +1,65 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_DeviceCapability_idl__ +#define __com_sun_star_awt_DeviceCapability_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** defines which capabilities a device supports. + */ +published constants DeviceCapability +{ + //------------------------------------------------------------------------- + + /** supports the device raster operations. + + @see XGraphics::setRasterOp + */ + const long RASTEROPERATIONS = 1; + + //------------------------------------------------------------------------- + + /** supports the <member>XDevice::createBitmap</member>, + the <member>XDevice::createDevice</member> and the + <member>XGraphics::copy</member> methods. + + @see XGraphics::setRasterOp + */ + const long GETBITS = 2; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/DeviceInfo.idl b/offapi/com/sun/star/awt/DeviceInfo.idl new file mode 100644 index 000000000000..f9de79870395 --- /dev/null +++ b/offapi/com/sun/star/awt/DeviceInfo.idl @@ -0,0 +1,110 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_DeviceInfo_idl__ +#define __com_sun_star_awt_DeviceInfo_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** contains information about a device. + */ +published struct DeviceInfo +{ + //------------------------------------------------------------------------- + + /** contains the width of the device in pixels. + */ + long Width; + + //------------------------------------------------------------------------- + + /** contains the height of the device in pixels. + */ + long Height; + + //------------------------------------------------------------------------- + + /** contains the inset from the left. + */ + long LeftInset; + + //------------------------------------------------------------------------- + + /** contains the inset from the top. + */ + long TopInset; + + //------------------------------------------------------------------------- + + /** contains the inset from the right. + */ + long RightInset; + + //------------------------------------------------------------------------- + + /** contains the inset from the bottom. + */ + long BottomInset; + + //------------------------------------------------------------------------- + + /** contains the X-axis resolution of the device in pixel/meter. + */ + double PixelPerMeterX; + + //------------------------------------------------------------------------- + + /** contains the Y-axis resolution of the device in pixel/meter. + */ + double PixelPerMeterY; + + //------------------------------------------------------------------------- + + /** contains the color-depth of the device. + */ + short BitsPerPixel; + + //------------------------------------------------------------------------- + + /** specifies special operations which are possible on the device. + + @see DeviceCapability + */ + long Capabilities; + +}; + +//============================================================================= + +}; }; }; }; + + +#endif diff --git a/offapi/com/sun/star/awt/DialogProvider.idl b/offapi/com/sun/star/awt/DialogProvider.idl new file mode 100644 index 000000000000..863a107755d6 --- /dev/null +++ b/offapi/com/sun/star/awt/DialogProvider.idl @@ -0,0 +1,59 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_DialogProvider_idl__ +#define __com_sun_star_awt_DialogProvider_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XDialogProvider_idl__ +#include <com/sun/star/awt/XDialogProvider.idl> +#endif + + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a provider for dialogs implementing the + <type scope="com::sun::star::awt">XDialog</type> interface. + */ +service DialogProvider : com::sun::star::awt::XDialogProvider; + +// service DialogProvider { + // interface com::sun::star::awt::XDialogProvider; +// }; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/DialogProvider2.idl b/offapi/com/sun/star/awt/DialogProvider2.idl new file mode 100644 index 000000000000..be0db00bf859 --- /dev/null +++ b/offapi/com/sun/star/awt/DialogProvider2.idl @@ -0,0 +1,55 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_DialogProvider2_idl__ +#define __com_sun_star_awt_DialogProvider2_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XDialogProvider2_idl__ +#include <com/sun/star/awt/XDialogProvider2.idl> +#endif + + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a provider for dialogs implementing the + <type scope="com::sun::star::awt">XDialog</type> interface. + */ +service DialogProvider2 : com::sun::star::awt::XDialogProvider2; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/DockingData.idl b/offapi/com/sun/star/awt/DockingData.idl new file mode 100644 index 000000000000..ec470b193063 --- /dev/null +++ b/offapi/com/sun/star/awt/DockingData.idl @@ -0,0 +1,63 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_DockingData_idl__ +#define __com_sun_star_awt_DockingData_idl__ + +#ifndef __com_sun_star_awt_Rectangle_idl__ +#include <com/sun/star/awt/Rectangle.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** data returned by docking handler + + */ +struct DockingData +{ + //------------------------------------------------------------------------- + + /** specifies the position and size where the window would be placed + if the user releases the mouse + */ + com::sun::star::awt::Rectangle TrackingRectangle; + + //------------------------------------------------------------------------- + + /** specifies that the window should be floating (TRUE) or docked (FALSE) + */ + boolean bFloating; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/DockingEvent.idl b/offapi/com/sun/star/awt/DockingEvent.idl new file mode 100644 index 000000000000..b6182c48ee2e --- /dev/null +++ b/offapi/com/sun/star/awt/DockingEvent.idl @@ -0,0 +1,84 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_DockingEvent_idl__ +#define __com_sun_star_awt_DockingEvent_idl__ + +#ifndef __com_sun_star_lang_EventObject_idl__ +#include <com/sun/star/lang/EventObject.idl> +#endif + +#ifndef __com_sun_star_awt_Rectangle_idl__ +#include <com/sun/star/awt/Rectangle.idl> +#endif +#ifndef __com_sun_star_awt_Point_idl__ +#include <com/sun/star/awt/Point.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a docking event. + */ +struct DockingEvent: com::sun::star::lang::EventObject +{ + //------------------------------------------------------------------------- + + /** specifies the current tracking rectangle + */ + com::sun::star::awt::Rectangle TrackingRectangle; + + //------------------------------------------------------------------------- + + /** specifies the current mouse position in frame coordinates + */ + com::sun::star::awt::Point MousePos; + + //------------------------------------------------------------------------- + + /** specifies if the layout should be adjusted immediately + */ + boolean bLiveMode; + + //------------------------------------------------------------------------- + + /** specifies if the docking procedure is interactive which means that + the user is currently dragging the window to a new position + if this member is <FALSE/> the window will be docked or undocked immediately + using the returned tracking rectangle + */ + boolean bInteractive; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/EndDockingEvent.idl b/offapi/com/sun/star/awt/EndDockingEvent.idl new file mode 100644 index 000000000000..f1563bd240dd --- /dev/null +++ b/offapi/com/sun/star/awt/EndDockingEvent.idl @@ -0,0 +1,72 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_EndDockingEvent_idl__ +#define __com_sun_star_awt_EndDockingEvent_idl__ + +#ifndef __com_sun_star_lang_EventObject_idl__ +#include <com/sun/star/lang/EventObject.idl> +#endif + +#ifndef __com_sun_star_awt_Rectangle_idl__ +#include <com/sun/star/awt/Rectangle.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies an end docking event. + */ +struct EndDockingEvent: com::sun::star::lang::EventObject +{ + //------------------------------------------------------------------------- + + /** specifies the new bounding rectangle of the window + */ + com::sun::star::awt::Rectangle WindowRectangle; + + //------------------------------------------------------------------------- + + /** specifies if the window is now floating <TRUE/> or docked <FALSE/> + */ + boolean bFloating; + + //------------------------------------------------------------------------- + + /** specifies that the docking procedure was cancelled + */ + boolean bCancelled; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/EndPopupModeEvent.idl b/offapi/com/sun/star/awt/EndPopupModeEvent.idl new file mode 100644 index 000000000000..637f70c56d05 --- /dev/null +++ b/offapi/com/sun/star/awt/EndPopupModeEvent.idl @@ -0,0 +1,68 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_EndPopupModeEvent_idl__ +#define __com_sun_star_awt_EndPopupModeEvent_idl__ + +#ifndef __com_sun_star_lang_EventObject_idl__ +#include <com/sun/star/lang/EventObject.idl> +#endif + +#ifndef __com_sun_star_awt_Point_idl__ +#include <com/sun/star/awt/Point.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies an end popup mode event. + */ +struct EndPopupModeEvent: com::sun::star::lang::EventObject +{ + //------------------------------------------------------------------------- + + /** specifies how the popup mode was ended + <TRUE/> means the window should be teared-off and positioned at FloatingPosition + <FALSE/> means the window was closed + */ + boolean bTearoff; + + //------------------------------------------------------------------------- + + /** specifies the new position of the floating window in frame coordinates + if bTearoff is <TRUE/> + */ + com::sun::star::awt::Point FloatingPosition; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/EnhancedMouseEvent.idl b/offapi/com/sun/star/awt/EnhancedMouseEvent.idl new file mode 100644 index 000000000000..f866397e0613 --- /dev/null +++ b/offapi/com/sun/star/awt/EnhancedMouseEvent.idl @@ -0,0 +1,63 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_EnhancedMouseEvent_idl__ +#define __com_sun_star_awt_EnhancedMouseEvent_idl__ + +#ifndef __com_sun_star_awt_MouseEvent_idl__ +#include <com/sun/star/awt/MouseEvent.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies an event from the mouse. + + @see MouseEvent + + @since OOo 2.0.0 + + */ +published struct EnhancedMouseEvent: com::sun::star::awt::MouseEvent +{ + + /** contains the object on the location of the mouse. + */ + + com::sun::star::uno::XInterface Target; + + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/FieldUnit.idl b/offapi/com/sun/star/awt/FieldUnit.idl new file mode 100644 index 000000000000..b7a775401d4d --- /dev/null +++ b/offapi/com/sun/star/awt/FieldUnit.idl @@ -0,0 +1,63 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_FieldUnit_idl__ +#define __com_sun_star_awt_FieldUnit_idl__ + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies attributes for the MetricField map units. + + <p><b>IMPORTANT:</b> These constands have to be disjunct with + constants in <type>util/MeasureUnit</type>.</p> + */ +constants FieldUnit +{ + const short FUNIT_NONE = 0; + const short FUNIT_MM = 1; + const short FUNIT_CM = 2; + const short FUNIT_M = 3; + const short FUNIT_KM = 4; + const short FUNIT_TWIP = 5; + const short FUNIT_POINT = 6; + const short FUNIT_PICA = 7; + const short FUNIT_INCH = 8; + const short FUNIT_FOOT = 9; + const short FUNIT_MILE = 10; + const short FUNIT_CUSTOM = 11; + const short FUNIT_PERCENT = 12; + const short FUNIT_100TH_MM = 13; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/FocusChangeReason.idl b/offapi/com/sun/star/awt/FocusChangeReason.idl new file mode 100644 index 000000000000..32d4380b79cc --- /dev/null +++ b/offapi/com/sun/star/awt/FocusChangeReason.idl @@ -0,0 +1,93 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_FocusChangeReason_idl__ +#define __com_sun_star_awt_FocusChangeReason_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** A combination of these values can be used to specify the reason + for a focus change. + */ +published constants FocusChangeReason +{ + //------------------------------------------------------------------------- + + /** Focus changed because TAB was pressed. + */ + const long TAB = 1; + + //------------------------------------------------------------------------- + + /** Focus changed because KeyLeft/Right/Up/Down was pressed. + */ + const long CURSOR = 2; + + //------------------------------------------------------------------------- + + /** Focus changed because mnemonic key was pressed. + */ + const long MNEMONIC = 4; + + //------------------------------------------------------------------------- + + /** Changed Focus to the next control. + */ + const long FORWARD = 16; + + //------------------------------------------------------------------------- + + /** Changed Focus to the previous control. + */ + const long BACKWARD = 32; + + //------------------------------------------------------------------------- + + /** Changed Focus forward from last to first or backward from first to + last. + */ + const long AROUND = 64; + + //------------------------------------------------------------------------- + + /** Focus changed because mnemonic key was pressed and this mnemonic is + unique. + */ + const long UNIQUEMNEMONIC = 256; + +}; + +//============================================================================= + +}; }; }; }; + + +#endif diff --git a/offapi/com/sun/star/awt/FocusEvent.idl b/offapi/com/sun/star/awt/FocusEvent.idl new file mode 100644 index 000000000000..09ba8697e885 --- /dev/null +++ b/offapi/com/sun/star/awt/FocusEvent.idl @@ -0,0 +1,90 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_FocusEvent_idl__ +#define __com_sun_star_awt_FocusEvent_idl__ + +#ifndef __com_sun_star_lang_EventObject_idl__ +#include <com/sun/star/lang/EventObject.idl> +#endif + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a keyboard focus event. + + <p>There are two levels of focus change events: permanent and temporary. + Permanent focus change events occur when focus is directly moved + from one component to another, such as through calls to requestFocus() + or as the user uses the Tab key to traverse components. + Temporary focus change events occur when focus is + gained or lost for a component as the indirect result of another + operation, such as window deactivation or a scrollbar drag. In this + case, the original focus state will automatically be restored once + that operation is finished, or for the case of window deactivation, + when the window is reactivated. Both permanent and temporary focus + events are delivered using the FOCUS_GAINED and FOCUS_LOST event ids; + the levels may be distinguished in the event using the isTemporary() + method.</p> + */ +published struct FocusEvent: com::sun::star::lang::EventObject +{ + //------------------------------------------------------------------------- + + /** specifies the reason for the focus change as an arithmentic-or + combination of <type>FocusChangeReason</type>. + + @see FocusChangeReason + */ + short FocusFlags; + + //------------------------------------------------------------------------- + + /** contains the window which gets the focus on a lose focus event. + */ + com::sun::star::uno::XInterface NextFocus; + + //------------------------------------------------------------------------- + + /** specifies if this focus change event is a temporary change. + */ + boolean Temporary; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/FontDescriptor.idl b/offapi/com/sun/star/awt/FontDescriptor.idl new file mode 100644 index 000000000000..54107d6466d4 --- /dev/null +++ b/offapi/com/sun/star/awt/FontDescriptor.idl @@ -0,0 +1,190 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_FontDescriptor_idl__ +#define __com_sun_star_awt_FontDescriptor_idl__ + +#ifndef __com_sun_star_awt_FontSlant_idl__ +#include <com/sun/star/awt/FontSlant.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** describes the characteristics of a font. + + <p>For example, this can be used to select a font.</p> + */ +published struct FontDescriptor +{ + //------------------------------------------------------------------------- + + /** specifies the exact name of the font. + */ + string Name; + + //------------------------------------------------------------------------- + + /** specifies the height of the font in the measure of the + destination. + */ + short Height; + + //------------------------------------------------------------------------- + + /** specifies the width of the font in the measure of the + destination. + */ + short Width; + + //------------------------------------------------------------------------- + + /** specifies the style name of the font. + */ + string StyleName; + + //------------------------------------------------------------------------- + + /** specifies the general style of the font. + + <p>Use one value out of the constant group + <type scope="com::sun::star::awt">FontFamily</type>.</p> + */ + short Family; + + //------------------------------------------------------------------------- + + /** specifies the character set which is supported by the font. + + <p>Use one value out of the constant group + <type scope="com::sun::star::awt">CharSet</type>.</p> + */ + short CharSet; + + //------------------------------------------------------------------------- + + /** specifies the pitch of the font. + + <p>Use one value out of the constant group + <type scope="com::sun::star::awt">FontPitch</type>.</p> + */ + short Pitch; + + //------------------------------------------------------------------------- + + /** specifies the character width. + + <p>Depending on the specified width, a font that supports this + width may be selected.</p> + + <p>The value is expressed as a percentage.</p> + */ + float CharacterWidth; + + //------------------------------------------------------------------------- + + /** specifies the thickness of the line. + + <p>Depending on the specified weight, a font that supports this + thickness may be selected.</p> + + <p>The value is expressed as a percentage.</p> + */ + float Weight; + + //------------------------------------------------------------------------- + + /** specifies the slant of the font. + */ + com::sun::star::awt::FontSlant Slant; + + //------------------------------------------------------------------------- + + /** specifies the kind of underlining. + + <p>Use one value out of the constant group + <type scope="com::sun::star::awt">FontUnderline</type>.</p> + */ + short Underline; + + //------------------------------------------------------------------------- + + /** specifies the kind of strikeout. + + <p>Use one value out of the constant group + <type scope="com::sun::star::awt">FontStrikeout</type>.</p> + */ + short Strikeout; + + //------------------------------------------------------------------------- + + /** specifies the rotation of the font. + + <p>The unit of measure is degrees; 0 is the baseline.</p> + */ + float Orientation; + + //------------------------------------------------------------------------- + + /** For requesting, it specifies if there is a kerning table available. + For selecting, it specifies if the kerning table is to be used. + */ + boolean Kerning; + + //------------------------------------------------------------------------- + + /** specifies if only words get underlined. + + <p><TRUE/> means that only non-space characters get underlined, + <FALSE/> means that the spacing also gets underlined.</p> + + <p>This property is only valid if the property + <member scope="com::sun::star::awt">FontDescriptor::Underline</member> + is not <const>FontUnderline::NONE</const>.</p> + */ + boolean WordLineMode; + + //------------------------------------------------------------------------- + + /** specifies the technology of the font representation. + + <p>One or more values out of the constant group + <type scope="com::sun::star::awt">FontType</type> can be combined by + an arithmetical or-operation.</p> + */ + short Type; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/FontEmphasisMark.idl b/offapi/com/sun/star/awt/FontEmphasisMark.idl new file mode 100644 index 000000000000..8e13cb8ca4a6 --- /dev/null +++ b/offapi/com/sun/star/awt/FontEmphasisMark.idl @@ -0,0 +1,94 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_FontEmphasisMark_idl__ +#define __com_sun_star_awt_FontEmphasisMark_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** These values are used to specify the kind of emphasis mark. + + <p>They may be expanded in future versions.</p> + */ +published constants FontEmphasisMark +{ + //------------------------------------------------------------------------- + + /** specifies no emphasis mark. + */ + const short NONE = 0x0000; + + //------------------------------------------------------------------------- + + /** specifies emphasis mark dot. + */ + const short DOT = 0x0001; + + //------------------------------------------------------------------------- + + /** specifies emphasis mark circle. + */ + const short CIRCLE = 0x0002; + + //------------------------------------------------------------------------- + + /** specifies emphasis mark disc. + */ + const short DISC = 0x0003; + + //------------------------------------------------------------------------- + + /** specifies emphasis mark accent. + */ + const short ACCENT = 0x0004; + + //------------------------------------------------------------------------- + + /** specifies that the emphasis mark should be positioned above the + characters. + */ + const short ABOVE = 0x1000; + + //------------------------------------------------------------------------- + + /** specifies that the emphasis mark should be positioned below the + characters. + */ + const short BELOW = 0x2000; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/FontFamily.idl b/offapi/com/sun/star/awt/FontFamily.idl new file mode 100644 index 000000000000..6b375c002d52 --- /dev/null +++ b/offapi/com/sun/star/awt/FontFamily.idl @@ -0,0 +1,91 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_FontFamily_idl__ +#define __com_sun_star_awt_FontFamily_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** These values are used to specify the general kind of font. + + <p>They may be expanded in future versions.</p> + */ +published constants FontFamily +{ + //------------------------------------------------------------------------- + + /** specifies an unknown font family. + */ + const short DONTKNOW = 0; + + //------------------------------------------------------------------------- + + /** specifies the family of decorative fonts. + */ + const short DECORATIVE = 1; + + //------------------------------------------------------------------------- + + /** specifies the family of modern fonts. + */ + const short MODERN = 2; + + //------------------------------------------------------------------------- + + /** specifies the family roman fonts (with serifes). + */ + const short ROMAN = 3; + + //------------------------------------------------------------------------- + + /** specifies the family of script fonts. + */ + const short SCRIPT = 4; + + //------------------------------------------------------------------------- + + /** specifies the family roman fonts (without serifes). + */ + const short SWISS = 5; + + //------------------------------------------------------------------------- + + /** specifies the family system fonts. + */ + const short SYSTEM = 6; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/FontPitch.idl b/offapi/com/sun/star/awt/FontPitch.idl new file mode 100644 index 000000000000..07554160f0c7 --- /dev/null +++ b/offapi/com/sun/star/awt/FontPitch.idl @@ -0,0 +1,68 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_FontPitch_idl__ +#define __com_sun_star_awt_FontPitch_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** These values are used to specify whether the width of a character is + fixed or variable. + + <p>They may be expanded in future versions.</p> + */ +published constants FontPitch +{ + //------------------------------------------------------------------------- + + /** specifies that the pitch for this font is unknown. + */ + const short DONTKNOW = 0; + + //------------------------------------------------------------------------- + + /** specifies a font with a fixed character width. + */ + const short FIXED = 1; + + //------------------------------------------------------------------------- + + /** specifies a font with a variable character width. + */ + const short VARIABLE = 2; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/FontRelief.idl b/offapi/com/sun/star/awt/FontRelief.idl new file mode 100644 index 000000000000..d737ef76ec32 --- /dev/null +++ b/offapi/com/sun/star/awt/FontRelief.idl @@ -0,0 +1,68 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_FontRelief_idl__ +#define __com_sun_star_awt_FontRelief_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** These values are used to specify the kind of relief. + + <p>They may be expanded in future versions.</p> + */ + +published constants FontRelief +{ + //------------------------------------------------------------------------- + + /** specifies no relief. + */ + const short NONE = 0; + + //------------------------------------------------------------------------- + + /** specifies no embossed. + */ + const short EMBOSSED = 1; + + //------------------------------------------------------------------------- + + /** specifies no engraved. + */ + const short ENGRAVED = 2; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/FontSlant.idl b/offapi/com/sun/star/awt/FontSlant.idl new file mode 100644 index 000000000000..35496caaf754 --- /dev/null +++ b/offapi/com/sun/star/awt/FontSlant.idl @@ -0,0 +1,83 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_FontSlant_idl__ +#define __com_sun_star_awt_FontSlant_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** used to specify the slant of a font. + */ +published enum FontSlant +{ + //------------------------------------------------------------------------- + + /** specifies a font without slant. + */ + NONE, + + //------------------------------------------------------------------------- + + /** specifies an oblique font (slant not designed into the font). + */ + OBLIQUE, + + //------------------------------------------------------------------------- + + /** specifies an italic font (slant designed into the font). + */ + ITALIC, + + //------------------------------------------------------------------------- + + /** specifies a font with an unknown slant. + */ + DONTKNOW, + + //------------------------------------------------------------------------- + + /** specifies a reverse oblique font (slant not designed into the font). + */ + REVERSE_OBLIQUE, + + //------------------------------------------------------------------------- + + /** specifies a reverse italic font (slant designed into the font). + */ + REVERSE_ITALIC + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/FontStrikeout.idl b/offapi/com/sun/star/awt/FontStrikeout.idl new file mode 100644 index 000000000000..d9b7a5df1b53 --- /dev/null +++ b/offapi/com/sun/star/awt/FontStrikeout.idl @@ -0,0 +1,91 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_FontStrikeout_idl__ +#define __com_sun_star_awt_FontStrikeout_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** These values are used to specify the kind of strikeout. + + <p>They may be expanded in future versions.</p> + */ +published constants FontStrikeout +{ + //------------------------------------------------------------------------- + + /** specifies not to strike out the characters. + */ + const short NONE = 0; + + //------------------------------------------------------------------------- + + /** specifies to strike out the characters with a single line. + */ + const short SINGLE = 1; + + //------------------------------------------------------------------------- + + /** specifies to strike out the characters with a double line. + */ + const short DOUBLE = 2; + + //------------------------------------------------------------------------- + + /** The strikeout mode is not specified. + */ + const short DONTKNOW = 3; + + //------------------------------------------------------------------------- + + /** specifies to strike out the characters with a bold line. + */ + const short BOLD = 4; + + //------------------------------------------------------------------------- + + /** specifies to strike out the characters with slashes. + */ + const short SLASH = 5; + + //------------------------------------------------------------------------- + + /** specifies to strike out the characters with X's. + */ + const short X = 6; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/FontType.idl b/offapi/com/sun/star/awt/FontType.idl new file mode 100644 index 000000000000..2474976d33e1 --- /dev/null +++ b/offapi/com/sun/star/awt/FontType.idl @@ -0,0 +1,73 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_FontType_idl__ +#define __com_sun_star_awt_FontType_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** These values are used to specify the technology of the font representation. + + <p>They may be expanded in future versions.</p> + */ +published constants FontType +{ + //------------------------------------------------------------------------- + + /** The type of the font is not known. + */ + const short DONTKNOW = 0; + + //------------------------------------------------------------------------- + + /** specifies a raster font. + */ + const short RASTER = 1; + + //------------------------------------------------------------------------- + + /** specifies a device font. + */ + const short DEVICE = 2; + + //------------------------------------------------------------------------- + + /** specifies a scalable font. + */ + const short SCALABLE = 4; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/FontUnderline.idl b/offapi/com/sun/star/awt/FontUnderline.idl new file mode 100644 index 000000000000..4065e347029d --- /dev/null +++ b/offapi/com/sun/star/awt/FontUnderline.idl @@ -0,0 +1,163 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_FontUnderline_idl__ +#define __com_sun_star_awt_FontUnderline_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** These values are used to specify the kind of underlining. + + <p>They may be expanded in future versions.</p> + */ +published constants FontUnderline +{ + //------------------------------------------------------------------------- + + /** specifies no underlining. + */ + const short NONE = 0; + + //------------------------------------------------------------------------- + + /** specifies underlining with a single line. + */ + const short SINGLE = 1; + + //------------------------------------------------------------------------- + + /** specifies underlining with a double line. + */ + const short DOUBLE = 2; + + //------------------------------------------------------------------------- + + /** specifies underlining with a dotted line. + */ + const short DOTTED = 3; + + //------------------------------------------------------------------------- + + /** The kind of underlining is not known. + */ + const short DONTKNOW = 4; + + //------------------------------------------------------------------------- + + /** specifies underlining with a dashed line. + */ + const short DASH = 5; + + //------------------------------------------------------------------------- + + /** specifies underlining with long dashes. + */ + const short LONGDASH = 6; + + //------------------------------------------------------------------------- + + /** specifies underlining with a dash and dot sequence. + */ + const short DASHDOT = 7; + + //------------------------------------------------------------------------- + + /** specifies underlining with a dash, dot, dot sequence. + */ + const short DASHDOTDOT = 8; + + //------------------------------------------------------------------------- + + /** specifies underlining with a small wave. + */ + const short SMALLWAVE = 9; + + //------------------------------------------------------------------------- + + /** specifies underlining with a wave. + */ + const short WAVE = 10; + + //------------------------------------------------------------------------- + + /** specifies underlining with a double wave. + */ + const short DOUBLEWAVE = 11; + + //------------------------------------------------------------------------- + + /** specifies underlining with a bold line. + */ + const short BOLD = 12; + + //------------------------------------------------------------------------- + + /** specifies underlining with bold dots. + */ + const short BOLDDOTTED = 13; + + //------------------------------------------------------------------------- + + /** specifies underlining with bold dashes. + */ + const short BOLDDASH = 14; + + //------------------------------------------------------------------------- + + /** specifies underlining with long bold dashes. + */ + const short BOLDLONGDASH = 15; + + //------------------------------------------------------------------------- + + /** specifies underlining with a dash and dot sequence in bold. + */ + const short BOLDDASHDOT = 16; + + //------------------------------------------------------------------------- + + /** specifies underlining with a dash, dot, dot sequence in bold. + */ + const short BOLDDASHDOTDOT = 17; + + //------------------------------------------------------------------------- + + /** specifies underlining with a bold wave. + */ + const short BOLDWAVE = 18; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/FontWeight.idl b/offapi/com/sun/star/awt/FontWeight.idl new file mode 100644 index 000000000000..f70891022cbf --- /dev/null +++ b/offapi/com/sun/star/awt/FontWeight.idl @@ -0,0 +1,109 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_FontWeight_idl__ +#define __com_sun_star_awt_FontWeight_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** These values are used to specify whether a font is thin or bold. + + <p>They may be expanded in future versions.</p> + */ +published constants FontWeight +{ + //------------------------------------------------------------------------- + + /** The font weight is not specified/known. + */ + const float DONTKNOW = 0.000000; + + //------------------------------------------------------------------------- + + /** specifies a 50% font weight. + */ + const float THIN = 50.000000; + + //------------------------------------------------------------------------- + + /** specifies a 60% font weight. + */ + const float ULTRALIGHT = 60.000000; + + //------------------------------------------------------------------------- + + /** specifies a 75% font weight. + */ + const float LIGHT = 75.000000; + + //------------------------------------------------------------------------- + + /** specifies a 90% font weight. + */ + const float SEMILIGHT = 90.000000; + + //------------------------------------------------------------------------- + + /** specifies a normal font weight. + */ + const float NORMAL = 100.000000; + + //------------------------------------------------------------------------- + + /** specifies a 110% font weight. + */ + const float SEMIBOLD = 110.000000; + + //------------------------------------------------------------------------- + + /** specifies a 150% font weight. + */ + const float BOLD = 150.000000; + + //------------------------------------------------------------------------- + + /** specifies a 175% font weight. + */ + const float ULTRABOLD = 175.000000; + + //------------------------------------------------------------------------- + + /** specifies a 200% font weight. + */ + const float BLACK = 200.000000; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/FontWidth.idl b/offapi/com/sun/star/awt/FontWidth.idl new file mode 100644 index 000000000000..c36d70519c03 --- /dev/null +++ b/offapi/com/sun/star/awt/FontWidth.idl @@ -0,0 +1,109 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_FontWidth_idl__ +#define __com_sun_star_awt_FontWidth_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** These values are used to specify the width of the characters of a font. + + <p>They may be expanded in future versions.</p> + */ +published constants FontWidth +{ + //------------------------------------------------------------------------- + + /** The width of the font is not specified/known. + */ + const float DONTKNOW = 0.000000; + + //------------------------------------------------------------------------- + + /** The width of the font is condensed to 50%. + */ + const float ULTRACONDENSED = 50.000000; + + //------------------------------------------------------------------------- + + /** The width of the font is condensed to 60%. + */ + const float EXTRACONDENSED = 60.000000; + + //------------------------------------------------------------------------- + + /** The width of the font is condensed to 75%. + */ + const float CONDENSED = 75.000000; + + //------------------------------------------------------------------------- + + /** The width of the font is condensed to 90%. + */ + const float SEMICONDENSED = 90.000000; + + //------------------------------------------------------------------------- + + /** The width of the font is normal. + */ + const float NORMAL = 100.000000; + + //------------------------------------------------------------------------- + + /** The width of the font is expanded to 110%. + */ + const float SEMIEXPANDED = 110.000000; + + //------------------------------------------------------------------------- + + /** The width of the font is expanded to 150%. + */ + const float EXPANDED = 150.000000; + + //------------------------------------------------------------------------- + + /** The width of the font is expanded to 175%. + */ + const float EXTRAEXPANDED = 175.000000; + + //------------------------------------------------------------------------- + + /** The width of the font is expanded to 200%. + */ + const float ULTRAEXPANDED = 200.000000; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/Gradient.idl b/offapi/com/sun/star/awt/Gradient.idl new file mode 100644 index 000000000000..9774bc655d2a --- /dev/null +++ b/offapi/com/sun/star/awt/Gradient.idl @@ -0,0 +1,115 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_Gradient_idl__ +#define __com_sun_star_awt_Gradient_idl__ + +#ifndef __com_sun_star_awt_GradientStyle_idl__ +#include <com/sun/star/awt/GradientStyle.idl> +#endif + +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** describes a color dispersion within an area. + */ +published struct Gradient +{ + //------------------------------------------------------------------------- + + /** specifies the style of the gradient. + */ + com::sun::star::awt::GradientStyle Style; + + //------------------------------------------------------------------------- + + /** specifies the color at the start point of the gradient. + */ + com::sun::star::util::Color StartColor; + + //------------------------------------------------------------------------- + + /** specifies the color at the end point of the gradient. + */ + com::sun::star::util::Color EndColor; + + //------------------------------------------------------------------------- + + /** angle of the gradient in 1/10 degree. + */ + short Angle; + + //------------------------------------------------------------------------- + + /** per cent of the total width where just the start color is used. + */ + short Border; + + //------------------------------------------------------------------------- + + /** specifies the X-coordinate, where the gradient begins. + */ + short XOffset; + + //------------------------------------------------------------------------- + + /** specifies the Y-coordinate, where the gradient begins. + */ + short YOffset; + + //------------------------------------------------------------------------- + + /** specifies the intensity at the start point of the gradient. + */ + short StartIntensity; + + //------------------------------------------------------------------------- + + /** specifies the intensity at the end point of the gradient. + */ + short EndIntensity; + + //------------------------------------------------------------------------- + + /** specifies the number of steps of change color. + */ + short StepCount; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/GradientStyle.idl b/offapi/com/sun/star/awt/GradientStyle.idl new file mode 100644 index 000000000000..273dcbca28f9 --- /dev/null +++ b/offapi/com/sun/star/awt/GradientStyle.idl @@ -0,0 +1,83 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_GradientStyle_idl__ +#define __com_sun_star_awt_GradientStyle_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specify the style of color dispersion. + */ +published enum GradientStyle +{ + //------------------------------------------------------------------------- + + /** specifies a linear gradient. + */ + LINEAR, + + //------------------------------------------------------------------------- + + /** specifies an axial gradient. + */ + AXIAL, + + //------------------------------------------------------------------------- + + /** specifies a radial gradient. + */ + RADIAL, + + //------------------------------------------------------------------------- + + /** specifies an elliptical gradient. + */ + ELLIPTICAL, + + //------------------------------------------------------------------------- + + /** specifies a gradient in the shape of a square. + */ + SQUARE, + + //------------------------------------------------------------------------- + + /** specifies a gradient in the shape of a rectangle. + */ + RECT + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/ImageAlign.idl b/offapi/com/sun/star/awt/ImageAlign.idl new file mode 100644 index 000000000000..aa61e7d22228 --- /dev/null +++ b/offapi/com/sun/star/awt/ImageAlign.idl @@ -0,0 +1,71 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_ImageAlign_idl__ +#define __com_sun_star_awt_ImageAlign_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the alignment of an image. + */ +published constants ImageAlign +{ + //------------------------------------------------------------------------- + + /** specifies to align left. + */ + const short LEFT = 0; + + //------------------------------------------------------------------------- + + /** specifies to align top. + */ + const short TOP = 1; + + //------------------------------------------------------------------------- + + /** specifies to align right. + */ + const short RIGHT = 2; + + //------------------------------------------------------------------------- + + /** specifies to align bottom. + */ + const short BOTTOM = 3; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/ImagePosition.idl b/offapi/com/sun/star/awt/ImagePosition.idl new file mode 100644 index 000000000000..b19c796c22b0 --- /dev/null +++ b/offapi/com/sun/star/awt/ImagePosition.idl @@ -0,0 +1,100 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_ImagePosition_idl__ +#define __com_sun_star_awt_ImagePosition_idl__ + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the position of a image, relative to another object + + @see ImageAlign +*/ +constants ImagePosition +{ + /** specifies that the image should be positioned at the left of, and top-aligned to, the other object + */ + const short LeftTop = 0; + + /** specifies that the image should be positioned at the left of, and vertically centered to, the other object + */ + const short LeftCenter = 1; + + /** specifies that the image should be positioned at the left of, and bottom-aligned to, the other object + */ + const short LeftBottom = 2; + + /** specifies that the image should be positioned at the right of, and top-aligned to, the other object + */ + const short RightTop = 3; + + /** specifies that the image should be positioned at the right of, and vertically centered to, the other object + */ + const short RightCenter = 4; + + /** specifies that the image should be positioned at the right of, and bottom-aligned to, the other object + */ + const short RightBottom = 5; + + /** specifies that the image should be positioned above and left-aligned to the other object + */ + const short AboveLeft = 6; + + /** specifies that the image should be positioned above and horizontally centered to the other object + */ + const short AboveCenter = 7; + + /** specifies that the image should be positioned above and right-aligned to the other object + */ + const short AboveRight = 8; + + /** specifies that the image should be positioned below and left-aligned to the other object + */ + const short BelowLeft = 9; + + /** specifies that the image should be positioned below and horizontally centered to the other object + */ + const short BelowCenter = 10; + + /** specifies that the image should be positioned below and right-aligned centered to the other object + */ + const short BelowRight = 11; + + /** specifies that the image should be horizontally and vertically centered to the other object. + */ + const short Centered = 12; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/ImageScaleMode.idl b/offapi/com/sun/star/awt/ImageScaleMode.idl new file mode 100644 index 000000000000..9494bef96814 --- /dev/null +++ b/offapi/com/sun/star/awt/ImageScaleMode.idl @@ -0,0 +1,62 @@ +/************************************************************************* + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * +************************************************************************/ + +#ifndef __com_sun_star_awt_ImageScaleMode_idl__ +#define __com_sun_star_awt_ImageScaleMode_idl__ + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** defines modes how an image displayed in a given area should be scaled to fit this area + */ +constants ImageScaleMode +{ + /** specifies that no scaling should happen at all + */ + const short None = 0; + + /** specifies that the image should be scaled up or down to the size of the surrounding area isotropicly, + i.e. by keeping its aspect ratio. + */ + const short Isotropic = 1; + + /** specifies that the image should be scaled up or down to the size of the surrounding area anisotropicly. + + <p>The image will finally cover all of the surrounding area, but its dimensions might be distorted.</p> + */ + const short Anisotropic = 2; +}; + +//============================================================================= + +}; }; }; }; + +//============================================================================= + +#endif diff --git a/offapi/com/sun/star/awt/ImageStatus.idl b/offapi/com/sun/star/awt/ImageStatus.idl new file mode 100644 index 000000000000..efeeff806e39 --- /dev/null +++ b/offapi/com/sun/star/awt/ImageStatus.idl @@ -0,0 +1,73 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_ImageStatus_idl__ +#define __com_sun_star_awt_ImageStatus_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** These values are used to specify to which degree an image is available. + */ +published constants ImageStatus +{ + //------------------------------------------------------------------------- + + /** This conveys that an error was encountered while producing the image. + */ + const long IMAGESTATUS_ERROR = 1; + + //------------------------------------------------------------------------- + + /** This conveys that one frame of the image is complete but there are more + frames to be delivered. + */ + const long IMAGESTATUS_SINGLEFRAMEDONE = 2; + + //------------------------------------------------------------------------- + + /** This conveys that the image is complete and there are no more pixels or + frames to be delivered. + */ + const long IMAGESTATUS_STATICIMAGEDONE = 3; + + //------------------------------------------------------------------------- + + /** This conveys that the image creation process was deliberately aborted. + */ + const long IMAGESTATUS_ABORTED = 4; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/InputEvent.idl b/offapi/com/sun/star/awt/InputEvent.idl new file mode 100644 index 000000000000..478dc622fcb2 --- /dev/null +++ b/offapi/com/sun/star/awt/InputEvent.idl @@ -0,0 +1,65 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_InputEvent_idl__ +#define __com_sun_star_awt_InputEvent_idl__ + +#ifndef __com_sun_star_lang_EventObject_idl__ +#include <com/sun/star/lang/EventObject.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** the root event class for all component-level input events. + + <p>Input events are delivered to listeners before they are + processed normally by the source where they originated.</p> + + @see WindowEvent + */ +published struct InputEvent: com::sun::star::lang::EventObject +{ + //------------------------------------------------------------------------- + + /** contains the modifier keys which were pressed while the event occurred. + + <p>Zero or more constants from the + <type scope="com::sun::star::awt">KeyModifier</type> group.</p> + */ + short Modifiers; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/InvalidateStyle.idl b/offapi/com/sun/star/awt/InvalidateStyle.idl new file mode 100644 index 000000000000..74ef3a1e4df0 --- /dev/null +++ b/offapi/com/sun/star/awt/InvalidateStyle.idl @@ -0,0 +1,89 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_InvalidateStyle_idl__ +#define __com_sun_star_awt_InvalidateStyle_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies how to invalidate windows. + */ +published constants InvalidateStyle +{ + //------------------------------------------------------------------------- + + /** The child windows are invalidated, too. + */ + const short CHILDREN = 1; + + //------------------------------------------------------------------------- + + /** The child windows are not invalidated. + */ + const short NOCHILDREN = 2; + + //------------------------------------------------------------------------- + + /** The invalidated area is painted with the background color/pattern. + */ + const short NOERASE = 4; + + //------------------------------------------------------------------------- + + /** The invalidated area is updated immediately. + */ + const short UPDATE = 8; + + //------------------------------------------------------------------------- + + /** The parent window is invalidated, too. + */ + const short TRANSPARENT = 16; + + //------------------------------------------------------------------------- + + /** The parent window is not invalidated. + */ + const short NOTRANSPARENT = 32; + + //------------------------------------------------------------------------- + + /** The area is invalidated regardless of overlapping child windows. + */ + const short NOCLIPCHILDREN = 16384; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/ItemEvent.idl b/offapi/com/sun/star/awt/ItemEvent.idl new file mode 100644 index 000000000000..3b5a07765d81 --- /dev/null +++ b/offapi/com/sun/star/awt/ItemEvent.idl @@ -0,0 +1,69 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_ItemEvent_idl__ +#define __com_sun_star_awt_ItemEvent_idl__ + +#ifndef __com_sun_star_lang_EventObject_idl__ +#include <com/sun/star/lang/EventObject.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies an event occurred to an item of a menu, a list box etc. + */ +published struct ItemEvent: com::sun::star::lang::EventObject +{ + //------------------------------------------------------------------------- + + /** specifies which item is newly selected. + */ + long Selected; + + //------------------------------------------------------------------------- + + /** specifies which item is newly highlighted. + */ + long Highlighted; + + //------------------------------------------------------------------------- + + /** specifies the id of the item. + */ + long ItemId; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/ItemListEvent.idl b/offapi/com/sun/star/awt/ItemListEvent.idl new file mode 100644 index 000000000000..f9d2658bd5bd --- /dev/null +++ b/offapi/com/sun/star/awt/ItemListEvent.idl @@ -0,0 +1,76 @@ +/************************************************************************* + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __offapi_com_sun_star_awt_ListItemEvent_idl__ +#define __offapi_com_sun_star_awt_ListItemEvent_idl__ + +#include <com/sun/star/lang/EventObject.idl> +#include <com/sun/star/beans/Optional.idl> + +//================================================================================================================== + +module com { module sun { module star { module awt { + +//================================================================================================================== + +/** is the event broadcasted by a <type>XListItems</type> implementation for changes + in its item list. + */ +struct ItemListEvent : ::com::sun::star::lang::EventObject +{ + /** specifies the position of the item which is affected by the event + + <p>In case the event is not related to a single item, but to the complete list, the value of this + member is undefined.</p> + */ + long ItemPosition; + + /** the text of the item. + + <p>If the event being notified did not touch the text of an item, this member is empty. For instance, upon + invocation of <member>XItemList::setItemImage</member>, only <code>ItemImageURL</code> will be set, and + <code>ItemText</code> will be empty.</p> + */ + ::com::sun::star::beans::Optional< string > + ItemText; + + /** the URL of the image of the item + + <p>If the event being notified did not touch the image of an item, this member is empty. For instance, upon + invocation of <member>XItemList::setItemText</member>, only <code>ItemText</code> will be set, and + <code>ItemImageURL</code> will be empty.</p> + */ + ::com::sun::star::beans::Optional< string > + ItemImageURL; +}; + +//================================================================================================================== + +}; }; }; }; + +//================================================================================================================== + +#endif diff --git a/offapi/com/sun/star/awt/Key.idl b/offapi/com/sun/star/awt/Key.idl new file mode 100644 index 000000000000..5987bc3fbbed --- /dev/null +++ b/offapi/com/sun/star/awt/Key.idl @@ -0,0 +1,574 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_Key_idl__ +#define __com_sun_star_awt_Key_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** These values are used to specifies distinct physical keys. + */ +published constants Key +{ + //------------------------------------------------------------------------- + + const short NUM0 = 256; + + //------------------------------------------------------------------------- + + const short NUM1 = 257; + + //------------------------------------------------------------------------- + + const short NUM2 = 258; + + //------------------------------------------------------------------------- + + const short NUM3 = 259; + + //------------------------------------------------------------------------- + + const short NUM4 = 260; + + //------------------------------------------------------------------------- + + const short NUM5 = 261; + + //------------------------------------------------------------------------- + + const short NUM6 = 262; + + //------------------------------------------------------------------------- + + const short NUM7 = 263; + + //------------------------------------------------------------------------- + + const short NUM8 = 264; + + //------------------------------------------------------------------------- + + const short NUM9 = 265; + + //------------------------------------------------------------------------- + + const short A = 512; + + //------------------------------------------------------------------------- + + const short B = 513; + + //------------------------------------------------------------------------- + + const short C = 514; + + //------------------------------------------------------------------------- + + const short D = 515; + + //------------------------------------------------------------------------- + + const short E = 516; + + //------------------------------------------------------------------------- + + const short F = 517; + + //------------------------------------------------------------------------- + + const short G = 518; + + //------------------------------------------------------------------------- + + const short H = 519; + + //------------------------------------------------------------------------- + + const short I = 520; + + //------------------------------------------------------------------------- + + const short J = 521; + + //------------------------------------------------------------------------- + + const short K = 522; + + //------------------------------------------------------------------------- + + const short L = 523; + + //------------------------------------------------------------------------- + + const short M = 524; + + //------------------------------------------------------------------------- + + const short N = 525; + + //------------------------------------------------------------------------- + + const short O = 526; + + //------------------------------------------------------------------------- + + const short P = 527; + + //------------------------------------------------------------------------- + + const short Q = 528; + + //------------------------------------------------------------------------- + + const short R = 529; + + //------------------------------------------------------------------------- + + const short S = 530; + + //------------------------------------------------------------------------- + + const short T = 531; + + //------------------------------------------------------------------------- + + const short U = 532; + + //------------------------------------------------------------------------- + + const short V = 533; + + //------------------------------------------------------------------------- + + const short W = 534; + + //------------------------------------------------------------------------- + + const short X = 535; + + //------------------------------------------------------------------------- + + const short Y = 536; + + //------------------------------------------------------------------------- + + const short Z = 537; + + //------------------------------------------------------------------------- + + const short F1 = 768; + + //------------------------------------------------------------------------- + + const short F2 = 769; + + //------------------------------------------------------------------------- + + const short F3 = 770; + + //------------------------------------------------------------------------- + + const short F4 = 771; + + //------------------------------------------------------------------------- + + const short F5 = 772; + + //------------------------------------------------------------------------- + + const short F6 = 773; + + //------------------------------------------------------------------------- + + const short F7 = 774; + + //------------------------------------------------------------------------- + + const short F8 = 775; + + //------------------------------------------------------------------------- + + const short F9 = 776; + + //------------------------------------------------------------------------- + + const short F10 = 777; + + //------------------------------------------------------------------------- + + const short F11 = 778; + + //------------------------------------------------------------------------- + + const short F12 = 779; + + //------------------------------------------------------------------------- + + const short F13 = 780; + + //------------------------------------------------------------------------- + + const short F14 = 781; + + //------------------------------------------------------------------------- + + const short F15 = 782; + + //------------------------------------------------------------------------- + + const short F16 = 783; + + //------------------------------------------------------------------------- + + const short F17 = 784; + + //------------------------------------------------------------------------- + + const short F18 = 785; + + //------------------------------------------------------------------------- + + const short F19 = 786; + + //------------------------------------------------------------------------- + + const short F20 = 787; + + //------------------------------------------------------------------------- + + const short F21 = 788; + + //------------------------------------------------------------------------- + + const short F22 = 789; + + //------------------------------------------------------------------------- + + const short F23 = 790; + + //------------------------------------------------------------------------- + + const short F24 = 791; + + //------------------------------------------------------------------------- + + const short F25 = 792; + + //------------------------------------------------------------------------- + + const short F26 = 793; + + //------------------------------------------------------------------------- + + const short DOWN = 1024; + + //------------------------------------------------------------------------- + + const short UP = 1025; + + //------------------------------------------------------------------------- + + const short LEFT = 1026; + + //------------------------------------------------------------------------- + + const short RIGHT = 1027; + + //------------------------------------------------------------------------- + + const short HOME = 1028; + + //------------------------------------------------------------------------- + + const short END = 1029; + + //------------------------------------------------------------------------- + + const short PAGEUP = 1030; + + //------------------------------------------------------------------------- + + const short PAGEDOWN = 1031; + + //------------------------------------------------------------------------- + + const short RETURN = 1280; + + //------------------------------------------------------------------------- + + const short ESCAPE = 1281; + + //------------------------------------------------------------------------- + + const short TAB = 1282; + + //------------------------------------------------------------------------- + + const short BACKSPACE = 1283; + + //------------------------------------------------------------------------- + + const short SPACE = 1284; + + //------------------------------------------------------------------------- + + const short INSERT = 1285; + + //------------------------------------------------------------------------- + + const short DELETE = 1286; + + //------------------------------------------------------------------------- + + const short ADD = 1287; + + //------------------------------------------------------------------------- + + const short SUBTRACT = 1288; + + //------------------------------------------------------------------------- + + const short MULTIPLY = 1289; + + //------------------------------------------------------------------------- + + const short DIVIDE = 1290; + + //------------------------------------------------------------------------- + + const short POINT = 1291; + + //------------------------------------------------------------------------- + + const short COMMA = 1292; + + //------------------------------------------------------------------------- + + const short LESS = 1293; + + //------------------------------------------------------------------------- + + const short GREATER = 1294; + + //------------------------------------------------------------------------- + + const short EQUAL = 1295; + + //------------------------------------------------------------------------- + + const short OPEN = 1296; + + //------------------------------------------------------------------------- + + const short CUT = 1297; + + //------------------------------------------------------------------------- + + const short COPY = 1298; + + //------------------------------------------------------------------------- + + const short PASTE = 1299; + + //------------------------------------------------------------------------- + + const short UNDO = 1300; + + //------------------------------------------------------------------------- + + const short REPEAT = 1301; + + //------------------------------------------------------------------------- + + const short FIND = 1302; + + //------------------------------------------------------------------------- + + const short PROPERTIES = 1303; + + //------------------------------------------------------------------------- + + const short FRONT = 1304; + + //------------------------------------------------------------------------- + + const short CONTEXTMENU = 1305; + + //------------------------------------------------------------------------- + + const short HELP = 1306; + + //------------------------------------------------------------------------- + + const short MENU = 1307; + + //------------------------------------------------------------------------- + + const short HANGUL_HANJA = 1308; + + //------------------------------------------------------------------------- + + const short DECIMAL = 1309; + + //------------------------------------------------------------------------- + + const short TILDE = 1310; + + //------------------------------------------------------------------------- + + const short QUOTELEFT = 1311; + + //------------------------------------------------------------------------- + + const short DELETE_TO_BEGIN_OF_LINE = 1536; + + //------------------------------------------------------------------------- + + const short DELETE_TO_END_OF_LINE = 1537; + + //------------------------------------------------------------------------- + + const short DELETE_TO_BEGIN_OF_PARAGRAPH = 1538; + + //------------------------------------------------------------------------- + + const short DELETE_TO_END_OF_PARAGRAPH = 1539; + + //------------------------------------------------------------------------- + + const short DELETE_WORD_BACKWARD = 1540; + + //------------------------------------------------------------------------- + + const short DELETE_WORD_FORWARD = 1541; + + //------------------------------------------------------------------------- + + const short INSERT_LINEBREAK = 1542; + + //------------------------------------------------------------------------- + + const short INSERT_PARAGRAPH = 1543; + + //------------------------------------------------------------------------- + + const short MOVE_WORD_BACKWARD = 1544; + + //------------------------------------------------------------------------- + + const short MOVE_WORD_FORWARD = 1545; + + //------------------------------------------------------------------------- + + const short MOVE_TO_BEGIN_OF_LINE = 1546; + + //------------------------------------------------------------------------- + + const short MOVE_TO_END_OF_LINE = 1547; + + //------------------------------------------------------------------------- + + const short MOVE_TO_BEGIN_OF_PARAGRAPH = 1548; + + //------------------------------------------------------------------------- + + const short MOVE_TO_END_OF_PARAGRAPH = 1549; + + //------------------------------------------------------------------------- + + const short SELECT_BACKWARD = 1550; + + //------------------------------------------------------------------------- + + const short SELECT_FORWARD = 1551; + + //------------------------------------------------------------------------- + + const short SELECT_WORD_BACKWARD = 1552; + + //------------------------------------------------------------------------- + + const short SELECT_WORD_FORWARD = 1553; + + //------------------------------------------------------------------------- + + const short SELECT_WORD = 1554; + + //------------------------------------------------------------------------- + + const short SELECT_LINE = 1555; + + //------------------------------------------------------------------------- + + const short SELECT_PARAGRAPH = 1556; + + //------------------------------------------------------------------------- + + const short SELECT_ALL = 1557; + + //------------------------------------------------------------------------- + + const short SELECT_TO_BEGIN_OF_LINE = 1558; + + //------------------------------------------------------------------------- + + const short SELECT_TO_END_OF_LINE = 1559; + + //------------------------------------------------------------------------- + + const short MOVE_TO_BEGIN_OF_DOCUMENT = 1560; + + //------------------------------------------------------------------------- + + const short MOVE_TO_END_OF_DOCUMENT = 1561; + + //------------------------------------------------------------------------- + + const short SELECT_TO_BEGIN_OF_DOCUMENT = 1562; + + //------------------------------------------------------------------------- + + const short SELECT_TO_END_OF_DOCUMENT = 1563; + + //------------------------------------------------------------------------- + + const short SELECT_TO_BEGIN_OF_PARAGRAPH = 1564; + + //------------------------------------------------------------------------- + + const short SELECT_TO_END_OF_PARAGRAPH = 1565; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/KeyEvent.idl b/offapi/com/sun/star/awt/KeyEvent.idl new file mode 100644 index 000000000000..6d185b9ba26e --- /dev/null +++ b/offapi/com/sun/star/awt/KeyEvent.idl @@ -0,0 +1,76 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_KeyEvent_idl__ +#define __com_sun_star_awt_KeyEvent_idl__ + +#ifndef __com_sun_star_awt_InputEvent_idl__ +#include <com/sun/star/awt/InputEvent.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a key event. + + @see InputEvent + */ +published struct KeyEvent: com::sun::star::awt::InputEvent +{ + //------------------------------------------------------------------------- + + /** contains the integer code representing the key of the event. + + <p>This is a constant from the constant group <type>Key</type>.</p> + */ + short KeyCode; + + //------------------------------------------------------------------------- + + /** contains the Unicode character generated by this event or 0. + */ + char KeyChar; + + //------------------------------------------------------------------------- + + /** contains the function type of the key event. + + <p>This is a constant from the constant group + <type>KeyFunction</type>.</p> + */ + short KeyFunc; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/KeyFunction.idl b/offapi/com/sun/star/awt/KeyFunction.idl new file mode 100644 index 000000000000..db806c1d0a11 --- /dev/null +++ b/offapi/com/sun/star/awt/KeyFunction.idl @@ -0,0 +1,123 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_KeyFunction_idl__ +#define __com_sun_star_awt_KeyFunction_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** These values are used to specify logical key functions. + */ +published constants KeyFunction +{ + //------------------------------------------------------------------------- + + const short DONTKNOW = 0; + + //------------------------------------------------------------------------- + + const short NEW = 1; + + //------------------------------------------------------------------------- + + const short OPEN = 2; + + //------------------------------------------------------------------------- + + const short SAVE = 3; + + //------------------------------------------------------------------------- + + const short SAVEAS = 4; + + //------------------------------------------------------------------------- + + const short PRINT = 5; + + //------------------------------------------------------------------------- + + const short CLOSE = 6; + + //------------------------------------------------------------------------- + + const short QUIT = 7; + + //------------------------------------------------------------------------- + + const short CUT = 8; + + //------------------------------------------------------------------------- + + const short COPY = 9; + + //------------------------------------------------------------------------- + + const short PASTE = 10; + + //------------------------------------------------------------------------- + + const short UNDO = 11; + + //------------------------------------------------------------------------- + + const short REDO = 12; + + //------------------------------------------------------------------------- + + const short DELETE = 13; + + //------------------------------------------------------------------------- + + const short REPEAT = 14; + + //------------------------------------------------------------------------- + + const short FIND = 15; + + //------------------------------------------------------------------------- + + const short FINDBACKWARD = 16; + + //------------------------------------------------------------------------- + + const short PROPERTIES = 17; + + //------------------------------------------------------------------------- + + const short FRONT = 18; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/KeyGroup.idl b/offapi/com/sun/star/awt/KeyGroup.idl new file mode 100644 index 000000000000..4939965b02f5 --- /dev/null +++ b/offapi/com/sun/star/awt/KeyGroup.idl @@ -0,0 +1,85 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_KeyGroup_idl__ +#define __com_sun_star_awt_KeyGroup_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** These values are used to specify functional groups of keys. + + @deprecated + */ +published constants KeyGroup +{ + //------------------------------------------------------------------------- + + /** specifies a numeric key. + */ + const short NUM = 256; + + //------------------------------------------------------------------------- + + /** specifies an alphabetic key. + */ + const short ALPHA = 512; + + //------------------------------------------------------------------------- + + /** specifies a function key. + */ + const short FKEYS = 768; + + //------------------------------------------------------------------------- + + /** specifies a cursor key. + */ + const short CURSOR = 1024; + + //------------------------------------------------------------------------- + + /** specifies other keys. + */ + const short MISC = 1280; + + //------------------------------------------------------------------------- + + /** specifies the group mask. + */ + const short TYPE = 3840; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/KeyModifier.idl b/offapi/com/sun/star/awt/KeyModifier.idl new file mode 100644 index 000000000000..89b79a928db3 --- /dev/null +++ b/offapi/com/sun/star/awt/KeyModifier.idl @@ -0,0 +1,68 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_KeyModifier_idl__ +#define __com_sun_star_awt_KeyModifier_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** These values are used to specify which modifier keys are pressed. + */ +published constants KeyModifier +{ + //------------------------------------------------------------------------- + + /** refers to both shift keys. + */ + const short SHIFT = 1; + + //------------------------------------------------------------------------- + + /** refers in the most cases to the 'Ctrl' key (Cmd on Mac OS X). + */ + const short MOD1 = 2; + + //------------------------------------------------------------------------- + + /** refers in the most cases to the 'Alt' key. + */ + const short MOD2 = 4; + + /** refers in the most cases to the 'Ctrl' key (Mac OS X) + */ + const short MOD3 = 8; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/KeyStroke.idl b/offapi/com/sun/star/awt/KeyStroke.idl new file mode 100644 index 000000000000..2b65ee78e6ff --- /dev/null +++ b/offapi/com/sun/star/awt/KeyStroke.idl @@ -0,0 +1,81 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_KeyStroke_idl__ +#define __com_sun_star_awt_KeyStroke_idl__ + + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** Describes a key stroke for hotkeys etc. + + @since OOo 1.1.2 + */ +published struct KeyStroke +{ + //------------------------------------------------------------------------- + + /** contains the modifier keys which were pressed while the event occurred. + + <p>Zero or more constants from the group + <type scope="com::sun::star::awt">KeyModifier</type>.</p> + */ + short Modifiers; + + //------------------------------------------------------------------------- + + /** contains the integer code representing the key of the event. + + <p>This is a constant from the constant group + <type scope="com::sun::star::awt">Key</type>.</p> + */ + short KeyCode; + + //------------------------------------------------------------------------- + + /** contains the Unicode character generated by this event or 0. + */ + char KeyChar; + + //------------------------------------------------------------------------- + + /** contains the function type of the key event. + + <p>This is a constant from the constant group + <type scope="com::sun::star::awt">KeyFunction</type>.</p> + */ + short KeyFunc; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/LineEndFormat.idl b/offapi/com/sun/star/awt/LineEndFormat.idl new file mode 100644 index 000000000000..995cf3c43228 --- /dev/null +++ b/offapi/com/sun/star/awt/LineEndFormat.idl @@ -0,0 +1,66 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_LineEndFormat_idl__ +#define __com_sun_star_awt_LineEndFormat_idl__ + + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** These values are used to specify which line end format should be used in strings + */ +constants LineEndFormat +{ + //------------------------------------------------------------------------- + + /** specifies that line ends are to be represented by a carriage return character (\r) + */ + const short CARRIAGE_RETURN = 0; + + //------------------------------------------------------------------------- + + /** specifies that line ends are to be represented by a line feed character (\n) + */ + const short LINE_FEED = 1; + + //------------------------------------------------------------------------- + + /** specifies that line ends are to be represented by a line feed character (\n), followed + by a carriage return character (\r). + */ + const short CARRIAGE_RETURN_LINE_FEED = 2; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/MaxChildrenException.idl b/offapi/com/sun/star/awt/MaxChildrenException.idl new file mode 100644 index 000000000000..a73ddb2f5233 --- /dev/null +++ b/offapi/com/sun/star/awt/MaxChildrenException.idl @@ -0,0 +1,29 @@ +#ifndef __com_sun_star_awt_MaxChildrenException_idl__ +#define __com_sun_star_awt_MaxChildrenException_idl__ + +#ifndef __com_sun_star_uno_Exception_idl__ +#include <com/sun/star/uno/Exception.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** This exception is thrown when adding a child to a container that is full. + + @see XLayoutContainer + @see com::sun::star::awt::XLayoutContainer::addChild + + @since OOo 3.0 + */ +exception MaxChildrenException: com::sun::star::uno::Exception +{ +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/MenuBar.idl b/offapi/com/sun/star/awt/MenuBar.idl new file mode 100644 index 000000000000..4f95cd74f9bc --- /dev/null +++ b/offapi/com/sun/star/awt/MenuBar.idl @@ -0,0 +1,56 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_MenuBar_idl__ +#define __com_sun_star_awt_MenuBar_idl__ + +#ifndef __com_sun_star_awt_XMenuBar_idl__ +#include <com/sun/star/awt/XMenuBar.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** describes a menu for top-level windows. + + <p>A menu bar can only be used by top-level windows. They support + the interface <type scope="com::sun::star::awt">XTopWindow</type> + to set an menu bar object. + </p> + */ +published service MenuBar +{ + interface XMenuBar; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/MenuEvent.idl b/offapi/com/sun/star/awt/MenuEvent.idl new file mode 100644 index 000000000000..48f326f5f7cc --- /dev/null +++ b/offapi/com/sun/star/awt/MenuEvent.idl @@ -0,0 +1,57 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_MenuEvent_idl__ +#define __com_sun_star_awt_MenuEvent_idl__ + +#ifndef __com_sun_star_lang_EventObject_idl__ +#include <com/sun/star/lang/EventObject.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a menu event. + */ +published struct MenuEvent: com::sun::star::lang::EventObject +{ + //------------------------------------------------------------------------- + + /** contains the item id. + */ + short MenuId; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/MenuItemStyle.idl b/offapi/com/sun/star/awt/MenuItemStyle.idl new file mode 100644 index 000000000000..f4a4edf40304 --- /dev/null +++ b/offapi/com/sun/star/awt/MenuItemStyle.idl @@ -0,0 +1,68 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_MenuItemStyle_idl__ +#define __com_sun_star_awt_MenuItemStyle_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** These values are used to specify the properties of a menu item. + + <p>They may be expanded in future versions.</p> + */ +published constants MenuItemStyle +{ + //------------------------------------------------------------------------- + + /** specifies an item which can be checked independently. + */ + const short CHECKABLE = 1; + + //------------------------------------------------------------------------- + + /** specifies an item which can be checked dependent on the neighbouring + items. + */ + const short RADIOCHECK = 2; + + //------------------------------------------------------------------------- + + /** specifies to check this item automatically on select. + */ + const short AUTOCHECK = 4; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/MenuItemType.idl b/offapi/com/sun/star/awt/MenuItemType.idl new file mode 100644 index 000000000000..d3907b9278eb --- /dev/null +++ b/offapi/com/sun/star/awt/MenuItemType.idl @@ -0,0 +1,68 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_MenuItemType_idl__ +#define __com_sun_star_awt_MenuItemType_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the type of a menu item, as returned by + <member scope="com::sun::star::awt">XMenuExtended2::getItemType()</member>. + */ +enum MenuItemType +{ + /** specifies that the menu item type is unkown. + */ + DONTKNOW, + + /** specifies that the menu item has a text. + */ + STRING, + + /** specifies that the menu item has an image. + */ + IMAGE, + + /** specifies that the menu item has a text <b>and</b> an image. + */ + STRINGIMAGE, + + /** specifies that the menu item is a separator. + */ + SEPARATOR + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/MenuLogo.idl b/offapi/com/sun/star/awt/MenuLogo.idl new file mode 100755 index 000000000000..a84f6be2f04a --- /dev/null +++ b/offapi/com/sun/star/awt/MenuLogo.idl @@ -0,0 +1,70 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_MenuLogo_idl__ +#define __com_sun_star_awt_MenuLogo_idl__ + +#ifndef com_sun_star_graphic_XGraphic_idl +#include <com/sun/star/graphic/XGraphic.idl> +#endif + +#ifndef __com_sun_star_util_color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a logo to be displayed on a menu, with a background gradient. + */ +struct MenuLogo +{ + /** specifies the logo image. + */ + ::com::sun::star::graphic::XGraphic Graphic; + + //------------------------------------------------------------------------- + + /** specifies the color at the start point of the gradient. + */ + ::com::sun::star::util::Color StartColor; + + //------------------------------------------------------------------------- + + /** specifies the color at the end point of the gradient. + */ + ::com::sun::star::util::Color EndColor; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/MessageBoxButtons.idl b/offapi/com/sun/star/awt/MessageBoxButtons.idl new file mode 100644 index 000000000000..5fcb700940cb --- /dev/null +++ b/offapi/com/sun/star/awt/MessageBoxButtons.idl @@ -0,0 +1,97 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_MessageBoxButtons_idl__ +#define __com_sun_star_awt_MessageBoxButtons_idl__ + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** defines constants for the possible message box button + combinations. + + */ +constants MessageBoxButtons +{ + //------------------------------------------------------------------------- + + /** specifies a message with "OK" button. + */ + const long BUTTONS_OK = 1; + + /** specifies a message box with "OK" and "CANCEL" button. + */ + const long BUTTONS_OK_CANCEL = 2; + + /** specifies a message box with "YES" and "NO" button. + */ + const long BUTTONS_YES_NO = 3; + + /** specifies a message box with "YES", "NO" and "CANCEL" button. + */ + const long BUTTONS_YES_NO_CANCEL = 4; + + /** specifies a message box with "RETRY" and "CANCEL" button. + */ + const long BUTTONS_RETRY_CANCEL = 5; + + /** specifies a message box with "ABORT", "IGNORE" and "RETRY" button. + */ + const long BUTTONS_ABORT_IGNORE_RETRY = 6; + + /** specifies that OK is the default button. + */ + const long DEFAULT_BUTTON_OK = 0x10000; + + /** specifies that CANCEL is the default button. + */ + const long DEFAULT_BUTTON_CANCEL = 0x20000; + + /** specifies that RETRY is the default button. + */ + const long DEFAULT_BUTTON_RETRY = 0x30000; + + /** specifies that YES is the default button. + */ + const long DEFAULT_BUTTON_YES = 0x40000; + + /** specifies that NO is the default button. + */ + const long DEFAULT_BUTTON_NO = 0x50000; + + /** specifies that IGNORE is the default button. + */ + const long DEFAULT_BUTTON_IGNORE = 0x60000; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/MessageBoxCommand.idl b/offapi/com/sun/star/awt/MessageBoxCommand.idl new file mode 100644 index 000000000000..c07f98d5b8d2 --- /dev/null +++ b/offapi/com/sun/star/awt/MessageBoxCommand.idl @@ -0,0 +1,69 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_MessageBoxCommand_idl__ +#define __com_sun_star_awt_MessageBoxCommand_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a message box command. + + @deprecated + */ +published constants MessageBoxCommand +{ + //------------------------------------------------------------------------- + + const short CANCEL = 0; + + //------------------------------------------------------------------------- + + const short OK = 1; + + //------------------------------------------------------------------------- + + const short YES = 2; + + //------------------------------------------------------------------------- + + const short NO = 3; + + //------------------------------------------------------------------------- + + const short RETRY = 4; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/MouseButton.idl b/offapi/com/sun/star/awt/MouseButton.idl new file mode 100644 index 000000000000..5f7f222373c7 --- /dev/null +++ b/offapi/com/sun/star/awt/MouseButton.idl @@ -0,0 +1,65 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_MouseButton_idl__ +#define __com_sun_star_awt_MouseButton_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** These values are used to specify which keys on the mouse are pressed. + */ +published constants MouseButton +{ + //------------------------------------------------------------------------- + + /** specifies the left mouse button as being pressed. + */ + const short LEFT = 1; + + //------------------------------------------------------------------------- + + /** specifies the right mouse button as being pressed. + */ + const short RIGHT = 2; + + //------------------------------------------------------------------------- + + /** specifies the middle mouse button as being pressed. + */ + const short MIDDLE = 4; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/MouseEvent.idl b/offapi/com/sun/star/awt/MouseEvent.idl new file mode 100644 index 000000000000..02f7ec08bceb --- /dev/null +++ b/offapi/com/sun/star/awt/MouseEvent.idl @@ -0,0 +1,101 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_MouseEvent_idl__ +#define __com_sun_star_awt_MouseEvent_idl__ + +#ifndef __com_sun_star_awt_InputEvent_idl__ +#include <com/sun/star/awt/InputEvent.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies an event from the mouse. + + <p>This event is also used for popup menu requests on objects. + See <member>PopupTrigger</member> for details.</p> + + @see XMouseListener + @see XMouseMotionListener + @see InputEvent + */ +published struct MouseEvent: com::sun::star::awt::InputEvent +{ + //------------------------------------------------------------------------- + + /** contains the pressed mouse buttons. + + <p>Zero ore more constants from the + <type scope="com::sun::star::awt">MouseButton</type> group.</p> + */ + short Buttons; + + //------------------------------------------------------------------------- + + /** contains the x coordinate location of the mouse. + */ + long X; + + //------------------------------------------------------------------------- + + /** contains the y coordinate location of the mouse. + */ + long Y; + + //------------------------------------------------------------------------- + + /** contains the number of mouse clicks associated with event. + */ + long ClickCount; + + //------------------------------------------------------------------------- + + /** specifies if this event is a popup-menu trigger event. + + <p>If this member is <TRUE/>, the event describes a request for a popup menu, + also known as context menu, on an object.</p> + + <p>In this case, <member>X</member> and <member>Y</member> describe the position + where the request was issued. If those members are <code>-1</code>, then the + request was issued using the keyboard, by pressing the operating-system dependent + key combination for this purpose.</p> + + @see XMouseListener::mousePressed + */ + boolean PopupTrigger; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/MouseWheelBehavior.idl b/offapi/com/sun/star/awt/MouseWheelBehavior.idl new file mode 100755 index 000000000000..94efb8abc160 --- /dev/null +++ b/offapi/com/sun/star/awt/MouseWheelBehavior.idl @@ -0,0 +1,62 @@ +/************************************************************************* + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * +************************************************************************/ + +#ifndef __com_sun_star_awt_MouseWheelBehavior_idl__ +#define __com_sun_star_awt_MouseWheelBehavior_idl__ + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** describes the scroll behavior of the mouse wheel for a control + @since OOo 3.2 + */ +constants MouseWheelBehavior +{ + /** defines that the mouse wheel cannot be used to scroll through the control's content + */ + const short SCROLL_DISABLED = 0; + + /** defines that the mouse can only be used to scroll through the control's content if it currently + has the focus. + */ + const short SCROLL_FOCUS_ONLY = 1; + + /** defines that the mouse can be used to scroll through the control's content, no matter whether or not + it has the focus, as long as the mouse pointer is over the control. + */ + const short SCROLL_ALWAYS = 2; +}; + +//============================================================================= + +}; }; }; }; + +//============================================================================= + +#endif diff --git a/offapi/com/sun/star/awt/PaintEvent.idl b/offapi/com/sun/star/awt/PaintEvent.idl new file mode 100644 index 000000000000..f3ba266b3a0a --- /dev/null +++ b/offapi/com/sun/star/awt/PaintEvent.idl @@ -0,0 +1,75 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_PaintEvent_idl__ +#define __com_sun_star_awt_PaintEvent_idl__ + +#ifndef __com_sun_star_lang_EventObject_idl__ +#include <com/sun/star/lang/EventObject.idl> +#endif + +#ifndef __com_sun_star_awt_Rectangle_idl__ +#include <com/sun/star/awt/Rectangle.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the paint event for a component. + + <p>This event is a special type which is used to ensure that + paint/update method calls are serialized along with the other + events delivered from the event queue.</p> + + @see WindowEvent + */ +published struct PaintEvent: com::sun::star::lang::EventObject +{ + //------------------------------------------------------------------------- + + /** contains the rectangle area which needs to be repainted. + */ + com::sun::star::awt::Rectangle UpdateRect; + + //------------------------------------------------------------------------- + + /** contains the number of paint events that follows this event if + it is a multiple PaintEvent. You can collect the PaintEvent + until Count is zero. + */ + short Count; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/Point.idl b/offapi/com/sun/star/awt/Point.idl new file mode 100644 index 000000000000..6afcc76d611e --- /dev/null +++ b/offapi/com/sun/star/awt/Point.idl @@ -0,0 +1,57 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_Point_idl__ +#define __com_sun_star_awt_Point_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a 2-dimensional point using the Cartesian coordinate system. + */ +published struct Point +{ + /** specifies the x-coordinate. + */ + long X; + + //------------------------------------------------------------------------- + + /** specifies the y-coordinate. + */ + long Y; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/PopupMenu.idl b/offapi/com/sun/star/awt/PopupMenu.idl new file mode 100644 index 000000000000..e8a5f913c2cb --- /dev/null +++ b/offapi/com/sun/star/awt/PopupMenu.idl @@ -0,0 +1,55 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_PopupMenu_idl__ +#define __com_sun_star_awt_PopupMenu_idl__ + +#ifndef __com_sun_star_awt_XPopupMenu_idl__ +#include <com/sun/star/awt/XPopupMenu.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** describes a popup menu which is a recursive container for commands + + <p>A popup menu can be used as a standalone object to display a context + menu. It's also possible to use a popup menu to integrate it into + another menu.</p> + */ +published service PopupMenu +{ + interface XPopupMenu; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/PopupMenuDirection.idl b/offapi/com/sun/star/awt/PopupMenuDirection.idl new file mode 100644 index 000000000000..0e676d3e91fe --- /dev/null +++ b/offapi/com/sun/star/awt/PopupMenuDirection.idl @@ -0,0 +1,92 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_PopupMenuDirection_idl__ +#define __com_sun_star_awt_PopupMenuDirection_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** These values are used to specify the direction in which + a popup menu will grow. + + <p>They may be expanded in future versions.</p> + */ +published constants PopupMenuDirection +{ + //------------------------------------------------------------------------- + + /** @deprecated + */ + const short DEFAULT = 0; + + //------------------------------------------------------------------------- + + /** @deprecated + */ + const short DOWN = 1; + + //------------------------------------------------------------------------- + + /** opens on execute in a default direction. + */ + const short EXECUTE_DEFAULT = 0; + + //------------------------------------------------------------------------- + + /** opens on execute downwards. + */ + const short EXECUTE_DOWN = 1; + + //------------------------------------------------------------------------- + + /** opens on execute upwards. + */ + const short EXECUTE_UP = 2; + + //------------------------------------------------------------------------- + + /** opens on execute to the left. + */ + const short EXECUTE_LEFT = 4; + + //------------------------------------------------------------------------- + + /** opens on execute to the right. + */ + const short EXECUTE_RIGHT = 8; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/PosSize.idl b/offapi/com/sun/star/awt/PosSize.idl new file mode 100644 index 000000000000..93e0d3d3df3f --- /dev/null +++ b/offapi/com/sun/star/awt/PosSize.idl @@ -0,0 +1,89 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_PosSize_idl__ +#define __com_sun_star_awt_PosSize_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** These constants are used to flag the parameters of a rectangle. + */ +published constants PosSize +{ + //------------------------------------------------------------------------- + + /** flags the x-coordinate. + */ + const short X = 1; + + //------------------------------------------------------------------------- + + /** flags the y-coordinate. + */ + const short Y = 2; + + //------------------------------------------------------------------------- + + /** flags the width. + */ + const short WIDTH = 4; + + //------------------------------------------------------------------------- + + /** flags the height. + */ + const short HEIGHT = 8; + + //------------------------------------------------------------------------- + + /** flags the x- and y-coordinate. + */ + const short POS = 3; + + //------------------------------------------------------------------------- + + /** flags the width and height. + */ + const short SIZE = 12; + + //------------------------------------------------------------------------- + + /** flags the x- and y-coordinate, width and height. + */ + const short POSSIZE = 15; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/PrinterException.idl b/offapi/com/sun/star/awt/PrinterException.idl new file mode 100644 index 000000000000..805b52e86b98 --- /dev/null +++ b/offapi/com/sun/star/awt/PrinterException.idl @@ -0,0 +1,54 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_PrinterException_idl__ +#define __com_sun_star_awt_PrinterException_idl__ + +#ifndef __com_sun_star_uno_Exception_idl__ +#include <com/sun/star/uno/Exception.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** fired if a resource cannot be locked. + + <p>It is an error if the exception occurs in a non-transacted task. + A transacted task repeats later.</p> + */ +published exception PrinterException: com::sun::star::uno::Exception +{ +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/PushButtonType.idl b/offapi/com/sun/star/awt/PushButtonType.idl new file mode 100644 index 000000000000..fc0c47129efb --- /dev/null +++ b/offapi/com/sun/star/awt/PushButtonType.idl @@ -0,0 +1,71 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_PushButtonType_idl__ +#define __com_sun_star_awt_PushButtonType_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the default actions of a button. + */ +published enum PushButtonType +{ + //------------------------------------------------------------------------- + + /** acts like a standard push button. + */ + STANDARD, + + //------------------------------------------------------------------------- + + /** acts like a OK button. + */ + OK, + + //------------------------------------------------------------------------- + + /** acts like a cancel button. + */ + CANCEL, + + //------------------------------------------------------------------------- + + /** acts like a help button. + */ + HELP + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/RasterOperation.idl b/offapi/com/sun/star/awt/RasterOperation.idl new file mode 100644 index 000000000000..8c1839bf2e0c --- /dev/null +++ b/offapi/com/sun/star/awt/RasterOperation.idl @@ -0,0 +1,79 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_RasterOperation_idl__ +#define __com_sun_star_awt_RasterOperation_idl__ + + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** These values are used to specify the binary pixel-operation applied + when pixels are written to the device. +*/ +published enum RasterOperation +{ + //------------------------------------------------------------------------- + + /** sets all pixel as written in the output operation. + */ + OVERPAINT, + + //------------------------------------------------------------------------- + + /** uses the pixel written as one and the current pixel as + the other operator of an exclusive or-operation. + */ + XOR, + + //------------------------------------------------------------------------- + + /** All bits which are affected by this operation are set to 0. + */ + ZEROBITS, + + //------------------------------------------------------------------------- + + /** All bits which are affected by this operation are set to 1. + */ + ALLBITS, + + //------------------------------------------------------------------------- + + /** All bits which are affected by this operation are inverted. + */ + INVERT + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/Rectangle.idl b/offapi/com/sun/star/awt/Rectangle.idl new file mode 100644 index 000000000000..3e1058339356 --- /dev/null +++ b/offapi/com/sun/star/awt/Rectangle.idl @@ -0,0 +1,69 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_Rectangle_idl__ +#define __com_sun_star_awt_Rectangle_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a rectangular area by position and size. + */ +published struct Rectangle +{ + /** specifies the x-coordinate. + */ + long X; + + //------------------------------------------------------------------------- + + /** specifies the y-coordinate. + */ + long Y; + + //------------------------------------------------------------------------- + + /** specifies the width. + */ + long Width; + + //------------------------------------------------------------------------- + + /** specifies the height. + */ + long Height; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/RoadmapItem.idl b/offapi/com/sun/star/awt/RoadmapItem.idl new file mode 100644 index 000000000000..7fa197bc391a --- /dev/null +++ b/offapi/com/sun/star/awt/RoadmapItem.idl @@ -0,0 +1,78 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_RoadmapItem_idl__ +#define __com_sun_star_awt_RoadmapItem_idl__ + + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/* specifies a RoadmapItem which serves as an Element in a Container like the Roadmap + * specified in com::sun::star::awt::UnoControlRoadmapModel and + * com::sun::star::awt::UnoControlRoadmap + */ +service RoadmapItem +{ + /** The ID uniquely identifies the roadmap item. + * When the RoadmapItem is inserted into the Roadmap via "insertByIndex" + * the default value of the ID is the first available absolute digit that + * has not yet been assigned to other existing RoadmapItems. + */ + [property] short ID; + + /** The Label of the RoadmapItem does not include its Prefix that is auto + * matically set after the following algorithm: + * (Index + 1) + ". " + Label + */ + [property] string Label; + + + /** When "Interactive" is true the RoadmapItem supports a certain "HyperLabel + * functionality": + * Moving the Mousepointer over the RoadmapItem will change it to a Refhand and + * underline the Label for the time the mousepointer resides over the RoadmapItem. + * Clicking the mousepointer will then notify the Roadmap Container. + * The property Interactive" is readonly because it is adapted from the container of the + * RoadmapItem. + */ + [property] boolean Interactive; + + + /** determines whether a control is enabled or disabled. + */ + [property] boolean Enabled; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/ScrollBarOrientation.idl b/offapi/com/sun/star/awt/ScrollBarOrientation.idl new file mode 100644 index 000000000000..706ee93ddc52 --- /dev/null +++ b/offapi/com/sun/star/awt/ScrollBarOrientation.idl @@ -0,0 +1,59 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_ScrollBarOrientation_idl__ +#define __com_sun_star_awt_ScrollBarOrientation_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** These constants are used to specify the orientation of a scroll bar. + */ +published constants ScrollBarOrientation +{ + //------------------------------------------------------------------------- + + /** specifies a horizontal scroll bar. + */ + const long HORIZONTAL = 0; + + //------------------------------------------------------------------------- + + /** specifies a vertical scroll bar. + */ + const long VERTICAL = 1; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/Selection.idl b/offapi/com/sun/star/awt/Selection.idl new file mode 100644 index 000000000000..aa904e687949 --- /dev/null +++ b/offapi/com/sun/star/awt/Selection.idl @@ -0,0 +1,59 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_Selection_idl__ +#define __com_sun_star_awt_Selection_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a numerical range. + */ +published struct Selection +{ + //------------------------------------------------------------------------- + + /** specifies the lower limit of the range. + */ + long Min; + + //------------------------------------------------------------------------- + + /** specifies the upper limit of the range. + */ + long Max; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/SimpleFontMetric.idl b/offapi/com/sun/star/awt/SimpleFontMetric.idl new file mode 100644 index 000000000000..51c44ad67b4d --- /dev/null +++ b/offapi/com/sun/star/awt/SimpleFontMetric.idl @@ -0,0 +1,101 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_SimpleFontMetric_idl__ +#define __com_sun_star_awt_SimpleFontMetric_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** describes the general metrics of a certain font. + */ +published struct SimpleFontMetric +{ + /** specifies the portion of a lower case character that + rises above the height of the character "x" of the font. + + <p>For example, the letters 'b', 'd', 'h', 'k' and 'l' + have an ascent unequal to 0.</p> + + <p>The ascent is measured in pixels, thus the font metric is + device dependent.</p> + */ + short Ascent; + + //------------------------------------------------------------------------- + + /** specifies the portion of a letter falling below the baseline. + + <p>For example, the letters 'g', 'p', and 'y' + have a descent unequal to 0.</p> + + <p>The descent is measured in pixels, thus the font metric is + device dependent.</p> + */ + short Descent; + + //------------------------------------------------------------------------- + + /** specifies the vertical space between lines of this font; + it is also called internal linespacing. + + <p>The leading is measured in pixels, thus the font metric is + device dependent.</p> + */ + short Leading; + + //------------------------------------------------------------------------- + + /** specifies the slant of the characters (italic). + + <p>The slant is measured in degrees from 0 to 359.</p> + */ + short Slant; + + //------------------------------------------------------------------------- + + /** specifies the code of the first printable character in the font. + */ + char FirstChar; + + //------------------------------------------------------------------------- + + /** specifies the code of the last printable character in the font. + */ + char LastChar; + +}; + +//============================================================================= + +}; }; }; }; + + +#endif diff --git a/offapi/com/sun/star/awt/Size.idl b/offapi/com/sun/star/awt/Size.idl new file mode 100644 index 000000000000..9a9b4912dc8c --- /dev/null +++ b/offapi/com/sun/star/awt/Size.idl @@ -0,0 +1,59 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_Size_idl__ +#define __com_sun_star_awt_Size_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the 2-dimensional size of an area using width and height. + */ +published struct Size +{ + //------------------------------------------------------------------------- + + /** specifies the width. + */ + long Width; + + //------------------------------------------------------------------------- + + /** specifies the height. + */ + long Height; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/SpinEvent.idl b/offapi/com/sun/star/awt/SpinEvent.idl new file mode 100644 index 000000000000..bcba2b554aad --- /dev/null +++ b/offapi/com/sun/star/awt/SpinEvent.idl @@ -0,0 +1,57 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_SpinEvent_idl__ +#define __com_sun_star_awt_SpinEvent_idl__ + +#ifndef __com_sun_star_lang_EventObject_idl__ +#include <com/sun/star/lang/EventObject.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a spin button event. + */ +published struct SpinEvent: com::sun::star::lang::EventObject +{ + //------------------------------------------------------------------------- + + /** This is a dummy field only. Please ignore. + */ + short dummy1; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/Style.idl b/offapi/com/sun/star/awt/Style.idl new file mode 100644 index 000000000000..6643b316dd48 --- /dev/null +++ b/offapi/com/sun/star/awt/Style.idl @@ -0,0 +1,60 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_Style_idl__ +#define __com_sun_star_awt_Style_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the style of a window. + */ +published constants Style +{ + //------------------------------------------------------------------------- + + /** specifies a frame. + */ + const short FRAME = 0; + + //------------------------------------------------------------------------- + + /** specifies a dialog. + */ + const short DIALOG = 1; + +}; + +//============================================================================= + +}; }; }; }; + + +#endif diff --git a/offapi/com/sun/star/awt/SystemDependentXWindow.idl b/offapi/com/sun/star/awt/SystemDependentXWindow.idl new file mode 100644 index 000000000000..b9e99c513a0c --- /dev/null +++ b/offapi/com/sun/star/awt/SystemDependentXWindow.idl @@ -0,0 +1,67 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_SystemDependentXWindow_idl__ +#define __com_sun_star_awt_SystemDependentXWindow_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a system dependent XWindow. + + <p>This is the structure returned in the + <member>XSystemDependentWindowPeer::getWindowHandle</member> call, + if the system type is + <const scope="com::sun::star::lang">SystemDependent::XWINDOW</const>.</p> + + @deprecated + */ +published struct SystemDependentXWindow +{ + //------------------------------------------------------------------------- + + /** The XWindow handle if possible, otherwise 0. + */ + long WindowHandle; + + //------------------------------------------------------------------------- + + /** The display pointer. + */ + hyper DisplayPointer; + +}; + +//============================================================================= + +}; }; }; }; + + +#endif diff --git a/offapi/com/sun/star/awt/SystemPointer.idl b/offapi/com/sun/star/awt/SystemPointer.idl new file mode 100644 index 000000000000..c32397abe986 --- /dev/null +++ b/offapi/com/sun/star/awt/SystemPointer.idl @@ -0,0 +1,492 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_SystemPointer_idl__ +#define __com_sun_star_awt_SystemPointer_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the shape of a mouse pointer. + */ +published constants SystemPointer +{ + //------------------------------------------------------------------------- + + /** specifies the normal arrow-like mouse pointer. + */ + const long ARROW = 0; + + //------------------------------------------------------------------------- + + /** specifies an invisible mouse pointer. + */ + const long INVISIBLE = 1; + + //------------------------------------------------------------------------- + + /** specifies a waiting symbol as a mouse pointer (for example hourglas). + */ + const long WAIT = 2; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer for text (cursor-like). + */ + const long TEXT = 3; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer for online help. + */ + const long HELP = 4; + + //------------------------------------------------------------------------- + + /** specifies a cross as a mouse pointer. + */ + const long CROSS = 5; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes movement. + */ + const long MOVE = 6; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes resizing for a top border. + */ + const long NSIZE = 7; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes resizing for a bottom + border. + */ + const long SSIZE = 8; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes resizing for a left border. + */ + const long WSIZE = 9; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes resizing for a right border. + */ + const long ESIZE = 10; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes resizing for the top-left + corner. + */ + const long NWSIZE = 11; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes resizing for the top-right + corner. + */ + const long NESIZE = 12; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes resizing for the bottom-left + corner. + */ + const long SWSIZE = 13; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes resizing for the + bottom-right corner. + */ + const long SESIZE = 14; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes window resizing for a top + border. + */ + const long WINDOW_NSIZE = 15; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes window resizing for a bottom + border. + */ + const long WINDOW_SSIZE = 16; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes window resizing for a left + border. + */ + const long WINDOW_WSIZE = 17; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes window resizing for a right + border. + */ + const long WINDOW_ESIZE = 18; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes window resizing for the + top-left corner. + */ + const long WINDOW_NWSIZE = 19; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes window resizing for the + top-right corner. + */ + const long WINDOW_NESIZE = 20; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes window resizing for the + bottom-left corner. + */ + const long WINDOW_SWSIZE = 21; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes window resizing for the + bottom-right corner. + */ + const long WINDOW_SESIZE = 22; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes horzizontal splitting. + */ + const long HSPLIT = 23; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes vertical splitting. + */ + const long VSPLIT = 24; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes horizontal resizing. + */ + const long HSIZEBAR = 25; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes vertical resizing. + */ + const long VSIZEBAR = 26; + + //------------------------------------------------------------------------- + + /** specifies a hand symbol as mouse pointer. + */ + const long HAND = 27; + + //------------------------------------------------------------------------- + + /** specifies a pointing hand symbol as mouse pointer. + */ + const long REFHAND = 28; + + //------------------------------------------------------------------------- + + /** specifies a pen symbol as mouse pointer. + */ + const long PEN = 29; + + //------------------------------------------------------------------------- + + /** specifies a magnify symbol as mouse pointer. + */ + const long MAGNIFY = 30; + + //------------------------------------------------------------------------- + + /** specifies a fill symbol as mouse pointer. + */ + const long FILL = 31; + + //------------------------------------------------------------------------- + + /** specifies a rotate symbol as mouse pointer. + */ + const long ROTATE = 32; + + //------------------------------------------------------------------------- + + /** specifies a horizontal shear symbol as mouse pointer. + */ + const long HSHEAR = 33; + + //------------------------------------------------------------------------- + + /** specifies a vertical shear symbol as mouse pointer. + */ + const long VSHEAR = 34; + + //------------------------------------------------------------------------- + + /** specifies a mirror symbol as mouse pointer. + */ + const long MIRROR = 35; + + //------------------------------------------------------------------------- + + /** specifies a crook symbol as mouse pointer. + */ + const long CROOK = 36; + + //------------------------------------------------------------------------- + + /** specifies a crop symbol as mouse pointer. + */ + const long CROP = 37; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes moving a point. + */ + const long MOVEPOINT = 38; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes moving a bezier weight. + */ + const long MOVEBEZIERWEIGHT = 39; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes moving data. + */ + const long MOVEDATA = 40; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes copying data. + */ + const long COPYDATA = 41; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes linking data. + */ + const long LINKDATA = 42; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes moving a data link. + */ + const long MOVEDATALINK = 43; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes copying a data link. + */ + const long COPYDATALINK = 44; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes moving a file. + */ + const long MOVEFILE = 45; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes copying a file. + */ + const long COPYFILE = 46; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes linking a file. + */ + const long LINKFILE = 47; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes moving a file link. + */ + const long MOVEFILELINK = 48; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes copying a file link. + */ + const long COPYFILELINK = 49; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes moving multiple files. + */ + const long MOVEFILES = 50; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes copying multiple files. + */ + const long COPYFILES = 51; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes "not allowed". + */ + const long NOTALLOWED = 52; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes drawing a line. + */ + const long DRAW_LINE = 53; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes drawing a rectangle. + */ + const long DRAW_RECT = 54; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes drawing a polygon. + */ + const long DRAW_POLYGON = 55; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes drawing a bezier. + */ + const long DRAW_BEZIER = 56; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes drawing an arc. + */ + const long DRAW_ARC = 57; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes drawing a pie. + */ + const long DRAW_PIE = 58; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes drawing a circle cut. + */ + const long DRAW_CIRCLECUT = 59; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes drawing an ellipse. + */ + const long DRAW_ELLIPSE = 60; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes drawing free handed. + */ + const long DRAW_FREEHAND = 61; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes drawing a connector. + */ + const long DRAW_CONNECT = 62; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes drawing text. + */ + const long DRAW_TEXT = 63; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes drawing a text caption. + */ + const long DRAW_CAPTION = 64; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes a chart. + */ + const long CHART = 65; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes a detective. + */ + const long DETECTIVE = 66; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes a pivot column. + */ + const long PIVOT_COL = 67; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes a pivot row. + */ + const long PIVOT_ROW = 68; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes a pivot field. + */ + const long PIVOT_FIELD = 69; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes a chain. + */ + const long CHAIN = 70; + + //------------------------------------------------------------------------- + + /** specifies a mouse pointer which symbolizes "chaining not allowed". + */ + const long CHAIN_NOTALLOWED = 71; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/TabController.idl b/offapi/com/sun/star/awt/TabController.idl new file mode 100644 index 000000000000..7b9ded82d233 --- /dev/null +++ b/offapi/com/sun/star/awt/TabController.idl @@ -0,0 +1,53 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_TabController_idl__ +#define __com_sun_star_awt_TabController_idl__ + +#ifndef __com_sun_star_awt_XTabController_idl__ +#include <com/sun/star/awt/XTabController.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a standard tab controller. + */ +published service TabController +{ + interface com::sun::star::awt::XTabController; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/TabControllerModel.idl b/offapi/com/sun/star/awt/TabControllerModel.idl new file mode 100644 index 000000000000..c85e6336c6f9 --- /dev/null +++ b/offapi/com/sun/star/awt/TabControllerModel.idl @@ -0,0 +1,59 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_TabControllerModel_idl__ +#define __com_sun_star_awt_TabControllerModel_idl__ + +#ifndef __com_sun_star_awt_XTabControllerModel_idl__ +#include <com/sun/star/awt/XTabControllerModel.idl> +#endif + +#ifndef __com_sun_star_io_XPersistObject_idl__ +#include <com/sun/star/io/XPersistObject.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a standard tab controller model. + */ +published service TabControllerModel +{ + interface com::sun::star::awt::XTabControllerModel; + + interface com::sun::star::io::XPersistObject; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/TextAlign.idl b/offapi/com/sun/star/awt/TextAlign.idl new file mode 100644 index 000000000000..773419c89254 --- /dev/null +++ b/offapi/com/sun/star/awt/TextAlign.idl @@ -0,0 +1,65 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_TextAlign_idl__ +#define __com_sun_star_awt_TextAlign_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the alignment of text. + */ +published constants TextAlign +{ + //------------------------------------------------------------------------- + + /** specifies to left align text. + */ + const long LEFT = 0; + + //------------------------------------------------------------------------- + + /** specifies to center text. + */ + const long CENTER = 1; + + //------------------------------------------------------------------------- + + /** specifies to right align text. + */ + const long RIGHT = 2; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/TextEvent.idl b/offapi/com/sun/star/awt/TextEvent.idl new file mode 100644 index 000000000000..537fa2d1016b --- /dev/null +++ b/offapi/com/sun/star/awt/TextEvent.idl @@ -0,0 +1,57 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_TextEvent_idl__ +#define __com_sun_star_awt_TextEvent_idl__ + +#ifndef __com_sun_star_lang_EventObject_idl__ +#include <com/sun/star/lang/EventObject.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a text event. + */ +published struct TextEvent: com::sun::star::lang::EventObject +{ + //------------------------------------------------------------------------- + + /** This is a dummy field only. Please ignore. + */ + short dummy1; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/Toolkit.idl b/offapi/com/sun/star/awt/Toolkit.idl new file mode 100644 index 000000000000..a065776a535b --- /dev/null +++ b/offapi/com/sun/star/awt/Toolkit.idl @@ -0,0 +1,76 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_Toolkit_idl__ +#define __com_sun_star_awt_Toolkit_idl__ + +#ifndef __com_sun_star_awt_XToolkit_idl__ +#include <com/sun/star/awt/XToolkit.idl> +#endif + +#ifndef __com_sun_star_awt_XDataTransferProviderAccess_idl__ +#include <com/sun/star/awt/XDataTransferProviderAccess.idl> +#endif + +#ifndef __com_sun_star_awt_XSystemChildFactory_idl__ +#include <com/sun/star/awt/XSystemChildFactory.idl> +#endif + +#ifndef __com_sun_star_awt_XMessageBoxFactory_idl__ +#include <com/sun/star/awt/XMessageBoxFactory.idl> +#endif + + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** describes a toolkit that creates windows on a screen. + + <p>The design of the interfaces for the toolkit implementation + should be remote. This means that the calls to the interfaces + of the toolkit should be one-way. Too many synchronous calls kill the + remote performance.</p> + */ +published service Toolkit +{ + interface XToolkit; + + [optional] interface com::sun::star::awt::XDataTransferProviderAccess; + + [optional] interface com::sun::star::awt::XSystemChildFactory; + + [optional] interface com::sun::star::awt::XMessageBoxFactory; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControl.idl b/offapi/com/sun/star/awt/UnoControl.idl new file mode 100644 index 000000000000..38acae5635e3 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControl.idl @@ -0,0 +1,94 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControl_idl__ +#define __com_sun_star_awt_UnoControl_idl__ + +#ifndef __com_sun_star_lang_XComponent_idl__ +#include <com/sun/star/lang/XComponent.idl> +#endif + +#ifndef __com_sun_star_awt_XControl_idl__ +#include <com/sun/star/awt/XControl.idl> +#endif + +#ifndef __com_sun_star_awt_XWindow_idl__ +#include <com/sun/star/awt/XWindow.idl> +#endif + +#ifndef __com_sun_star_awt_XView_idl__ +#include <com/sun/star/awt/XView.idl> +#endif + +#ifndef __com_sun_star_accessibility_XAccessible_idl__ +#include <com/sun/star/accessibility/XAccessible.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies an abstract control. + + <p>All components which implement this service can + be integrated in a windowing environment. This service describes + the controller of the Smalltalk model view controller design.</p> + + <p>You must set a model and a stub to the UnoControl before using + other methods. The implementation only allows the change of the + graphics (<type>XView</type>) if the window is not visible. The + change of the graphics in visible state should redirect the output + to these graphics, but this behavior is implementation-specific.</p> + + <p>The change of data directly at the control may not affect the + model data. To ensure this behavior, modify the data of the model.</p> + */ +published service UnoControl +{ + interface com::sun::star::lang::XComponent; + + interface com::sun::star::awt::XControl; + + interface com::sun::star::awt::XWindow; + + interface com::sun::star::awt::XView; + + /** provides access to the accessible context associated with this object. + + @since OOo 1.1.2 + */ + [optional] interface com::sun::star::accessibility::XAccessible; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlButton.idl b/offapi/com/sun/star/awt/UnoControlButton.idl new file mode 100644 index 000000000000..96e2ac272e57 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlButton.idl @@ -0,0 +1,65 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoButtonControl_idl__ +#define __com_sun_star_awt_UnoButtonControl_idl__ + +#ifndef __com_sun_star_awt_UnoControl_idl__ +#include <com/sun/star/awt/UnoControl.idl> +#endif + +#ifndef __com_sun_star_awt_XButton_idl__ +#include <com/sun/star/awt/XButton.idl> +#endif + +#ifndef __com_sun_star_awt_XLayoutConstrains_idl__ +#include <com/sun/star/awt/XLayoutConstrains.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a button control. + */ +published service UnoControlButton +{ + service com::sun::star::awt::UnoControl; + + interface com::sun::star::awt::XButton; + + interface com::sun::star::awt::XLayoutConstrains; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlButtonModel.idl b/offapi/com/sun/star/awt/UnoControlButtonModel.idl new file mode 100644 index 000000000000..bbcf7000157e --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlButtonModel.idl @@ -0,0 +1,282 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlButtonModel_idl__ +#define __com_sun_star_awt_UnoControlButtonModel_idl__ + +#ifndef __com_sun_star_awt_FontDescriptor_idl__ +#include <com/sun/star/awt/FontDescriptor.idl> +#endif +#ifndef __com_sun_star_awt_UnoControlModel_idl__ +#include <com/sun/star/awt/UnoControlModel.idl> +#endif +#ifndef __com_sun_star_style_VerticalAlignment_idl__ +#include <com/sun/star/style/VerticalAlignment.idl> +#endif +#ifndef com_sun_star_graphic_XGraphic_idl +#include <com/sun/star/graphic/XGraphic.idl> +#endif +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the standard model of an <type>UnoControlButton</type>. + */ +published service UnoControlButtonModel +{ + service com::sun::star::awt::UnoControlModel; + + //------------------------------------------------------------------------- + + /** specifies the horizontal alignment of the text in the control. + + <pre> + 0: left + 1: center + 2: right + </pre> + */ + [optional, property] short Align; + + //------------------------------------------------------------------------- + + /** specifies the background color (RGB) of the control. + */ + [property] com::sun::star::util::Color BackgroundColor; + + //------------------------------------------------------------------------- + + /** specifies that the button is the default button on the document. + */ + [property] boolean DefaultButton; + + //------------------------------------------------------------------------- + + /** determines whether the control is enabled or disabled. + */ + [property] boolean Enabled; + + //------------------------------------------------------------------------- + + /** specifies whether the button control should grab the focus when clicked. + + <p>If set to <TRUE/> (which is the default), the button control automatically grabs the + focus when the user clicks onto it with the mouse.<br/> + If set to <FALSE/>, the focus is preserved when the user operates the button control with + the mouse.</p> + + @since OOo 2.0.0 + */ + [optional, property] boolean FocusOnClick; + + //------------------------------------------------------------------------- + + /** specifies the font attributes of the text in the control. + */ + [property] com::sun::star::awt::FontDescriptor FontDescriptor; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontEmphasis</type> + value of the text in the control. + */ + [property] short FontEmphasisMark; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontRelief</type> + value of the text in the control. + */ + [property] short FontRelief; + + //------------------------------------------------------------------------- + + /** specifies the help text of the control. + */ + [property] string HelpText; + + //------------------------------------------------------------------------- + + /** specifies the help URL of the control. + */ + [property] string HelpURL; + + //------------------------------------------------------------------------- + + /** specifies the alignment of the image inside the button as + <type>ImageAlign</type> value. + */ + [property] short ImageAlign; + + //------------------------------------------------------------------------- + + /** specifies the position of the image, if any, relative to the text, if any + + <p>Valid values of this property are specified with <type>ImagePosition</type>.</p> + + <p>If this property is present, it supersedes the <member>ImageAlign</member> property - setting + one of both properties sets the other one to the best possible match.</p> + */ + [optional, property] short ImagePosition; + + //------------------------------------------------------------------------- + + /** specifies an URL to an image to use for the button. + @see Graphic + */ + [property] string ImageURL; + + //------------------------------------------------------------------------- + + /** specifies a graphic to be displayed at the button + + <p>If this property is present, it interacts with the <member>ImageURL</member>in the + following way: + <ul><li>If <member>ImageURL</member> is set, <member>Graphic</member> will be reset + to an object as loaded from the given image URL, or <NULL/> if <member>ImageURL</member> + does not point to a valid image file.</li> + <li>If <member>Graphic</member> is set, <member>ImageURL</member> will be reset + to an empty string.</li> + </ul></p> + + @since OOo 2.1 + */ + [optional, property, transient] com::sun::star::graphic::XGraphic Graphic; + + //------------------------------------------------------------------------- + + /** specifies the label of the control. + */ + [property] string Label; + + //------------------------------------------------------------------------- + + /** specifies that the text may be displayed on more than one line. + + @since OOo 2.0.0 + */ + [optional, property] boolean MultiLine; + + //------------------------------------------------------------------------- + + /** specifies that the control will be printed with the document. + */ + [property] boolean Printable; + + //------------------------------------------------------------------------- + + /** specifies the default action of the button as <type>PushButtonType</type> value. + */ + [property] short PushButtonType; + + //------------------------------------------------------------------------- + + /** specifies whether the control should show repeating behaviour. + + <p>Normally, when you click a button with the mouse, you need to + release the mouse button, and press it again. With this property + set to <TRUE/>, the button is repeatedly pressed while you hold + down the mouse button.</p> + + @since OOo 2.0.0 + */ + [optional, property] boolean Repeat; + + //------------------------------------------------------------------------- + + /** specifies the mouse repeat delay, in milliseconds. + + <p>When the user presses a mouse in a control area where this triggers + an action (such as pressing the button), then usual control implementations + allow to repeatedly trigger this action, without the need to release the + mouse button and to press it again. The delay between two such triggers + is specified with this property.</p> + + @since OOo 2.0.0 + */ + [optional, property] long RepeatDelay; + + //------------------------------------------------------------------------- + + /** specifies the state of the control. + */ + [property] short State; + + //------------------------------------------------------------------------- + + /** specifies that the control can be reached with the TAB key. + */ + [property] boolean Tabstop; + + //------------------------------------------------------------------------- + + /** specifies the text color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextColor; + + //------------------------------------------------------------------------- + + /** specifies the text line color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextLineColor; + + //------------------------------------------------------------------------- + + /** specifies whether the button should toggle on a single operation. + + <p>If this property is set to <TRUE/>, a single operation of the button control (pressing space + while it is focused, or clicking onto it) toggles it between a <em>pressed</em> and a <em>not + pressed</em> state.</p> + + <p>The default for this property is <FALSE/>, which means the button behaves like a usual + push button.</p> + + @since OOo 2.0.0 + */ + [optional, property] boolean Toggle; + + //------------------------------------------------------------------------- + + /** specifies the vertical alignment of the text in the control. + + @since OOo 2.0.0 + */ + [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlCheckBox.idl b/offapi/com/sun/star/awt/UnoControlCheckBox.idl new file mode 100644 index 000000000000..f9f286e5b8fb --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlCheckBox.idl @@ -0,0 +1,65 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoCheckBoxControl_idl__ +#define __com_sun_star_awt_UnoCheckBoxControl_idl__ + +#ifndef __com_sun_star_awt_UnoControl_idl__ +#include <com/sun/star/awt/UnoControl.idl> +#endif + +#ifndef __com_sun_star_awt_XCheckBox_idl__ +#include <com/sun/star/awt/XCheckBox.idl> +#endif + +#ifndef __com_sun_star_awt_XLayoutConstrains_idl__ +#include <com/sun/star/awt/XLayoutConstrains.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a check box control. + */ +published service UnoControlCheckBox +{ + service com::sun::star::awt::UnoControl; + + interface com::sun::star::awt::XCheckBox; + + interface com::sun::star::awt::XLayoutConstrains; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlCheckBoxModel.idl b/offapi/com/sun/star/awt/UnoControlCheckBoxModel.idl new file mode 100644 index 000000000000..7870f03f4aec --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlCheckBoxModel.idl @@ -0,0 +1,240 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlCheckBoxModel_idl__ +#define __com_sun_star_awt_UnoControlCheckBoxModel_idl__ + +#ifndef __com_sun_star_awt_FontDescriptor_idl__ +#include <com/sun/star/awt/FontDescriptor.idl> +#endif +#ifndef __com_sun_star_awt_UnoControlModel_idl__ +#include <com/sun/star/awt/UnoControlModel.idl> +#endif +#ifndef __com_sun_star_style_VerticalAlignment_idl__ +#include <com/sun/star/style/VerticalAlignment.idl> +#endif +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif +#ifndef com_sun_star_graphic_XGraphic_idl +#include <com/sun/star/graphic/XGraphic.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the standard model of an <type>UnoControlCheckBox</type>. + */ +published service UnoControlCheckBoxModel +{ + service com::sun::star::awt::UnoControlModel; + + //------------------------------------------------------------------------- + + /** specifies the horizontal alignment of the text in the control. + + <pre> + 0: left + 1: center + 2: right + </pre> + + @since OOo 2.0.0 + */ + [optional, property] short Align; + + //------------------------------------------------------------------------- + + /** specifies the background color (RGB) of the control. + */ + [optional, property] long BackgroundColor; + + //------------------------------------------------------------------------- + + /** determines whether the control is enabled or disabled. + */ + [property] boolean Enabled; + + //------------------------------------------------------------------------- + + /** specifies the font attributes of the text in the control. + */ + [property] com::sun::star::awt::FontDescriptor FontDescriptor; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontEmphasis</type> + value of the text in the control. + */ + [property] short FontEmphasisMark; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontRelief</type> + value of the text in the control. + */ + [property] short FontRelief; + + //------------------------------------------------------------------------- + + /** specifies the help text of the control. + */ + [property] string HelpText; + + //------------------------------------------------------------------------- + + /** specifies the help URL of the control. + */ + [property] string HelpURL; + + //------------------------------------------------------------------------- + + /** specifies the position of the image, if any, relative to the text, if any + + <p>Valid values of this property are specified with <type>ImagePosition</type>.</p> + */ + [optional, property] short ImagePosition; + + //------------------------------------------------------------------------- + + /** specifies an URL to an image to display besides the label of the control + @see Graphic + */ + [optional, property] string ImageURL; + + //------------------------------------------------------------------------- + + /** specifies a graphic to be displayed besides the label of the control + + <p>If this property is present, it interacts with the <member>ImageURL</member>in the + following way: + <ul><li>If <member>ImageURL</member> is set, <member>Graphic</member> will be reset + to an object as loaded from the given image URL, or <NULL/> if <member>ImageURL</member> + does not point to a valid image file.</li> + <li>If <member>Graphic</member> is set, <member>ImageURL</member> will be reset + to an empty string.</li> + </ul></p> + + @since OOo 2.1 + */ + [optional, property, transient] com::sun::star::graphic::XGraphic Graphic; + + //------------------------------------------------------------------------- + + /** specifies the label of the control. + */ + [property] string Label; + + //------------------------------------------------------------------------- + + /** specifies that the text may be displayed on more than one line. + + @since OOo 2.0.0 + */ + [optional, property] boolean MultiLine; + + //------------------------------------------------------------------------- + + /** specifies that the control will be printed with the document. + */ + [property] boolean Printable; + + //------------------------------------------------------------------------- + + /** specifies the state of the control. + + <pre> + 0: not checked + 1: checked + 2: don't know + </pre> + */ + [property] short State; + + //------------------------------------------------------------------------- + + /** specifies that the control can be reached with the TAB key. + */ + [property] boolean Tabstop; + + //------------------------------------------------------------------------- + + /** specifies the text color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextColor; + + //------------------------------------------------------------------------- + + /** specifies the text line color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextLineColor; + + //------------------------------------------------------------------------- + + /** specifies that the control may have the state "don't know". + */ + [property] boolean TriState; + + //------------------------------------------------------------------------- + + /** specifies the vertical alignment of the text in the control. + + @since OOo 2.0.0 + */ + [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; + + //------------------------------------------------------------------------- + + /** specifies a visual effect to apply to the check box control + + <p>Possible values for this property are <type>VisualEffect</type>::FLAT and + <type>VisualEffect</type>::LOOK3D.</p> + + @see com::sun::star::awt::VisualEffect + + @since OOo 2.0.0 + */ + [optional, property] short VisualEffect; + + /** denotes the writing mode used in the control, as specified in the + <type scope="com::sun::star::text">WritingMode2</type> constants group. + + <p>Only <member scope="com::sun::star::text">WritingMode2::LR_TB</member> and + <member scope="com::sun::star::text">WritingMode2::RL_TB</member> are supported at the moment.</p> + + @since OOo 3.1 + */ + [optional, property] short WritingMode; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlComboBox.idl b/offapi/com/sun/star/awt/UnoControlComboBox.idl new file mode 100644 index 000000000000..0392f571cd33 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlComboBox.idl @@ -0,0 +1,59 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoComboBoxControl_idl__ +#define __com_sun_star_awt_UnoComboBoxControl_idl__ + +#ifndef __com_sun_star_awt_UnoControlEdit_idl__ +#include <com/sun/star/awt/UnoControlEdit.idl> +#endif + +#ifndef __com_sun_star_awt_XComboBox_idl__ +#include <com/sun/star/awt/XComboBox.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a combo box control. + */ +published service UnoControlComboBox +{ + service com::sun::star::awt::UnoControlEdit; + + interface com::sun::star::awt::XComboBox; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlComboBoxModel.idl b/offapi/com/sun/star/awt/UnoControlComboBoxModel.idl new file mode 100644 index 000000000000..eedd7b78c346 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlComboBoxModel.idl @@ -0,0 +1,240 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlComboBoxModel_idl__ +#define __com_sun_star_awt_UnoControlComboBoxModel_idl__ + +#ifndef __com_sun_star_awt_FontDescriptor_idl__ +#include <com/sun/star/awt/FontDescriptor.idl> +#endif + +#ifndef __com_sun_star_awt_UnoControlModel_idl__ +#include <com/sun/star/awt/UnoControlModel.idl> +#endif + +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + +#include <com/sun/star/awt/XItemList.idl> + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the standard model of an <type>UnoControlComboBox</type>. + */ +published service UnoControlComboBoxModel +{ + service com::sun::star::awt::UnoControlModel; + + //------------------------------------------------------------------------- + + /** specifies the horizontal alignment of the text in the control. + + <pre> + 0: left + 1: center + 2: right + </pre> + */ + [optional, property] short Align; + + //------------------------------------------------------------------------- + + /** specifies whether automatic completion of text is enabled. + */ + [property] boolean Autocomplete; + + //------------------------------------------------------------------------- + + /** specifies the background color (RGB) of the control. + */ + [property] com::sun::star::util::Color BackgroundColor; + + //------------------------------------------------------------------------- + + /** specifies the border style of the control. + + <pre> + 0: No border + 1: 3D border + 2: simple border + </pre> + */ + [property] short Border; + + //------------------------------------------------------------------------- + + /** specifies the color of the border, if present + + <p>Not every border style (see <member>Border</member>) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.</p> + + @since OOo 2.0.0 + */ + [optional, property] long BorderColor; + + //------------------------------------------------------------------------- + + /** specifies if the control has a drop down button. + */ + [property] boolean Dropdown; + + //------------------------------------------------------------------------- + + /** determines whether the control is enabled or disabled. + */ + [property] boolean Enabled; + + //------------------------------------------------------------------------- + + /** specifies the font attributes of the text in the control. + */ + [property] com::sun::star::awt::FontDescriptor FontDescriptor; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontEmphasis</type> + value of the text in the control. + */ + [property] short FontEmphasisMark; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontRelief</type> + value of the text in the control. + */ + [property] short FontRelief; + + //------------------------------------------------------------------------- + + /** specifies the help text of the control. + */ + [property] string HelpText; + + //------------------------------------------------------------------------- + + /** specifies the help URL of the control. + */ + [property] string HelpURL; + + //------------------------------------------------------------------------- + + /** specifies whether the selection in the control should be hidden when + the control is not active (focused). + + @since OOo 2.0.0 + */ + [optional, property] boolean HideInactiveSelection; + + //------------------------------------------------------------------------- + + /** specifies the maximum line count displayed in the drop down box. + */ + [property] short LineCount; + + //------------------------------------------------------------------------- + + /** specifies the maximum character count. + + <p>There's no limitation, if set to 0.</p> + */ + [property] short MaxTextLen; + + //------------------------------------------------------------------------- + + /** specifies that the control will be printed with the document. + */ + [property] boolean Printable; + + //------------------------------------------------------------------------- + + /** specifies that the content of the control cannot be modified by the user. + */ + [property] boolean ReadOnly; + + //------------------------------------------------------------------------- + + /** specifies the list of items. + */ + [property] sequence<string> StringItemList; + + //------------------------------------------------------------------------- + + /** specifies that the control can be reached with the TAB key. + */ + [property] boolean Tabstop; + + //------------------------------------------------------------------------- + + /** specifies the text displayed in the control. + */ + [property] string Text; + + //------------------------------------------------------------------------- + + /** specifies the text color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextColor; + + //------------------------------------------------------------------------- + + /** specifies the text line color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextLineColor; + + /** denotes the writing mode used in the control, as specified in the + <type scope="com::sun::star::text">WritingMode2</type> constants group. + + <p>Only <member scope="com::sun::star::text">WritingMode2::LR_TB</member> and + <member scope="com::sun::star::text">WritingMode2::RL_TB</member> are supported at the moment.</p> + + @since OOo 3.1 + */ + [optional, property] short WritingMode; + + /** defines how the mouse wheel can be used to scroll through the control's content. + + <p>Usually, the mouse wheel scrool through the control's entry list. Using this property, + and one of the <type>MouseWheelBehavior</type> constants, you can control under which circumstances + this is possible.</p> + */ + [optional, property] short MouseWheelBehavior; + + /** allows mmanipulating the list of items in the combo box more fine-grained than the + <member>StringItemList</member> property. + */ + [optional] interface XItemList; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlContainer.idl b/offapi/com/sun/star/awt/UnoControlContainer.idl new file mode 100644 index 000000000000..1b63521680a2 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlContainer.idl @@ -0,0 +1,71 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlContainer_idl__ +#define __com_sun_star_awt_UnoControlContainer_idl__ + +#ifndef __com_sun_star_awt_UnoControl_idl__ +#include <com/sun/star/awt/UnoControl.idl> +#endif + +#ifndef __com_sun_star_awt_XUnoControlContainer_idl__ +#include <com/sun/star/awt/XUnoControlContainer.idl> +#endif + +#ifndef __com_sun_star_awt_XControlContainer_idl__ +#include <com/sun/star/awt/XControlContainer.idl> +#endif + +#ifndef __com_sun_star_container_XContainer_idl__ +#include <com/sun/star/container/XContainer.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies an abstract control which contains other controls. + */ +published service UnoControlContainer +{ + service com::sun::star::awt::UnoControl; + + interface com::sun::star::awt::XUnoControlContainer; + + interface com::sun::star::awt::XControlContainer; + + interface com::sun::star::container::XContainer; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlContainerModel.idl b/offapi/com/sun/star/awt/UnoControlContainerModel.idl new file mode 100644 index 000000000000..9fda3791781f --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlContainerModel.idl @@ -0,0 +1,116 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlContainerModel_idl__ +#define __com_sun_star_awt_UnoControlContainerModel_idl__ + +#ifndef __com_sun_star_awt_UnoControlModel_idl__ +#include <com/sun/star/awt/UnoControlModel.idl> +#endif + +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the standard model of an <type>UnoControlContainer</type>. + */ +published service UnoControlContainerModel +{ + service com::sun::star::awt::UnoControlModel; + + //------------------------------------------------------------------------- + + /** specifies the background color (RGB) of the control. + */ + [property] com::sun::star::util::Color BackgroundColor; + + //------------------------------------------------------------------------- + + /** determines whether a control is enabled or disabled. + */ + [property] boolean Enabled; + + //------------------------------------------------------------------------- + + /** specifies the border style of the control. + + <pre> + 0: No border + 1: 3D border + 2: simple border + </pre> + */ + [property] short Border; + + //------------------------------------------------------------------------- + + /** specifies the color of the border, if present + + <p>Not every border style (see <member>Border</member>) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.</p> + + @since OOo 2.0.0 + */ + [optional, property] long BorderColor; + + //------------------------------------------------------------------------- + + /** specifies whether the control will be printed with the document. + */ + [property] boolean Printable; + + //------------------------------------------------------------------------- + + /** specifies the text displayed in the control. + */ + [property] string Text; + + //------------------------------------------------------------------------- + + /** specifies the help text of the control. + */ + [property] string HelpText; + + //------------------------------------------------------------------------- + + /** specifies the help URL of the control. + */ + [property] string HelpURL; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlCurrencyField.idl b/offapi/com/sun/star/awt/UnoControlCurrencyField.idl new file mode 100644 index 000000000000..06159fb54ed2 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlCurrencyField.idl @@ -0,0 +1,73 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoCurrencyFieldControl_idl__ +#define __com_sun_star_awt_UnoCurrencyFieldControl_idl__ + +#ifndef __com_sun_star_awt_UnoControlEdit_idl__ +#include <com/sun/star/awt/UnoControlEdit.idl> +#endif + +#ifndef __com_sun_star_awt_XSpinField_idl__ +#include <com/sun/star/awt/XSpinField.idl> +#endif + +#ifndef __com_sun_star_awt_XCurrencyField_idl__ +#include <com/sun/star/awt/XCurrencyField.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a currency field control. + + <p>A currency field makes it possible to enter, display and edit + currency values.</p> + */ +published service UnoControlCurrencyField +{ + service com::sun::star::awt::UnoControlEdit; + + /** gives access to the value of a spin field and makes it possible to + register for spin events. + + @since OOo 1.1.2 + */ + [optional] interface com::sun::star::awt::XSpinField; + + interface com::sun::star::awt::XCurrencyField; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlCurrencyFieldModel.idl b/offapi/com/sun/star/awt/UnoControlCurrencyFieldModel.idl new file mode 100644 index 000000000000..1789e23fff32 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlCurrencyFieldModel.idl @@ -0,0 +1,279 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlCurrencyFieldModel_idl__ +#define __com_sun_star_awt_UnoControlCurrencyFieldModel_idl__ + +#ifndef __com_sun_star_awt_FontDescriptor_idl__ +#include <com/sun/star/awt/FontDescriptor.idl> +#endif + +#ifndef __com_sun_star_awt_UnoControlModel_idl__ +#include <com/sun/star/awt/UnoControlModel.idl> +#endif + +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + +#ifndef __com_sun_star_style_VerticalAlignment_idl__ +#include <com/sun/star/style/VerticalAlignment.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the standard model of an <type>UnoControlCurrencyField</type>. + */ +published service UnoControlCurrencyFieldModel +{ + service com::sun::star::awt::UnoControlModel; + + //------------------------------------------------------------------------- + + /** specifies the background color (RGB) of the control. + */ + [property] com::sun::star::util::Color BackgroundColor; + + //------------------------------------------------------------------------- + + /** specifies the border style of the control. + + <pre> + 0: No border + 1: 3D border + 2: simple border + </pre> + */ + [property] short Border; + + //------------------------------------------------------------------------- + + /** specifies the color of the border, if present + + <p>Not every border style (see <member>Border</member>) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.</p> + + @since OOo 2.0.0 + */ + [optional, property] long BorderColor; + + //------------------------------------------------------------------------- + + /** specifies the currency symbol. + */ + [property] string CurrencySymbol; + + //------------------------------------------------------------------------- + + /** specifies the decimal accuracy. + */ + [property] short DecimalAccuracy; + + //------------------------------------------------------------------------- + + /** determines whether the control is enabled or disabled. + */ + [property] boolean Enabled; + + //------------------------------------------------------------------------- + + /** specifies the font attributes of the text in the control. + */ + [property] com::sun::star::awt::FontDescriptor FontDescriptor; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontEmphasis</type> + value of the text in the control. + */ + [property] short FontEmphasisMark; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontRelief</type> + value of the text in the control. + */ + [property] short FontRelief; + + //------------------------------------------------------------------------- + + /** specifies the help text of the control. + */ + [property] string HelpText; + + //------------------------------------------------------------------------- + + /** specifies the help URL of the control. + */ + [property] string HelpURL; + + //------------------------------------------------------------------------- + + /** specifies whether the selection in the control should be hidden when + the control is not active (focused). + + @since OOo 2.0.0 + */ + [optional, property] boolean HideInactiveSelection; + + //------------------------------------------------------------------------- + + /** specifies whether the currency symbol is to be prepended. + */ + + [property] boolean PrependCurrencySymbol; + + //------------------------------------------------------------------------- + + /** specifies that the control will be printed with the document. + */ + [property] boolean Printable; + + //------------------------------------------------------------------------- + + /** specifies that the content of the control cannot be modified by the user. + */ + [property] boolean ReadOnly; + + //------------------------------------------------------------------------- + + /** specifies whether the mouse should show repeating behaviour, i.e. + repeatedly trigger an action when keeping pressed. + + @since OOo 2.0.0 + */ + [optional, property] boolean Repeat; + + //------------------------------------------------------------------------- + + /** specifies the mouse repeat delay, in milliseconds. + + <p>When the user presses a mouse in a control area where this triggers + an action (such as spinning the value), then usual control implementations + allow to repeatedly trigger this action, without the need to release the + mouse button and to press it again. The delay between two such triggers + is specified with this property.</p> + + @since OOo 2.0.0 + */ + [optional, property] long RepeatDelay; + + //------------------------------------------------------------------------- + + /** specifies whether the thousands separator is to be displayed. + */ + [property] boolean ShowThousandsSeparator; + + //------------------------------------------------------------------------- + + /** specifies that the control has a spin button. + */ + [property] boolean Spin; + + //------------------------------------------------------------------------- + + /** specifies that the value is checked during the user input. + */ + [property] boolean StrictFormat; + + //------------------------------------------------------------------------- + + /** specifies that the control can be reached with the TAB key. + */ + [property] boolean Tabstop; + + //------------------------------------------------------------------------- + + /** specifies the text color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextColor; + + //------------------------------------------------------------------------- + + /** specifies the text line color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextLineColor; + + //------------------------------------------------------------------------- + + /** specifies the value displayed in the control. + */ + [property] double Value; + + //------------------------------------------------------------------------- + + /** specifies the maximum value that can be entered. + */ + [property] double ValueMax; + + //------------------------------------------------------------------------- + + /** specifies the minimum value that can be entered. + */ + [property] double ValueMin; + + //------------------------------------------------------------------------- + + /** specifies the value step when using the spin button. + */ + [property] double ValueStep; + + /** denotes the writing mode used in the control, as specified in the + <type scope="com::sun::star::text">WritingMode2</type> constants group. + + <p>Only <member scope="com::sun::star::text">WritingMode2::LR_TB</member> and + <member scope="com::sun::star::text">WritingMode2::RL_TB</member> are supported at the moment.</p> + + @since OOo 3.1 + */ + [optional, property] short WritingMode; + + /** defines how the mouse wheel can be used to scroll through the control's content. + + <p>Usually, the mouse wheel spins the numeric value displayed in the control. Using this property, + and one of the <type>MouseWheelBehavior</type> constants, you can control under which circumstances + this is possible.</p> + */ + [optional, property] short MouseWheelBehavior; + + //------------------------------------------------------------------------- + + /** specifies the vertical alignment of the text in the control. + + @since OpenOffice.org 3.3 + */ + [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlDateField.idl b/offapi/com/sun/star/awt/UnoControlDateField.idl new file mode 100644 index 000000000000..77f7f677a28e --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlDateField.idl @@ -0,0 +1,72 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoDateFieldControl_idl__ +#define __com_sun_star_awt_UnoDateFieldControl_idl__ + +#ifndef __com_sun_star_awt_UnoControlEdit_idl__ +#include <com/sun/star/awt/UnoControlEdit.idl> +#endif + +#ifndef __com_sun_star_awt_XSpinField_idl__ +#include <com/sun/star/awt/XSpinField.idl> +#endif + +#ifndef __com_sun_star_awt_XDateField_idl__ +#include <com/sun/star/awt/XDateField.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a date field control. + + <p>A date field makes it possible to enter, display and edit date values.</p> + */ +published service UnoControlDateField +{ + service com::sun::star::awt::UnoControlEdit; + + /** gives access to the value of a spin field and makes it possible to + register for spin events. + + @since OOo 1.1.2 + */ + [optional] interface com::sun::star::awt::XSpinField; + + interface com::sun::star::awt::XDateField; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlDateFieldModel.idl b/offapi/com/sun/star/awt/UnoControlDateFieldModel.idl new file mode 100644 index 000000000000..193f1a325b72 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlDateFieldModel.idl @@ -0,0 +1,291 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlDateFieldModel_idl__ +#define __com_sun_star_awt_UnoControlDateFieldModel_idl__ + +#ifndef __com_sun_star_awt_FontDescriptor_idl__ +#include <com/sun/star/awt/FontDescriptor.idl> +#endif + +#ifndef __com_sun_star_awt_UnoControlModel_idl__ +#include <com/sun/star/awt/UnoControlModel.idl> +#endif + +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + +#ifndef __com_sun_star_style_VerticalAlignment_idl__ +#include <com/sun/star/style/VerticalAlignment.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the standard model of an <type>UnoControlDateField</type>. + */ +published service UnoControlDateFieldModel +{ + service com::sun::star::awt::UnoControlModel; + + //------------------------------------------------------------------------- + + /** specifies the background color(RGB) of the control. + */ + [property] com::sun::star::util::Color BackgroundColor; + + //------------------------------------------------------------------------- + + /** specifies the border style of the control. + + <pre> + 0: No border + 1: 3D border + 2: simple border + </pre> + */ + [property] short Border; + + //------------------------------------------------------------------------- + + /** specifies the color of the border, if present + + <p>Not every border style (see <member>Border</member>) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.</p> + + @since OOo 2.0.0 + */ + [optional, property] long BorderColor; + + //------------------------------------------------------------------------- + + /** specifies the date displayed in the control. + + <p>The date must be specified in the format YYYYMMDD.</p> + */ + [property] long Date; + + //------------------------------------------------------------------------- + + /** specifies the format of the displayed date. + + <pre> + 0: system short + 1: system short YY + 2: system short YYYY + 3: system long + 4: short DDMMYY + 5: short MMDDYY + 6: short YYMMDD + 7: short DDMMYYYY + 8: short MMDDYYYY + 9: short YYYYMMDD + 10: short YYMMDD DIN5008 + 11: short YYYYMMDD DIN5008 + </pre> + */ + [property] short DateFormat; + + //------------------------------------------------------------------------- + + /** specifies the maximum date that can be entered. + */ + [property] long DateMax; + + //------------------------------------------------------------------------- + + /** specifies the minimum date that can be entered. + */ + [property] long DateMin; + + //------------------------------------------------------------------------- + + /** specifies, if the date century is displayed. + */ + [property] boolean DateShowCentury; + + //------------------------------------------------------------------------- + + /** specifies, if the control has a dropdown button. + */ + [property] boolean Dropdown; + + //------------------------------------------------------------------------- + + /** determines whether the control is enabled or disabled. + */ + [property] boolean Enabled; + + //------------------------------------------------------------------------- + + /** specifies the font attributes of the text in the control. + */ + [property] com::sun::star::awt::FontDescriptor FontDescriptor; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontEmphasis</type> + value of the text in the control. + */ + [property] short FontEmphasisMark; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontRelief</type> + value of the text in the control. + */ + [property] short FontRelief; + + //------------------------------------------------------------------------- + + /** specifies the help text of the control. + */ + [property] string HelpText; + + //------------------------------------------------------------------------- + + /** specifies the help URL of the control. + */ + [property] string HelpURL; + + //------------------------------------------------------------------------- + + /** specifies whether the selection in the control should be hidden when + the control is not active (focused). + + @since OOo 2.0.0 + */ + [optional, property] boolean HideInactiveSelection; + + //------------------------------------------------------------------------- + + /** specifies that the control will be printed with the document. + */ + [property] boolean Printable; + + //------------------------------------------------------------------------- + + /** specifies that the content of the control cannot be modified by the user. + */ + [property] boolean ReadOnly; + + //------------------------------------------------------------------------- + + /** specifies whether the mouse should show repeating behaviour, i.e. + repeatedly trigger an action when keeping pressed. + + @since OOo 2.0.0 + */ + [optional, property] boolean Repeat; + + //------------------------------------------------------------------------- + + /** specifies the mouse repeat delay, in milliseconds. + + <p>When the user presses a mouse in a control area where this triggers + an action (such as spinning the value), then usual control implementations + allow to repeatedly trigger this action, without the need to release the + mouse button and to press it again. The delay between two such triggers + is specified with this property.</p> + + @since OOo 2.0.0 + */ + [optional, property] long RepeatDelay; + + //------------------------------------------------------------------------- + + /** specifies that the control has a spin button. + */ + [property] boolean Spin; + + //------------------------------------------------------------------------- + + /** specifies that the date is checked during the user input. + */ + [property] boolean StrictFormat; + + //------------------------------------------------------------------------- + + /** specifies that the control can be reached with the TAB key. + */ + [property] boolean Tabstop; + + //------------------------------------------------------------------------- + + /** specifies the text displayed in the control. + + @since OOo 2.0.0 + */ + [optional, property] string Text; + + //------------------------------------------------------------------------- + + /** specifies the text color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextColor; + + //------------------------------------------------------------------------- + + /** specifies the text line color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextLineColor; + + /** denotes the writing mode used in the control, as specified in the + <type scope="com::sun::star::text">WritingMode2</type> constants group. + + <p>Only <member scope="com::sun::star::text">WritingMode2::LR_TB</member> and + <member scope="com::sun::star::text">WritingMode2::RL_TB</member> are supported at the moment.</p> + + @since OOo 3.1 + */ + [optional, property] short WritingMode; + + /** defines how the mouse wheel can be used to scroll through the control's content. + + <p>Usually, the mouse wheel spins the numeric value displayed in the control. Using this property, + and one of the <type>MouseWheelBehavior</type> constants, you can control under which circumstances + this is possible.</p> + */ + [optional, property] short MouseWheelBehavior; + + //------------------------------------------------------------------------- + + /** specifies the vertical alignment of the text in the control. + + @since OpenOffice.org 3.3 + */ + [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlDialog.idl b/offapi/com/sun/star/awt/UnoControlDialog.idl new file mode 100644 index 000000000000..443b0da18563 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlDialog.idl @@ -0,0 +1,65 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlDialog_idl__ +#define __com_sun_star_awt_UnoControlDialog_idl__ + +#ifndef __com_sun_star_awt_UnoControlContainer_idl__ +#include <com/sun/star/awt/UnoControlContainer.idl> +#endif + +#ifndef __com_sun_star_awt_XTopWindow_idl__ +#include <com/sun/star/awt/XTopWindow.idl> +#endif + +#ifndef __com_sun_star_awt_XDialog_idl__ +#include <com/sun/star/awt/XDialog.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a dialog control. + */ +published service UnoControlDialog +{ + service com::sun::star::awt::UnoControlContainer; + + interface com::sun::star::awt::XTopWindow; + + interface com::sun::star::awt::XDialog; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlDialogElement.idl b/offapi/com/sun/star/awt/UnoControlDialogElement.idl new file mode 100644 index 000000000000..b02fe7bd116f --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlDialogElement.idl @@ -0,0 +1,97 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlDialogElement_idl__ +#define __com_sun_star_awt_UnoControlDialogElement_idl__ + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a set of properties to describe the model of an + <type>UnoControl</type> which is embedded in a + <type>UnoControlDialogModel</type>. + */ +published service UnoControlDialogElement +{ + //------------------------------------------------------------------------- + + /** specifies the height of the control. + */ + [property] long Height; + + //------------------------------------------------------------------------- + + /** specifies the name of the control. + */ + [property] string Name; + + //------------------------------------------------------------------------- + + /** specifies the horizontal position of the control. + */ + [property] string PositionX; + + //------------------------------------------------------------------------- + + /** specifies the vertical position of the control. + */ + [property] string PositionY; + + //------------------------------------------------------------------------- + + /** specifies the step of the control. + */ + [property] long Step; + + //------------------------------------------------------------------------- + + /** specifies the tabindex of the control. + */ + [property] short TabIndex; + + //------------------------------------------------------------------------- + + /** specifies the tag of the control. + */ + [property] string Tag; + + //------------------------------------------------------------------------- + + /** specifies the width of the control. + */ + [property] long Width; + + //------------------------------------------------------------------------- +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlDialogModel.idl b/offapi/com/sun/star/awt/UnoControlDialogModel.idl new file mode 100644 index 000000000000..ff6188e5276e --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlDialogModel.idl @@ -0,0 +1,197 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlDialogModel_idl__ +#define __com_sun_star_awt_UnoControlDialogModel_idl__ + +#ifndef __com_sun_star_awt_FontDescriptor_idl__ +#include <com/sun/star/awt/FontDescriptor.idl> +#endif + +#ifndef __com_sun_star_awt_UnoControlModel_idl__ +#include <com/sun/star/awt/UnoControlModel.idl> +#endif + +#ifndef __com_sun_star_container_XContainer_idl__ +#include <com/sun/star/container/XContainer.idl> +#endif + +#ifndef __com_sun_star_container_XNameContainer_idl__ +#include <com/sun/star/container/XNameContainer.idl> +#endif + +#ifndef __com_sun_star_lang_XMultiServiceFactory_idl__ +#include <com/sun/star/lang/XMultiServiceFactory.idl> +#endif + +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + +#ifndef com_sun_star_graphic_XGraphic_idl +#include <com/sun/star/graphic/XGraphic.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the standard model of an <type>UnoControlDialog</type>. + */ +published service UnoControlDialogModel +{ + service com::sun::star::awt::UnoControlModel; + + /** allows to create control models, which support the + <type>UnoControlDialogElement</type> service and can be inserted into + this container. + */ + interface com::sun::star::lang::XMultiServiceFactory; + + interface com::sun::star::container::XContainer; + + interface com::sun::star::container::XNameContainer; + + //------------------------------------------------------------------------- + + /** specifies the background color (RGB) of the dialog. + */ + [property] com::sun::star::util::Color BackgroundColor; + + //------------------------------------------------------------------------- + + /** specifies if the dialog is closeable. + */ + [property] boolean Closeable; + + //------------------------------------------------------------------------- + + /** determines whether a dialog is enabled or disabled. + */ + [property] boolean Enabled; + + //------------------------------------------------------------------------- + + /** specifies the font attributes of the text in the caption bar of the dialog. + */ + [property] com::sun::star::awt::FontDescriptor FontDescriptor; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontEmphasis</type> + value of the text in the caption bar of the dialog. + */ + [property] short FontEmphasisMark; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontRelief</type> + value of the text in the caption bar of the dialog. + */ + [property] short FontRelief; + + //------------------------------------------------------------------------- + + /** specifies the help text of the dialog. + */ + [property] string HelpText; + + //------------------------------------------------------------------------- + + /** specifies the help URL of the dialog. + */ + [property] string HelpURL; + + //------------------------------------------------------------------------- + + /** specifies if the dialog is moveable. + */ + [property] boolean Moveable; + + //------------------------------------------------------------------------- + + /** specifies if the dialog is sizeable. + */ + [property] boolean Sizeable; + + //------------------------------------------------------------------------- + + /** specifies the text color (RGB) of the dialog. + */ + [property] com::sun::star::util::Color TextColor; + + //------------------------------------------------------------------------- + + /** specifies the text line color (RGB) of the dialog. + */ + [property] com::sun::star::util::Color TextLineColor; + + //------------------------------------------------------------------------- + + /** specifies the text that is displayed in the caption bar of the dialog. + */ + [property] string Title; + + //------------------------------------------------------------------------- + + /** If set to true the dialog will have the desktop as parent. + + @since OOo 2.3.0 + */ + [optional, property] boolean DesktopAsParent; + + /** specifies a URL that references a graphic that should be used as a + background image. + @see Graphic + + @since OOo 2.4.0 + */ + [optional, property] string ImageURL; + + /** specifies a graphic to be displayed as a background image + + <p>If this property is present, it interacts with the <member>ImageURL</member>in the + following way: + <ul><li>If <member>ImageURL</member> is set, <member>Graphic</member> will be reset + to an object as loaded from the given image URL, or <NULL/> if <member>ImageURL</member> + does not point to a valid image file.</li> + <li>If <member>Graphic</member> is set, <member>ImageURL</member> will be reset + to an empty string.</li> + </ul></p> + + @since OOo 2.4.0 + */ + [optional, property, transient] com::sun::star::graphic::XGraphic Graphic; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlEdit.idl b/offapi/com/sun/star/awt/UnoControlEdit.idl new file mode 100644 index 000000000000..e603aa3ee29b --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlEdit.idl @@ -0,0 +1,71 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlEdit_idl__ +#define __com_sun_star_awt_UnoControlEdit_idl__ + +#ifndef __com_sun_star_awt_UnoControl_idl__ +#include <com/sun/star/awt/UnoControl.idl> +#endif + +#ifndef __com_sun_star_awt_XTextComponent_idl__ +#include <com/sun/star/awt/XTextComponent.idl> +#endif + +#ifndef __com_sun_star_awt_XLayoutConstrains_idl__ +#include <com/sun/star/awt/XLayoutConstrains.idl> +#endif + +#ifndef __com_sun_star_awt_XTextLayoutConstrains_idl__ +#include <com/sun/star/awt/XTextLayoutConstrains.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies an edit control. + */ +published service UnoControlEdit +{ + service com::sun::star::awt::UnoControl; + + interface com::sun::star::awt::XTextComponent; + + interface com::sun::star::awt::XLayoutConstrains; + + interface com::sun::star::awt::XTextLayoutConstrains; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlEditModel.idl b/offapi/com/sun/star/awt/UnoControlEditModel.idl new file mode 100644 index 000000000000..2cd7a55725f5 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlEditModel.idl @@ -0,0 +1,291 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlEditModel_idl__ +#define __com_sun_star_awt_UnoControlEditModel_idl__ + +#ifndef __com_sun_star_awt_FontDescriptor_idl__ +#include <com/sun/star/awt/FontDescriptor.idl> +#endif + +#ifndef __com_sun_star_awt_UnoControlModel_idl__ +#include <com/sun/star/awt/UnoControlModel.idl> +#endif + +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + +#ifndef __com_sun_star_style_VerticalAlignment_idl__ +#include <com/sun/star/style/VerticalAlignment.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the standard model of an <type>UnoControlEdit</type>. + */ +published service UnoControlEditModel +{ + service com::sun::star::awt::UnoControlModel; + + //------------------------------------------------------------------------- + + /** specifies the horizontal alignment of the text in the control. + + <pre> + 0: left + 1: center + 2: right + </pre> + */ + [property] short Align; + + //------------------------------------------------------------------------- + + /** If set to true an horizontal scrollbar will be added automaticly + when needed. + + @since OOo 2.3.0 + */ + [optional, property] boolean AutoHScroll; + + //------------------------------------------------------------------------- + + /** If set to true an vertical scrollbar will be added automaticly + when needed. + + @since OOo 2.3.0 + */ + [optional, property] boolean AutoVScroll; + + //------------------------------------------------------------------------- + + /** specifies the background color (RGB) of the control. + */ + [property] com::sun::star::util::Color BackgroundColor; + + //------------------------------------------------------------------------- + + /** specifies the border style of the control. + + <pre> + 0: No border + 1: 3D border + 2: simple border + </pre> + */ + [property] short Border; + + //------------------------------------------------------------------------- + + /** specifies the color of the border, if present + + <p>Not every border style (see <member>Border</member>) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.</p> + + @since OOo 2.0.0 + */ + [optional, property] long BorderColor; + + //------------------------------------------------------------------------- + + /** specifies the echo character for a password edit field. + */ + [optional, property] short EchoChar; + + //------------------------------------------------------------------------- + + /** determines whether the control is enabled or disabled. + */ + [property] boolean Enabled; + + //------------------------------------------------------------------------- + + /** specifies the font attributes of the text in the control. + */ + [property] com::sun::star::awt::FontDescriptor FontDescriptor; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontEmphasis</type> + value of the text in the control. + */ + [property] short FontEmphasisMark; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontRelief</type> + value of the text in the control. + */ + [property] short FontRelief; + + //------------------------------------------------------------------------- + + /** specifies if hard line breaks will be returned in the + <member>XTextComponent::getText</member> method. + */ + [property] boolean HardLineBreaks; + + //------------------------------------------------------------------------- + + /** specifies the help text of the control. + */ + [property] string HelpText; + + //------------------------------------------------------------------------- + + /** specifies the help URL of the control. + */ + [property] string HelpURL; + + //------------------------------------------------------------------------- + + /** specifies whether the selection in the control should be hidden when + the control is not active (focused). + + @since OOo 2.0.0 + */ + [optional, property] boolean HideInactiveSelection; + + //------------------------------------------------------------------------- + + /** specifies if the content of the control can be scrolled in + the horizontal direction. + */ + [property] boolean HScroll; + + //------------------------------------------------------------------------- + + /** specifies which line end type should be used for multi line text + + <p>Controls working with this model care for this setting when the user enters + text. Every line break entered into the control will be treated according to this + setting, so that the <member>Text</member> property always contains only + line ends in the format specified.</p> + + <p>Possible values are all constants from the <type>LineEndFormat</type> group.</p> + + <p>Note that this setting is usually not relevant when you set new text via the API. + No matter which line end format is used in this new text then, usual control implementations + should recognize all line end formats and display them properly.</p> + + @since OOo 2.0.0 + */ + [optional, property] short LineEndFormat; + + //------------------------------------------------------------------------- + + /** specifies the maximum character count. + + <p>There's no limitation, if set to 0.</p> + */ + [property] short MaxTextLen; + + //------------------------------------------------------------------------- + + /** specifies that the control may have more than one line. + */ + [property] boolean MultiLine; + + //------------------------------------------------------------------------- + + /** specifies whether the control paints it background or not. + + @since OOo 2.3.0 + */ + [optional, property] boolean PaintTransparent; + + //------------------------------------------------------------------------- + + /** specifies that the control will be printed with the document. + */ + [property] boolean Printable; + + //------------------------------------------------------------------------- + + /** specifies that the content of the control cannot be modified by the user. + */ + [property] boolean ReadOnly; + + //------------------------------------------------------------------------- + + /** specifies that the control can be reached with the TAB key. + */ + [property] boolean Tabstop; + + //------------------------------------------------------------------------- + + /** specifies the text displayed in the control. + */ + [property] string Text; + + //------------------------------------------------------------------------- + + /** specifies the text color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextColor; + + //------------------------------------------------------------------------- + + /** specifies the text line color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextLineColor; + + //------------------------------------------------------------------------- + + /** specifies if the content of the control can be scrolled in + the vertical direction. + */ + [property] boolean VScroll; + + /** denotes the writing mode used in the control, as specified in the + <type scope="com::sun::star::text">WritingMode2</type> constants group. + + <p>Only <member scope="com::sun::star::text">WritingMode2::LR_TB</member> and + <member scope="com::sun::star::text">WritingMode2::RL_TB</member> are supported at the moment.</p> + + @since OOo 3.1 + */ + [optional, property] short WritingMode; + + //------------------------------------------------------------------------- + + /** specifies the vertical alignment of the text in the control. + + @since OpenOffice.org 3.3 + */ + [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlFileControl.idl b/offapi/com/sun/star/awt/UnoControlFileControl.idl new file mode 100644 index 000000000000..da2eceb5fef5 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlFileControl.idl @@ -0,0 +1,56 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoFileControl_idl__ +#define __com_sun_star_awt_UnoFileControl_idl__ + +#ifndef __com_sun_star_awt_UnoControlEdit_idl__ +#include <com/sun/star/awt/UnoControlEdit.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a file control. + + <p>A file control extends the <type>UnoControlEdit</type> with a file + dialog.</p> + */ +published service UnoControlFileControl +{ + service com::sun::star::awt::UnoControlEdit; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlFileControlModel.idl b/offapi/com/sun/star/awt/UnoControlFileControlModel.idl new file mode 100644 index 000000000000..e609a51512ae --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlFileControlModel.idl @@ -0,0 +1,185 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlFileControlModel_idl__ +#define __com_sun_star_awt_UnoControlFileControlModel_idl__ + +#ifndef __com_sun_star_awt_FontDescriptor_idl__ +#include <com/sun/star/awt/FontDescriptor.idl> +#endif + +#ifndef __com_sun_star_awt_UnoControlModel_idl__ +#include <com/sun/star/awt/UnoControlModel.idl> +#endif + +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + +#ifndef __com_sun_star_style_VerticalAlignment_idl__ +#include <com/sun/star/style/VerticalAlignment.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the standard model of an <type>UnoControlFileControl</type>. + */ +published service UnoControlFileControlModel +{ + service com::sun::star::awt::UnoControlModel; + + //------------------------------------------------------------------------- + + /** specifies the background color (RGB) of the control. + */ + [property] com::sun::star::util::Color BackgroundColor; + + //------------------------------------------------------------------------- + + /** specifies the border style of the control. + + <pre> + 0: No border + 1: 3D border + 2: simple border + </pre> + */ + [property] short Border; + + //------------------------------------------------------------------------- + + /** specifies the color of the border, if present + + <p>Not every border style (see <member>Border</member>) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.</p> + + @since OOo 2.0.0 + */ + [optional, property] long BorderColor; + + //------------------------------------------------------------------------- + + /** determines whether a control is enabled or disabled. + */ + [property] boolean Enabled; + + //------------------------------------------------------------------------- + + /** specifies the font attributes of the text in the control. + */ + [property] com::sun::star::awt::FontDescriptor FontDescriptor; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontEmphasis</type> + value of the text in the control. + */ + [property] short FontEmphasisMark; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontRelief</type> + value of the text in the control. + */ + [property] short FontRelief; + + //------------------------------------------------------------------------- + + /** specifies the help text of the control. + */ + [property] string HelpText; + + //------------------------------------------------------------------------- + + /** specifies the help URL of the control. + */ + [property] string HelpURL; + + //------------------------------------------------------------------------- + + /** specifies whether the selection in the control should be hidden when + the control is not active (focused). + + @since OOo 2.0.0 + */ + [optional, property] boolean HideInactiveSelection; + + //------------------------------------------------------------------------- + + /** specifies that the control will be printed with the document. + */ + [property] boolean Printable; + + //------------------------------------------------------------------------- + + /** specifies that the content of the control cannot be modified by the user. + + @since OOo 1.1.2 + */ + [optional, property] boolean ReadOnly; + + //------------------------------------------------------------------------- + + /** specifies that the control can be reached with the TAB key. + */ + [property] boolean Tabstop; + + //------------------------------------------------------------------------- + + /** specifies the text displayed in the control. + */ + [property] string Text; + + //------------------------------------------------------------------------- + + /** specifies the text color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextColor; + + //------------------------------------------------------------------------- + + /** specifies the text line color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextLineColor; + + //------------------------------------------------------------------------- + + /** specifies the vertical alignment of the text in the control. + + @since OpenOffice.org 3.3 + */ + [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlFixedHyperlink.idl b/offapi/com/sun/star/awt/UnoControlFixedHyperlink.idl new file mode 100644 index 000000000000..fa0e96885304 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlFixedHyperlink.idl @@ -0,0 +1,65 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoFixedHyperlinkControl_idl__ +#define __com_sun_star_awt_UnoFixedHyperlinkControl_idl__ + +#ifndef __com_sun_star_awt_UnoControl_idl__ +#include <com/sun/star/awt/UnoControl.idl> +#endif + +#ifndef __com_sun_star_awt_XFixedHyperlink_idl__ +#include <com/sun/star/awt/XFixedHyperlink.idl> +#endif + +#ifndef __com_sun_star_awt_XLayoutConstrains_idl__ +#include <com/sun/star/awt/XLayoutConstrains.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a control for displaying fixed hyperlink. + */ +service UnoControlFixedHyperlink +{ + service com::sun::star::awt::UnoControl; + + interface com::sun::star::awt::XFixedHyperlink; + + interface com::sun::star::awt::XLayoutConstrains; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/awt/UnoControlFixedHyperlinkModel.idl b/offapi/com/sun/star/awt/UnoControlFixedHyperlinkModel.idl new file mode 100644 index 000000000000..8d5938d21f6f --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlFixedHyperlinkModel.idl @@ -0,0 +1,188 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlFixedHyperlinkModel_idl__ +#define __com_sun_star_awt_UnoControlFixedHyperlinkModel_idl__ + +#ifndef __com_sun_star_awt_FontDescriptor_idl__ +#include <com/sun/star/awt/FontDescriptor.idl> +#endif + +#ifndef __com_sun_star_awt_UnoControlModel_idl__ +#include <com/sun/star/awt/UnoControlModel.idl> +#endif + +#ifndef __com_sun_star_style_VerticalAlignment_idl__ +#include <com/sun/star/style/VerticalAlignment.idl> +#endif + +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the standard model of an <type>UnoControlFixedHyperlink</type>. + */ +service UnoControlFixedHyperlinkModel +{ + service com::sun::star::awt::UnoControlModel; + + //------------------------------------------------------------------------- + + /** specifies the horizontal alignment of the text in the control. + + <pre> + 0: left + 1: center + 2: right + </pre> + */ + [property] short Align; + + //------------------------------------------------------------------------- + + /** specifies the background color (RGB) of the control. + */ + [property] com::sun::star::util::Color BackgroundColor; + + //------------------------------------------------------------------------- + + /** specifies the border style of the control. + + <pre> + 0: No border + 1: 3D border + 2: simple border + </pre> + */ + [property] short Border; + + //------------------------------------------------------------------------- + + /** specifies the color of the border, if present + + <p>Not every border style (see <member>Border</member>) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.</p> + + @since OOo 2.0.0 + */ + [optional, property] long BorderColor; + + //------------------------------------------------------------------------- + + /** determines whether the control is enabled or disabled. + */ + [property] boolean Enabled; + + //------------------------------------------------------------------------- + + /** specifies the font attributes of the text in the control. + */ + [property] com::sun::star::awt::FontDescriptor FontDescriptor; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontEmphasis</type> + value of the text in the control. + */ + [property] short FontEmphasisMark; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontRelief</type> + value of the text in the control. + */ + [property] short FontRelief; + + //------------------------------------------------------------------------- + + /** specifies the help text of the control. + */ + [property] string HelpText; + + //------------------------------------------------------------------------- + + /** specifies the help URL of the control. + */ + [property] string HelpURL; + + //------------------------------------------------------------------------- + + /** specifies the label of the control. + */ + [property] string Label; + + //------------------------------------------------------------------------- + + /** specifies that the text may be displayed on more than one line. + */ + [property] boolean MultiLine; + + //------------------------------------------------------------------------- + + /** specifies that the control will be printed with the document. + */ + [property] boolean Printable; + + //------------------------------------------------------------------------- + + /** specifies the text color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextColor; + + //------------------------------------------------------------------------- + + /** specifies the text line color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextLineColor; + + //------------------------------------------------------------------------- + + /** specifies the URL. + */ + [property] string URL; + + //------------------------------------------------------------------------- + + /** specifies the vertical alignment of the text in the control. + + @since OOo 2.0.0 + */ + [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/awt/UnoControlFixedLine.idl b/offapi/com/sun/star/awt/UnoControlFixedLine.idl new file mode 100644 index 000000000000..6dd1b1e36e0e --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlFixedLine.idl @@ -0,0 +1,54 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoFixedLineControl_idl__ +#define __com_sun_star_awt_UnoFixedLineControl_idl__ + +#ifndef __com_sun_star_awt_UnoControl_idl__ +#include <com/sun/star/awt/UnoControl.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a fixed line control. + */ +published service UnoControlFixedLine +{ + service com::sun::star::awt::UnoControl; + +}; + +//============================================================================= + +}; }; }; }; + + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlFixedLineModel.idl b/offapi/com/sun/star/awt/UnoControlFixedLineModel.idl new file mode 100644 index 000000000000..b49b6e94d19a --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlFixedLineModel.idl @@ -0,0 +1,134 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlFixedLineModel_idl__ +#define __com_sun_star_awt_UnoControlFixedLineModel_idl__ + +#ifndef __com_sun_star_awt_FontDescriptor_idl__ +#include <com/sun/star/awt/FontDescriptor.idl> +#endif + +#ifndef __com_sun_star_awt_UnoControlModel_idl__ +#include <com/sun/star/awt/UnoControlModel.idl> +#endif + +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the standard model of an <type>UnoControlFixedLine</type>. + */ +published service UnoControlFixedLineModel +{ + service com::sun::star::awt::UnoControlModel; + + //------------------------------------------------------------------------- + + /** determines whether the control is enabled or disabled. + */ + [property] boolean Enabled; + + //------------------------------------------------------------------------- + + /** specifies the font attributes of the text in the control. + */ + [property] com::sun::star::awt::FontDescriptor FontDescriptor; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontEmphasis</type> + value of the text in the control. + */ + [property] short FontEmphasisMark; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontRelief</type> + value of the text in the control. + */ + [property] short FontRelief; + + //------------------------------------------------------------------------- + + /** specifies the help text of the control. + */ + [property] string HelpText; + + //------------------------------------------------------------------------- + + /** specifies the help URL of the control. + */ + [property] string HelpURL; + + //------------------------------------------------------------------------- + + /** specifies the label of the control. + */ + [property] string Label; + + //------------------------------------------------------------------------- + + /** specifies the orientation of the control. + + <pre> + 0: horizontal + 1: vertical + </pre> + */ + [property] long Orientation; + + //------------------------------------------------------------------------- + + /** specifies that the control will be printed with the document. + */ + [property] boolean Printable; + + //------------------------------------------------------------------------- + + /** specifies the text color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextColor; + + //------------------------------------------------------------------------- + + /** specifies the text line color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextLineColor; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlFixedText.idl b/offapi/com/sun/star/awt/UnoControlFixedText.idl new file mode 100644 index 000000000000..e4dd759f19d2 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlFixedText.idl @@ -0,0 +1,65 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoFixedTextControl_idl__ +#define __com_sun_star_awt_UnoFixedTextControl_idl__ + +#ifndef __com_sun_star_awt_UnoControl_idl__ +#include <com/sun/star/awt/UnoControl.idl> +#endif + +#ifndef __com_sun_star_awt_XFixedText_idl__ +#include <com/sun/star/awt/XFixedText.idl> +#endif + +#ifndef __com_sun_star_awt_XLayoutConstrains_idl__ +#include <com/sun/star/awt/XLayoutConstrains.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a control for displaying fixed text. + */ +published service UnoControlFixedText +{ + service com::sun::star::awt::UnoControl; + + interface com::sun::star::awt::XFixedText; + + interface com::sun::star::awt::XLayoutConstrains; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlFixedTextModel.idl b/offapi/com/sun/star/awt/UnoControlFixedTextModel.idl new file mode 100644 index 000000000000..b6981556a8f4 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlFixedTextModel.idl @@ -0,0 +1,182 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlFixedTextModel_idl__ +#define __com_sun_star_awt_UnoControlFixedTextModel_idl__ + +#ifndef __com_sun_star_awt_FontDescriptor_idl__ +#include <com/sun/star/awt/FontDescriptor.idl> +#endif + +#ifndef __com_sun_star_awt_UnoControlModel_idl__ +#include <com/sun/star/awt/UnoControlModel.idl> +#endif + +#ifndef __com_sun_star_style_VerticalAlignment_idl__ +#include <com/sun/star/style/VerticalAlignment.idl> +#endif + +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the standard model of an <type>UnoControlFixedText</type>. + */ +published service UnoControlFixedTextModel +{ + service com::sun::star::awt::UnoControlModel; + + //------------------------------------------------------------------------- + + /** specifies the horiztonal alignment of the text in the control. + + <pre> + 0: left + 1: center + 2: right + </pre> + */ + [property] short Align; + + //------------------------------------------------------------------------- + + /** specifies the background color (RGB) of the control. + */ + [property] com::sun::star::util::Color BackgroundColor; + + //------------------------------------------------------------------------- + + /** specifies the border style of the control. + + <pre> + 0: No border + 1: 3D border + 2: simple border + </pre> + */ + [property] short Border; + + //------------------------------------------------------------------------- + + /** specifies the color of the border, if present + + <p>Not every border style (see <member>Border</member>) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.</p> + + @since OOo 2.0.0 + */ + [optional, property] long BorderColor; + + //------------------------------------------------------------------------- + + /** determines whether the control is enabled or disabled. + */ + [property] boolean Enabled; + + //------------------------------------------------------------------------- + + /** specifies the font attributes of the text in the control. + */ + [property] com::sun::star::awt::FontDescriptor FontDescriptor; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontEmphasis</type> + value of the text in the control. + */ + [property] short FontEmphasisMark; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontRelief</type> + value of the text in the control. + */ + [property] short FontRelief; + + //------------------------------------------------------------------------- + + /** specifies the help text of the control. + */ + [property] string HelpText; + + //------------------------------------------------------------------------- + + /** specifies the help URL of the control. + */ + [property] string HelpURL; + + //------------------------------------------------------------------------- + + /** specifies the label of the control. + */ + [property] string Label; + + //------------------------------------------------------------------------- + + /** specifies that the text may be displayed on more than one line. + */ + [property] boolean MultiLine; + + //------------------------------------------------------------------------- + + /** specifies that the control will be printed with the document. + */ + [property] boolean Printable; + + //------------------------------------------------------------------------- + + /** specifies the text color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextColor; + + //------------------------------------------------------------------------- + + /** specifies the text line color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextLineColor; + + //------------------------------------------------------------------------- + + /** specifies the vertical alignment of the text in the control. + + @since OOo 2.0.0 + */ + [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlFormattedField.idl b/offapi/com/sun/star/awt/UnoControlFormattedField.idl new file mode 100644 index 000000000000..9d66a3e319a1 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlFormattedField.idl @@ -0,0 +1,64 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlFormattedField_idl__ +#define __com_sun_star_awt_UnoControlFormattedField_idl__ + +#ifndef __com_sun_star_awt_UnoControlEdit_idl__ +#include <com/sun/star/awt/UnoControlEdit.idl> +#endif + +#ifndef __com_sun_star_awt_XSpinField_idl__ +#include <com/sun/star/awt/XSpinField.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a formatted field control. + */ +published service UnoControlFormattedField +{ + service com::sun::star::awt::UnoControlEdit; + + /** gives access to the value of a spin field and makes it possible to + register for spin events. + + @since OOo 1.1.2 + */ + [optional] interface com::sun::star::awt::XSpinField; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlFormattedFieldModel.idl b/offapi/com/sun/star/awt/UnoControlFormattedFieldModel.idl new file mode 100644 index 000000000000..9ada06455b1e --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlFormattedFieldModel.idl @@ -0,0 +1,324 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlFormattedFieldModel_idl__ +#define __com_sun_star_awt_UnoControlFormattedFieldModel_idl__ + +#ifndef __com_sun_star_awt_FontDescriptor_idl__ +#include <com/sun/star/awt/FontDescriptor.idl> +#endif + +#ifndef __com_sun_star_awt_UnoControlModel_idl__ +#include <com/sun/star/awt/UnoControlModel.idl> +#endif + +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + +#ifndef __com_sun_star_util_XNumberFormatsSupplier_idl__ +#include <com/sun/star/util/XNumberFormatsSupplier.idl> +#endif + +#ifndef __com_sun_star_style_VerticalAlignment_idl__ +#include <com/sun/star/style/VerticalAlignment.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the standard model of an <type>UnoControlFormattedField </type>. + */ +published service UnoControlFormattedFieldModel +{ + service com::sun::star::awt::UnoControlModel; + + //------------------------------------------------------------------------- + + /** specifies the horiztonal alignment of the text in the control. + + <pre> + 0: left + 1: center + 2: right + </pre> + */ + [property] short Align; + + //------------------------------------------------------------------------- + + /** specifies the background color (RGB) of the control. + */ + [property] com::sun::star::util::Color BackgroundColor; + + //------------------------------------------------------------------------- + + /** specifies the border style of the control. + + <pre> + 0: No border + 1: 3D border + 2: simple border + </pre> + */ + [property] short Border; + + //------------------------------------------------------------------------- + + /** specifies the color of the border, if present + + <p>Not every border style (see <member>Border</member>) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.</p> + + @since OOo 2.0.0 + */ + [optional, property] long BorderColor; + + //------------------------------------------------------------------------- + + /** specifies the default value of the formatted field. + + <p>This may be a numeric value (double) or a string, depending on + the formatting of the field.</p> + */ + [property] any EffectiveDefault; + + //------------------------------------------------------------------------- + + /** specifies the maximum value that can be entered. + + <p>This property is ignored if the format of the field is no numeric + format.</p> + */ + [property] double EffectiveMax; + + //------------------------------------------------------------------------- + + /** specifies the minimum value that can be entered. + + <p>This property is ignored if the format of the field is no numeric + format.</p> + */ + [property] double EffectiveMin; + + //------------------------------------------------------------------------- + + /** specifies the current value of the formatted field. + + <p>This may be a numeric value (double) or a string, depending on + the formatting of the field.</p> + */ + [property] double EffectiveValue; + + //------------------------------------------------------------------------- + + /** determines whether the control is enabled or disabled. + */ + [property] boolean Enabled; + + //------------------------------------------------------------------------- + + /** specifies the font attributes of the text in the control. + */ + [property] com::sun::star::awt::FontDescriptor FontDescriptor; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontEmphasis</type> + value of the text in the control. + */ + [property] short FontEmphasisMark; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontRelief</type> + value of the text in the control. + */ + [property] short FontRelief; + + //------------------------------------------------------------------------- + + /** specifies the format to be used when formatting the field input + and output. + + <p>This value is meaningful relative to the FormatsSupplier property + only.</p> + */ + [property] long FormatKey; + + //------------------------------------------------------------------------- + + /** supplies the formats the field should work with. + */ + [property] com::sun::star::util::XNumberFormatsSupplier FormatsSupplier; + + //------------------------------------------------------------------------- + + /** specifies the help text of the control. + */ + [property] string HelpText; + + //------------------------------------------------------------------------- + + /** specifies the help URL of the control. + */ + [property] string HelpURL; + + + //------------------------------------------------------------------------- + + /** specifies whether the selection in the control should be hidden when + the control is not active (focused). + + @since OOo 2.0.0 + */ + [optional, property] boolean HideInactiveSelection; + + //------------------------------------------------------------------------- + + /** specifies the maximum character count. + + <p>There's no limitation, if set to 0.</p> + */ + [property] short MaxTextLen; + + //------------------------------------------------------------------------- + + /** specifies that the control will be printed with the document. + */ + [property] boolean Printable; + + //------------------------------------------------------------------------- + + /** specifies that the content of the control cannot be modified by the + user. + */ + [property] boolean ReadOnly; + + //------------------------------------------------------------------------- + + /** specifies whether the mouse should show repeating behaviour, i.e. + repeatedly trigger an action when keeping pressed. + + @since OOo 2.0.0 + */ + [optional, property] boolean Repeat; + + //------------------------------------------------------------------------- + + /** specifies the mouse repeat delay, in milliseconds. + + <p>When the user presses a mouse in a control area where this triggers + an action (such as spinning the value), then usual control implementations + allow to repeatedly trigger this action, without the need to release the + mouse button and to press it again. The delay between two such triggers + is specified with this property.</p> + + @since OOo 2.0.0 + */ + [optional, property] long RepeatDelay; + + //------------------------------------------------------------------------- + + /** specifies that the control has a spin button. + */ + [property] boolean Spin; + + //------------------------------------------------------------------------- + + /** specifies that the text is checked during the user input. + + <p>This property is optional - not every component implementing this + service is required to provide it, as real-time input checking on a + formatted field may be pretty expensive.</p> + */ + [optional, property] boolean StrictFormat; + + //------------------------------------------------------------------------- + + /** specifies that the control can be reached with the TAB key. + */ + [property] boolean Tabstop; + + //------------------------------------------------------------------------- + + /** specifies the text displayed in the control. + */ + [property] string Text; + + //------------------------------------------------------------------------- + + /** specifies the text color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextColor; + + //------------------------------------------------------------------------- + + /** specifies the text line color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextLineColor; + + //------------------------------------------------------------------------- + + /** specifies that the text is treated as a number. + */ + [property] boolean TreatAsNumber; + + /** denotes the writing mode used in the control, as specified in the + <type scope="com::sun::star::text">WritingMode2</type> constants group. + + <p>Only <member scope="com::sun::star::text">WritingMode2::LR_TB</member> and + <member scope="com::sun::star::text">WritingMode2::RL_TB</member> are supported at the moment.</p> + + @since OOo 3.1 + */ + [optional, property] short WritingMode; + + /** defines how the mouse wheel can be used to scroll through the control's content. + + <p>Usually, the mouse wheel spins the numeric value displayed in the control. Using this property, + and one of the <type>MouseWheelBehavior</type> constants, you can control under which circumstances + this is possible.</p> + */ + [optional, property] short MouseWheelBehavior; + + //------------------------------------------------------------------------- + + /** specifies the vertical alignment of the text in the control. + + @since OpenOffice.org 3.3 + */ + [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlGroupBox.idl b/offapi/com/sun/star/awt/UnoControlGroupBox.idl new file mode 100644 index 000000000000..cc1aaff14985 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlGroupBox.idl @@ -0,0 +1,53 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoGroupBoxControl_idl__ +#define __com_sun_star_awt_UnoGroupBoxControl_idl__ + +#ifndef __com_sun_star_awt_UnoControl_idl__ +#include <com/sun/star/awt/UnoControl.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a group box control. + */ +published service UnoControlGroupBox +{ + service com::sun::star::awt::UnoControl; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlGroupBoxModel.idl b/offapi/com/sun/star/awt/UnoControlGroupBoxModel.idl new file mode 100644 index 000000000000..c0a5d97afc06 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlGroupBoxModel.idl @@ -0,0 +1,132 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlGroupBoxModel_idl__ +#define __com_sun_star_awt_UnoControlGroupBoxModel_idl__ + +#ifndef __com_sun_star_awt_FontDescriptor_idl__ +#include <com/sun/star/awt/FontDescriptor.idl> +#endif + +#ifndef __com_sun_star_awt_UnoControlModel_idl__ +#include <com/sun/star/awt/UnoControlModel.idl> +#endif + +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the standard model of an <type>UnoControlGroupBox</type>. + */ +published service UnoControlGroupBoxModel +{ + service com::sun::star::awt::UnoControlModel; + + //------------------------------------------------------------------------- + + /** determines whether the control is enabled or disabled. + */ + [property] boolean Enabled; + + //------------------------------------------------------------------------- + + /** specifies the font attributes of the text in the control. + */ + [property] com::sun::star::awt::FontDescriptor FontDescriptor; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontEmphasis</type> + value of the text in the control. + */ + [property] short FontEmphasisMark; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontRelief</type> + value of the text in the control. + */ + [property] short FontRelief; + + //------------------------------------------------------------------------- + + /** specifies the help text of the control. + */ + [property] string HelpText; + + //------------------------------------------------------------------------- + + /** specifies the help URL of the control. + */ + [property] string HelpURL; + + //------------------------------------------------------------------------- + + /** specifies the label of the control. + */ + [property] string Label; + + //------------------------------------------------------------------------- + + /** specifies that the control will be printed with the document. + */ + [property] boolean Printable; + + //------------------------------------------------------------------------- + + /** specifies the text color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextColor; + + //------------------------------------------------------------------------- + + /** specifies the text line color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextLineColor; + + /** denotes the writing mode used in the control, as specified in the + <type scope="com::sun::star::text">WritingMode2</type> constants group. + + <p>Only <member scope="com::sun::star::text">WritingMode2::LR_TB</member> and + <member scope="com::sun::star::text">WritingMode2::RL_TB</member> are supported at the moment.</p> + + @since OOo 3.1 + */ + [optional, property] short WritingMode; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlImageControl.idl b/offapi/com/sun/star/awt/UnoControlImageControl.idl new file mode 100644 index 000000000000..8b7d3bc9d12b --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlImageControl.idl @@ -0,0 +1,59 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoImageControl_idl__ +#define __com_sun_star_awt_UnoImageControl_idl__ + +#ifndef __com_sun_star_awt_UnoControl_idl__ +#include <com/sun/star/awt/UnoControl.idl> +#endif + +#ifndef __com_sun_star_awt_XLayoutConstrains_idl__ +#include <com/sun/star/awt/XLayoutConstrains.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a control for displaying an image. + */ +published service UnoControlImageControl +{ + service com::sun::star::awt::UnoControl; + + interface com::sun::star::awt::XLayoutConstrains; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlImageControlModel.idl b/offapi/com/sun/star/awt/UnoControlImageControlModel.idl new file mode 100644 index 000000000000..aadf3074fcbe --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlImageControlModel.idl @@ -0,0 +1,161 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlImageControlModel_idl__ +#define __com_sun_star_awt_UnoControlImageControlModel_idl__ + +#ifndef __com_sun_star_awt_UnoControlModel_idl__ +#include <com/sun/star/awt/UnoControlModel.idl> +#endif +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif +#ifndef com_sun_star_graphic_XGraphic_idl +#include <com/sun/star/graphic/XGraphic.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the standard model of an <type>UnoControlImageControl</type>. + */ +published service UnoControlImageControlModel +{ + service com::sun::star::awt::UnoControlModel; + + //------------------------------------------------------------------------- + + /** specifies the background color (RGB) of the control. + */ + [property] com::sun::star::util::Color BackgroundColor; + + //------------------------------------------------------------------------- + + /** specifies the border style of the control. + + <pre> + 0: No border + 1: 3D border + 2: simple border + </pre> + */ + [property] short Border; + + //------------------------------------------------------------------------- + + /** specifies the color of the border, if present + + <p>Not every border style (see <member>Border</member>) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.</p> + + @since OOo 2.0.0 + */ + [optional, property] long BorderColor; + + //------------------------------------------------------------------------- + + /** determines whether the control is enabled or disabled. + */ + [property] boolean Enabled; + + //------------------------------------------------------------------------- + + /** specifies the help text of the control. + */ + [property] string HelpText; + + //------------------------------------------------------------------------- + + /** specifies the help URL of the control. + */ + [property] string HelpURL; + + //------------------------------------------------------------------------- + + /** specifies an URL to an image to use for the control. + @see Graphic + */ + [property] string ImageURL; + + //------------------------------------------------------------------------- + + /** specifies a graphic to be displayed on the control + + <p>If this property is present, it interacts with the <member>ImageURL</member>in the + following way: + <ul><li>If <member>ImageURL</member> is set, <member>Graphic</member> will be reset + to an object as loaded from the given image URL, or <NULL/> if <member>ImageURL</member> + does not point to a valid image file.</li> + <li>If <member>Graphic</member> is set, <member>ImageURL</member> will be reset + to an empty string.</li> + </ul></p> + + @since OOo 2.1 + */ + [optional, property, transient] com::sun::star::graphic::XGraphic Graphic; + + //------------------------------------------------------------------------- + + /** specifies that the control will be printed with the document. + */ + [property] boolean Printable; + + //------------------------------------------------------------------------- + + /** specifies if the image is automatically scaled to the size of the + control. + */ + [property] boolean ScaleImage; + + /** defines how to scale the image + + <p>If this property is present, it supersedes the <member>ScaleImage</member> property.</p> + + <p>The value of this property is one of the <type>ImageScaleMode</type> constants.</p> + + @since OOo 3.1 + */ + [property, optional] short ScaleMode; + + //------------------------------------------------------------------------- + + /** specifies that the control can be reached with the TAB key. + + @since OOo 1.1.2 + */ + [optional, property] boolean Tabstop; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlListBox.idl b/offapi/com/sun/star/awt/UnoControlListBox.idl new file mode 100644 index 000000000000..edc34550242e --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlListBox.idl @@ -0,0 +1,74 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoListBoxControl_idl__ +#define __com_sun_star_awt_UnoListBoxControl_idl__ + +#ifndef __com_sun_star_awt_UnoControl_idl__ +#include <com/sun/star/awt/UnoControl.idl> +#endif + +#ifndef __com_sun_star_awt_XListBox_idl__ +#include <com/sun/star/awt/XListBox.idl> +#endif + +#ifndef __com_sun_star_awt_XLayoutConstrains_idl__ +#include <com/sun/star/awt/XLayoutConstrains.idl> +#endif + +#ifndef __com_sun_star_awt_XTextLayoutConstrains_idl__ +#include <com/sun/star/awt/XTextLayoutConstrains.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a list box control. + + <p>A list box displays a list of strings and allows a selection within + these.</p> + */ +published service UnoControlListBox +{ + service com::sun::star::awt::UnoControl; + + interface com::sun::star::awt::XListBox; + + interface com::sun::star::awt::XLayoutConstrains; + + interface com::sun::star::awt::XTextLayoutConstrains; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlListBoxModel.idl b/offapi/com/sun/star/awt/UnoControlListBoxModel.idl new file mode 100644 index 000000000000..1ecf338bf095 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlListBoxModel.idl @@ -0,0 +1,235 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlListBoxModel_idl__ +#define __com_sun_star_awt_UnoControlListBoxModel_idl__ + +#ifndef __com_sun_star_awt_FontDescriptor_idl__ +#include <com/sun/star/awt/FontDescriptor.idl> +#endif + +#ifndef __com_sun_star_awt_UnoControlModel_idl__ +#include <com/sun/star/awt/UnoControlModel.idl> +#endif + +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + +#include <com/sun/star/awt/XItemList.idl> + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the standard model of an <type>UnoControlListBox</type>. + */ +published service UnoControlListBoxModel +{ + service com::sun::star::awt::UnoControlModel; + + //------------------------------------------------------------------------- + + /** specifies the horiztontal alignment of the text in the control. + + <pre> + 0: left + 1: center + 2: right + </pre> + */ + [optional, property] short Align; + + //------------------------------------------------------------------------- + + /** specifies the background color (RGB) of the control. + */ + [property] com::sun::star::util::Color BackgroundColor; + + //------------------------------------------------------------------------- + + /** specifies the border style of the control. + + <pre> + 0: No border + 1: 3D border + 2: simple border + </pre> + */ + [property] short Border; + + //------------------------------------------------------------------------- + + /** specifies the color of the border, if present + + <p>Not every border style (see <member>Border</member>) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.</p> + + @since OOo 2.0.0 + */ + [optional, property] long BorderColor; + + //------------------------------------------------------------------------- + + /** specifies if the control has a drop down button. + */ + [property] boolean Dropdown; + + //------------------------------------------------------------------------- + + /** determines whether the control is enabled or disabled. + */ + [property] boolean Enabled; + + //------------------------------------------------------------------------- + + /** specifies the font attributes of the text in the control. + */ + [property] com::sun::star::awt::FontDescriptor FontDescriptor; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontEmphasis</type> + value of the text in the control. + */ + [property] short FontEmphasisMark; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontRelief</type> + value of the text in the control. + */ + [property] short FontRelief; + + //------------------------------------------------------------------------- + + /** specifies the help text of the control. + */ + [property] string HelpText; + + //------------------------------------------------------------------------- + + /** specifies the help URL of the control. + */ + [property] string HelpURL; + + //------------------------------------------------------------------------- + + /** specifies the maximum line count displayed in the drop down box. + */ + [property] short LineCount; + + //------------------------------------------------------------------------- + + /** specifies if more than one entry can be selected. + */ + [property] boolean MultiSelection; + + //------------------------------------------------------------------------- + + /** specifies that the control will be printed with the document. + */ + [property] boolean Printable; + + //------------------------------------------------------------------------- + + /** specifies that the content of the control cannot be modified by the user. + */ + [property] boolean ReadOnly; + + //------------------------------------------------------------------------- + + /** specifies the sequence of selected items, identfied by the position. + */ + [property] sequence<short> SelectedItems; + + //------------------------------------------------------------------------- + + /** specifies the list of items. + */ + [property] sequence<string> StringItemList; + + //------------------------------------------------------------------------- + + /** specifies that the control can be reached with the TAB key. + */ + [property] boolean Tabstop; + + //------------------------------------------------------------------------- + + /** specifies the text color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextColor; + + //------------------------------------------------------------------------- + + /** specifies the text line color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextLineColor; + + /** denotes the writing mode used in the control, as specified in the + <type scope="com::sun::star::text">WritingMode2</type> constants group. + + <p>Only <member scope="com::sun::star::text">WritingMode2::LR_TB</member> and + <member scope="com::sun::star::text">WritingMode2::RL_TB</member> are supported at the moment.</p> + + @since OOo 3.1 + */ + [optional, property] short WritingMode; + + /** defines how the mouse wheel can be used to scroll through the control's content. + + <p>Usually, the mouse wheel scrool through the control's entry list. Using this property, + and one of the <type>MouseWheelBehavior</type> constants, you can control under which circumstances + this is possible.</p> + */ + [optional, property] short MouseWheelBehavior; + + /** allows mmanipulating the list of items in the list box more fine-grained than the + <member>StringItemList</member> property. + + @since OOo 3.3 + */ + [optional] interface XItemList; + + /** specifies where an item separator - a horizontal line - is drawn. + + <p>If this is not <NULL/>, then a horizontal line will be drawn between the item at the given position, + and the following item.</p> + + @since OOo 3.3 + */ + [optional, property, maybevoid] short ItemSeparatorPos; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlModel.idl b/offapi/com/sun/star/awt/UnoControlModel.idl new file mode 100644 index 000000000000..22fba6dce0b2 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlModel.idl @@ -0,0 +1,105 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlModel_idl__ +#define __com_sun_star_awt_UnoControlModel_idl__ + +#ifndef __com_sun_star_awt_UnoControlDialogElement_idl__ +#include <com/sun/star/awt/UnoControlDialogElement.idl> +#endif + +#ifndef __com_sun_star_awt_XControlModel_idl__ +#include <com/sun/star/awt/XControlModel.idl> +#endif + +#ifndef __com_sun_star_lang_XComponent_idl__ +#include <com/sun/star/lang/XComponent.idl> +#endif + +#ifndef __com_sun_star_beans_XPropertySet_idl__ +#include <com/sun/star/beans/XPropertySet.idl> +#endif + +#ifndef __com_sun_star_beans_XMultiPropertySet_idl__ +#include <com/sun/star/beans/XMultiPropertySet.idl> +#endif + +#ifndef __com_sun_star_io_XPersistObject_idl__ +#include <com/sun/star/io/XPersistObject.idl> +#endif + +#ifndef __com_sun_star_util_XCloneable_idl__ +#include <com/sun/star/util/XCloneable.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the standard model of an <type>UnoControl</type> + in the <em>Smalltalk model view controller design</em>. + + <p>The interfaces <type scope="com::sun::star::beans">XPropertySet</type> + and <type scope="com::sun::star::beans">XMultiPropertySet</type> need + access to the model data from the embedding environment. The control + and the model can specify additional interfaces to exchange data or + export more functionality from the model.</p> + */ +published service UnoControlModel +{ + /** This service is present when the control model is embedded in an + <type>UnoControlDialogModel</type>. + */ + [optional] service com::sun::star::awt::UnoControlDialogElement; + + interface com::sun::star::awt::XControlModel; + + interface com::sun::star::lang::XComponent; + + interface com::sun::star::beans::XPropertySet; + + interface com::sun::star::beans::XMultiPropertySet; + + interface com::sun::star::io::XPersistObject; + + interface com::sun::star::util::XCloneable; + + //------------------------------------------------------------------------- + + /** specifies the service name of the default control for this model. + */ + [property] string DefaultControl; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlNumericField.idl b/offapi/com/sun/star/awt/UnoControlNumericField.idl new file mode 100644 index 000000000000..f09d7739bb98 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlNumericField.idl @@ -0,0 +1,73 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlNumericField_idl__ +#define __com_sun_star_awt_UnoControlNumericField_idl__ + +#ifndef __com_sun_star_awt_UnoControlEdit_idl__ +#include <com/sun/star/awt/UnoControlEdit.idl> +#endif + +#ifndef __com_sun_star_awt_XSpinField_idl__ +#include <com/sun/star/awt/XSpinField.idl> +#endif + +#ifndef __com_sun_star_awt_XNumericField_idl__ +#include <com/sun/star/awt/XNumericField.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a numeric field control. + + <p>A numeric field makes it possible to enter, display and edit + formatted numeric values.</p> + */ +published service UnoControlNumericField +{ + service com::sun::star::awt::UnoControlEdit; + + /** gives access to the value of a spin field and makes it possible to + register for spin events. + + @since OOo 1.1.2 + */ + [optional] interface com::sun::star::awt::XSpinField; + + interface com::sun::star::awt::XNumericField; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlNumericFieldModel.idl b/offapi/com/sun/star/awt/UnoControlNumericFieldModel.idl new file mode 100644 index 000000000000..fd3b4c0877bb --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlNumericFieldModel.idl @@ -0,0 +1,267 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlNumericFieldModel_idl__ +#define __com_sun_star_awt_UnoControlNumericFieldModel_idl__ + +#ifndef __com_sun_star_awt_FontDescriptor_idl__ +#include <com/sun/star/awt/FontDescriptor.idl> +#endif + +#ifndef __com_sun_star_awt_UnoControlModel_idl__ +#include <com/sun/star/awt/UnoControlModel.idl> +#endif + +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + +#ifndef __com_sun_star_style_VerticalAlignment_idl__ +#include <com/sun/star/style/VerticalAlignment.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the standard model of an <type>UnoControlNumericField</type>. + */ +published service UnoControlNumericFieldModel +{ + service com::sun::star::awt::UnoControlModel; + + //------------------------------------------------------------------------- + + /** specifies the background color(RGB) of the control. + */ + [property] com::sun::star::util::Color BackgroundColor; + + //------------------------------------------------------------------------- + + /** specifies the border style of the control. + + <pre> + 0: No border + 1: 3D border + 2: simple border + </pre> + */ + [property] short Border; + + //------------------------------------------------------------------------- + + /** specifies the color of the border, if present + + <p>Not every border style (see <member>Border</member>) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.</p> + + @since OOo 2.0.0 + */ + [optional, property] long BorderColor; + + //------------------------------------------------------------------------- + + /** specifies the decimal accuracy. + */ + [property] short DecimalAccuracy; + + //------------------------------------------------------------------------- + + /** determines whether the control is enabled or disabled. + */ + [property] boolean Enabled; + + //------------------------------------------------------------------------- + + /** specifies the font attributes of the text in the control. + */ + [property] com::sun::star::awt::FontDescriptor FontDescriptor; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontEmphasis</type> + value of the text in the control. + */ + [property] short FontEmphasisMark; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontRelief</type> + value of the text in the control. + */ + [property] short FontRelief; + + //------------------------------------------------------------------------- + + /** specifies the help text of the control. + */ + [property] string HelpText; + + //------------------------------------------------------------------------- + + /** specifies the help URL of the control. + */ + [property] string HelpURL; + + //------------------------------------------------------------------------- + + /** specifies whether the selection in the control should be hidden when + the control is not active (focused). + + @since OOo 2.0.0 + */ + [optional, property] boolean HideInactiveSelection; + + //------------------------------------------------------------------------- + + /** specifies that the control will be printed with the document. + */ + [property] boolean Printable; + + //------------------------------------------------------------------------- + + /** specifies that the content of the control cannot be modified by the + user. + */ + [property] boolean ReadOnly; + + //------------------------------------------------------------------------- + + /** specifies whether the mouse should show repeating behaviour, i.e. + repeatedly trigger an action when keeping pressed. + + @since OOo 2.0.0 + */ + [optional, property] boolean Repeat; + + //------------------------------------------------------------------------- + + /** specifies the mouse repeat delay, in milliseconds. + + <p>When the user presses a mouse in a control area where this triggers + an action (such as spinning the value), then usual control implementations + allow to repeatedly trigger this action, without the need to release the + mouse button and to press it again. The delay between two such triggers + is specified with this property.</p> + + @since OOo 2.0.0 + */ + [optional, property] long RepeatDelay; + + //------------------------------------------------------------------------- + + /** specifies whether the thousands separator is to be displayed. + */ + [property] boolean ShowThousandsSeparator; + + //------------------------------------------------------------------------- + + /** specifies that the control has a spin button. + */ + [property] boolean Spin; + + //------------------------------------------------------------------------- + + /** specifies that the value is checked during the user input. + */ + [property] boolean StrictFormat; + + //------------------------------------------------------------------------- + + /** specifies that the control can be reached with the TAB key. + */ + [property] boolean Tabstop; + + //------------------------------------------------------------------------- + + /** specifies the text color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextColor; + + //------------------------------------------------------------------------- + + /** specifies the text line color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextLineColor; + + //------------------------------------------------------------------------- + + /** specifies the value displayed in the control. + */ + [property] double Value; + + //------------------------------------------------------------------------- + + /** specifies the maximum value that can be entered. + */ + [property] double ValueMax; + + //------------------------------------------------------------------------- + + /** specifies the minimum value that can be entered. + */ + [property] double ValueMin; + + //------------------------------------------------------------------------- + + /** specifies the value step when using the spin button. + */ + [property] double ValueStep; + + /** denotes the writing mode used in the control, as specified in the + <type scope="com::sun::star::text">WritingMode2</type> constants group. + + <p>Only <member scope="com::sun::star::text">WritingMode2::LR_TB</member> and + <member scope="com::sun::star::text">WritingMode2::RL_TB</member> are supported at the moment.</p> + + @since OOo 3.1 + */ + [optional, property] short WritingMode; + + /** defines how the mouse wheel can be used to scroll through the control's content. + + <p>Usually, the mouse wheel spins the numeric value displayed in the control. Using this property, + and one of the <type>MouseWheelBehavior</type> constants, you can control under which circumstances + this is possible.</p> + */ + [optional, property] short MouseWheelBehavior; + + //------------------------------------------------------------------------- + + /** specifies the vertical alignment of the text in the control. + + @since OpenOffice.org 3.3 + */ + [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlPatternField.idl b/offapi/com/sun/star/awt/UnoControlPatternField.idl new file mode 100644 index 000000000000..415265eeb690 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlPatternField.idl @@ -0,0 +1,73 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoPatternFieldControl_idl__ +#define __com_sun_star_awt_UnoPatternFieldControl_idl__ + +#ifndef __com_sun_star_awt_UnoControlEdit_idl__ +#include <com/sun/star/awt/UnoControlEdit.idl> +#endif + +#ifndef __com_sun_star_awt_XSpinField_idl__ +#include <com/sun/star/awt/XSpinField.idl> +#endif + +#ifndef __com_sun_star_awt_XPatternField_idl__ +#include <com/sun/star/awt/XPatternField.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a pattern field control. + + <p>A pattern field makes it possible to enter, display and edit text + which conforms to a specified pattern.</p> + */ +published service UnoControlPatternField +{ + service com::sun::star::awt::UnoControlEdit; + + /** gives access to the value of a spin field and makes it possible to + register for spin events. + + @since OOo 1.1.2 + */ + [optional] interface com::sun::star::awt::XSpinField; + + interface com::sun::star::awt::XPatternField; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlPatternFieldModel.idl b/offapi/com/sun/star/awt/UnoControlPatternFieldModel.idl new file mode 100644 index 000000000000..8b4b6ccf601c --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlPatternFieldModel.idl @@ -0,0 +1,226 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlPatternFieldModel_idl__ +#define __com_sun_star_awt_UnoControlPatternFieldModel_idl__ + +#ifndef __com_sun_star_awt_FontDescriptor_idl__ +#include <com/sun/star/awt/FontDescriptor.idl> +#endif + +#ifndef __com_sun_star_awt_UnoControlModel_idl__ +#include <com/sun/star/awt/UnoControlModel.idl> +#endif + +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + +#ifndef __com_sun_star_style_VerticalAlignment_idl__ +#include <com/sun/star/style/VerticalAlignment.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the standard model of an <type>UnoControlPatternField</type>. + */ +published service UnoControlPatternFieldModel +{ + service com::sun::star::awt::UnoControlModel; + + //------------------------------------------------------------------------- + + /** specifies the background color (RGB) of the control. + */ + [property] com::sun::star::util::Color BackgroundColor; + + //------------------------------------------------------------------------- + + /** specifies the border style of the control. + + <pre> + 0: No border + 1: 3D border + 2: simple border + </pre> + */ + [property] short Border; + + //------------------------------------------------------------------------- + + /** specifies the color of the border, if present + + <p>Not every border style (see <member>Border</member>) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.</p> + + @since OOo 2.0.0 + */ + [optional, property] long BorderColor; + + //------------------------------------------------------------------------- + + /** specifies the edit mask. + */ + [property] string EditMask; + + //------------------------------------------------------------------------- + + /** determines whether the control is enabled or disabled. + */ + [property] boolean Enabled; + + //------------------------------------------------------------------------- + + /** specifies the font attributes of the text in the control. + */ + [property] com::sun::star::awt::FontDescriptor FontDescriptor; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontEmphasis</type> + value of the text in the control. + */ + [property] short FontEmphasisMark; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontRelief</type> + value of the text in the control. + */ + [property] short FontRelief; + + //------------------------------------------------------------------------- + + /** specifies the help text of the control. + */ + [property] string HelpText; + + //------------------------------------------------------------------------- + + /** specifies the help URL of the control. + */ + [property] string HelpURL; + + //------------------------------------------------------------------------- + + /** specifies whether the selection in the control should be hidden when + the control is not active (focused). + + @since OOo 2.0.0 + */ + [optional, property] boolean HideInactiveSelection; + + //------------------------------------------------------------------------- + + /** specifies the literal mask. + */ + [property] string LiteralMask; + + //------------------------------------------------------------------------- + + /** specifies the maximum character count. + */ + [property] short MaxTextLen; + + //------------------------------------------------------------------------- + + /** specifies that the control will be printed with the document. + */ + [property] boolean Printable; + + //------------------------------------------------------------------------- + + /** specifies that the content of the control cannot be modified by the + user. + */ + [property] boolean ReadOnly; + + //------------------------------------------------------------------------- + + /** specifies that the text is checked during the user input. + */ + [property] boolean StrictFormat; + + //------------------------------------------------------------------------- + + /** specifies that the control can be reached with the TAB key. + */ + [property] boolean Tabstop; + + //------------------------------------------------------------------------- + + /** specifies the text displayed in the control. + */ + [property] string Text; + + //------------------------------------------------------------------------- + + /** specifies the text color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextColor; + + //------------------------------------------------------------------------- + + /** specifies the text line color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextLineColor; + + /** denotes the writing mode used in the control, as specified in the + <type scope="com::sun::star::text">WritingMode2</type> constants group. + + <p>Only <member scope="com::sun::star::text">WritingMode2::LR_TB</member> and + <member scope="com::sun::star::text">WritingMode2::RL_TB</member> are supported at the moment.</p> + + @since OOo 3.1 + */ + [optional, property] short WritingMode; + + /** defines how the mouse wheel can be used to scroll through the control's content. + + <p>Usually, the mouse wheel spins the numeric value displayed in the control. Using this property, + and one of the <type>MouseWheelBehavior</type> constants, you can control under which circumstances + this is possible.</p> + */ + [optional, property] short MouseWheelBehavior; + + //------------------------------------------------------------------------- + + /** specifies the vertical alignment of the text in the control. + + @since OpenOffice.org 3.3 + */ + [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlProgressBar.idl b/offapi/com/sun/star/awt/UnoControlProgressBar.idl new file mode 100644 index 000000000000..72240452a324 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlProgressBar.idl @@ -0,0 +1,60 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoProgressBarControl_idl__ +#define __com_sun_star_awt_UnoProgressBarControl_idl__ + +#ifndef __com_sun_star_awt_UnoControl_idl__ +#include <com/sun/star/awt/UnoControl.idl> +#endif + +#ifndef __com_sun_star_awt_XProgressBar_idl__ +#include <com/sun/star/awt/XProgressBar.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a progress bar control. + */ +published service UnoControlProgressBar +{ + service com::sun::star::awt::UnoControl; + + interface com::sun::star::awt::XProgressBar; + +}; + +//============================================================================= + +}; }; }; }; + + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlProgressBarModel.idl b/offapi/com/sun/star/awt/UnoControlProgressBarModel.idl new file mode 100644 index 000000000000..1ffb7ace534a --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlProgressBarModel.idl @@ -0,0 +1,134 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlProgressBarModel_idl__ +#define __com_sun_star_awt_UnoControlProgressBarModel_idl__ + +#ifndef __com_sun_star_awt_UnoControlModel_idl__ +#include <com/sun/star/awt/UnoControlModel.idl> +#endif + +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the standard model of an <type>UnoControlProgressBar</type>. + */ +published service UnoControlProgressBarModel +{ + service com::sun::star::awt::UnoControlModel; + + //------------------------------------------------------------------------- + + /** specifies the background color (RGB) of the control. + */ + [property] com::sun::star::util::Color BackgroundColor; + + //------------------------------------------------------------------------- + + /** specifies the border style of the control. + + <pre> + 0: No border + 1: 3D border + 2: simple border + </pre> + */ + [property] short Border; + + //------------------------------------------------------------------------- + + /** specifies the color of the border, if present + + <p>Not every border style (see <member>Border</member>) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.</p> + + @since OOo 2.0.0 + */ + [optional, property] long BorderColor; + + //------------------------------------------------------------------------- + + /** determines whether the control is enabled or disabled. + */ + [property] boolean Enabled; + + //------------------------------------------------------------------------- + + /** specifies the fill color (RGB) of the control. + */ + [property] com::sun::star::util::Color FillColor; + + //------------------------------------------------------------------------- + + /** specifies the help text of the control. + */ + [property] string HelpText; + + //------------------------------------------------------------------------- + + /** specifies the help URL of the control. + */ + [property] string HelpURL; + + //------------------------------------------------------------------------- + + /** specifies that the control will be printed with the document. + */ + [property] boolean Printable; + + //------------------------------------------------------------------------- + + /** specifies the progress value of the control. + */ + [property] long ProgressValue; + + //------------------------------------------------------------------------- + + /** specifies the maximum progress value of the control. + */ + [property] long ProgressValueMax; + + //------------------------------------------------------------------------- + + /** specifies the minimum progress value of the control. + */ + [property] long ProgressValueMin; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlRadioButton.idl b/offapi/com/sun/star/awt/UnoControlRadioButton.idl new file mode 100644 index 000000000000..72c88df107bd --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlRadioButton.idl @@ -0,0 +1,65 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoButtonControl_idl__ +#define __com_sun_star_awt_UnoButtonControl_idl__ + +#ifndef __com_sun_star_awt_UnoControl_idl__ +#include <com/sun/star/awt/UnoControl.idl> +#endif + +#ifndef __com_sun_star_awt_XRadioButton_idl__ +#include <com/sun/star/awt/XRadioButton.idl> +#endif + +#ifndef __com_sun_star_awt_XLayoutConstrains_idl__ +#include <com/sun/star/awt/XLayoutConstrains.idl> +#endif + + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a radio button control. + */ +published service UnoControlRadioButton +{ + service com::sun::star::awt::UnoControl; + + interface com::sun::star::awt::XRadioButton; + + interface com::sun::star::awt::XLayoutConstrains; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlRadioButtonModel.idl b/offapi/com/sun/star/awt/UnoControlRadioButtonModel.idl new file mode 100644 index 000000000000..6676e98e7e6e --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlRadioButtonModel.idl @@ -0,0 +1,234 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlRadioButtonModel_idl__ +#define __com_sun_star_awt_UnoControlRadioButtonModel_idl__ + +#ifndef __com_sun_star_awt_FontDescriptor_idl__ +#include <com/sun/star/awt/FontDescriptor.idl> +#endif +#ifndef __com_sun_star_awt_UnoControlModel_idl__ +#include <com/sun/star/awt/UnoControlModel.idl> +#endif +#ifndef __com_sun_star_style_VerticalAlignment_idl__ +#include <com/sun/star/style/VerticalAlignment.idl> +#endif +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif +#ifndef com_sun_star_graphic_XGraphic_idl +#include <com/sun/star/graphic/XGraphic.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the standard model of an <type>UnoControlRadioButton</type>. + */ +published service UnoControlRadioButtonModel +{ + service com::sun::star::awt::UnoControlModel; + + //------------------------------------------------------------------------- + + /** specifies the horizontal alignment of the text in the control. + + <pre> + 0: left + 1: center + 2: right + </pre> + + @since OOo 2.0.0 + */ + [optional, property] short Align; + + //------------------------------------------------------------------------- + + /** specifies the background color (RGB) of the control. + */ + [optional, property] long BackgroundColor; + + //------------------------------------------------------------------------- + + /** determines whether the control is enabled or disabled. + */ + [property] boolean Enabled; + + //------------------------------------------------------------------------- + + /** specifies the font attributes of the text in the control. + */ + [property] com::sun::star::awt::FontDescriptor FontDescriptor; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontEmphasis</type> + value of the text in the control. + */ + [property] short FontEmphasisMark; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontRelief</type> + value of the text in the control. + */ + [property] short FontRelief; + + //------------------------------------------------------------------------- + + /** specifies the help text of the control. + */ + [property] string HelpText; + + //------------------------------------------------------------------------- + + /** specifies the help URL of the control. + */ + [property] string HelpURL; + + //------------------------------------------------------------------------- + + /** specifies the position of the image, if any, relative to the text, if any + + <p>Valid values of this property are specified with <type>ImagePosition</type>.</p> + */ + [optional, property] short ImagePosition; + + //------------------------------------------------------------------------- + + /** specifies an URL to an image to display besides the label of the control + @see Graphic + */ + [optional, property] string ImageURL; + + //------------------------------------------------------------------------- + + /** specifies a graphic to be displayed besides the label of the control + + <p>If this property is present, it interacts with the <member>ImageURL</member>in the + following way: + <ul><li>If <member>ImageURL</member> is set, <member>Graphic</member> will be reset + to an object as loaded from the given image URL, or <NULL/> if <member>ImageURL</member> + does not point to a valid image file.</li> + <li>If <member>Graphic</member> is set, <member>ImageURL</member> will be reset + to an empty string.</li> + </ul></p> + + @since OOo 2.1 + */ + [optional, property, transient] com::sun::star::graphic::XGraphic Graphic; + + //------------------------------------------------------------------------- + + /** specifies the label of the control. + */ + [property] string Label; + + //------------------------------------------------------------------------- + + /** specifies that the text may be displayed on more than one line. + + @since OOo 2.0.0 + */ + [optional, property] boolean MultiLine; + + //------------------------------------------------------------------------- + + /** specifies that the control will be printed with the document. + */ + [property] boolean Printable; + + //------------------------------------------------------------------------- + + /** specifies the state of the control. + + <pre> + 0: not checked + 1: checked + </pre> + */ + [property] short State; + + //------------------------------------------------------------------------- + + /** specifies that the control can be reached with the TAB key. + */ + [property] boolean Tabstop; + + //------------------------------------------------------------------------- + + /** specifies the text color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextColor; + + //------------------------------------------------------------------------- + + /** specifies the text line color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextLineColor; + + //------------------------------------------------------------------------- + + /** specifies the vertical alignment of the text in the control. + + @since OOo 2.0.0 + */ + [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; + + //------------------------------------------------------------------------- + + /** specifies a visual effect to apply to the radio button control. + + <p>Possible values for this property are <type>VisualEffect</type>::FLAT and + <type>VisualEffect</type>::LOOK3D.</p> + + @see com::sun::star::awt::VisualEffect + + @since OOo 2.0.0 + */ + [optional, property] short VisualEffect; + + /** denotes the writing mode used in the control, as specified in the + <type scope="com::sun::star::text">WritingMode2</type> constants group. + + <p>Only <member scope="com::sun::star::text">WritingMode2::LR_TB</member> and + <member scope="com::sun::star::text">WritingMode2::RL_TB</member> are supported at the moment.</p> + + @since OOo 3.1 + */ + [optional, property] short WritingMode; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlRoadmap.idl b/offapi/com/sun/star/awt/UnoControlRoadmap.idl new file mode 100644 index 000000000000..f68e1b2cba7e --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlRoadmap.idl @@ -0,0 +1,85 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlRoadmap_idl__ +#define __com_sun_star_awt_UnoControlRoadmap_idl__ + +#ifndef __com_sun_star_awt_UnoControl_idl__ +#include <com/sun/star/awt/UnoControl.idl> +#endif + +#ifndef __com_sun_star_awt_XItemEventBroadcaster_idl__ +#include <com/sun/star/awt/XItemEventBroadcaster.idl> +#endif + +#ifndef __com_sun_star_beans_XPropertyChangeListener_idl__ +#include <com/sun/star/beans/XPropertyChangeListener.idl> +#endif + + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a Roadmap control. The model of the Roadmap control must be a + <type>UnoControlRoadmapModel</type> + + <p>The model properties are implemented in the control as follows: + <ul><li>CurrentItem: The RGB code of the background color is RGB(194, 211, 238)</li> + <li>ImageURL: The image referenced by the URL is placed in the lower right corner + of the control.</li> + <li>Graphic: The graphic is placed in the lower right corner of the control.</li> + <li>Complete: When set to <FALSE/> a non interactive RoadmapItem is appended + after the last roadmap item, labeled with three dots, indicating incompleteness.</li> + <li>Interactive: When activating a RoadmapItem (see <type>RoadmapItem</type>) the + information about which Item has been selected is passed over when an itemlistener + has been registered at the control.</li> + </ul></p> +*/ +service UnoControlRoadmap +{ + service com::sun::star::awt::UnoControl; + + /** This interface allows to add an Itemlistener to the roadmap. + If the property "Interactive" at the com::sun::star::awt::UnoControlRoadmapModel + is set to 'true' the listener is triggered each time the user selects a RoadmapItem + by Mouseclick or pressing space bar at the currently focussed RoadmapItem. + The property ItemID of the com::sun::star::awt::ItemEvent:: is assigned + the value of the property "ID" of the activated RoadmapItem. + */ + interface com::sun::star::awt::XItemEventBroadcaster; + + +}; +//============================================================================= + +}; }; }; }; + + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlRoadmapModel.idl b/offapi/com/sun/star/awt/UnoControlRoadmapModel.idl new file mode 100644 index 000000000000..65f5380c6e1f --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlRoadmapModel.idl @@ -0,0 +1,169 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlRoadmapModel_idl__ +#define __com_sun_star_awt_UnoControlRoadmapModel_idl__ + + +#ifndef __com_sun_star_awt_UnoControlModel_idl__ +#include <com/sun/star/awt/UnoControlModel.idl> +#endif +#ifndef __com_sun_star_container_XIndexContainer_idl__ +#include <com/sun/star/container/XIndexContainer.idl> +#endif +#ifndef __com_sun_star_beans_XPropertyChangeListener_idl__ +#include <com/sun/star/beans/XPropertyChangeListener.idl> +#endif +#ifndef com_sun_star_graphic_XGraphic_idl +#include <com/sun/star/graphic/XGraphic.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the standard model of an <type>UnoControlContainer</type>. + */ +service UnoControlRoadmapModel +{ + service com::sun::star::awt::UnoControlModel; + + /** The control serves as an indexed container typically for RoadmapItems + as specified in com::sun::star::awt:RoadmapItem. The RoadmapItems are + held in a sequence. + When inserting such items their ID is set equal to the Index of their + insertion by default. + After removing items the CurrentItem property is - when beyound the upper sequence + boundaries - set equal to last index of the RoadmapItem Array. + */ + interface com::sun::star::container::XIndexContainer; + + //------------------------------------------------------------------------- + + + /** specifies the background color (RGB) of the control. + The Default value is white + */ + [property] long BackgroundColor; + + //------------------------------------------------------------------------- + + /** determines whether the control is interactive or not. + + <p>A roadmap control which is interactive allows selecting its items out-of-order, + by simply clicking them.</p> + */ + [property] boolean Interactive; + + //------------------------------------------------------------------------- + + /** determines whether the control container is complete or not. If it is + false than a non - interactive RoadmapItem is appended + */ + [property] boolean Complete; + + + //------------------------------------------------------------------------- + + /** specifies an URL to an image to use for the control. + The image is placed in the lower right corner of the control + @see Graphic + */ + [property] string ImageURL; + + //------------------------------------------------------------------------- + + /** specifies a graphic to be displayed on the control + + <p>If this property is present, it interacts with the <member>ImageURL</member>in the + following way: + <ul><li>If <member>ImageURL</member> is set, <member>Graphic</member> will be reset + to an object as loaded from the given image URL, or <NULL/> if <member>ImageURL</member> + does not point to a valid image file.</li> + <li>If <member>Graphic</member> is set, <member>ImageURL</member> will be reset + to an empty string.</li> + </ul></p> + + @since OOo 2.1 + */ + [optional, property, transient] com::sun::star::graphic::XGraphic Graphic; + + //------------------------------------------------------------------------- + + /** specifies the border style of the control. + + <pre> + 0: No border + 1: 3D border + 2: simple border + </pre> + */ + [property] short Border; + + //------------------------------------------------------------------------- + + /** specifies whether the control will be printed with the document. + */ + [property] boolean Printable; + + //------------------------------------------------------------------------- + + /** specifies the text displayed in the control. + */ + [property] string Text; + + //------------------------------------------------------------------------- + + /** refers to the ID of the currently selected item. Initially this property is set to '-1' + which is equal to 'undefined" + If the Roadmap Item that the CurrentItemID refers to is removed the property + 'CurrentItemID' is set to -1 + */ + [property] short CurrentItemID; + + + //------------------------------------------------------------------------- + + /** specifies the help text of the control. + */ + [property] string HelpText; + + + //------------------------------------------------------------------------- + + /** specifies the help URL of the control. + */ + [property] string HelpURL; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlScrollBar.idl b/offapi/com/sun/star/awt/UnoControlScrollBar.idl new file mode 100644 index 000000000000..403df8459d46 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlScrollBar.idl @@ -0,0 +1,60 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoScrollBarControl_idl__ +#define __com_sun_star_awt_UnoScrollBarControl_idl__ + +#ifndef __com_sun_star_awt_UnoControl_idl__ +#include <com/sun/star/awt/UnoControl.idl> +#endif + +#ifndef __com_sun_star_awt_XScrollBar_idl__ +#include <com/sun/star/awt/XScrollBar.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a scroll bar control. + */ +published service UnoControlScrollBar +{ + service com::sun::star::awt::UnoControl; + + interface com::sun::star::awt::XScrollBar; + +}; + +//============================================================================= + +}; }; }; }; + + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlScrollBarModel.idl b/offapi/com/sun/star/awt/UnoControlScrollBarModel.idl new file mode 100644 index 000000000000..3a190405430f --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlScrollBarModel.idl @@ -0,0 +1,201 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlScrollBarModel_idl__ +#define __com_sun_star_awt_UnoControlScrollBarModel_idl__ + +#ifndef __com_sun_star_awt_UnoControlModel_idl__ +#include <com/sun/star/awt/UnoControlModel.idl> +#endif + +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the standard model of an <type>UnoControlScrollBar</type>. + */ +published service UnoControlScrollBarModel +{ + service com::sun::star::awt::UnoControlModel; + + //------------------------------------------------------------------------- + + /** specifies the RGB color to be used for the control. + + @since OOo 2.0.0 + */ + [optional, property] com::sun::star::util::Color BackgroundColor; + + //------------------------------------------------------------------------- + + /** specifies the increment for a block move. + */ + [property] long BlockIncrement; + + //------------------------------------------------------------------------- + + /** specifies the border style of the control. + + <pre> + 0: No border + 1: 3D border + 2: simple border + </pre> + */ + [property] short Border; + + //------------------------------------------------------------------------- + + /** specifies the color of the border, if present + + <p>Not every border style (see <member>Border</member>) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.</p> + + @since OOo 2.0.0 + */ + [optional, property] long BorderColor; + + //------------------------------------------------------------------------- + + /** determines whether the control is enabled or disabled. + */ + [property] boolean Enabled; + + //------------------------------------------------------------------------- + + /** specifies the help text of the control. + */ + [property] string HelpText; + + //------------------------------------------------------------------------- + + /** specifies the help URL of the control. + */ + [property] string HelpURL; + + //------------------------------------------------------------------------- + + /** specifies the increment for a single line move. + */ + [property] long LineIncrement; + + //------------------------------------------------------------------------- + + /** specifies the scrolling behaviour of the control. + + <p><TRUE/> means, that when the user moves the slider in the scroll bar, + the content of the window is updated immediately. + <FALSE/> means, that the window is only updated after the user has + released the mouse button.</p> + + @since OOo 2.0.0 + */ + [optional, property] boolean LiveScroll; + + //------------------------------------------------------------------------- + + /** specifies the <type>ScrollBarOrientation</type> of the control. + */ + [property] long Orientation; + + //------------------------------------------------------------------------- + + /** specifies that the control will be printed with the document. + */ + [property] boolean Printable; + + //------------------------------------------------------------------------- + + /** specifies the mouse repeat delay, in milliseconds. + + <p>When the user presses a mouse in a control area where this triggers + an action (such as scrolling the scrollbar), then usual control implementations + allow to repeatedly trigger this action, without the need to release the + mouse button and to press it again. The delay between two such triggers + is specified with this property.</p> + + @since OOo 2.0.0 + */ + [optional, property] long RepeatDelay; + + //------------------------------------------------------------------------- + + /** specifies the scroll value of the control. + */ + [property] long ScrollValue; + + //------------------------------------------------------------------------- + + /** specifies the minimum scroll value of the control. + + <p>If this optional property is not present, clients of the component should assume + a minimal scroll value of 0.</p> + */ + [optional, property] long ScrollValueMin; + + //------------------------------------------------------------------------- + + /** specifies the maximum scroll value of the control. + */ + [property] long ScrollValueMax; + + //------------------------------------------------------------------------- + + /** specifies the RGB color to be used when painting symbols which are + part of the control's appearance, such as the arrow buttons. + + @since OOo 2.0.0 + */ + [optional, property] com::sun::star::util::Color SymbolColor; + + //------------------------------------------------------------------------- + + /** specifies that the control can be reached with the TAB key. + + @since OOo 2.0.0 + */ + [optional, property] boolean Tabstop; + + //------------------------------------------------------------------------- + + /** specifies the visible size of the scroll bar. + */ + [property] long VisibleSize; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlSimpleAnimation.idl b/offapi/com/sun/star/awt/UnoControlSimpleAnimation.idl new file mode 100644 index 000000000000..cf45f0aea0f0 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlSimpleAnimation.idl @@ -0,0 +1,65 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlSimpleAnimation_idl__ +#define __com_sun_star_awt_UnoControlSimpleAnimation_idl__ + +#ifndef __com_sun_star_awt_UnoControl_idl__ +#include <com/sun/star/awt/UnoControl.idl> +#endif + +#ifndef __com_sun_star_awt_XSimpleAnimation_idl__ +#include <com/sun/star/awt/XSimpleAnimation.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a simple animation control. + + <p>The model of an <type>UnoControlSimpleAnimation</type> control must support + the <type>UnoControlSimpleAnimationModel</type> service.</p> + + @since OOo 2.2 + */ +published service UnoControlSimpleAnimation +{ + service com::sun::star::awt::UnoControl; + + interface com::sun::star::awt::XSimpleAnimation; + +}; + +//============================================================================= + +}; }; }; }; + + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlSimpleAnimationModel.idl b/offapi/com/sun/star/awt/UnoControlSimpleAnimationModel.idl new file mode 100644 index 000000000000..ca301483263f --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlSimpleAnimationModel.idl @@ -0,0 +1,78 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlSimpleAnimationModel_idl__ +#define __com_sun_star_awt_UnoControlSimpleAnimationModel_idl__ + +#ifndef __com_sun_star_awt_UnoControlModel_idl__ +#include <com/sun/star/awt/UnoControlModel.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the standard model of an <type>UnoControlSimpleAnimation</type>. + + <p>The simple animation control displays a sequence of images.</p> + + <p> </p> + + @see UnoControlScrollBarModel + @since OOo 2.2 + */ + +published service UnoControlSimpleAnimationModel +{ + service com::sun::star::awt::UnoControlModel; + + //------------------------------------------------------------------------- + + /** specifies the time in milliseconds between two animation steps. + + <pre>This is the minimum time, the actual value might be longer due to + system load. The default value will be 100 ms.</pre> + */ + [property] long StepTime; + + //------------------------------------------------------------------------- + + /** specifies whether the animation will restart again after displaying the last + image. + + <p>The default is FALSE.</p> + */ + [property] boolean AutoRepeat; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlSpinButton.idl b/offapi/com/sun/star/awt/UnoControlSpinButton.idl new file mode 100644 index 000000000000..db8386c4304f --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlSpinButton.idl @@ -0,0 +1,63 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoSpinButtonControl_idl__ +#define __com_sun_star_awt_UnoSpinButtonControl_idl__ + +#ifndef __com_sun_star_awt_UnoControl_idl__ +#include <com/sun/star/awt/UnoControl.idl> +#endif + +#ifndef __com_sun_star_awt_XSpinValue_idl__ +#include <com/sun/star/awt/XSpinValue.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a spin button control. + + <p>The model of an <type>UnoControlSpinButton</type> control must support + the <type>UnoControlSpinButtonModel</type> service. + */ +service UnoControlSpinButton +{ + service com::sun::star::awt::UnoControl; + + interface com::sun::star::awt::XSpinValue; + +}; + +//============================================================================= + +}; }; }; }; + + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlSpinButtonModel.idl b/offapi/com/sun/star/awt/UnoControlSpinButtonModel.idl new file mode 100644 index 000000000000..cb55a369a15d --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlSpinButtonModel.idl @@ -0,0 +1,183 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlSpinButtonModel_idl__ +#define __com_sun_star_awt_UnoControlSpinButtonModel_idl__ + +#ifndef __com_sun_star_awt_UnoControlModel_idl__ +#include <com/sun/star/awt/UnoControlModel.idl> +#endif + +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the standard model of an <type>UnoControlSpinButton</type>. + + <p>A spin button is a control which has a numeric value associated with it, + and allows to change this value using two spin buttons.</p> + + <p>A spin button is similar to a scroll bar, but it usually has no + (own) visual representation of the associated value, but is used to propagate + it's value to other controls.</p> + + @see UnoControlScrollBarModel + */ +service UnoControlSpinButtonModel +{ + service com::sun::star::awt::UnoControlModel; + + //------------------------------------------------------------------------- + + /** specifies the border style of the control. + + <pre> + 0: No border + 1: 3D border + 2: simple border + </pre> + */ + [property] short Border; + + //------------------------------------------------------------------------- + + /** specifies the color of the border, if present + + <p>Not every border style (see <member>Border</member>) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.</p> + + @since OOo 2.0.0 + */ + [optional, property] long BorderColor; + + //------------------------------------------------------------------------- + + /** determines whether the control is enabled or disabled. + */ + [property] boolean Enabled; + + //------------------------------------------------------------------------- + + /** specifies the help text of the control. + */ + [property] string HelpText; + + //------------------------------------------------------------------------- + + /** specifies the help URL of the control. + */ + [property] string HelpURL; + + //------------------------------------------------------------------------- + + /** specifies the increment by which the value is changed when using operating + the spin button. + */ + [property] long SpinIncrement; + + //------------------------------------------------------------------------- + + /** specifies the <type>ScrollBarOrientation</type> of the control. + */ + [property] long Orientation; + + //------------------------------------------------------------------------- + + /** specifies whether the control will be printed with the document. + */ + [property] boolean Printable; + + //------------------------------------------------------------------------- + + /** specifies the current value of the control. + */ + [property] long SpinValue; + + //------------------------------------------------------------------------- + + /** specifies the minimum value of the control. + */ + [property] long SpinValueMin; + + //------------------------------------------------------------------------- + + /** specifies the maximum value of the control. + */ + [property] long SpinValueMax; + + //------------------------------------------------------------------------- + + /** specifies the RGB color to be used for the control + */ + [property] com::sun::star::util::Color BackgroundColor; + + //------------------------------------------------------------------------- + + /** specifies the RGB color to be used when painting symbols which are + part of the control's appearance, such as the arrow buttons. + */ + [property] com::sun::star::util::Color SymbolColor; + + //------------------------------------------------------------------------- + + /** specifies whether the mouse should show repeating behaviour, i.e. + repeatedly trigger an action when keeping pressed. + */ + [property] boolean Repeat; + + //------------------------------------------------------------------------- + + /** specifies the mouse repeat delay, in milliseconds. + + <p>When the user presses a mouse in a control area where this triggers + an action (such as spinning the value), then usual control implementations + allow to repeatedly trigger this action, without the need to release the + mouse button and to press it again. The delay between two such triggers + is specified with this property.</p> + */ + [property] long RepeatDelay; + + /** defines how the mouse wheel can be used to scroll through the control's content. + + <p>Usually, the mouse wheel spins the numeric value displayed in the control. Using this property, + and one of the <type>MouseWheelBehavior</type> constants, you can control under which circumstances + this is possible.</p> + */ + [optional, property] short MouseWheelBehavior; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlThrobber.idl b/offapi/com/sun/star/awt/UnoControlThrobber.idl new file mode 100644 index 000000000000..f5194075019a --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlThrobber.idl @@ -0,0 +1,65 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlThrobber_idl__ +#define __com_sun_star_awt_UnoControlThrobber_idl__ + +#ifndef __com_sun_star_awt_UnoControl_idl__ +#include <com/sun/star/awt/UnoControl.idl> +#endif + +#ifndef __com_sun_star_awt_XThrobber_idl__ +#include <com/sun/star/awt/XThrobber.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a simple animation control. + + <p>The model of an <type>UnoControlThrobber</type> control must support + the <type>UnoControlThrobberModel</type> service.</p> + + @since OOo 2.2 + */ +published service UnoControlThrobber +{ + service com::sun::star::awt::UnoControl; + + interface com::sun::star::awt::XThrobber; + +}; + +//============================================================================= + +}; }; }; }; + + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlThrobberModel.idl b/offapi/com/sun/star/awt/UnoControlThrobberModel.idl new file mode 100644 index 000000000000..f2eacad5b76b --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlThrobberModel.idl @@ -0,0 +1,60 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlThrobberModel_idl__ +#define __com_sun_star_awt_UnoControlThrobberModel_idl__ + +#ifndef __com_sun_star_awt_UnoControlModel_idl__ +#include <com/sun/star/awt/UnoControlModel.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the standard model of an <type>UnoControlThrobber</type>. + + <p>The simple animation control displays a sequence of images.</p> + + <p> </p> + + @see UnoControlScrollBarModel + @since OOo 2.2 + */ + +published service UnoControlThrobberModel +{ + service com::sun::star::awt::UnoControlModel; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlTimeField.idl b/offapi/com/sun/star/awt/UnoControlTimeField.idl new file mode 100644 index 000000000000..310f0b9b9539 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlTimeField.idl @@ -0,0 +1,73 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoTimeFieldControl_idl__ +#define __com_sun_star_awt_UnoTimeFieldControl_idl__ + +#ifndef __com_sun_star_awt_UnoControlEdit_idl__ +#include <com/sun/star/awt/UnoControlEdit.idl> +#endif + +#ifndef __com_sun_star_awt_XSpinField_idl__ +#include <com/sun/star/awt/XSpinField.idl> +#endif + +#ifndef __com_sun_star_awt_XTimeField_idl__ +#include <com/sun/star/awt/XTimeField.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a time field control. + + <p>A time field makes it possible to enter, display, and edit time + values.</p> + */ +published service UnoControlTimeField +{ + service com::sun::star::awt::UnoControlEdit; + + /** gives access to the value of a spin field and makes it possible to + register for spin events. + + @since OOo 1.1.2 + */ + [optional] interface com::sun::star::awt::XSpinField; + + interface com::sun::star::awt::XTimeField; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/UnoControlTimeFieldModel.idl b/offapi/com/sun/star/awt/UnoControlTimeFieldModel.idl new file mode 100644 index 000000000000..2673e152bb00 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlTimeFieldModel.idl @@ -0,0 +1,271 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlTimeFieldModel_idl__ +#define __com_sun_star_awt_UnoControlTimeFieldModel_idl__ + +#ifndef __com_sun_star_awt_FontDescriptor_idl__ +#include <com/sun/star/awt/FontDescriptor.idl> +#endif + +#ifndef __com_sun_star_awt_UnoControlModel_idl__ +#include <com/sun/star/awt/UnoControlModel.idl> +#endif + +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + +#ifndef __com_sun_star_style_VerticalAlignment_idl__ +#include <com/sun/star/style/VerticalAlignment.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the standard model of an <type>UnoControlTimeField</type>. + */ +published service UnoControlTimeFieldModel +{ + service com::sun::star::awt::UnoControlModel; + + //------------------------------------------------------------------------- + + /** specifies the background color (RGB) of the control. + */ + [property] com::sun::star::util::Color BackgroundColor; + + //------------------------------------------------------------------------- + + /** specifies the border style of the control. + + <pre> + 0: No border + 1: 3D border + 2: simple border + </pre> + */ + [property] short Border; + + //------------------------------------------------------------------------- + + /** specifies the color of the border, if present + + <p>Not every border style (see <member>Border</member>) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.</p> + + @since OOo 2.0.0 + */ + [optional, property] long BorderColor; + + //------------------------------------------------------------------------- + + /** determines whether the control is enabled or disabled. + */ + [property] boolean Enabled; + + //------------------------------------------------------------------------- + + /** specifies the font attributes of the text in the control. + */ + [property] com::sun::star::awt::FontDescriptor FontDescriptor; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontEmphasis</type> + value of the text in the control. + */ + [property] short FontEmphasisMark; + + //------------------------------------------------------------------------- + + /** specifies the <type scope="com::sun::star::text">FontRelief</type> + value of the text in the control. + */ + [property] short FontRelief; + + //------------------------------------------------------------------------- + + /** specifies the help text of the control. + */ + [property] string HelpText; + + //------------------------------------------------------------------------- + + /** specifies the help URL of the control. + */ + [property] string HelpURL; + + //------------------------------------------------------------------------- + + /** specifies whether the selection in the control should be hidden when + the control is not active (focused). + + @since OOo 2.0.0 + */ + [optional, property] boolean HideInactiveSelection; + + //------------------------------------------------------------------------- + + /** specifies that the control will be printed with the document. + */ + [property] boolean Printable; + + //------------------------------------------------------------------------- + + /** specifies that the content of the control cannot be modified by the user. + */ + [property] boolean ReadOnly; + + //------------------------------------------------------------------------- + + /** specifies whether the mouse should show repeating behaviour, i.e. + repeatedly trigger an action when keeping pressed. + + @since OOo 2.0.0 + */ + [optional, property] boolean Repeat; + + //------------------------------------------------------------------------- + + /** specifies the mouse repeat delay, in milliseconds. + + <p>When the user presses a mouse in a control area where this triggers + an action (such as spinning the value), then usual control implementations + allow to repeatedly trigger this action, without the need to release the + mouse button and to press it again. The delay between two such triggers + is specified with this property.</p> + + @since OOo 2.0.0 + */ + [optional, property] long RepeatDelay; + + //------------------------------------------------------------------------- + + /** specifies that the control has a spin button. + */ + [property] boolean Spin; + + //------------------------------------------------------------------------- + + /** specifies that the date is checked during the user input. + */ + [property] boolean StrictFormat; + + //------------------------------------------------------------------------- + + /** specifies that the control can be reached with the TAB key. + */ + [property] boolean Tabstop; + + //------------------------------------------------------------------------- + + /** specifies the text displayed in the control. + + @since OOo 2.0.0 + */ + [optional, property] string Text; + + //------------------------------------------------------------------------- + + /** specifies the text color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextColor; + + //------------------------------------------------------------------------- + + /** specifies the text line color (RGB) of the control. + */ + [property] com::sun::star::util::Color TextLineColor; + + //------------------------------------------------------------------------- + + /** specifies the time displayed in the control. + */ + [property] long Time; + + //------------------------------------------------------------------------- + + /** specifies the format of the displayed time. + + <pre> + 0: 24h short + 1: 24h long + 2: 12h short + 3: 12h long + 4: Duration short + 5: Duration long + </pre> + */ + [property] short TimeFormat; + + //------------------------------------------------------------------------- + + /** specifies the maximum time that can be entered. + */ + [property] long TimeMax; + + //------------------------------------------------------------------------- + + /** specifies the minimum time that can be entered. + */ + [property] long TimeMin; + + /** denotes the writing mode used in the control, as specified in the + <type scope="com::sun::star::text">WritingMode2</type> constants group. + + <p>Only <member scope="com::sun::star::text">WritingMode2::LR_TB</member> and + <member scope="com::sun::star::text">WritingMode2::RL_TB</member> are supported at the moment.</p> + + @since OOo 3.1 + */ + [optional, property] short WritingMode; + + /** defines how the mouse wheel can be used to scroll through the control's content. + + <p>Usually, the mouse wheel spins the numeric value displayed in the control. Using this property, + and one of the <type>MouseWheelBehavior</type> constants, you can control under which circumstances + this is possible.</p> + */ + [optional, property] short MouseWheelBehavior; + + //------------------------------------------------------------------------- + + /** specifies the vertical alignment of the text in the control. + + @since OpenOffice.org 3.3 + */ + [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/VclContainerEvent.idl b/offapi/com/sun/star/awt/VclContainerEvent.idl new file mode 100644 index 000000000000..2f4595e984e9 --- /dev/null +++ b/offapi/com/sun/star/awt/VclContainerEvent.idl @@ -0,0 +1,66 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_VclContainerEvent_idl__ +#define __com_sun_star_awt_VclContainerEvent_idl__ + +#ifndef __com_sun_star_lang_EventObject_idl__ +#include <com/sun/star/lang/EventObject.idl> +#endif + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a container event. + + <p>These events are provided <strong>only</strong> for notification + purposes.</p> + + @see XVclContainerListener + */ +published struct VclContainerEvent: com::sun::star::lang::EventObject +{ + //------------------------------------------------------------------------- + + /** returns the child component that was added or removed. + */ + com::sun::star::uno::XInterface Child; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/VclWindowPeerAttribute.idl b/offapi/com/sun/star/awt/VclWindowPeerAttribute.idl new file mode 100644 index 000000000000..db26e2811178 --- /dev/null +++ b/offapi/com/sun/star/awt/VclWindowPeerAttribute.idl @@ -0,0 +1,156 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_VclWindowPeerAttribute_idl__ +#define __com_sun_star_awt_VclWindowPeerAttribute_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies attributes for the VCL window implementation. + + <p><b>IMPORTANT:</b> These constands have to be disjunct with + constants in <type>WindowAttribute</type>.</p> + + @deprecated + */ +published constants VclWindowPeerAttribute +{ + //------------------------------------------------------------------------- + + const long HSCROLL = 256; + + //------------------------------------------------------------------------- + + const long VSCROLL = 512; + + //------------------------------------------------------------------------- + + const long LEFT = 1024; + + //------------------------------------------------------------------------- + + const long CENTER = 2048; + + //------------------------------------------------------------------------- + + const long RIGHT = 4096; + + //------------------------------------------------------------------------- + + const long SPIN = 8192; + + //------------------------------------------------------------------------- + + const long SORT = 16384; + + //------------------------------------------------------------------------- + + const long DROPDOWN = 32768; + + //------------------------------------------------------------------------- + + const long DEFBUTTON = 65536; + + //------------------------------------------------------------------------- + + const long READONLY = 262144; + + //------------------------------------------------------------------------- + + const long CLIPCHILDREN = 524288; + + //------------------------------------------------------------------------- + + const long NOBORDER = 1048576; + + //------------------------------------------------------------------------- + + const long GROUP = 2097152; + + //------------------------------------------------------------------------- + + const long OK = 4194304; + + //------------------------------------------------------------------------- + + const long OK_CANCEL = 8388608; + + //------------------------------------------------------------------------- + + const long YES_NO = 16777216; + + //------------------------------------------------------------------------- + + const long YES_NO_CANCEL = 33554432; + + //------------------------------------------------------------------------- + + const long RETRY_CANCEL = 67108864; + + //------------------------------------------------------------------------- + + const long DEF_OK = 134217728; + + //------------------------------------------------------------------------- + + const long DEF_CANCEL = 268435456; + + //------------------------------------------------------------------------- + + const long DEF_RETRY = 536870912; + + //------------------------------------------------------------------------- + + const long DEF_YES = 1073741824; + + //------------------------------------------------------------------------- + + const long DEF_NO = -2147483648; + + //------------------------------------------------------------------------- + + const long NOLABEL = 536870912; //added for issue79712 + + //------------------------------------------------------------------------- + + const long AUTOHSCROLL = 1073741824; + + //------------------------------------------------------------------------- + + const long AUTOVSCROLL = -2147483648; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/VisualEffect.idl b/offapi/com/sun/star/awt/VisualEffect.idl new file mode 100644 index 000000000000..a9c818bf1225 --- /dev/null +++ b/offapi/com/sun/star/awt/VisualEffect.idl @@ -0,0 +1,63 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_VisualEffect_idl__ +#define __com_sun_star_awt_VisualEffect_idl__ + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** These values are used to specify the visual effect of controls + + <p>The list may grow in future versions.</p> +*/ +constants VisualEffect +{ + //------------------------------------------------------------------------- + /** specifies that no visual effect is to be applied + */ + const short NONE = 0; + + //------------------------------------------------------------------------- + /** specifies a 3D-like look + */ + const short LOOK3D = 1; + + //------------------------------------------------------------------------- + /** specifies a "flat" look + */ + const short FLAT = 2; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/WindowAttribute.idl b/offapi/com/sun/star/awt/WindowAttribute.idl new file mode 100644 index 000000000000..c8e7a29247b1 --- /dev/null +++ b/offapi/com/sun/star/awt/WindowAttribute.idl @@ -0,0 +1,135 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_WindowAttribute_idl__ +#define __com_sun_star_awt_WindowAttribute_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** These values are used to specify the decorations of a window. + + <p><b>IMPORTANT:</b> These constands have to be disjunct with + constants in <type>VclWindowPeerAttribute</type>.</p> + */ +published constants WindowAttribute +{ + //------------------------------------------------------------------------- + + /** specifies that the window is initially visible. + */ + const long SHOW = 1; + + //------------------------------------------------------------------------- + + /** specifies that the window fills the complete desktop area. + + <p>This applies only to top windows.</p> + */ + const long FULLSIZE = 2; + + //------------------------------------------------------------------------- + + /** specifies that the window is optimum size. + + <p>This applies only to top windows.</p> + */ + const long OPTIMUMSIZE = 4; + + //------------------------------------------------------------------------- + + /** specifies that the window is minimum size. + + <p>This applies only to top windows.</p> + */ + const long MINSIZE = 8; + + //------------------------------------------------------------------------- + + /** specifies that the window has visible borders. + + <p>This applies only to top windows.</p> + */ + const long BORDER = 16; + + //------------------------------------------------------------------------- + + /** specifies that the size of the window can be changed by the user. + + <p>This applies only to top windows.</p> + */ + const long SIZEABLE = 32; + + //------------------------------------------------------------------------- + + /** specifies that the window can be moved by the user. + + <p>This applies only to top windows.</p> + */ + const long MOVEABLE = 64; + + //------------------------------------------------------------------------- + + /** specifies that the window can be closed by the user. + + <p>This applies only to top windows.</p> + */ + const long CLOSEABLE = 128; + + //------------------------------------------------------------------------- + + /** specifies that the window should support the + <type scope="com::sun::star::awt::">XSystemDependentWindowPeer</type> + interface. + + <p>This flag may be ignored, but in this case no system-dependent + extension works.</p> + + @see XSystemDependentWindowPeer + @see com::sun::star::lang::SystemDependent + + @deprecated + conflicts with <member>VclWindowPeerAttribute::HSCROLL</member> + */ + const long SYSTEMDEPENDENT = 256; + + //------------------------------------------------------------------------- + + /** specifies that the window should have no decoration. + */ + const long NODECORATION = 512; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/WindowClass.idl b/offapi/com/sun/star/awt/WindowClass.idl new file mode 100644 index 000000000000..d798cb3599cc --- /dev/null +++ b/offapi/com/sun/star/awt/WindowClass.idl @@ -0,0 +1,72 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_WindowClass_idl__ +#define __com_sun_star_awt_WindowClass_idl__ + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the class of a window. + */ +published enum WindowClass +{ + //------------------------------------------------------------------------- + + /** specifies a top level window on the desktop. It is also a container. + */ + TOP, + + //------------------------------------------------------------------------- + + /** is a modal top level window on the desktop. It is also a container. + */ + MODALTOP, + + //------------------------------------------------------------------------- + + /** is a container that may contain other components. + It is not a top window. + */ + CONTAINER, + + //------------------------------------------------------------------------- + + /** is the simplest window. It can be a container. + */ + SIMPLE + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/WindowDescriptor.idl b/offapi/com/sun/star/awt/WindowDescriptor.idl new file mode 100644 index 000000000000..3ab2b89299c7 --- /dev/null +++ b/offapi/com/sun/star/awt/WindowDescriptor.idl @@ -0,0 +1,179 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * 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 <com/sun/star/awt/WindowClass.idl> +#endif + +#ifndef __com_sun_star_awt_XWindowPeer_idl__ +#include <com/sun/star/awt/XWindowPeer.idl> +#endif + +#ifndef __com_sun_star_awt_Rectangle_idl__ +#include <com/sun/star/awt/Rectangle.idl> +#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. + + <p>A zero length name means that the vcl creates a blank top, + a container, or a simple window. + The following service names are defined:<br/> + <ul> + <li>buttondialog</li> + <li>cancelbutton</li> + <li>checkbox</li> + <li>combobox</li> + <li>control</li> + <li>currencybox</li> + <li>currencyfield</li> + <li>datebox</li> + <li>datefield</li> + <li>dialog</li> + <li>dockingarea</li> + <li>dockingwindow</li> + <li>edit</li> + <li>errorbox</li> + <li>fixedbitmap</li> + <li>fixedimage</li> + <li>fixedline</li> + <li>fixedtext</li> + <li>floatingwindow</li> + <li>framewindow</li> + <li>groupbox</li> + <li>helpbutton</li> + <li>imagebutton</li> + <li>imageradiobutton</li> + <li>infobox</li> + <li>listbox</li> + <li>longcurrencybox</li> + <li>longcurrencyfield</li> + <li>menubutton</li> + <li>messbox</li> + <li>metricbox</li> + <li>metricfield</li> + <li>modaldialog</li> + <li>modelessdialog</li> + <li>morebutton</li> + <li>multilistbox</li> + <li>numericbox</li> + <li>numericfield</li> + <li>okbutton</li> + <li>patternbox</li> + <li>patternfield</li> + <li>pushbutton</li> + <li>querybox</li> + <li>radiobutton</li> + <li>scrollbar</li> + <li>scrollbarbox</li> + <li>simpleanimation</li> + <li>spinbutton</li> + <li>spinfield</li> + <li>throbber</li> + <li>splitter</li> + <li>splitwindow</li> + <li>statusbar</li> + <li>systemchildwindow</li> + <li>tabcontrol</li> + <li>tabdialog</li> + <li>tabpage</li> + <li>timebox</li> + <li>timefield</li> + <li>toolbox</li> + <li>tristatebox</li> + <li>warningbox</li> + <li>window</li> + <li>workwindow</li> + </ul> + </p> + */ + string WindowServiceName; + + //------------------------------------------------------------------------- + + /** specifies the parent of the component. + + <p>If <code>Parent == 0 && ParentIndex == -1</code>, + then the window is on the desktop.</p> + */ + com::sun::star::awt::XWindowPeer Parent; + + //------------------------------------------------------------------------- + + /** specifies the index of the parent window, if available. + + <p>If <code>Parent == 0</code> 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.</p> + */ + short ParentIndex; + + //------------------------------------------------------------------------- + + /** specifies the position and size of the window. + + <p>This member is ignored if the window attribute is + <const scope="com::sun::star::awt">WindowAttribute::FULLSIZE</const>.</p> + */ + com::sun::star::awt::Rectangle Bounds; + + //------------------------------------------------------------------------- + + /** specifies the window attributes. + + <p>Use one value out of the constant group + <type scope="com::sun::star::awt">WindowAttribute</type>.</p> + */ + long WindowAttributes; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/WindowEvent.idl b/offapi/com/sun/star/awt/WindowEvent.idl new file mode 100644 index 000000000000..3b2ff710d8b4 --- /dev/null +++ b/offapi/com/sun/star/awt/WindowEvent.idl @@ -0,0 +1,111 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_WindowEvent_idl__ +#define __com_sun_star_awt_WindowEvent_idl__ + +#ifndef __com_sun_star_lang_EventObject_idl__ +#include <com/sun/star/lang/EventObject.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a window event. + */ +published struct WindowEvent: com::sun::star::lang::EventObject +{ + //------------------------------------------------------------------------- + + /** specifies the outer x position of the window. + */ + long X; + + //------------------------------------------------------------------------- + + /** specifies the outer y position of the window. + */ + long Y; + + //------------------------------------------------------------------------- + + /** specifies the outer (total) width of the window. + */ + long Width; + + //------------------------------------------------------------------------- + + /** specifies the outer (total) height of the window. + */ + long Height; + + //------------------------------------------------------------------------- + + /** specifies the inset from the left. + + <p>The inset is the distance between the outer and the inner window, + that means the left inset is the width of the left border.</p> + */ + long LeftInset; + + //------------------------------------------------------------------------- + + /** specifies the inset from the top. + + <p>The inset is the distance between the outer and the inner window, + that means the top inset is the heigt of the top border.</p> + */ + long TopInset; + + //------------------------------------------------------------------------- + + /** specifies the inset from the right. + + <p>The inset is the distance between the outer and the inner window, + that means the right inset is the width of the right border.</p> + */ + long RightInset; + + //------------------------------------------------------------------------- + + /** specifies the inset from the bottom. + + <p>The inset is the distance between the outer and the inner window, + that means the bottom inset is the heigt of the bottom border.</p> + */ + long BottomInset; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XActionListener.idl b/offapi/com/sun/star/awt/XActionListener.idl new file mode 100644 index 000000000000..15dbc6110320 --- /dev/null +++ b/offapi/com/sun/star/awt/XActionListener.idl @@ -0,0 +1,61 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XActionListener_idl__ +#define __com_sun_star_awt_XActionListener_idl__ + +#ifndef __com_sun_star_lang_XEventListener_idl__ +#include <com/sun/star/lang/XEventListener.idl> +#endif + +#ifndef __com_sun_star_awt_ActionEvent_idl__ +#include <com/sun/star/awt/ActionEvent.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** makes it possible to receive action events. + */ +published interface XActionListener: com::sun::star::lang::XEventListener +{ + //------------------------------------------------------------------------- + + /** is invoked when an action is performed. + */ + [oneway] void actionPerformed( [in] com::sun::star::awt::ActionEvent rEvent ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XActivateListener.idl b/offapi/com/sun/star/awt/XActivateListener.idl new file mode 100644 index 000000000000..19a2a8f8ac71 --- /dev/null +++ b/offapi/com/sun/star/awt/XActivateListener.idl @@ -0,0 +1,78 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XActivateListener_idl__ +#define __com_sun_star_awt_XActivateListener_idl__ + +#ifndef __com_sun_star_lang_XEventListener_idl__ +#include <com/sun/star/lang/XEventListener.idl> +#endif + +#ifndef __com_sun_star_lang_EventObject_idl__ +#include <com/sun/star/lang/EventObject.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** makes it possible to receive activate events. + + @see XFocusListener + @see XTopWindowListener + */ +published interface XActivateListener: com::sun::star::lang::XEventListener +{ + //------------------------------------------------------------------------- + + /** is invoked when a window is activated. + + <p>A window is avtivated if a child or itself got the focus.</p> + + @see XFocusListener::focusGained + */ + [oneway] void windowActivated( [in] com::sun::star::lang::EventObject e ); + + //------------------------------------------------------------------------- + + /** is invoked when a window is de-activated. + + <p>A window is deavtivated if a child or itself lost the focus.</p> + + @see XFocusListener::focusLost + */ + [oneway] void windowDeactivated( [in] com::sun::star::lang::EventObject e ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XAdjustmentListener.idl b/offapi/com/sun/star/awt/XAdjustmentListener.idl new file mode 100644 index 000000000000..4e56f96170cf --- /dev/null +++ b/offapi/com/sun/star/awt/XAdjustmentListener.idl @@ -0,0 +1,61 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XAdjustmentListener_idl__ +#define __com_sun_star_awt_XAdjustmentListener_idl__ + +#ifndef __com_sun_star_lang_XEventListener_idl__ +#include <com/sun/star/lang/XEventListener.idl> +#endif + +#ifndef __com_sun_star_awt_AdjustmentEvent_idl__ +#include <com/sun/star/awt/AdjustmentEvent.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** makes it possible to receive adjustment events. + */ +published interface XAdjustmentListener: com::sun::star::lang::XEventListener +{ + //------------------------------------------------------------------------- + + /** is invoked when the adjustment has changed. + */ + [oneway] void adjustmentValueChanged( [in] com::sun::star::awt::AdjustmentEvent rEvent ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XBitmap.idl b/offapi/com/sun/star/awt/XBitmap.idl new file mode 100644 index 000000000000..e4a4cdfa8b6c --- /dev/null +++ b/offapi/com/sun/star/awt/XBitmap.idl @@ -0,0 +1,73 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XBitmap_idl__ +#define __com_sun_star_awt_XBitmap_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_Size_idl__ +#include <com/sun/star/awt/Size.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** provides a bitmap in the Microsoft DIB format. + */ +published interface XBitmap: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** returns the size of the bitmap in pixel. + */ + com::sun::star::awt::Size getSize(); + + //------------------------------------------------------------------------- + + /** returns the device independent bitmap. + */ + sequence<byte> getDIB(); + + //------------------------------------------------------------------------- + + /** returns the transparence mask of the device independent bitmap. + */ + sequence<byte> getMaskDIB(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XButton.idl b/offapi/com/sun/star/awt/XButton.idl new file mode 100644 index 000000000000..47b24d757811 --- /dev/null +++ b/offapi/com/sun/star/awt/XButton.idl @@ -0,0 +1,79 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XButton_idl__ +#define __com_sun_star_awt_XButton_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XActionListener_idl__ +#include <com/sun/star/awt/XActionListener.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** makes it possible to set the label of a button and to register for action events. + */ +published interface XButton: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** registers an event handler for button action events. + */ + [oneway] void addActionListener( [in] com::sun::star::awt::XActionListener l ); + + //------------------------------------------------------------------------- + + /** unregisters an event handler for button action events. + */ + [oneway] void removeActionListener( [in] com::sun::star::awt::XActionListener l ); + + //------------------------------------------------------------------------- + + /** sets the label of the button. + */ + [oneway] void setLabel( [in] string Label ); + + //------------------------------------------------------------------------- + + /** sets a command string for pushing the button. + */ + [oneway] void setActionCommand( [in] string Command ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XCallback.idl b/offapi/com/sun/star/awt/XCallback.idl new file mode 100644 index 000000000000..08c058cd51ed --- /dev/null +++ b/offapi/com/sun/star/awt/XCallback.idl @@ -0,0 +1,60 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_XCallback_idl__ +#define __com_sun_star_awt_XCallback_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** specifices an interface which can be used to call back + an implementation + */ +interface XCallback +{ + //------------------------------------------------------------------------- + + /** notifies the callback implementation + + @param aData + private data which was provided when the callback was requested. + */ + void notify( [in] any aData ); +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XCheckBox.idl b/offapi/com/sun/star/awt/XCheckBox.idl new file mode 100644 index 000000000000..0e1011d75294 --- /dev/null +++ b/offapi/com/sun/star/awt/XCheckBox.idl @@ -0,0 +1,92 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XCheckBox_idl__ +#define __com_sun_star_awt_XCheckBox_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XItemListener_idl__ +#include <com/sun/star/awt/XItemListener.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** gives access to the state of a check box and makes it possible + to register for events. + */ +published interface XCheckBox: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** registers a listener for item events. + */ + [oneway] void addItemListener( [in] com::sun::star::awt::XItemListener l ); + + //------------------------------------------------------------------------- + + /** unregisters a listener for item events. + */ + [oneway] void removeItemListener( [in] com::sun::star::awt::XItemListener l ); + + //------------------------------------------------------------------------- + + /** returns the state of the check box. + */ + short getState(); + + //------------------------------------------------------------------------- + + /** sets the state of the check box. + */ + [oneway] void setState( [in] short n ); + + //------------------------------------------------------------------------- + + /** sets the label of the check box. + */ + [oneway] void setLabel( [in] string Label ); + + //------------------------------------------------------------------------- + + /** enables or disables the tri state mode. + */ + [oneway] void enableTriState( [in] boolean b ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XComboBox.idl b/offapi/com/sun/star/awt/XComboBox.idl new file mode 100644 index 000000000000..b85b36a037d3 --- /dev/null +++ b/offapi/com/sun/star/awt/XComboBox.idl @@ -0,0 +1,132 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XComboBox_idl__ +#define __com_sun_star_awt_XComboBox_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XItemListener_idl__ +#include <com/sun/star/awt/XItemListener.idl> +#endif + +#ifndef __com_sun_star_awt_XActionListener_idl__ +#include <com/sun/star/awt/XActionListener.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** gives access to the items of a combo box and makes it possible to + register item and action event listeners. + */ +published interface XComboBox: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** registers a listener for item events. + */ + [oneway] void addItemListener( [in] com::sun::star::awt::XItemListener l ); + + //------------------------------------------------------------------------- + + /** unregisters a listener for item events. + */ + [oneway] void removeItemListener( [in] com::sun::star::awt::XItemListener l ); + + //------------------------------------------------------------------------- + + /** registers a listener for action events. + */ + [oneway] void addActionListener( [in] com::sun::star::awt::XActionListener l ); + + //------------------------------------------------------------------------- + + /** unregisters a listener for action events. + */ + [oneway] void removeActionListener( [in] com::sun::star::awt::XActionListener l ); + + //------------------------------------------------------------------------- + + /** adds an item at the specified position. + */ + [oneway] void addItem( [in] string aItem, [in] short nPos ); + + //------------------------------------------------------------------------- + + /** adds multiple items at the specified position. + */ + [oneway] void addItems( [in] sequence<string> aItems, [in] short nPos ); + + //------------------------------------------------------------------------- + + /** removes a number of items at the specified position. + */ + [oneway] void removeItems( [in] short nPos, [in] short nCount ); + + //------------------------------------------------------------------------- + + /** returns the number of items in the combo box. + */ + short getItemCount(); + + //------------------------------------------------------------------------- + + /** returns the item at the specified position. + */ + string getItem( [in] short nPos ); + + //------------------------------------------------------------------------- + + /** returns all items of the combo box. + */ + sequence<string> getItems(); + + //------------------------------------------------------------------------- + + /** returns the number of visible lines in the drop down mode. + */ + short getDropDownLineCount(); + + //------------------------------------------------------------------------- + + /** sets the number of visible lines for drop down mode. + */ + [oneway] void setDropDownLineCount( [in] short nLines ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XContainerWindowEventHandler.idl b/offapi/com/sun/star/awt/XContainerWindowEventHandler.idl new file mode 100644 index 000000000000..d1e2d725c02e --- /dev/null +++ b/offapi/com/sun/star/awt/XContainerWindowEventHandler.idl @@ -0,0 +1,107 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_XContainerWindowEventHandler_idl__ +#define __com_sun_star_awt_XContainerWindowEventHandler_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif +#ifndef __com_sun_star_awt_XWindow_idl__ +#include <com/sun/star/awt/XWindow.idl> +#endif +#ifndef __com_sun_star_lang_WrappedTargetException_idl__ +#include <com/sun/star/lang/WrappedTargetException.idl> +#endif + + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** Handles events fired by windows represented by a + <type scope="com::sun::star::awt">XWindow</type> interface. + */ +interface XContainerWindowEventHandler : ::com::sun::star::uno::XInterface { + + //------------------------------------------------------------------------- + + /** Handles an event generated by a window. + + The implementation must be aware that the EventObject argument contains types + which it is not prepared to handle. Similarly this applies for the MethodName + argument. In this case the method should simply return false. + + @param xWindow + the window instance that generated the event. If used in the scope of + <type scope="com::sun::star::awt">XContainerWindowProvider</type> this + is the same window instance that was returned by the createContainerWindow + method when passing the XContainerWindowEventHandler instance receiving the + event as handler parameter. + + @param EventObject + an object describing the event which occurred in the window or anything else that + provides additional information for the event. + If the event was caused by the window or any of the controls which it contains + then the any should contain an object derived from + <type scope="com::sun::star::lang">EventObject</type>. Typically this would be one + of the several com::sun::star::awt::*Event types. + + @param MethodName + the name of the function which is to be called. + + @returns + true if the event was handled, otherwise false. + + @throws com::sun::star::lang::WrappedTargetException + if the implementation of the method, which is determined by the argument MethodName, + throws an exception. This exception is then wrapped into a + <type scope="com::sun::star::lang">WrappedTargetException</type>. + + */ + boolean callHandlerMethod( + [in] com::sun::star::awt::XWindow xWindow, + [in] any EventObject, + [in] string MethodName) + raises(com::sun::star::lang::WrappedTargetException); + + + /** returns a sequence of supported method names + + @returns + all method names that will be accepted in calls to callHandlerMethod. + */ + sequence<string> getSupportedMethodNames(); +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XContainerWindowProvider.idl b/offapi/com/sun/star/awt/XContainerWindowProvider.idl new file mode 100644 index 000000000000..1cea42d99a80 --- /dev/null +++ b/offapi/com/sun/star/awt/XContainerWindowProvider.idl @@ -0,0 +1,130 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_XContainerWindowProvider_idl__ +#define __com_sun_star_awt_XContainerWindowProvider_idl__ + +#ifndef __com_sun_star_awt_XWindow_idl__ +#include <com/sun/star/awt/XWindow.idl> +#endif +#ifndef __com_sun_star_awt_XWindowPeer_idl__ +#include <com/sun/star/awt/XWindowPeer.idl> +#endif +#ifndef __com_sun_star_lang_IllegalArgumentException_idl__ +#include <com/sun/star/lang/IllegalArgumentException.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** provides container windows implementing the + <type scope="com::sun::star::awt">XWindow</type> interface. + */ +interface XContainerWindowProvider : ::com::sun::star::uno::XInterface { + + //------------------------------------------------------------------------- + + /** creates a window for the given URL + + @param URL + is the URL. + + @param WindowType + Type of Window to be created, + for future use, not supported yet + + @param xParent + a valid XWindowPeer reference which is used as a parent. + This parameter must not be null. + + @param xHandler + is the interface that will be called to handle the Events that + are generated by the window (and all controls placed on it) and + bound to the handler using a vnd.sun.star.UNO URL specifying a + handler method to be called. Usually this will be done directly + by the user. + + xHandler can handle events in two different ways: + + 1. By supporting the <type scope="com::sun::star::awt">XContainerWindowEventHandler</type> + interface. This is a generic interface to accept event notifications. + + 2. By providing interfaces that directly implement the handler + methods to be called. The XContainerWindowProvider implementation then + will try to access these events using the + <type scope="com::sun::star::beans">Introspection</type>Introspection + service. To make this possible the handler implementation also has to + support <type scope="com::sun::star::lang">XTypeProvider</type>. + + If XContainerWindowEventHandler is supported XContainerWindowEventHandler.callHandlerMethod() + is always called first to handle the event. Only if the event cannot be + handled by XContainerWindowEventHandler (callHandlerMethod() then has to return + false) or if XContainerWindowEventHandler is not supported at all the Introspection + based access will be used. + + The Introspection based access tries to call a method named according to the + HandlerMethodName specified by a vnd.sun.star.UNO:<HandlerMethodName> URL. + First a method + + void HandlerMethodName( [in] com::sun::star::awt::XWindow xWindow, [in] any aEvent ) + + will be searched. The signature is similar to XContainerWindowEventHandler. + callHandlerMethod except for MethodName itself that isn't needed + here. For more information about these parameters, see + <type scope="com::sun::star::awt">XContainerWindowEventHandler</type>. + + If this method is found, it will be called, otherwise a method + + void HandlerMethodName( void ) + + will be searched and called. + + @returns + a window implementing the <type scope="com::sun::star::awt">XWindow</type> interface. + + @throws com::sun::star::lang::IllegalArgumentException + if no window for the given URL is found or if the URL is invalid + or xParent is null. + + @see <type scope="com::sun::star::awt">XContainerWindowEventHandler</type> + + */ + com::sun::star::awt::XWindow createContainerWindow + ( [in] string URL, [in] string WindowType, + [in] com::sun::star::awt::XWindowPeer xParent, + [in] com::sun::star::uno::XInterface xHandler ) + raises ( com::sun::star::lang::IllegalArgumentException ); +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XControl.idl b/offapi/com/sun/star/awt/XControl.idl new file mode 100644 index 000000000000..ebc58f9967f3 --- /dev/null +++ b/offapi/com/sun/star/awt/XControl.idl @@ -0,0 +1,146 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XControl_idl__ +#define __com_sun_star_awt_XControl_idl__ + +#ifndef __com_sun_star_lang_XComponent_idl__ +#include <com/sun/star/lang/XComponent.idl> +#endif + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XToolkit_idl__ +#include <com/sun/star/awt/XToolkit.idl> +#endif + +#ifndef __com_sun_star_awt_XWindowPeer_idl__ +#include <com/sun/star/awt/XWindowPeer.idl> +#endif + +#ifndef __com_sun_star_awt_XControlModel_idl__ +#include <com/sun/star/awt/XControlModel.idl> +#endif + +#ifndef __com_sun_star_awt_XView_idl__ +#include <com/sun/star/awt/XView.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** identifies a control. + + <p>Implementations of this interface are abstract windows. + The main reason to instantiate this implementation is to show the window + on the screen. Before the window appears on the screen, the + <member>XControl::createPeer</member> method must be called.</p> + + <p>If the implementation of the control does not distinguish + between model, view and controller, it must allow to set + a new XGraphics in the view, so that the control can be printed.</p> + */ +published interface XControl: com::sun::star::lang::XComponent +{ + //------------------------------------------------------------------------- + + /** sets the context of the control. + */ + [oneway] void setContext( [in] com::sun::star::uno::XInterface Context ); + + //------------------------------------------------------------------------- + + /** gets the context of the control. + */ + com::sun::star::uno::XInterface getContext(); + + //------------------------------------------------------------------------- + + /** creates a "child" window on the screen. + + <p>If the parent is NULL, then the desktop window of the toolkit + is the parent.</p> + */ + [oneway] void createPeer( [in] com::sun::star::awt::XToolkit Toolkit, + [in] com::sun::star::awt::XWindowPeer Parent ); + + //------------------------------------------------------------------------- + + /** returns the peer which was previously created or set. + */ + com::sun::star::awt::XWindowPeer getPeer(); + + //------------------------------------------------------------------------- + + /** sets a model for the control. + */ + boolean setModel( [in] com::sun::star::awt::XControlModel Model ); + + //------------------------------------------------------------------------- + + /** returns the model for this control. + */ + com::sun::star::awt::XControlModel getModel(); + + //------------------------------------------------------------------------- + + /** returns the view of this control. + */ + com::sun::star::awt::XView getView(); + + //------------------------------------------------------------------------- + + /** sets the design mode for use in a design editor. + + <p>Normally the control will be painted directly without a peer.</p> + */ + [oneway] void setDesignMode( [in] boolean bOn ); + + //------------------------------------------------------------------------- + + /** returns <true/> if the control is in design mode, <false/> otherwise. + */ + boolean isDesignMode(); + + //------------------------------------------------------------------------- + + /** returns <true/> if the control is transparent, <false/> otherwise. + */ + boolean isTransparent(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XControlContainer.idl b/offapi/com/sun/star/awt/XControlContainer.idl new file mode 100644 index 000000000000..938d4ca364a0 --- /dev/null +++ b/offapi/com/sun/star/awt/XControlContainer.idl @@ -0,0 +1,87 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XControlContainer_idl__ +#define __com_sun_star_awt_XControlContainer_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XControl_idl__ +#include <com/sun/star/awt/XControl.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** Provides access to the controls within an + <type>UnoControlContainer</type>. + */ +published interface XControlContainer: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** sets the status text in the status bar of the container. + */ + [oneway] void setStatusText( [in] string StatusText ); + + //------------------------------------------------------------------------- + + /** returns all controls. + */ + sequence<com::sun::star::awt::XControl> getControls(); + + //------------------------------------------------------------------------- + + /** returns the control with the specified name. + */ + com::sun::star::awt::XControl getControl( [in] string aName ); + + //------------------------------------------------------------------------- + + /** adds the given control with the specified name to the container. + */ + [oneway] void addControl( [in] string Name, + [in] com::sun::star::awt::XControl Control ); + + //------------------------------------------------------------------------- + + /** removes the given control from the container. + */ + [oneway] void removeControl( [in] com::sun::star::awt::XControl Control ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XControlModel.idl b/offapi/com/sun/star/awt/XControlModel.idl new file mode 100644 index 000000000000..a8e7c84b93d1 --- /dev/null +++ b/offapi/com/sun/star/awt/XControlModel.idl @@ -0,0 +1,51 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XControlModel_idl__ +#define __com_sun_star_awt_XControlModel_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** identifies a control model. + */ +published interface XControlModel: com::sun::star::uno::XInterface +{ +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XCurrencyField.idl b/offapi/com/sun/star/awt/XCurrencyField.idl new file mode 100644 index 000000000000..d1345bfc679b --- /dev/null +++ b/offapi/com/sun/star/awt/XCurrencyField.idl @@ -0,0 +1,149 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XCurrencyField_idl__ +#define __com_sun_star_awt_XCurrencyField_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** gives access to the value and formatting of a currency field. + */ +published interface XCurrencyField: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** sets the value which is displayed in the currency field. + */ + [oneway] void setValue( [in] double Value ); + + //------------------------------------------------------------------------- + + /** returns the value which is currently displayed in the currency field. + */ + double getValue(); + + //------------------------------------------------------------------------- + + /** sets the minimum value that can be entered by the user. + */ + [oneway] void setMin( [in] double Value ); + + //------------------------------------------------------------------------- + + /** returns the currently set minimum value that can be entered by the + user. + */ + double getMin(); + + //------------------------------------------------------------------------- + + /** sets the maximum value that can be entered by the user. + */ + [oneway] void setMax( [in] double Value ); + + //------------------------------------------------------------------------- + + /** returns the currently set maximum value that can be entered by the + user. + */ + double getMax(); + + //------------------------------------------------------------------------- + + /** sets the first value to be set on POS1 key. + */ + [oneway] void setFirst( [in] double Value ); + + //------------------------------------------------------------------------- + + /** returns the currently set first value which is set on POS1 key. + */ + double getFirst(); + + //------------------------------------------------------------------------- + + /** sets the last value to be set on END key. + */ + [oneway] void setLast( [in] double Value ); + + //------------------------------------------------------------------------- + + /** returns the currently set last value which is set on END key. + */ + double getLast(); + + //------------------------------------------------------------------------- + + /** sets the increment value for the spin button. + */ + [oneway] void setSpinSize( [in] double Value ); + + //------------------------------------------------------------------------- + + /** returns the currently set increment value for the spin button. + */ + double getSpinSize(); + + //------------------------------------------------------------------------- + + /** sets the number of decimals. + */ + [oneway] void setDecimalDigits( [in] short nDigits ); + + //------------------------------------------------------------------------- + + /** returns the currently set number of decimals. + */ + short getDecimalDigits(); + + //------------------------------------------------------------------------- + + /** determines if the format is checked during user input. + */ + [oneway] void setStrictFormat( [in] boolean bStrict ); + + //------------------------------------------------------------------------- + + /** returns whether the format is currently checked during user input. + */ + boolean isStrictFormat(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XDataTransferProviderAccess.idl b/offapi/com/sun/star/awt/XDataTransferProviderAccess.idl new file mode 100644 index 000000000000..8ce12873836a --- /dev/null +++ b/offapi/com/sun/star/awt/XDataTransferProviderAccess.idl @@ -0,0 +1,111 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_XDataTransferProviderAccess_idl__ +#define __com_sun_star_awt_XDataTransferProviderAccess_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module datatransfer { +module dnd { + published interface XDragGestureRecognizer; + published interface XDragSource; + published interface XDropTarget; +}; +module clipboard { + published interface XClipboard; +}; +}; }; }; }; + +//============================================================================= + +module com { module sun { module star { module awt { + + published interface XWindow; + +//============================================================================= + +/** This interface extends the XToolkit interface with clipboard and + drag-and-drop support. +*/ +published interface XDataTransferProviderAccess: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** returns the drag gesture recognizer of the specified window. + + @returns the drag gesture recognizer. + + @param window + a window created by the same toolkit instance. + */ + com::sun::star::datatransfer::dnd::XDragGestureRecognizer getDragGestureRecognizer( [in] XWindow window ); + + //------------------------------------------------------------------------- + + /** returns the drag source of the specified window. + + @returns the drag source. + + @param window + a window created by the same toolkit instance. + */ + com::sun::star::datatransfer::dnd::XDragSource getDragSource( [in] XWindow window ); + + //------------------------------------------------------------------------- + + /** returns the drop target of the specified window. + + @returns the drop target. + + @param window + a window created by the same toolkit instance. + */ + com::sun::star::datatransfer::dnd::XDropTarget getDropTarget( [in] XWindow window ); + + //------------------------------------------------------------------------- + + /** returns the specified clipboard. + + @returns the specified clipboard (if available). + + @param clipboardName + the name of the clipboard to return. + If an empty string is passed in, the default clipboard is returned. + */ + com::sun::star::datatransfer::clipboard::XClipboard getClipboard( [in] string clipboardName ); +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XDateField.idl b/offapi/com/sun/star/awt/XDateField.idl new file mode 100644 index 000000000000..f7c0e3cc8f19 --- /dev/null +++ b/offapi/com/sun/star/awt/XDateField.idl @@ -0,0 +1,152 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XDateField_idl__ +#define __com_sun_star_awt_XDateField_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** gives access to the value and settings of a date field. + */ +published interface XDateField: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** sets the date value which is displayed in the date field. + + <p>The date value must be specified in the format + YYYYMMDD.</p> + */ + [oneway] void setDate( [in] long Date ); + + //------------------------------------------------------------------------- + + /** returns the date value which is currently displayed in the date field. + */ + long getDate(); + + //------------------------------------------------------------------------- + + /** sets the minimum date value that can be entered by the user. + */ + [oneway] void setMin( [in] long Date ); + + //------------------------------------------------------------------------- + + /** returns the currently set minimum date value that can be entered by + the user. + */ + long getMin(); + + //------------------------------------------------------------------------- + + /** sets the maximum date value that can be entered by the user. + */ + [oneway] void setMax( [in] long Date ); + + //------------------------------------------------------------------------- + + /** returns the currently set maximum date value that can be entered by + the user. + */ + long getMax(); + + //------------------------------------------------------------------------- + + /** sets the first value to be set on POS1 key. + */ + [oneway] void setFirst( [in] long Date ); + + //------------------------------------------------------------------------- + + /** returns the currently set first value which is set on POS1 key. + */ + long getFirst(); + + //------------------------------------------------------------------------- + + /** sets the last value to be set on END key. + */ + [oneway] void setLast( [in] long Date ); + + //------------------------------------------------------------------------- + + /** returns the currently set last value which is set on END key. + */ + long getLast(); + + //------------------------------------------------------------------------- + + /** determines if the long date format is to be used. + */ + [oneway] void setLongFormat( [in] boolean bLong ); + + //------------------------------------------------------------------------- + + /** determines if the long date format is currently used. + */ + boolean isLongFormat(); + + //------------------------------------------------------------------------- + + /** sets an empty value for the date. + */ + void setEmpty(); + + //------------------------------------------------------------------------- + + /** returns whether currently an empty value is set for the date. + */ + boolean isEmpty(); + + //------------------------------------------------------------------------- + + /** determines if the format is checked during user input. + */ + [oneway] void setStrictFormat( [in] boolean bStrict ); + + //------------------------------------------------------------------------- + + /** returns whether the format is currently checked during user input. + */ + boolean isStrictFormat(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XDevice.idl b/offapi/com/sun/star/awt/XDevice.idl new file mode 100644 index 000000000000..9d05c05e5e2e --- /dev/null +++ b/offapi/com/sun/star/awt/XDevice.idl @@ -0,0 +1,127 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XDevice_idl__ +#define __com_sun_star_awt_XDevice_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_DeviceInfo_idl__ +#include <com/sun/star/awt/DeviceInfo.idl> +#endif + +#ifndef __com_sun_star_awt_FontDescriptor_idl__ +#include <com/sun/star/awt/FontDescriptor.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { + + published interface XGraphics; + published interface XFont; + published interface XBitmap; + published interface XDisplayBitmap; + +//============================================================================= + +/** provides information about a graphical output device and + offers a factory for the <em>graphics</em> which provides write + operations on the device. + */ +published interface XDevice: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** creates a new graphics whose output operation is directed to this + device. + */ + XGraphics createGraphics(); + + //------------------------------------------------------------------------- + + /** creates a new device which is compatible with this one. + + <p>If the device does not support the GETBITS device capability, + this method returns <NULL/>.</p> + */ + XDevice createDevice( [in] long nWidth, + [in] long nHeight ); + + //------------------------------------------------------------------------- + + /** returns information about the device. + */ + com::sun::star::awt::DeviceInfo getInfo(); + + //------------------------------------------------------------------------- + + /** returns the list of available font descriptors. + */ + sequence<FontDescriptor> getFontDescriptors(); + + //------------------------------------------------------------------------- + + /** returns information about a font offered by this device. + + @returns the font of this device. + + @param aDescriptor + specifies the description of a font. + The unit of measure is pixel for this device. + */ + com::sun::star::awt::XFont getFont( [in] FontDescriptor aDescriptor ); + + //------------------------------------------------------------------------- + + /** creates a bitmap with the current device depth. + + <p>If the specified area does not lie entirely in the device, the bits + outside are not specified.</p> + */ + XBitmap createBitmap( [in] long nX, + [in] long nY, + [in] long nWidth, + [in] long nHeight ); + + //------------------------------------------------------------------------- + + /** creates a device compatible bitmap. + + <p>The data of the bitmap is in process memory instead of in the device, + so that the output operation is fast.</p> + */ + XDisplayBitmap createDisplayBitmap( [in] XBitmap Bitmap ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XDialog.idl b/offapi/com/sun/star/awt/XDialog.idl new file mode 100644 index 000000000000..831c80597070 --- /dev/null +++ b/offapi/com/sun/star/awt/XDialog.idl @@ -0,0 +1,77 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XDialog_idl__ +#define __com_sun_star_awt_XDialog_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** makes it possible to show and hide a dialog and gives access to + the title of the dialog. + */ +published interface XDialog: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** sets the title of the dialog. + */ + [oneway] void setTitle( [in] string Title ); + + //------------------------------------------------------------------------- + + /** gets the title of the dialog. + */ + string getTitle(); + + //------------------------------------------------------------------------- + + /** shows the dialog. + */ + short execute(); + + //------------------------------------------------------------------------- + + /** hides the dialog and then causes <member>XDialog::execute</member> + to return. + */ + void endExecute(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XDialog2.idl b/offapi/com/sun/star/awt/XDialog2.idl new file mode 100644 index 000000000000..cd42d792cd0a --- /dev/null +++ b/offapi/com/sun/star/awt/XDialog2.idl @@ -0,0 +1,35 @@ +#ifndef __com_sun_star_awt_XDialog2_idl__ +#define __com_sun_star_awt_XDialog2_idl__ + +#ifndef __com_sun_star_awt_XDialog_idl__ +#include <com/sun/star/awt/XDialog.idl> +#endif + + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** Makes it possible to end a dialog and set a help id. + + @since OOo 3.0 + */ +interface XDialog2: com::sun::star::awt::XDialog +{ + /** hides the dialog and then causes <member>XDialog::execute</member> + to return with the given result value. + */ + void endDialog ( [in] long Result ); + /** sets the help id so that the standard help button action will + show the appropriate help page. + */ + void setHelpId ( [in] long Id ); +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XDialogEventHandler.idl b/offapi/com/sun/star/awt/XDialogEventHandler.idl new file mode 100644 index 000000000000..206d71bb5dee --- /dev/null +++ b/offapi/com/sun/star/awt/XDialogEventHandler.idl @@ -0,0 +1,106 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_XDialogEventHandler_idl__ +#define __com_sun_star_awt_XDialogEventHandler_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif +#ifndef __com_sun_star_awt_XDialog_idl__ +#include <com/sun/star/awt/XDialog.idl> +#endif +#ifndef __com_sun_star_lang_WrappedTargetException_idl__ +#include <com/sun/star/lang/WrappedTargetException.idl> +#endif + + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** Handles events fired by dialogs represented by a + <type scope="com::sun::star::awt">XDialog</type> interface. + */ +interface XDialogEventHandler : ::com::sun::star::uno::XInterface { + + //------------------------------------------------------------------------- + + /** Handles an event generated by a dialog. + + The implementation must be aware that the EventObject argument contains types + which it is not prepared to handle. Similarly this applies for the MethodName + argument. In this case the method should simply return false. + + @param xDialog + the dialog instance that generated the event. This is the same dialog instance + that was returned by the <type scope="com::sun::star::awt">XDialogProvider2</type> + createDialogWithHandler method when passing the XDialogEventHandler instance + receiving the event as handler parameter. + + @param EventObject + an object describing the event which occurred in the dialog or anything else that + provides additional information for the event. + If the event was caused by the dialog or any of the controls which it contains + then the any should contain an object derived from + <type scope="com::sun::star::lang">EventObject</type>. Typically this would be one + of the several com::sun::star::awt::*Event types. + + @param MethodName + the name of the function which is to be called. + + @returns + true if the event was handled, otherwise false. + + @throws com::sun::star::lang::WrappedTargetException + if the implementation of the method, which is determined by the argument MethodName, + throws an exception. This exception is then wrapped into a + <type scope="com::sun::star::lang">WrappedTargetException</type>. + + */ + boolean callHandlerMethod( + [in] com::sun::star::awt::XDialog xDialog, + [in] any EventObject, + [in] string MethodName) + raises(com::sun::star::lang::WrappedTargetException); + + + /** returns a sequence of supported method names + + @returns + all method names that will be accepted in calls to callHandlerMethod. + */ + sequence<string> getSupportedMethodNames(); +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XDialogProvider.idl b/offapi/com/sun/star/awt/XDialogProvider.idl new file mode 100644 index 000000000000..2ab873df16b6 --- /dev/null +++ b/offapi/com/sun/star/awt/XDialogProvider.idl @@ -0,0 +1,75 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_XDialogProvider_idl__ +#define __com_sun_star_awt_XDialogProvider_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif +#ifndef __com_sun_star_awt_XDialog_idl__ +#include <com/sun/star/awt/XDialog.idl> +#endif +#ifndef __com_sun_star_lang_IllegalArgumentException_idl__ +#include <com/sun/star/lang/IllegalArgumentException.idl> +#endif + + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** provides dialogs implementing the + <type scope="com::sun::star::awt">XDialog</type> interface. + */ +interface XDialogProvider : ::com::sun::star::uno::XInterface { + + //------------------------------------------------------------------------- + + /** creates a dialog for the given URL. + + @param URL + is the URL. + + @returns + a dialog implementing the <type scope="com::sun::star::awt">XDialog</type> interface. + + @throws com::sun::star::lang::IllegalArgumentException + if no dialog for the given URL is found or if the URL is invalid. + */ + com::sun::star::awt::XDialog createDialog( [in] string URL ) + raises ( com::sun::star::lang::IllegalArgumentException ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XDialogProvider2.idl b/offapi/com/sun/star/awt/XDialogProvider2.idl new file mode 100644 index 000000000000..c08508a58bfe --- /dev/null +++ b/offapi/com/sun/star/awt/XDialogProvider2.idl @@ -0,0 +1,138 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_XDialogProvider2_idl__ +#define __com_sun_star_awt_XDialogProvider2_idl__ + +#ifndef __com_sun_star_awt_XDialogProvider_idl__ +#include <com/sun/star/awt/XDialogProvider.idl> +#endif +#ifndef __com_sun_star_beans_NamedValue_idl__ +#include <com/sun/star/beans/NamedValue.idl> +#endif + + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** provides dialogs implementing the + <type scope="com::sun::star::awt">XDialog</type> interface. + */ +interface XDialogProvider2 : ::com::sun::star::awt::XDialogProvider { + + //------------------------------------------------------------------------- + + /** creates a dialog for the given URL accepting an Interface used + to handle dialog events. + + @param URL + is the URL. + + @param xHandler + is the interface that will be called to handle the Events that + are generated by the dialog (and all controls placed on it) and + bound to the handler using a vnd.sun.star.UNO URL specifying a + handler method to be called. Usually this will be done directly + by the user. + + xHandler can handle events in two different ways: + + 1. By supporting the <type scope="com::sun::star::awt">XDialogEventHandler</type> interface. + This is a generic interface to accept event notifications. + + 2. By providing interfaces that directly implement the handler + methods to be called. The XDialogProvider2 implementation then + will try to access these events using the + <type scope="com::sun::star::beans">Introspection</type>Introspection + service. To make this possible the handler implementation also has to + support <type scope="com::sun::star::lang">XTypeProvider</type>. + + If XDialogEventHandler is supported XDialogEventHandler.callHandlerMethod() + is always called first to handle the event. Only if the event cannot be + handled by XDialogEventHandler (callHandlerMethod() then has to return + false) or if XDialogEventHandler is not supported at all the Introspection + based access will be used. + + The Introspection based access tries to call a method named according to the + HandlerMethodName specified by a vnd.sun.star.UNO:<HandlerMethodName> URL. + First a method + + void HandlerMethodName( [in] com::sun::star::awt::XDialog xDialog, [in] any aEvent ) + + will be searched. The signature is similar to XDialogEventHandler. + callHandlerMethod except for MethodName itself that isn't needed + here. For more information about these parameters, see + <type scope="com::sun::star::awt">XDialogEventHandler</type>. + + If this method is found, it will be called, otherwise a method + + void HandlerMethodName( void ) + + will be searched and called. + + @returns + a dialog implementing the <type scope="com::sun::star::awt">XDialog</type> interface. + + @throws com::sun::star::lang::IllegalArgumentException + if no dialog for the given URL is found or if the URL is invalid + or xHandler is null. + + @see <type scope="com::sun::star::awt">XDialogEventHandler</type> + + */ + com::sun::star::awt::XDialog createDialogWithHandler + ( [in] string URL, [in] com::sun::star::uno::XInterface xHandler ) + raises ( com::sun::star::lang::IllegalArgumentException ); + + /** creates a dialog for the given URL, accepting additional creation parameters + + <p>The arguments accepted so far are + <ul><li><em>ParentWindow</em> - must be a component supporting the <type>XWindowPeer</type> interface, + or a component supporting the <type>XControl</type> interfac, so an <code>XWindowPeer</code> can be + obtained from it. The given window will be used as parent window for the to-be-created dialog.</li> + <li><em>EventHandler</em> - specifies a component handling events in the dialog. See + <member>createDialogWithHandler</member> for a detailed specification of dialog event handling.</li> + </ul> + </p> + */ + + XDialog createDialogWithArguments( + [in] string URL, + [in] sequence< ::com::sun::star::beans::NamedValue > Arguments + ) + raises ( com::sun::star::lang::IllegalArgumentException + ); +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XDisplayBitmap.idl b/offapi/com/sun/star/awt/XDisplayBitmap.idl new file mode 100644 index 000000000000..b7b8d0fc3757 --- /dev/null +++ b/offapi/com/sun/star/awt/XDisplayBitmap.idl @@ -0,0 +1,54 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XDisplayBitmap_idl__ +#define __com_sun_star_awt_XDisplayBitmap_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies an object as a bitmap for which data is formatted for + a specific output device. + + <p>Drawing of this bitmap is only valid on a compatible device.</p> + */ +published interface XDisplayBitmap: com::sun::star::uno::XInterface +{ +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XDisplayConnection.idl b/offapi/com/sun/star/awt/XDisplayConnection.idl new file mode 100644 index 000000000000..6e038bfe2b3c --- /dev/null +++ b/offapi/com/sun/star/awt/XDisplayConnection.idl @@ -0,0 +1,109 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_XDisplayConnection_idl__ +#define __com_sun_star_awt_XDisplayConnection_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { + + published interface XEventHandler; + +//============================================================================= + +/** This interface should be implemented by toolkits that want to give access + to their internal message handling loop. +*/ +published interface XDisplayConnection: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** registers an event handler. + + @param window + the platform specific window id. If empty, the handler should be + registered for all windows. + + @param eventHandler + the handler to register. + + @param eventMask + the event mask specifies the events the handler is interested in. + */ + [oneway] void addEventHandler( [in] any window, [in] XEventHandler eventHandler, [in] long eventMask ); + + //------------------------------------------------------------------------- + + /** removes a eventHandler from the handler list. + + @param window + the platform specific window id the handler should be deregistered for. + If empty, the handler should be deregistered completly. + + @param eventHandler + the handler to remove. + */ + [oneway] void removeEventHandler( [in] any window, [in] XEventHandler eventHandler ); + + //------------------------------------------------------------------------- + + /** register an error handler for toolkit specific errors. + + @param errorHandler + the handler to register. + */ + [oneway] void addErrorHandler( [in] XEventHandler errorHandler ); + + //------------------------------------------------------------------------- + + /** remover an error handler from the handler list. + + @param errorHandler + the handler to remove. + */ + [oneway] void removeErrorHandler( [in] XEventHandler errorhandler ); + + //------------------------------------------------------------------------- + + /** returns a identifier. + + @returns a unique platform dependend identifier for a display connection. + */ + any getIdentifier(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XDockableWindow.idl b/offapi/com/sun/star/awt/XDockableWindow.idl new file mode 100644 index 000000000000..f50e8b558eb9 --- /dev/null +++ b/offapi/com/sun/star/awt/XDockableWindow.idl @@ -0,0 +1,146 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XDockableWindow_idl__ +#define __com_sun_star_awt_XDockableWindow_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XDockableWindowListener_idl__ +#include <com/sun/star/awt/XDockableWindowListener.idl> +#endif + +#ifndef __com_sun_star_awt_Rectangle_idl__ +#include <com/sun/star/awt/Rectangle.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the docking interface for a window component. + + <p>A window can either be docked where it resides as a child window in + an application frame window or it can be floating where it will + reside in its own decorated top level window. + </p> + */ +interface XDockableWindow : com::sun::star::uno::XInterface +{ + + /** adds a docking listener to the object. + only a single listener may be registered at any time. + */ + void addDockableWindowListener( [in] com::sun::star::awt::XDockableWindowListener xListener ); + + //------------------------------------------------------------------------- + + /** removes the specified docking listener from the object. + */ + void removeDockableWindowListener( [in] com::sun::star::awt::XDockableWindowListener xListener ); + + //------------------------------------------------------------------------- + + /** enable or disable docking, docking is disabled by default + + @param bEnable + <TRUE/> specifies that docking is enabled + <FALSE/> specifies that docking is disabled and no + <type scope="com::sun::star::awt">XDockableWindowListener</type> will be called + */ + void enableDocking( [in] boolean bEnable ); + + //------------------------------------------------------------------------- + + /** queries the current window state + @returns + <TRUE/> if the window is floating + <FALSE/> if the window is docked + */ + boolean isFloating(); + + //------------------------------------------------------------------------- + + /** toggle between floating and docked state + @param bFloating + specifies the new floating mode: + <TRUE/> means floating, <FALSE/> means docked + */ + void setFloatingMode( [in] boolean bFloating ); + + //------------------------------------------------------------------------- + + /** prevents the window from being undocked + this has no effect if the window is floating + */ + void lock(); + + //------------------------------------------------------------------------- + + /** enables undocking + this has no effect if the window is floating + */ + void unlock(); + + //------------------------------------------------------------------------- + + /** queries the current locking state + @returns + <TRUE/> if the window is locked + <FALSE/> if the window is not locked + */ + boolean isLocked(); + + //------------------------------------------------------------------------- + + /** shows the window in a menu like style, i.e. without decoration + a special indicator will allow for tearing off the window + see <type scope="com::sun::star::awt">XDockableWindowListener</type> for + the corresponding events + @param WindowRect + specifies the position and size of the popup window in frame coordinates + */ + void startPopupMode( [in] com::sun::star::awt::Rectangle WindowRect ); + + //------------------------------------------------------------------------- + + /** queries the current popup mode + @returns + <TRUE/> if the window is in popup mode + <FALSE/> if the window is not in popup mode + */ + boolean isInPopupMode(); +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XDockableWindowListener.idl b/offapi/com/sun/star/awt/XDockableWindowListener.idl new file mode 100644 index 000000000000..3a328993f170 --- /dev/null +++ b/offapi/com/sun/star/awt/XDockableWindowListener.idl @@ -0,0 +1,121 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XDockableWindowListener_idl__ +#define __com_sun_star_awt_XDockableWindowListener_idl__ + +#ifndef __com_sun_star_lang_XEventListener_idl__ +#include <com/sun/star/lang/XEventListener.idl> +#endif +#ifndef __com_sun_star_awt_DockingData_idl__ +#include <com/sun/star/awt/DockingData.idl> +#endif +#ifndef __com_sun_star_awt_EndDockingEvent_idl__ +#include <com/sun/star/awt/EndDockingEvent.idl> +#endif +#ifndef __com_sun_star_awt_DockingEvent_idl__ +#include <com/sun/star/awt/DockingEvent.idl> +#endif +#ifndef __com_sun_star_awt_EndPopupModeEvent_idl__ +#include <com/sun/star/awt/EndPopupModeEvent.idl> +#endif +#ifndef __com_sun_star_lang_EventObject_idl__ +#include <com/sun/star/lang/EventObject.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** makes it possible to receive docking events. + */ +interface XDockableWindowListener: com::sun::star::lang::XEventListener +{ + //------------------------------------------------------------------------- + + /** is invoked when the docking procedure starts. + */ + void startDocking( [in] com::sun::star::awt::DockingEvent e ); + + //------------------------------------------------------------------------- + + /** is invoked during the docking procedure when the window has been moved. + + on return the DockingData must contain either the old tracking rectangle + or a changed rectangle if required, additionally it must indicate if + the window should be docked or floating + + Note: the tracking rectangle indicates to the user where the window would + be placed if he releases the mouse. + + */ + DockingData docking( [in] com::sun::star::awt::DockingEvent e ); + + //------------------------------------------------------------------------- + + /** is invoked when the docking procedure ends. + aWindowRect contains the new position and size of the window + */ + void endDocking( [in] com::sun::star::awt::EndDockingEvent e ); + + //------------------------------------------------------------------------- + + /** is invoked when the floating mode is about to be changed between + floating and docked or vice versa + + if returned FALSE the floating mode will not be changed + */ + boolean prepareToggleFloatingMode( [in] com::sun::star::lang::EventObject e ); + + //------------------------------------------------------------------------- + + /** is invoked when the floating mode is changed between + floating and docked or vice versa + */ + void toggleFloatingMode( [in] com::sun::star::lang::EventObject e ); + + //------------------------------------------------------------------------- + + /** is invoked when the window was actively closed + */ + void closed( [in] com::sun::star::lang::EventObject e ); + + //------------------------------------------------------------------------- + + /** is invoked when the window currently is in popupmode and wants to be undocked + or closed + */ + void endPopupMode( [in] com::sun::star::awt::EndPopupModeEvent e ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XEnhancedMouseClickHandler.idl b/offapi/com/sun/star/awt/XEnhancedMouseClickHandler.idl new file mode 100644 index 000000000000..547bab7c6efc --- /dev/null +++ b/offapi/com/sun/star/awt/XEnhancedMouseClickHandler.idl @@ -0,0 +1,70 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XEnhancedMouseClickHandler_idl__ +#define __com_sun_star_awt_XEnhancedMouseClickHandler_idl__ + +#ifndef __com_sun_star_lang_XEventListener_idl__ +#include <com/sun/star/lang/XEventListener.idl> +#endif + +#ifndef __com_sun_star_awt_EnhancedMouseEvent_idl__ +#include <com/sun/star/awt/EnhancedMouseEvent.idl> +#endif + + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** makes it possible to receive enhanced events from the mouse. + + @since OOo 2.0.0 + + */ +published interface XEnhancedMouseClickHandler: ::com::sun::star::lang::XEventListener +{ + //------------------------------------------------------------------------- + + /** is invoked when a mouse button has been pressed on a window. + */ + boolean mousePressed( [in] com::sun::star::awt::EnhancedMouseEvent e ); + + //------------------------------------------------------------------------- + + /** is invoked when a mouse button has been released on a window. + */ + boolean mouseReleased( [in] com::sun::star::awt::EnhancedMouseEvent e ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XEventHandler.idl b/offapi/com/sun/star/awt/XEventHandler.idl new file mode 100644 index 000000000000..223973b8f59c --- /dev/null +++ b/offapi/com/sun/star/awt/XEventHandler.idl @@ -0,0 +1,66 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_XEventHandler_idl__ +#define __com_sun_star_awt_XEventHandler_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** This interface can be implemented by clients that need access to the + toolkits window message loop. +*/ +published interface XEventHandler: com::sun::star::uno::XInterface +{ + + //------------------------------------------------------------------------- + + /** requests the implementor of this interface to handle a platform + dependend event. + + @returns <TRUE/> if the event was handled properly and no further + handling should take place, <FALSE/> otherwise. + + @param event + the platform dependend event. + */ + boolean handleEvent( [in] any event ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XExtendedToolkit.idl b/offapi/com/sun/star/awt/XExtendedToolkit.idl new file mode 100755 index 000000000000..0cb4cff2c800 --- /dev/null +++ b/offapi/com/sun/star/awt/XExtendedToolkit.idl @@ -0,0 +1,230 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_XExtendedToolkit_idl__ +#define __com_sun_star_awt_XExtendedToolkit_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XTopWindow_idl__ +#include <com/sun/star/awt/XTopWindow.idl> +#endif + +#ifndef __com_sun_star_lang_IndexOutOfBoundsException_idl__ +#include <com/sun/star/lang/IndexOutOfBoundsException.idl> +#endif + +#ifndef __com_sun_star_awt_XTopWindowListener_idl__ +#include <com/sun/star/awt/XTopWindowListener.idl> +#endif + +#ifndef __com_sun_star_awt_XKeyHandler_idl__ +#include <com/sun/star/awt/XKeyHandler.idl> +#endif + +#ifndef __com_sun_star_awt_XFocusListener_idl__ +#include <com/sun/star/awt/XFocusListener.idl> +#endif + + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** The <type>XExtendedToolkit</type> is an extension of the <type + scope="::com::sun::star::awt">XToolkit</type> interface. It basically + provides access to three event broadcasters which are used for instance + in the context of accessibility. It is, however, not restricted to + accessibility. + + <p>The first event broadcaster lets you keep track of the open top-level + windows (frames). To get the set of currently open top-level window use + the <member>XExtendedToolkit::getTopWindowCount</member> and + <member>XExtendedToolkit::getTopWindow</member> methods.</p> + + <p>The second event broadcaster informs its listeners of key events. + Its listeners can, unlike with most other broadcasters/listeners, + consume events, so that other listeners will not be called for consumed + events.</p> + + <p>The last event broadcaster sends events on focus changes of all + elements that can have the input focus.</p> + + @deprecated + This interface was only implemented in an intermediate developer + release anyway. + + @since OOo 1.1.2 +*/ +published interface XExtendedToolkit : ::com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** This function returns the number of currently existing top-level + windows. + @return + Returns the number of top-level windows. This includes all + top-level windows, regardless of whether they are iconized, + visible, or active. + */ + long getTopWindowCount (); + + //------------------------------------------------------------------------- + + /** Return a reference to the specified top-level window. Note that the + number of top-level windows may change between a call to + <member>getTopWindowCount()</member> and successive calls to this + function. + @param nIndex + The index should be in the intervall from 0 up to but not + including the number of top-level windows as returned by + <member>getTopWindowCount()</member>. + @return + The returned value is a valid reference to a top-level window. + @throws IndexOutOfBoundsException + when the specified index is outside the valid range. + */ + ::com::sun::star::awt::XTopWindow getTopWindow ([in] long nIndex) + raises (::com::sun::star::lang::IndexOutOfBoundsException); + + //------------------------------------------------------------------------- + + /** Return the currently active top-level window, i.e. which has + currently the input focus. + @return + The returned reference may be empty when no top-level window is + active. + */ + ::com::sun::star::awt::XTopWindow getActiveTopWindow (); + + /** Add a new listener that is called for events that involve <type + scope="::com::sun::star::awt">XTopWindow</type>s. After having + obtained the current list of exisiting top-level windows you can + keep this list up-to-date by listening to opened or closed top-level + windows. Wait for activations or deactivations of top-level windows + to keep track of the currently active frame. + @param xListener + If this is a valid reference it is inserted into the list of + listeners. It is the task of the caller to not register the + same listener twice (otherwise that listener will be called + twice.) + */ + [oneway] void addTopWindowListener ( + [in] ::com::sun::star::awt::XTopWindowListener xListener); + + //------------------------------------------------------------------------- + + /** Remove the specified listener from the list of listeners. + @param xListener + If the reference is empty then nothing will be changed. If the + listener has been registered twice (or more) then all refrences + will be removed. + */ + [oneway] void removeTopWindowListener ( + [in] ::com::sun::star::awt::XTopWindowListener xListener); + + //------------------------------------------------------------------------- + + /** Add a new listener that is called on <type + scope="::com::sun::star::awt">KeyEvent</type>s. Every listener is + given the opportunity to consume the event, i.e. prevent the not yet + called listeners from being called. + @param xHandler + If this is a valid reference it is inserted into the list of + handlers. It is the task of the caller to not register the + same handler twice (otherwise that listener will be called + twice.) + */ + [oneway] void addKeyHandler ( + [in] ::com::sun::star::awt::XKeyHandler xHandler); + + //------------------------------------------------------------------------- + + /** Remove the specified listener from the list of listeners. + @param xHandler + If the reference is empty then nothing will be changed. If the + handler has been registered twice (or more) then all refrences + will be removed. + */ + [oneway] void removeKeyHandler ( + [in] ::com::sun::star::awt::XKeyHandler xHandler); + + //------------------------------------------------------------------------- + + /** Add a new listener that is called on <type + scope="::com::sun::star::awt">FocusEvent</type>s. Use this focus + broadcaster to keep track of the object that currently has the input + focus. + @param xListener + If this is a valid reference it is inserted into the list of + listeners. It is the task of the caller to not register the + same listener twice (otherwise that listener will be called + twice.) + */ + [oneway] void addFocusListener ( + [in] ::com::sun::star::awt::XFocusListener xListener); + + //------------------------------------------------------------------------- + + /** Remove the specified listener from the list of listeners. + @param xListener + If the reference is empty then nothing will be changed. If the + listener has been registered twice (or more) then all refrences + will be removed. + */ + [oneway] void removeFocusListener ( + [in] ::com::sun::star::awt::XFocusListener xListener); + + //------------------------------------------------------------------------- + + /** Broadcasts the a focusGained on all registered focus listeners + @param source + The object that has gained the input focus. It should implement + <type scope="com::sun::star::accessibility">XAccessible</type>. + */ + [oneway] void fireFocusGained ( + [in] ::com::sun::star::uno::XInterface source); + + //------------------------------------------------------------------------- + + /** Broadcasts the a focusGained on all registered focus listeners + @param source + The object that has lost the input focus. It should implement + <type scope="com::sun::star::accessibility">XAccessible</type>. + */ + [oneway] void fireFocusLost ( + [in] ::com::sun::star::uno::XInterface source); + +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XFileDialog.idl b/offapi/com/sun/star/awt/XFileDialog.idl new file mode 100644 index 000000000000..b9fe07c9e472 --- /dev/null +++ b/offapi/com/sun/star/awt/XFileDialog.idl @@ -0,0 +1,84 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XFileDialog_idl__ +#define __com_sun_star_awt_XFileDialog_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** gives access to a file dialog. + + @deprecated + */ +published interface XFileDialog: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** sets the path. + */ + [oneway] void setPath( [in] string Path ); + + //------------------------------------------------------------------------- + + /** returns the path. + */ + string getPath(); + + //------------------------------------------------------------------------- + + /** sets the filters. + */ + [oneway] void setFilters( [in] sequence<string> rFilterNames, + [in] sequence<string> rMasks ); + + //------------------------------------------------------------------------- + + /** sets the current filter. + */ + [oneway] void setCurrentFilter( [in] string Filter ); + + //------------------------------------------------------------------------- + + /** returns the currently selected filter. + */ + string getCurrentFilter(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XFixedHyperlink.idl b/offapi/com/sun/star/awt/XFixedHyperlink.idl new file mode 100644 index 000000000000..9fb6965b6e4a --- /dev/null +++ b/offapi/com/sun/star/awt/XFixedHyperlink.idl @@ -0,0 +1,109 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XFixedHyperlink_idl__ +#define __com_sun_star_awt_XFixedHyperlink_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XActionListener_idl__ +#include <com/sun/star/awt/XActionListener.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** gives access to the text and formatting of a fixed hyperlink field. + */ +interface XFixedHyperlink: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** sets the text of the control. + */ + [oneway] void setText( [in] string Text ); + + //------------------------------------------------------------------------- + + /** returns the text of the control. + */ + string getText(); + + //------------------------------------------------------------------------- + + /** sets the url of the control. + */ + [oneway] void setURL( [in] string URL ); + + //------------------------------------------------------------------------- + + /** returns the url of the control. + */ + string getURL(); + + //------------------------------------------------------------------------- + + /** sets the alignment of the text in the control. + + <pre> + 0: left + 1: center + 2: right + </pre> + */ + [oneway] void setAlignment( [in] short nAlign ); + + //------------------------------------------------------------------------- + + /** returns the alignment of the text in the control. + */ + short getAlignment(); + + //------------------------------------------------------------------------- + + /** registers an event handler for click action event. + */ + [oneway] void addActionListener( [in] com::sun::star::awt::XActionListener l ); + + //------------------------------------------------------------------------- + + /** unregisters an event handler for click action event. + */ + [oneway] void removeActionListener( [in] com::sun::star::awt::XActionListener l ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/awt/XFixedText.idl b/offapi/com/sun/star/awt/XFixedText.idl new file mode 100644 index 000000000000..55b3202e7173 --- /dev/null +++ b/offapi/com/sun/star/awt/XFixedText.idl @@ -0,0 +1,81 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XFixedText_idl__ +#define __com_sun_star_awt_XFixedText_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** gives access to the text and formatting of a fixed text field. + */ +published interface XFixedText: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** sets the text of the control. + */ + [oneway] void setText( [in] string Text ); + + //------------------------------------------------------------------------- + + /** returns the text of the control. + */ + string getText(); + + //------------------------------------------------------------------------- + + /** sets the alignment of the text in the control. + + <pre> + 0: left + 1: center + 2: right + </pre> + */ + [oneway] void setAlignment( [in] short nAlign ); + + //------------------------------------------------------------------------- + + /** returns the alignment of the text in the control. + */ + short getAlignment(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XFocusListener.idl b/offapi/com/sun/star/awt/XFocusListener.idl new file mode 100644 index 000000000000..fc45be62aa07 --- /dev/null +++ b/offapi/com/sun/star/awt/XFocusListener.idl @@ -0,0 +1,74 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XFocusListener_idl__ +#define __com_sun_star_awt_XFocusListener_idl__ + +#ifndef __com_sun_star_lang_XEventListener_idl__ +#include <com/sun/star/lang/XEventListener.idl> +#endif + +#ifndef __com_sun_star_awt_FocusEvent_idl__ +#include <com/sun/star/awt/FocusEvent.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** makes it possible to receive keyboard focus events. + + <p>The window which has the keyboard focus is the window which gets + the keyboard events.</p> + */ +published interface XFocusListener: com::sun::star::lang::XEventListener +{ + //------------------------------------------------------------------------- + + /** is invoked when a window gains the keyboard focus. + + @see XActivateListener::windowActivated + */ + [oneway] void focusGained( [in] com::sun::star::awt::FocusEvent e ); + + //------------------------------------------------------------------------- + + /** is invoked when a window loses the keyboard focus. + + @see XActivateListener::windowDeactivated + */ + [oneway] void focusLost( [in] com::sun::star::awt::FocusEvent e ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XFont.idl b/offapi/com/sun/star/awt/XFont.idl new file mode 100644 index 000000000000..54df687ca1e2 --- /dev/null +++ b/offapi/com/sun/star/awt/XFont.idl @@ -0,0 +1,126 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XFont_idl__ +#define __com_sun_star_awt_XFont_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_FontDescriptor_idl__ +#include <com/sun/star/awt/FontDescriptor.idl> +#endif + +#ifndef __com_sun_star_awt_SimpleFontMetric_idl__ +#include <com/sun/star/awt/SimpleFontMetric.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** decribes a font on a specific device. + + <p>All values are in pixels within this device.</p> + */ +published interface XFont: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** returns the description of the font. + + <p>The unit of measurement is pixels for the device. + */ + com::sun::star::awt::FontDescriptor getFontDescriptor(); + + //------------------------------------------------------------------------- + + /** returns additional information about the font. + */ + com::sun::star::awt::SimpleFontMetric getFontMetric(); + + //------------------------------------------------------------------------- + + /** returns the width of the specified character. + + @returns + the character width measured in pixels for the device. + */ + short getCharWidth( [in] char c ); + + //------------------------------------------------------------------------- + + /** returns the widths of the specified characters. + + @returns + a sequence of the widths of subsequent characters for this font. + */ + sequence<short> getCharWidths( [in] char nFirst, [in] char nLast ); + + //------------------------------------------------------------------------- + + /** returns the string width. + + @returns + the width of the specified string of characters + measured in pixels for the device. + */ + long getStringWidth( [in] string str ); + + //------------------------------------------------------------------------- + + /** returns the string and the character widths. + + @returns + the width of the specified string of characters + measured in pixels for the device. + + @param aDXArray + receives the width of every single character + measured in pixels for the device. + */ + long getStringWidthArray( [in] string str, + [out] sequence<long> aDXArray ); + + //------------------------------------------------------------------------- + + /** queries the kerning pair table. + */ + void getKernPairs( [out] sequence<char> Chars1, + [out] sequence<char> Chars2, + [out] sequence<short> Kerns ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XFont2.idl b/offapi/com/sun/star/awt/XFont2.idl new file mode 100644 index 000000000000..b67e8f2c1dee --- /dev/null +++ b/offapi/com/sun/star/awt/XFont2.idl @@ -0,0 +1,68 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_XFont2_idl__ +#define __com_sun_star_awt_XFont2_idl__ + +#ifndef __com_sun_star_awt_XFont_idl__ +#include <com/sun/star/awt/XFont.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** extends the <type>XFont</type> interface and provides additional + information for a font. + + @since OOo 3.0 + */ +interface XFont2: com::sun::star::awt::XFont +{ + //------------------------------------------------------------------------- + + /** checks whether or not this font has all the glyphs for the text + specified by aText. + + @param aText + The specified text for which glyphs are needed. + + @return + Returns whether or not this font has all the glyphs for the + specified text. + */ + boolean hasGlyphs( [in] string aText ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XGraphics.idl b/offapi/com/sun/star/awt/XGraphics.idl new file mode 100644 index 000000000000..2b6b63a26b2e --- /dev/null +++ b/offapi/com/sun/star/awt/XGraphics.idl @@ -0,0 +1,321 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XGraphics_idl__ +#define __com_sun_star_awt_XGraphics_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + +#ifndef __com_sun_star_awt_SimpleFontMetric_idl__ +#include <com/sun/star/awt/SimpleFontMetric.idl> +#endif + +#ifndef __com_sun_star_awt_FontDescriptor_idl__ +#include <com/sun/star/awt/FontDescriptor.idl> +#endif + +#ifndef __com_sun_star_awt_RasterOperation_idl__ +#include <com/sun/star/awt/RasterOperation.idl> +#endif + +#ifndef __com_sun_star_awt_Gradient_idl__ +#include <com/sun/star/awt/Gradient.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { + + published interface XRegion; + published interface XDisplayBitmap; + published interface XFont; + published interface XDevice; + +//============================================================================= + +/** provides the basic output operation of a device. + */ +published interface XGraphics: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** returns the device of this graphics. + */ + XDevice getDevice(); + + //------------------------------------------------------------------------- + + /** returns the font metric of the current font. + */ + SimpleFontMetric getFontMetric(); + + //------------------------------------------------------------------------- + + /** sets the font used by text operations. + */ + [oneway] void setFont( [in] XFont xNewFont ); + + //------------------------------------------------------------------------- + + /** creates a new font and sets the font. + */ + [oneway] void selectFont( [in] FontDescriptor aDescription ); + + //------------------------------------------------------------------------- + + /** sets the text color used by text operations. + */ + [oneway] void setTextColor( [in] com::sun::star::util::Color nColor ); + + //------------------------------------------------------------------------- + + /** sets the fill color used by text operations. + */ + [oneway] void setTextFillColor( [in] com::sun::star::util::Color nColor ); + + //------------------------------------------------------------------------- + + /** sets the line color. + */ + [oneway] void setLineColor( [in] com::sun::star::util::Color nColor ); + + //------------------------------------------------------------------------- + + /** sets the fill color. + */ + [oneway] void setFillColor( [in] com::sun::star::util::Color nColor ); + + //------------------------------------------------------------------------- + + /** sets the raster operation. + + <p>If the device does not support raster operations + then this call is ignored.</p> + */ + [oneway] void setRasterOp( [in] RasterOperation ROP ); + + //------------------------------------------------------------------------- + + /** sets the clip region to specified clipping. + */ + [oneway] void setClipRegion( [in] XRegion Clipping ); + + //------------------------------------------------------------------------- + + /** builds the intersection with the current region. + */ + [oneway] void intersectClipRegion( [in] XRegion xClipping ); + + //------------------------------------------------------------------------- + + /** saves all current settings (Font, TextColor, TextFillColor, + LineColor, FillColor, RasterOp, ClipRegion). + */ + [oneway] void push(); + + //------------------------------------------------------------------------- + + /** restores all previous saved settings. + */ + [oneway] void pop(); + + //------------------------------------------------------------------------- + + /** copies a rectangle of pixels from another device into this one. + */ + [oneway] void copy( [in] XDevice xSource, + [in] long nSourceX, + [in] long nSourceY, + [in] long nSourceWidth, + [in] long nSourceHeight, + [in] long nDestX, + [in] long nDestY, + [in] long nDestWidth, + [in] long nDestHeight ); + + //------------------------------------------------------------------------- + + /** draws a part of the specified bitmap to the output device. + */ + [oneway] void draw( [in] XDisplayBitmap xBitmapHandle, + [in] long SourceX, + [in] long SourceY, + [in] long SourceWidth, + [in] long SourceHeight, + [in] long DestX, + [in] long DestY, + [in] long DestWidth, + [in] long DestHeight ); + + //------------------------------------------------------------------------- + + /** sets a single pixel in the output device. + */ + [oneway] void drawPixel( [in] long X, + [in] long Y ); + + //------------------------------------------------------------------------- + + /** draws a line in the output device. + */ + [oneway] void drawLine( [in] long X1, + [in] long Y1, + [in] long X2, + [in] long Y2 ); + + //------------------------------------------------------------------------- + + /** draws a rectangle in the output device. + */ + [oneway] void drawRect( [in] long X, + [in] long Y, + [in] long Width, + [in] long Height ); + + //------------------------------------------------------------------------- + + /** draws a rectangle with rounded corners in the output device. + */ + [oneway] void drawRoundedRect( [in] long X, + [in] long Y, + [in] long Width, + [in] long Height, + [in] long nHorzRound, + [in] long nVertRound ); + + //------------------------------------------------------------------------- + + /** draws multiple lines in the output device at once. + */ + [oneway] void drawPolyLine( [in] sequence<long> DataX, + [in] sequence<long> DataY ); + + //------------------------------------------------------------------------- + + /** draws a polygon line in the output device. + */ + [oneway] void drawPolygon( [in] sequence<long> DataX, + [in] sequence<long> DataY ); + + //------------------------------------------------------------------------- + + /** draws multiple polygons in the output device at once. + */ + [oneway] void drawPolyPolygon( [in] sequence< sequence<long> > DataX, + [in] sequence< sequence<long> > DataY ); + + //------------------------------------------------------------------------- + + /** draws an ellipse in the output device. + */ + [oneway] void drawEllipse( [in] long X, + [in] long Y, + [in] long Width, + [in] long Height ); + + //------------------------------------------------------------------------- + + /** draws an arc (part of a circle) in the output device. + */ + [oneway] void drawArc( [in] long X, + [in] long Y, + [in] long Width, + [in] long Height, + [in] long X1, + [in] long Y1, + [in] long X2, + [in] long Y2 ); + + //------------------------------------------------------------------------- + + /** draws a circular area in the output device. + */ + [oneway] void drawPie( [in] long X, + [in] long Y, + [in] long Width, + [in] long Height, + [in] long X1, + [in] long Y1, + [in] long X2, + [in] long Y2 ); + + //------------------------------------------------------------------------- + + /** draws a chord of a circular area in the output device. + + <p>A chord is a segment of a circle. You get two chords from a + circle if you intersect the circle with a straight line + joining two points on the circle.</p> + */ + [oneway] void drawChord( [in] long nX, + [in] long nY, + [in] long nWidth, + [in] long nHeight, + [in] long nX1, + [in] long nY1, + [in] long nX2, + [in] long nY2 ); + + //------------------------------------------------------------------------- + + /** draws a color dispersion in the output device. + */ + [oneway] void drawGradient( [in] long nX, + [in] long nY, + [in] long nWidth, + [in] long Height, + [in] Gradient aGradient ); + + //------------------------------------------------------------------------- + + /** draws text in the output device. + */ + [oneway] void drawText( [in] long X, + [in] long Y, + [in] string Text ); + + //------------------------------------------------------------------------- + + /** draws texts in the output device using an explicit kerning table. + */ + [oneway] void drawTextArray( [in] long X, + [in] long Y, + [in] string Text, + [in] sequence<long> Longs ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XImageButton.idl b/offapi/com/sun/star/awt/XImageButton.idl new file mode 100644 index 000000000000..e3676b50711d --- /dev/null +++ b/offapi/com/sun/star/awt/XImageButton.idl @@ -0,0 +1,74 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XImageButton_idl__ +#define __com_sun_star_awt_XImageButton_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XActionListener_idl__ +#include <com/sun/star/awt/XActionListener.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** makes it possible to register for action events of an image button + and sets the action command. + */ +published interface XImageButton: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** registers a listener for action events. + */ + [oneway] void addActionListener( [in] com::sun::star::awt::XActionListener l ); + + //------------------------------------------------------------------------- + + /** unregisters a listener for action events. + */ + [oneway] void removeActionListener( [in] com::sun::star::awt::XActionListener l ); + + //------------------------------------------------------------------------- + + /** sets the action command string. + */ + [oneway] void setActionCommand( [in] string Command ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XImageConsumer.idl b/offapi/com/sun/star/awt/XImageConsumer.idl new file mode 100644 index 000000000000..60c1223be42a --- /dev/null +++ b/offapi/com/sun/star/awt/XImageConsumer.idl @@ -0,0 +1,132 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XImageConsumer_idl__ +#define __com_sun_star_awt_XImageConsumer_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { + + published interface XImageProducer; + +//============================================================================= + +/** specifies a data sink for an image. + + <p>An image consumer is a component which wants to display or just + receive an image from an image producer.</p> + + @see XImageProducer + */ +published interface XImageConsumer: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** initializes the consumer with image dimensions. + */ + [oneway] void init( [in] long Width, + [in] long Height ); + + //------------------------------------------------------------------------- + + /** changes color model for next pixels + typically called once after initialization. + */ + [oneway] void setColorModel( [in] short BitCount, + [in] sequence<long> RGBAPal, + [in] long RedMask, + [in] long GreenMask, + [in] long BlueMask, + [in] long AlphaMask ); + + //------------------------------------------------------------------------- + + /** delivers a chunk of pixels as <atom>long</atom> values. + + <p>The pixels of the image are delivered using one or more calls + to this method. Each call specifies the location and size of the + rectangle of source pixels that are contained in the array of pixels. + The specified color model object should be used to convert + the pixels into their corresponding color and alpha components. Pixel + (m,n) is stored in the pixels array at index (n * <var>nScanSize</var> + + m + nOffset).</p> + */ + [oneway] void setPixelsByBytes( [in] long nX, + [in] long nY, + [in] long nWidth, + [in] long nHeight, + [in] sequence<byte> aProducerData, + [in] long nOffset, + [in] long nScanSize ); + + //------------------------------------------------------------------------- + + /** delivers a chunk of pixels as <atom>byte</atom> values. + + <p>The pixels of the image are delivered using one or more calls + to this method. Each call specifies the location and size of the + rectangle of source pixels that are contained in the array of pixels. + The specified color model object should be used to convert + the pixels into their corresponding color and alpha components. Pixel + (m,n) is stored in the pixels array at index (n * <var>nScanSize</var> + + m + nOffset).</p> + */ + [oneway] void setPixelsByLongs( [in] long nX, + [in] long nY, + [in] long nWidth, + [in] long nHeight, + [in] sequence<long> aProducerData, + [in] long nOffset, + [in] long nScanSize ); + + //------------------------------------------------------------------------- + + /** is called for the notification of the degree to which the + image is delivered. + + <p>The complete method is called when the image producer + has finished delivering all of the pixels that the source image + contains, or when a single frame of a multi-frame animation has + been completed, or when an error in loading or producing the + image has occurred. The image consumer should remove itself from the + list of consumers registered with the image producer + at this time, unless it is interested in successive frames.</p> + */ + [oneway] void complete( [in] long Status, + [in] XImageProducer xProducer ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XImageProducer.idl b/offapi/com/sun/star/awt/XImageProducer.idl new file mode 100644 index 000000000000..0dc15218012c --- /dev/null +++ b/offapi/com/sun/star/awt/XImageProducer.idl @@ -0,0 +1,91 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XImageProducer_idl__ +#define __com_sun_star_awt_XImageProducer_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XImageConsumer_idl__ +#include <com/sun/star/awt/XImageConsumer.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a source for an image. + */ +published interface XImageProducer: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** registers an image consumer with the image producer for accessing + the image data during a later reconstruction of the image. + + <p>The image producer may, at its discretion, start delivering the + image data to the consumer using the <type>XImageConsumer</type> + interface immediately, or when the next available image reconstruction + is triggered by a call to the startProduction method.</p> + */ + [oneway] void addConsumer( [in] com::sun::star::awt::XImageConsumer xConsumer ); + + //------------------------------------------------------------------------- + + /** removes the given <type scope="com::sun::star::awt">XImageConsumer</type> + callback from the list of consumers currently registered to receive + image data. + + <p>It is not considered an error to remove a consumer that is not + currently registered. The image producer should stop sending data + to this consumer as soon as it is feasible.</p> + */ + [oneway] void removeConsumer( [in] com::sun::star::awt::XImageConsumer xConsumer ); + + //------------------------------------------------------------------------- + + /** registers the given image consumer as a consumer + and starts an immediate reconstruction of the image data. + + <p>The image data will then be delivered to this consumer and any other + consumer which may have already been registered with the producer. + This method differs from the addConsumer method in that a reproduction of + the image data should be triggered as soon as possible.</p> + */ + [oneway] void startProduction(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XInfoPrinter.idl b/offapi/com/sun/star/awt/XInfoPrinter.idl new file mode 100644 index 000000000000..71afa45e0bc1 --- /dev/null +++ b/offapi/com/sun/star/awt/XInfoPrinter.idl @@ -0,0 +1,63 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XInfoPrinter_idl__ +#define __com_sun_star_awt_XInfoPrinter_idl__ + +#ifndef __com_sun_star_awt_XPrinterPropertySet_idl__ +#include <com/sun/star/awt/XPrinterPropertySet.idl> +#endif + +#ifndef __com_sun_star_awt_XDevice_idl__ +#include <com/sun/star/awt/XDevice.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** represents an information printer. + */ +published interface XInfoPrinter: com::sun::star::awt::XPrinterPropertySet +{ + //------------------------------------------------------------------------- + + /** creates a new object which implements an <type>XDevice</type>. + + <p>The current settings are used as a template.</p> + */ + com::sun::star::awt::XDevice createDevice(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XItemEventBroadcaster.idl b/offapi/com/sun/star/awt/XItemEventBroadcaster.idl new file mode 100644 index 000000000000..ca4bb0727f91 --- /dev/null +++ b/offapi/com/sun/star/awt/XItemEventBroadcaster.idl @@ -0,0 +1,70 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XItemEventBroadcaster_idl__ +#define __com_sun_star_awt_XItemEventBroadcaster_idl__ + +#ifndef __com_sun_star_awt_XItemListener_idl__ +#include <com/sun/star/awt/XItemListener.idl> +#endif + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** registers item listeners at controls like the com::sun::star::awt::Roadmap + */ + +interface XItemEventBroadcaster: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** registers a listener for item events. + */ + [oneway] void addItemListener( [in] com::sun::star::awt::XItemListener l ); + + //------------------------------------------------------------------------- + + /** unregisters a listener for item events. + */ + [oneway] void removeItemListener( [in] com::sun::star::awt::XItemListener l ); + + //------------------------------------------------------------------------- +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XItemList.idl b/offapi/com/sun/star/awt/XItemList.idl new file mode 100644 index 000000000000..6419ea94d0b0 --- /dev/null +++ b/offapi/com/sun/star/awt/XItemList.idl @@ -0,0 +1,286 @@ +/************************************************************************* + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __offapi_com_sun_star_awt_XItemList_idl__ +#define __offapi_com_sun_star_awt_XItemList_idl__ + +#include <com/sun/star/lang/IndexOutOfBoundsException.idl> +#include <com/sun/star/beans/Pair.idl> + +//================================================================================================================== + +module com { module sun { module star { module awt { + +interface XItemListListener; + +//================================================================================================================== + +/** provides convenient access to the list of items in a list box + */ +interface XItemList +{ + /** is the number of items in the list + */ + [attribute, readonly] long ItemCount; + + /** inserts a new item into the list + + @param Position + the position at which the item should be inserted. Must be greater or equal to 0, and + lesser than or equal to <member>ItemCount</member>. + + @param ItemText + the text of the item to be inserted. + + @param ItemImageURL + the URL of the image to display for the item + + @throws ::com::sun::star::lang::IndexOutOfBoundsException + if <code>Position</code> is invalid. + */ + void insertItem( + [in] long Position, + [in] string ItemText, + [in] string ItemImageURL + ) + raises ( ::com::sun::star::lang::IndexOutOfBoundsException ); + + /** inserts an item which has only a text, but no image + + @param Position + the position at which the item should be inserted. Must be greater or equal to 0, and + lesser than or equal to <member>ItemCount</member>. + + @param ItemText + the text of the item to be inserted. + + @throws ::com::sun::star::lang::IndexOutOfBoundsException + if <code>Position</code> is invalid. + */ + void insertItemText( + [in] long Position, + [in] string ItemText + ) + raises ( ::com::sun::star::lang::IndexOutOfBoundsException ); + + /** inserts an item which has only an image, but no text + + @param Position + the position at which the item should be inserted. Must be greater or equal to 0, and + lesser than or equal to <member>ItemCount</member>. + + @param ItemImageURL + the URL of the image to display for the item + + @throws ::com::sun::star::lang::IndexOutOfBoundsException + if <code>Position</code> is invalid. + */ + void insertItemImage( + [in] long Position, + [in] string ItemImageURL + ) + raises ( ::com::sun::star::lang::IndexOutOfBoundsException ); + + /** removes an item from the list + + @param Position + the position of the item which should be removed. Must be greater or equal to 0, and + lesser than <member>ItemCount</member>. + + @throws ::com::sun::star::lang::IndexOutOfBoundsException + if <code>Position</code> is invalid. + */ + void removeItem( + [in] long Position + ) + raises ( ::com::sun::star::lang::IndexOutOfBoundsException ); + + /** removes all items from the list + */ + void removeAllItems(); + + /** sets a new text for an existing item + + @param Position + the position of the item whose text is to be changed. Must be greater or equal to 0, and + lesser than <member>ItemCount</member>. + + @param ItemText + the new text of the item + + @throws ::com::sun::star::lang::IndexOutOfBoundsException + if <code>Position</code> is invalid. + */ + void setItemText( + [in] long Position, + [in] string ItemText + ) + raises ( ::com::sun::star::lang::IndexOutOfBoundsException ); + + /** sets a new image for an existing item + + @param Position + the position of the item whose image is to be changed. Must be greater or equal to 0, and + lesser than <member>ItemCount</member>. + + @param ItemImageURL + the new URL of the image to display for the item + + @throws ::com::sun::star::lang::IndexOutOfBoundsException + if <code>Position</code> is invalid. + */ + void setItemImage( + [in] long Position, + [in] string ItemImageURL + ) + raises ( ::com::sun::star::lang::IndexOutOfBoundsException ); + + /** sets both a new position and text for an existing item + + @param Position + the position of the item whose text and image is to be changed. Must be greater or equal to 0, and + lesser than <member>ItemCount</member>. + + @param ItemText + the new text of the item + + @param ItemImageURL + the new URL of the image to display for the item + + @throws ::com::sun::star::lang::IndexOutOfBoundsException + if <code>Position</code> is invalid. + */ + void setItemTextAndImage( + [in] long Position, + [in] string ItemText, + [in] string ItemImageURL + ) + raises ( ::com::sun::star::lang::IndexOutOfBoundsException ); + + /** associates an implementation dependend value with the given list item. + + <p>You can use this to store data for an item which does not interfere with the displayed + text and image, but can be used by the client of the list box for an arbitrary purpose.</p> + + @param Position + the position of the item whose data value should be set. Must be greater or equal to 0, and + lesser than <member>ItemCount</member>. + + @param ItemData + the data to associate with the list item + + @throws ::com::sun::star::lang::IndexOutOfBoundsException + if <code>Position</code> is invalid. + + @see getItemData + */ + void setItemData( + [in] long Position, + [in] any ItemData + ) + raises ( ::com::sun::star::lang::IndexOutOfBoundsException ); + + /** retrieves the text of an existing item + + @param Position + the position of the item whose text should be retrieved. Must be greater or equal to 0, and + lesser than <member>ItemCount</member>. + + @throws ::com::sun::star::lang::IndexOutOfBoundsException + if <code>Position</code> is invalid. + */ + string getItemText( + [in] long Position + ) + raises ( ::com::sun::star::lang::IndexOutOfBoundsException ); + + /** retrieves the URL of the image of an existing item + + @param Position + the position of the item whose image should be retrieved. Must be greater or equal to 0, and + lesser than <member>ItemCount</member>. + + @throws ::com::sun::star::lang::IndexOutOfBoundsException + if <code>Position</code> is invalid. + */ + string getItemImage( + [in] long Position + ) + raises ( ::com::sun::star::lang::IndexOutOfBoundsException ); + + /** retrieves both the text and the image URL of an existing item + + @param Position + the position of the item whose text and image should be retrieved. Must be greater or equal to 0, and + lesser than <member>ItemCount</member>. + + @throws ::com::sun::star::lang::IndexOutOfBoundsException + if <code>Position</code> is invalid. + */ + ::com::sun::star::beans::Pair< string, string > + getItemTextAndImage( + [in] long Position + ) + raises ( ::com::sun::star::lang::IndexOutOfBoundsException ); + + /** retrieves the implementation dependend value associated with the given list item. + @see setItemData + + @param Position + the position of the item whose data value should be retrieved. Must be greater or equal to 0, and + lesser than <member>ItemCount</member>. + + @throws ::com::sun::star::lang::IndexOutOfBoundsException + if <code>Position</code> is invalid. + + @see setItemData + */ + any getItemData( + [in] long Position + ) + raises ( ::com::sun::star::lang::IndexOutOfBoundsException ); + + /** retrieves the texts and images of all items in the list + */ + sequence< ::com::sun::star::beans::Pair< string, string > > + getAllItems(); + + /** registers a listener which is notified about changes in the item list. + */ + void addItemListListener( [in] XItemListListener Listener ); + + /** revokes a listener which is notified about changes in the item list. + */ + void removeItemListListener( [in] XItemListListener Listener ); +}; + +//================================================================================================================== + +}; }; }; }; + +//================================================================================================================== + +#endif diff --git a/offapi/com/sun/star/awt/XItemListListener.idl b/offapi/com/sun/star/awt/XItemListListener.idl new file mode 100644 index 000000000000..d41d8b104a02 --- /dev/null +++ b/offapi/com/sun/star/awt/XItemListListener.idl @@ -0,0 +1,85 @@ +/************************************************************************* + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __offapi_com_sun_star_awt_XItemListListener_idl__ +#define __offapi_com_sun_star_awt_XItemListListener_idl__ + +#include <com/sun/star/lang/XEventListener.idl> +#include <com/sun/star/awt/ItemListEvent.idl> + +//================================================================================================================== + +module com { module sun { module star { module awt { + +//================================================================================================================== + +/** describes a listener for changes in a item list + @see XListItems + */ +interface XItemListListener : ::com::sun::star::lang::XEventListener +{ + /** is called when an item is inserted into the list + */ + void listItemInserted( + [in] ItemListEvent Event + ); + + /** is called when an item is removed from the list + */ + void listItemRemoved( + [in] ItemListEvent Event + ); + + /** is called when an item in the list is modified, i.e. its text or image changed + */ + void listItemModified( + [in] ItemListEvent Event + ); + /** is called when the list has been completely cleared, i.e. after an invocation of + <member>XItemList::removeAllItems</member> + */ + void allItemsRemoved( + [in] ::com::sun::star::lang::EventObject Event + ); + + /** is called when the changes to the item list which occured are too complex to be notified + in single events. + + <p>Consumers of this event should discard their cached information about the current item list, + and completely refresh it from the <type>XItemList</type>'s current state.</p> + */ + void itemListChanged( + [in] ::com::sun::star::lang::EventObject Event + ); +}; + +//================================================================================================================== + +}; }; }; }; + +//================================================================================================================== + +#endif diff --git a/offapi/com/sun/star/awt/XItemListener.idl b/offapi/com/sun/star/awt/XItemListener.idl new file mode 100644 index 000000000000..ccb7b90ab773 --- /dev/null +++ b/offapi/com/sun/star/awt/XItemListener.idl @@ -0,0 +1,62 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XItemListener_idl__ +#define __com_sun_star_awt_XItemListener_idl__ + +#ifndef __com_sun_star_lang_XEventListener_idl__ +#include <com/sun/star/lang/XEventListener.idl> +#endif + +#ifndef __com_sun_star_awt_ItemEvent_idl__ +#include <com/sun/star/awt/ItemEvent.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** makes it possible to receive events from a component + when the state of an item changes. + */ +published interface XItemListener: com::sun::star::lang::XEventListener +{ + //------------------------------------------------------------------------- + + /** is invoked when an item changes its state. + */ + [oneway] void itemStateChanged( [in] com::sun::star::awt::ItemEvent rEvent ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XKeyHandler.idl b/offapi/com/sun/star/awt/XKeyHandler.idl new file mode 100644 index 000000000000..dba9f36f8318 --- /dev/null +++ b/offapi/com/sun/star/awt/XKeyHandler.idl @@ -0,0 +1,101 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_XKeyHandler_idl__ +#define __com_sun_star_awt_XKeyHandler_idl__ + +#ifndef __com_sun_star_lang_XEventListener_idl__ +#include <com/sun/star/lang/XEventListener.idl> +#endif + +#ifndef __com_sun_star_awt_KeyEvent_idl__ +#include <com/sun/star/awt/KeyEvent.idl> +#endif + + +module com { module sun { module star { module awt { + +/** This key handler is similar to <type + scope="::com::sun::star::awt">XKeyListener</type> but allows the + consumption of key events. If a key event is consumed by one + handler both the following handlers, with respect to the list of key + handlers of the broadcaster, and a following handling by the + broadcaster will not take place. + + @since OOo 1.1.2 +*/ +published interface XKeyHandler : ::com::sun::star::lang::XEventListener +{ + /** This function is called by the broadcaster, an <type + scope="::com::sun::star::awt">XExtendedToolkit</type> for + instance, after a key has been pressed but before it is released. + The return value decides about whether other handlers will be + called and a handling by the broadcaster will take place. + + <p>Consume the event if the action performed by the implementation + is mutually exclusive with the default action of the broadcaster or, + when known, with that of other handlers.</p> + + <p>Consuming this event does not prevent the pending key-release + event from beeing broadcasted.</p> + + @param aEvent + The key event informs about the pressed key. + @return + When <FALSE/> is returned the other handlers are called and a + following handling of the event by the broadcaster takes place. + Otherwise, when <TRUE/> is returned, no other handler will be + called and the broadcaster will take no further actions + regarding the event. + */ + boolean keyPressed ([in] com::sun::star::awt::KeyEvent aEvent); + + /** This function is called by the broadcaster, an <type + scope="::com::sun::star::awt">XExtendedToolkit</type> for + instance, after a key has been pressed and released. The return + value decides about whether other handlers will be called and a + handling by the broadcaster will take place. + + <p>Consume the event if the action performed by the implementation + is mutualy exclusive with the default action of the broadcaster or, + when known, with that of other handlers.</p> + + @param aEvent + The key event informs about the pressed key. + @return + When <FALSE/> is returned the other handlers are called and a + following handling of the event by the broadcaster takes place. + Otherwise, when <TRUE/> is returned, no other handler will be + called and the broadcaster will take no further actions + regarding the event. + */ + boolean keyReleased ([in] com::sun::star::awt::KeyEvent aEvent); +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XKeyListener.idl b/offapi/com/sun/star/awt/XKeyListener.idl new file mode 100644 index 000000000000..299cfddb9ad3 --- /dev/null +++ b/offapi/com/sun/star/awt/XKeyListener.idl @@ -0,0 +1,67 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XKeyListener_idl__ +#define __com_sun_star_awt_XKeyListener_idl__ + +#ifndef __com_sun_star_lang_XEventListener_idl__ +#include <com/sun/star/lang/XEventListener.idl> +#endif + +#ifndef __com_sun_star_awt_KeyEvent_idl__ +#include <com/sun/star/awt/KeyEvent.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** makes it possible to receive keyboard events. + */ +published interface XKeyListener: com::sun::star::lang::XEventListener +{ + //------------------------------------------------------------------------- + + /** is invoked when a key has been pressed. + */ + [oneway] void keyPressed( [in] com::sun::star::awt::KeyEvent e ); + + //------------------------------------------------------------------------- + + /** is invoked when a key has been released. + */ + [oneway] void keyReleased( [in] com::sun::star::awt::KeyEvent e ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XLayoutConstrains.idl b/offapi/com/sun/star/awt/XLayoutConstrains.idl new file mode 100644 index 000000000000..c715d1b7d5d8 --- /dev/null +++ b/offapi/com/sun/star/awt/XLayoutConstrains.idl @@ -0,0 +1,73 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XLayoutConstrains_idl__ +#define __com_sun_star_awt_XLayoutConstrains_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_Size_idl__ +#include <com/sun/star/awt/Size.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the layout constraints for a surrounding container. + */ +published interface XLayoutConstrains: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** returns the minimum size for this component. + */ + com::sun::star::awt::Size getMinimumSize(); + + //------------------------------------------------------------------------- + + /** returns the preferred size for this component. + */ + com::sun::star::awt::Size getPreferredSize(); + + //------------------------------------------------------------------------- + + /** calculates the adjusted size for a given maximum size. + */ + com::sun::star::awt::Size calcAdjustedSize( [in] com::sun::star::awt::Size aNewSize ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XLayoutContainer.idl b/offapi/com/sun/star/awt/XLayoutContainer.idl new file mode 100644 index 000000000000..46711f551af6 --- /dev/null +++ b/offapi/com/sun/star/awt/XLayoutContainer.idl @@ -0,0 +1,89 @@ +#ifndef __com_sun_star_awt_XLayoutContainer_idl__ +#define __com_sun_star_awt_XLayoutContainer_idl__ + +#ifndef __com_sun_star_awt_XLayoutConstrains_idl__ +#include <com/sun/star/awt/XLayoutConstrains.idl> +#endif +#ifndef __com_sun_star_awt_Rectangle_idl__ +#include <com/sun/star/awt/Rectangle.idl> +#endif +#ifndef __com_sun_star_beans_XPropertySet_idl__ +#include <com/sun/star/beans/XPropertySet.idl> +#endif +#ifndef __com_sun_star_container_XChild_idl__ +#include <com/sun/star/container/XChild.idl> +#endif +#ifndef __com_sun_star_awt_MaxChildrenException_idl__ +#include <com/sun/star/awt/MaxChildrenException.idl> +#endif +#ifndef __com_sun_star_awt_XLayoutUnit_idl__ +#include <com/sun/star/awt/XLayoutUnit.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +interface XLayoutUnit; + +/** specifies the layout constraints for a surrounding container. + + @since OOo 3.0 + */ +interface XLayoutContainer: com::sun::star::container::XChild +{ + /** Adds a child. Some containers provide an interface for + adding children which you should use. */ + void addChild( [in] com::sun::star::awt::XLayoutConstrains Child ) + raises( com::sun::star::awt::MaxChildrenException ); + + /** Remove a child. Some containers provide an interface for + adding children which you should use. + */ + void removeChild( [in] com::sun::star::awt::XLayoutConstrains Child ); + + /** Returns a sequence of the children of this container. */ + sequence< com::sun::star::awt::XLayoutConstrains > getChildren(); + + /** Read/modify some child layout properties. XPropertySet provides a + rich API that allows, e.g., for introspection. + Should rarely be a need to use; containers shall provide an interface + for setting properties more confortably. */ + com::sun::star::beans::XPropertySet getChildProperties( + [in] com::sun::star::awt::XLayoutConstrains Child ); + + /** Set at initilization, this object should be notified when a containers state + changes, that may affect its size, to queue a layout re-calculation. */ + void setLayoutUnit( [in] com::sun::star::awt::XLayoutUnit Unit ); + + // TEMP: no need for this... + com::sun::star::awt::XLayoutUnit getLayoutUnit(); + + /** To be used by the parent for the purpose of layout management. + For widgets, use XWindow::setPosSize() */ + void allocateArea( [in] com::sun::star::awt::Rectangle NewArea ); + + /** Used by the layouting unit to evaluate size damage, and force a + re-allocation. */ + com::sun::star::awt::Size getRequestedSize(); + + /** Used by the layouting unit to evaluate size damage, and force a + re-allocation. */ + com::sun::star::awt::Rectangle getAllocatedArea(); + + /** For flow layouting (e.g. wrap-able labels). TODO: We might want to + re-design this approach -- check XLayoutConstrains::calcAdjustedSize(). */ + long getHeightForWidth( [in] long Width ); + + /** For flow layouting (e.g. wrap-able labels). TODO: We might want to + re-design this approach -- check XLayoutConstrains::calcAdjustedSize(). */ + boolean hasHeightForWidth(); +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XLayoutFlow.idl b/offapi/com/sun/star/awt/XLayoutFlow.idl new file mode 100644 index 000000000000..1ec260aeab83 --- /dev/null +++ b/offapi/com/sun/star/awt/XLayoutFlow.idl @@ -0,0 +1,32 @@ +#ifndef __com_sun_star_awt_XLayoutFlow_idl__ +#define __com_sun_star_awt_XLayoutFlow_idl__ + +//============================================================================= + +#include <com/sun/star/uno/XInterface.idl> + +module com { module sun { module star { module awt { + +//============================================================================= + +/** Enables height-for-width layout negociations, which allows for label wrapping + and flow containers. Can be implemented by either a container or an ordinary widget; + whether its parent will honor it is another story, so keep implementing + getMinimumSize(). + + @since OOo 3.0 + */ +interface XLayoutFlow +{ + /** returns the prefered high this layout element would need for the given width. */ + long getHeightForWidth( [in] long Width ); + + /** Allow the container/widget to toggle the functionality. */ + boolean hasHeightForWidth(); +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XLayoutFlowContainer.idl b/offapi/com/sun/star/awt/XLayoutFlowContainer.idl new file mode 100644 index 000000000000..45685964d488 --- /dev/null +++ b/offapi/com/sun/star/awt/XLayoutFlowContainer.idl @@ -0,0 +1,27 @@ +#ifndef __com_sun_star_awt_XLayoutUnit_idl__ +#define __com_sun_star_awt_XLayoutUnit_idl__ + +#include <com/sun/star/awt/XLayoutContainer.idl> + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** Responsible to evaluate size damages and force a re-calculation. Containers + should let it know of state changes that may affects their size. + All children of a top-level window should share the same object. + + @since OOo 3.0 + */ +interface XLayoutContainer +{ + void queueResize( [in] com::sun::star::awt::XLayoutContainer Container ); +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XLayoutRoot.idl b/offapi/com/sun/star/awt/XLayoutRoot.idl new file mode 100644 index 000000000000..3234f15e13cf --- /dev/null +++ b/offapi/com/sun/star/awt/XLayoutRoot.idl @@ -0,0 +1,33 @@ +#ifndef __com_sun_star_awt_XLayoutRoot_idl__ +#define __com_sun_star_awt_XLayoutRoot_idl__ + +#ifndef __com_sun_star_awt_XLayoutContainer_idl__ +#include <com/sun/star/awt/XLayoutContainer.idl> +#endif +#ifndef __com_sun_star_container_XNameAccess_idl__ +#include <com/sun/star/container/XNameAccess.idl> +#endif +#ifndef __com_sun_star_container_XNameContainer_idl__ +#include <com/sun/star/container/XNameContainer.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies an interface for a top-level layoutable widget + + @since OOo 3.0 +*/ +interface XLayoutRoot: com::sun::star::container::XNameAccess +{ + com::sun::star::awt::XLayoutContainer getLayoutContainer(); +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XLayoutUnit.idl b/offapi/com/sun/star/awt/XLayoutUnit.idl new file mode 100644 index 000000000000..cc3581ae4aa3 --- /dev/null +++ b/offapi/com/sun/star/awt/XLayoutUnit.idl @@ -0,0 +1,31 @@ +#ifndef __com_sun_star_awt_XLayoutUnit_idl__ +#define __com_sun_star_awt_XLayoutUnit_idl__ + +#ifndef __com_sun_star_awt_XLayoutContainer_idl__ +#include <com/sun/star/awt/XLayoutContainer.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +interface XLayoutContainer; + +/** Responsible to evaluate size damages and force a re-calculation. Containers + should let it know of state changes that may affects their size. + All children of a top-level window should share the same object. + + @since OOo 3.0 + */ +interface XLayoutUnit +{ + void queueResize( [in] com::sun::star::awt::XLayoutContainer Container ); +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XListBox.idl b/offapi/com/sun/star/awt/XListBox.idl new file mode 100644 index 000000000000..32b458d62a2f --- /dev/null +++ b/offapi/com/sun/star/awt/XListBox.idl @@ -0,0 +1,199 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XListBox_idl__ +#define __com_sun_star_awt_XListBox_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XItemListener_idl__ +#include <com/sun/star/awt/XItemListener.idl> +#endif + +#ifndef __com_sun_star_awt_XActionListener_idl__ +#include <com/sun/star/awt/XActionListener.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** gives access to the items of a list box and makes it possible to + register item and action event listeners. + */ +published interface XListBox: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** registers a listener for item events. + */ + [oneway] void addItemListener( [in] com::sun::star::awt::XItemListener l ); + + //------------------------------------------------------------------------- + + /** unregisters a listener for item events. + */ + [oneway] void removeItemListener( [in] com::sun::star::awt::XItemListener l ); + + //------------------------------------------------------------------------- + + /** registers a listener for action events. + */ + [oneway] void addActionListener( [in] com::sun::star::awt::XActionListener l ); + + //------------------------------------------------------------------------- + + /** unregisters a listener for action events. + */ + [oneway] void removeActionListener( [in] com::sun::star::awt::XActionListener l ); + + //------------------------------------------------------------------------- + + /** adds an item at the specified position. + */ + [oneway] void addItem( [in] string aItem, + [in] short nPos ); + + //------------------------------------------------------------------------- + + /** adds multiple items at the specified position. + */ + [oneway] void addItems( [in] sequence<string> aItems, + [in] short nPos ); + + //------------------------------------------------------------------------- + + /** removes a number of items at the specified position. + */ + [oneway] void removeItems( [in] short nPos, + [in] short nCount ); + + //------------------------------------------------------------------------- + + /** returns the number of items in the listbox. + */ + short getItemCount(); + + //------------------------------------------------------------------------- + + /** returns the item at the specified position. + */ + string getItem( [in] short nPos ); + + //------------------------------------------------------------------------- + + /** returns all items of the list box. + */ + sequence<string> getItems(); + + //------------------------------------------------------------------------- + + /** returns the position of the currently selected item. + */ + short getSelectedItemPos(); + + //------------------------------------------------------------------------- + + /** returns the positions of all currently selected items. + */ + sequence<short> getSelectedItemsPos(); + + //------------------------------------------------------------------------- + + /** returns the currently selected item. + */ + string getSelectedItem(); + + //------------------------------------------------------------------------- + + /** returns all currently selected items. + */ + sequence<string> getSelectedItems(); + + //------------------------------------------------------------------------- + + /** selects/deselects the item at the specified position. + */ + [oneway] void selectItemPos( [in] short nPos, + [in] boolean bSelect ); + + //------------------------------------------------------------------------- + + /** selects/deselects multiple items at the specified positions. + */ + [oneway] void selectItemsPos( [in] sequence<short> aPositions, + [in] boolean bSelect ); + + //------------------------------------------------------------------------- + + /** selects/deselects the specified item. + */ + [oneway] void selectItem( [in] string aItem, + [in] boolean bSelect ); + + //------------------------------------------------------------------------- + + /** returns <true/> if multiple items can be selected, + <false/> if only one item can be selected. + */ + boolean isMutipleMode(); + + //------------------------------------------------------------------------- + + /** determines if only a single item or multiple items can be selected. + */ + [oneway] void setMultipleMode( [in] boolean bMulti ); + + //------------------------------------------------------------------------- + + /** returns the number of visible lines in drop down mode. + */ + short getDropDownLineCount(); + + //------------------------------------------------------------------------- + + /** sets the number of visible lines for drop down mode. + */ + [oneway] void setDropDownLineCount( [in] short nLines ); + + //------------------------------------------------------------------------- + + /** makes the item at the specified position visible by scrolling. + */ + [oneway] void makeVisible( [in] short nEntry ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XMenu.idl b/offapi/com/sun/star/awt/XMenu.idl new file mode 100644 index 000000000000..f9ebc738f18f --- /dev/null +++ b/offapi/com/sun/star/awt/XMenu.idl @@ -0,0 +1,142 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XMenu_idl__ +#define __com_sun_star_awt_XMenu_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + + published interface XPopupMenu; + published interface XMenuListener; + +//============================================================================= + +/** specifies a simple menu. + */ +published interface XMenu: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** adds the specified menu listener to receive events from this menu. + */ + [oneway] void addMenuListener( [in] XMenuListener xListener ); + + //------------------------------------------------------------------------- + + /** removes the specified menu listener so that it no longer + receives events from this menu. + */ + [oneway] void removeMenuListener( [in] XMenuListener xListener ); + + //------------------------------------------------------------------------- + + /** inserts an item into the menu. + + <p>The item is appended if the position is greater than or equal to + <code>getItemCount()</code> or if it is negative.</p> + */ + [oneway] void insertItem( [in] short nItemId, + [in] string aText, + [in] short nItemStyle, + [in] short nPos ); + + //------------------------------------------------------------------------- + + /** removes one or more items from the menu. + */ + [oneway] void removeItem( [in] short nPos, + [in] short nCount ); + + //------------------------------------------------------------------------- + + /** returns the number of items in the menu. + */ + short getItemCount(); + + //------------------------------------------------------------------------- + + /** returns the id of the item at the specified position. + */ + short getItemId( [in] short nPos ); + + //------------------------------------------------------------------------- + + /** returns the position of the item with the specified id. + */ + short getItemPos( [in] short nId ); + + //------------------------------------------------------------------------- + + /** enables or disables the menu item. + */ + [oneway] void enableItem( [in] short nItemId, + [in] boolean bEnable ); + + //------------------------------------------------------------------------- + + /** returns the state of the menu item. + */ + boolean isItemEnabled( [in] short nItemId ); + + //------------------------------------------------------------------------- + + /** sets the text for the menu item. + */ + [oneway] void setItemText( [in] short nItemId, + [in] string aText ); + + //------------------------------------------------------------------------- + + /** returns the string for the given item id. + */ + string getItemText( [in] short nItemId ); + + //------------------------------------------------------------------------- + + /** sets the popup menu for a specified menu item. + */ + [oneway] void setPopupMenu( [in] short nItemId, + [in] XPopupMenu aPopupMenu ); + + //------------------------------------------------------------------------- + + /** returns the popup menu from the menu item. + */ + XPopupMenu getPopupMenu( [in] short nItemId ); + +}; + + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XMenuBar.idl b/offapi/com/sun/star/awt/XMenuBar.idl new file mode 100644 index 000000000000..40d92b9f0b80 --- /dev/null +++ b/offapi/com/sun/star/awt/XMenuBar.idl @@ -0,0 +1,51 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XMenuBar_idl__ +#define __com_sun_star_awt_XMenuBar_idl__ + +#ifndef __com_sun_star_awt_XMenu_idl__ +#include <com/sun/star/awt/XMenu.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** identifies a menu bar. + */ +published interface XMenuBar: com::sun::star::awt::XMenu +{ +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XMenuBarExtended.idl b/offapi/com/sun/star/awt/XMenuBarExtended.idl new file mode 100755 index 000000000000..97fbbb39f7a9 --- /dev/null +++ b/offapi/com/sun/star/awt/XMenuBarExtended.idl @@ -0,0 +1,69 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XMenuBarExtended_idl__ +#define __com_sun_star_awt_XMenuBarExtended_idl__ + +#ifndef __com_sun_star_awt_XMenuBar_idl__ +#include <com/sun/star/awt/XMenuBar.idl> +#endif + +#ifndef __com_sun_star_awt_XMenuExtended2_idl__ +#include <com/sun/star/awt/XMenuExtended2.idl> +#endif + +#ifndef com_sun_star_graphic_XGraphic_idl +#include <com/sun/star/graphic/XGraphic.idl> +#endif + +#ifndef __com_sun_star_awt_Rectangle_idl__ +#include <com/sun/star/awt/Rectangle.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { + + interface XMenuBarButtonListener; + +//============================================================================= + +/** multiple-inheritance interface designed to ease the use of all functions + available for a <type scope="com::sun::star::awt">MenuBar</type>. + + @since OOo 3.1 + */ + interface XMenuBarExtended +{ + interface com::sun::star::awt::XMenuExtended2; + interface com::sun::star::awt::XMenuBar; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XMenuExtended.idl b/offapi/com/sun/star/awt/XMenuExtended.idl new file mode 100644 index 000000000000..ba850ca5d416 --- /dev/null +++ b/offapi/com/sun/star/awt/XMenuExtended.idl @@ -0,0 +1,80 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XMenuExtended_idl__ +#define __com_sun_star_awt_XMenuExtended_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { + +/** specifies extended menu functions. + */ + +interface XMenuExtended: com::sun::star::uno::XInterface +{ + /** sets the command string for the menu item. + + @param nItemId + specifies the menu item ID for which the command should be set. + + @param aCommand + specifies the command for the menu item. + */ + void setCommand( [in] short nItemId, [in] string aCommand ); + + /** retrieves the command string for the menu item. + + @param nItemId + specifies the menu item ID for which the command URL should be set. + */ + string getCommand( [in] short nItemId ); + + /** sets the help command string for the menu item. + + @param nItemId + specifies the menu item ID for which the help command URL be set. + + @param aCommand + specifies the help command for the menu item. + */ + void setHelpCommand( [in] short nItemId, [in] string aHelp ); + + /** retrieves the help command string for the menu item. + + @param nItemId + specifies the menu item ID for which the help command should be set. + */ + string getHelpCommand( [in] short nItemId ); +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XMenuExtended2.idl b/offapi/com/sun/star/awt/XMenuExtended2.idl new file mode 100755 index 000000000000..adba6816a9e8 --- /dev/null +++ b/offapi/com/sun/star/awt/XMenuExtended2.idl @@ -0,0 +1,112 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XMenuExtended2_idl__ +#define __com_sun_star_awt_XMenuExtended2_idl__ + +#ifndef __com_sun_star_awt_XMenu_idl__ +#include <com/sun/star/awt/XMenu.idl> +#endif + +#ifndef __com_sun_star_awt_XMenuExtended_idl__ +#include <com/sun/star/awt/XMenuExtended.idl> +#endif + +#ifndef __com_sun_star_awt_MenuItemType_idl__ +#include <com/sun/star/awt/MenuItemType.idl> +#endif + +#ifndef __com_sun_star_container_NoSuchElementException_idl__ +#include <com/sun/star/container/NoSuchElementException.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { + +/** specifies extended menu functions. + */ + +interface XMenuExtended2 +{ + /** specifies some extended menu functions, like setting a command URL and a help command for a menu item.<br> + These functions are available for both menu bar and popup menu. + */ + interface com::sun::star::awt::XMenuExtended; + + /** specifies basic menu functions. + */ + interface com::sun::star::awt::XMenu; + + + //========================================================================= + + /** checks whether an <type>XMenu</type> is an <type>XPopupMenu</type>. + + @return + <TRUE/> if the menu is a <type>PopupMenu</type>, <FALSE/> if it is a <type>MenuBar</type>. + */ + boolean isPopupMenu(); + + //......................................................................... + + /** removes all items from the menu. + */ + void clear(); + + //......................................................................... + + /** retrieves the type of the menu item. + + @param nItemPos + specifies the position of the menu item for which the item type is queried. + + @throws <type scope="com::sun::star::container">NoSuchElementException</type> + if there is no menu item in the position specified in <var>nItemPos</var>. + + @see MenuItemType + */ + ::com::sun::star::awt::MenuItemType getItemType( [in] short nItemPos ) + raises ( ::com::sun::star::container::NoSuchElementException ); + + //......................................................................... + + /** specifies whether disabled menu entries should be hidden, or not. + + @param bHide + if <TRUE/>, disabled menu entries are hidden. + + @see + <member scope="com::sun::star::awt">XMenu::enableItem()</member> + */ + void hideDisabledEntries( [in] boolean bHide ); + + +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XMenuListener.idl b/offapi/com/sun/star/awt/XMenuListener.idl new file mode 100644 index 000000000000..12f713f83fb4 --- /dev/null +++ b/offapi/com/sun/star/awt/XMenuListener.idl @@ -0,0 +1,79 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XMenuListener_idl__ +#define __com_sun_star_awt_XMenuListener_idl__ + +#ifndef __com_sun_star_lang_XEventListener_idl__ +#include <com/sun/star/lang/XEventListener.idl> +#endif + +#ifndef __com_sun_star_awt_MenuEvent_idl__ +#include <com/sun/star/awt/MenuEvent.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** makes it possible to receive menu events on a window. + */ +published interface XMenuListener: com::sun::star::lang::XEventListener +{ + //------------------------------------------------------------------------- + + /** is invoked when a menu item is highlighted. + */ + [oneway] void highlight( [in] com::sun::star::awt::MenuEvent rEvent ); + + //------------------------------------------------------------------------- + + /** is invoked when a menu item is selected. + */ + [oneway] void select( [in] com::sun::star::awt::MenuEvent rEvent ); + + //------------------------------------------------------------------------- + + /** is invoked when a menu is activated. + */ + [oneway] void activate( [in] com::sun::star::awt::MenuEvent rEvent ); + + //------------------------------------------------------------------------- + + /** is invoked when a menu is deactivated. + */ + [oneway] void deactivate( [in] com::sun::star::awt::MenuEvent rEvent ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XMessageBox.idl b/offapi/com/sun/star/awt/XMessageBox.idl new file mode 100644 index 000000000000..e10984a42f01 --- /dev/null +++ b/offapi/com/sun/star/awt/XMessageBox.idl @@ -0,0 +1,83 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XMessageBox_idl__ +#define __com_sun_star_awt_XMessageBox_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** gives access to a message box. + + @deprecated + */ +published interface XMessageBox: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** sets the caption text. + */ + [oneway] void setCaptionText( [in] string aText ); + + //------------------------------------------------------------------------- + + /** returns the caption text. + */ + string getCaptionText(); + + //------------------------------------------------------------------------- + + /** sets the message text. + */ + [oneway] void setMessageText( [in] string aText ); + + //------------------------------------------------------------------------- + + /** returns the message text. + */ + string getMessageText(); + + //------------------------------------------------------------------------- + + /** shows the message box. + */ + short execute(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XMessageBoxFactory.idl b/offapi/com/sun/star/awt/XMessageBoxFactory.idl new file mode 100644 index 000000000000..67898a19f17a --- /dev/null +++ b/offapi/com/sun/star/awt/XMessageBoxFactory.idl @@ -0,0 +1,108 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_XMessageBoxFactory_idl__ +#define __com_sun_star_awt_XMessageBoxFactory_idl__ + +#ifndef __com_sun_star_awt_XWindowPeer_idl__ +#include <com/sun/star/awt/XWindowPeer.idl> +#endif + +#ifndef __com_sun_star_awt_XMessageBox_idl__ +#include <com/sun/star/awt/XMessageBox.idl> +#endif + +#ifndef __com_sun_star_awt_MessageBoxButtons_idl__ +#include <com/sun/star/awt/MessageBoxButtons.idl> +#endif + +#ifndef __com_sun_star_awt_Rectangle_idl__ +#include <com/sun/star/awt/Rectangle.idl> +#endif + + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a factory interface for creating message boxes. + */ +published interface XMessageBoxFactory : com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** creates a message box. + + @returns + the created message box or a null reference if it cannot be + created. + + @param aParent + a valid XWindowPeer reference which is used as a parent. This parameter + must not be null. + + @param aPosSize + a rectangle which defines the position and size of the message + box in pixel. + + @param aType + a string which determines the message box type. + The following strings are defined. + <ul> + <li><b>infobox</b>A message box to inform the user about a certain event. + <b>Attention:</b><br/>This type of message box ignores the argument + aButton because a info box always shows a OK button. + </li> + <li><b>warningbox</b>A message to warn the user about a certain problem.</li> + <li><b>errorbox</b>A message box to provide an error message to the user.</li> + <li><b>querybox</b>A message box to query information from the user.</li> + <li><b>messbox</b>A normal message box.</li> + </ul> + + @param aButtons + specifies which buttons should be available on the + message box. A combination of + <type scope="com::sun::star::awt">MessageBoxButtons</type>. An <b>infobox</b> + ignores this paramter and always use button "OK". + + @param aTitle + specifies the title of the message box. + + @param aMessage + specifies text which will be shown by the message box. + Line-breaks must be added using 'CR' or 'CR+LF'. + */ + XMessageBox createMessageBox( [in] com::sun::star::awt::XWindowPeer aParent, [in] com::sun::star::awt::Rectangle aPosSize, [in] string aType, [in] long aButtons, [in] string aTitle, [in] string aMessage ); +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XMetricField.idl b/offapi/com/sun/star/awt/XMetricField.idl new file mode 100644 index 000000000000..5bc6a7da40e2 --- /dev/null +++ b/offapi/com/sun/star/awt/XMetricField.idl @@ -0,0 +1,163 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XMetricField_idl__ +#define __com_sun_star_awt_XMetricField_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif +#ifndef __com_sun_star_util_MeasureUnit_idl__ +#include <com/sun/star/util/MeasureUnit.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** gives access to the value and formatting of a metric field. + */ +interface XMetricField: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** sets the value which is displayed in the metric field. + */ + void setValue( [in] hyper Value, [in] short FieldUnit ); + + //------------------------------------------------------------------------- + + /** sets the user value which is displayed in the metric field. + */ + void setUserValue( [in] hyper Value, [in] short FieldUnit ); + + //------------------------------------------------------------------------- + + /** returns the value which is currently displayed in the metric field. + */ + hyper getValue( [in] short FieldUnit ); + + //------------------------------------------------------------------------- + + /** returns the corrected value which is displayed in the metric field. + */ + hyper getCorrectedValue( [in] short FieldUnit ); + + //------------------------------------------------------------------------- + + /** sets the minimum value that can be entered by the user. + */ + void setMin( [in] hyper Value, [in] short FieldUnit ); + + //------------------------------------------------------------------------- + + /** returns the currently set minimum value that can be entered by the + user. + */ + hyper getMin( [in] short FieldUnit ); + + //------------------------------------------------------------------------- + + /** sets the maximum value that can be entered by the user. + */ + void setMax( [in] hyper Value, [in] short FieldUnit ); + + //------------------------------------------------------------------------- + + /** returns the currently set maximum value that can be entered by the + user. + */ + hyper getMax( [in] short FieldUnit ); + + //------------------------------------------------------------------------- + + /** sets the first value to be set on POS1 key. + */ + void setFirst( [in] hyper Value, [in] short FieldUnit ); + + //------------------------------------------------------------------------- + + /** returns the currently set first value which is set on POS1 key. + */ + hyper getFirst( [in] short FieldUnit ); + + //------------------------------------------------------------------------- + + /** sets the last value to be set on END key. + */ + void setLast( [in] hyper Value, [in] short FieldUnit ); + + //------------------------------------------------------------------------- + + /** returns the currently set last value which is set on END key. + */ + hyper getLast( [in] short FieldUnit ); + + //------------------------------------------------------------------------- + + /** sets the increment value for the spin button. + */ + void setSpinSize( [in] hyper Value ); + + //------------------------------------------------------------------------- + + /** returns the currently set increment value for the spin button. + */ + hyper getSpinSize(); + + //------------------------------------------------------------------------- + + /** sets the number of decimals. + */ + void setDecimalDigits( [in] short nDigits ); + + //------------------------------------------------------------------------- + + /** returns the currently set number of decimals. + */ + short getDecimalDigits(); + + //------------------------------------------------------------------------- + + /** determines if the format is checked during user input. + */ + void setStrictFormat( [in] boolean bStrict ); + + //------------------------------------------------------------------------- + + /** returns whether the format is currently checked during user input. + */ + boolean isStrictFormat(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XMouseClickHandler.idl b/offapi/com/sun/star/awt/XMouseClickHandler.idl new file mode 100644 index 000000000000..ad98f9012cba --- /dev/null +++ b/offapi/com/sun/star/awt/XMouseClickHandler.idl @@ -0,0 +1,83 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XMouseClickHandler_idl__ +#define __com_sun_star_awt_XMouseClickHandler_idl__ + +#ifndef __com_sun_star_lang_XEventListener_idl__ +#include <com/sun/star/lang/XEventListener.idl> +#endif + +#ifndef __com_sun_star_awt_MouseEvent_idl__ +#include <com/sun/star/awt/MouseEvent.idl> +#endif + + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** makes it possible to receive events from the mouse in a certain window. + + @since OOo 1.1.2 + */ +published interface XMouseClickHandler: ::com::sun::star::lang::XEventListener +{ + //------------------------------------------------------------------------- + + /** is invoked when a mouse button has been pressed on a window. + + @return + When <FALSE/> is returned the other handlers are called and a + following handling of the event by the broadcaster takes place. + Otherwise, when <TRUE/> is returned, no other handler will be + called and the broadcaster will take no further actions + regarding the event. + */ + boolean mousePressed( [in] com::sun::star::awt::MouseEvent e ); + + //------------------------------------------------------------------------- + + /** is invoked when a mouse button has been released on a window. + + @return + When <FALSE/> is returned the other handlers are called and a + following handling of the event by the broadcaster takes place. + Otherwise, when <TRUE/> is returned, no other handler will be + called and the broadcaster will take no further actions + regarding the event. + */ + boolean mouseReleased( [in] com::sun::star::awt::MouseEvent e ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XMouseListener.idl b/offapi/com/sun/star/awt/XMouseListener.idl new file mode 100644 index 000000000000..d89f1e910fde --- /dev/null +++ b/offapi/com/sun/star/awt/XMouseListener.idl @@ -0,0 +1,88 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XMouseListener_idl__ +#define __com_sun_star_awt_XMouseListener_idl__ + +#ifndef __com_sun_star_lang_XEventListener_idl__ +#include <com/sun/star/lang/XEventListener.idl> +#endif + +#ifndef __com_sun_star_awt_MouseEvent_idl__ +#include <com/sun/star/awt/MouseEvent.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** makes it possible to receive events from the mouse in a certain window. + */ +published interface XMouseListener: com::sun::star::lang::XEventListener +{ + //------------------------------------------------------------------------- + + /** is invoked when a mouse button has been pressed on a window. + + <p>Since mouse presses are usually also used to indicate requests for popup menus + (also known as context menus) on objects, you might receive two events + for a single mouse press: For example, if, on your operating system, + pressing the right mouse button indicates the request for a context menu, + then you will receive one call to <member>mousePressed</member> indicating + the mouse click, and another one indicating the context menu request. For + the latter, the <member>MouseEvent::PopupTrigger</member> member of the + event will be set to <TRUE/>.</p> + */ + [oneway] void mousePressed( [in] com::sun::star::awt::MouseEvent e ); + + //------------------------------------------------------------------------- + + /** is invoked when a mouse button has been released on a window. + */ + [oneway] void mouseReleased( [in] com::sun::star::awt::MouseEvent e ); + + //------------------------------------------------------------------------- + + /** is invoked when the mouse enters a window. + */ + [oneway] void mouseEntered( [in] com::sun::star::awt::MouseEvent e ); + + //------------------------------------------------------------------------- + + /** is invoked when the mouse exits a window. + */ + [oneway] void mouseExited( [in] com::sun::star::awt::MouseEvent e ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XMouseMotionHandler.idl b/offapi/com/sun/star/awt/XMouseMotionHandler.idl new file mode 100644 index 000000000000..541419711036 --- /dev/null +++ b/offapi/com/sun/star/awt/XMouseMotionHandler.idl @@ -0,0 +1,90 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XMouseMotionHandler_idl__ +#define __com_sun_star_awt_XMouseMotionHandler_idl__ + +#ifndef __com_sun_star_lang_XEventListener_idl__ +#include <com/sun/star/lang/XEventListener.idl> +#endif + +#ifndef __com_sun_star_awt_MouseEvent_idl__ +#include <com/sun/star/awt/MouseEvent.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** makes it possible to receive mouse motion events on a window. + */ +published interface XMouseMotionHandler: com::sun::star::lang::XEventListener +{ + //------------------------------------------------------------------------- + + /** is invoked when a mouse button is pressed on a window and then + dragged. + + <p>Mouse drag events will continue to be delivered to + the window where the first event originated until the mouse button is + released (regardless of whether the mouse position is within the + bounds of the window).</p> + + @return + When <FALSE/> is returned the other handlers are called and a + following handling of the event by the broadcaster takes place. + Otherwise, when <TRUE/> is returned, no other handler will be + called and the broadcaster will take no further actions + regarding the event. + + */ + boolean mouseDragged( [in] com::sun::star::awt::MouseEvent e ); + + //------------------------------------------------------------------------- + + /** is invoked when the mouse button has been moved on a window + (with no buttons down). + + @return + When <FALSE/> is returned the other handlers are called and a + following handling of the event by the broadcaster takes place. + Otherwise, when <TRUE/> is returned, no other handler will be + called and the broadcaster will take no further actions + regarding the event. + + */ + boolean mouseMoved( [in] com::sun::star::awt::MouseEvent e ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XMouseMotionListener.idl b/offapi/com/sun/star/awt/XMouseMotionListener.idl new file mode 100644 index 000000000000..66f2bf8bd9db --- /dev/null +++ b/offapi/com/sun/star/awt/XMouseMotionListener.idl @@ -0,0 +1,74 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XMouseMotionListener_idl__ +#define __com_sun_star_awt_XMouseMotionListener_idl__ + +#ifndef __com_sun_star_lang_XEventListener_idl__ +#include <com/sun/star/lang/XEventListener.idl> +#endif + +#ifndef __com_sun_star_awt_MouseEvent_idl__ +#include <com/sun/star/awt/MouseEvent.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** makes it possible to receive mouse motion events on a window. + */ +published interface XMouseMotionListener: com::sun::star::lang::XEventListener +{ + //------------------------------------------------------------------------- + + /** is invoked when a mouse button is pressed on a window and then + dragged. + + <p>Mouse drag events will continue to be delivered to + the window where the first event originated until the mouse button is + released (regardless of whether the mouse position is within the + bounds of the window).</p> + */ + void mouseDragged( [in] com::sun::star::awt::MouseEvent e ); + + //------------------------------------------------------------------------- + + /** is invoked when the mouse button has been moved on a window + (with no buttons down). + */ + void mouseMoved( [in] com::sun::star::awt::MouseEvent e ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XNumericField.idl b/offapi/com/sun/star/awt/XNumericField.idl new file mode 100644 index 000000000000..f07131c453b1 --- /dev/null +++ b/offapi/com/sun/star/awt/XNumericField.idl @@ -0,0 +1,149 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XNumericField_idl__ +#define __com_sun_star_awt_XNumericField_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** gives access to the value and formatting of a numeric field. + */ +published interface XNumericField: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** sets the value which is displayed in the numeric field. + */ + [oneway] void setValue( [in] double Value ); + + //------------------------------------------------------------------------- + + /** returns the value which is currently displayed in the numeric field. + */ + double getValue(); + + //------------------------------------------------------------------------- + + /** sets the minimum value that can be entered by the user. + */ + [oneway] void setMin( [in] double Value ); + + //------------------------------------------------------------------------- + + /** returns the currently set minimum value that can be entered by the + user. + */ + double getMin(); + + //------------------------------------------------------------------------- + + /** sets the maximum value that can be entered by the user. + */ + [oneway] void setMax( [in] double Value ); + + //------------------------------------------------------------------------- + + /** returns the currently set maximum value that can be entered by the + user. + */ + double getMax(); + + //------------------------------------------------------------------------- + + /** sets the first value to be set on POS1 key. + */ + [oneway] void setFirst( [in] double Value ); + + //------------------------------------------------------------------------- + + /** returns the currently set first value which is set on POS1 key. + */ + double getFirst(); + + //------------------------------------------------------------------------- + + /** sets the last value to be set on END key. + */ + [oneway] void setLast( [in] double Value ); + + //------------------------------------------------------------------------- + + /** returns the currently set last value which is set on END key. + */ + double getLast(); + + //------------------------------------------------------------------------- + + /** sets the increment value for the spin button. + */ + [oneway] void setSpinSize( [in] double Value ); + + //------------------------------------------------------------------------- + + /** returns the currently set increment value for the spin button. + */ + double getSpinSize(); + + //------------------------------------------------------------------------- + + /** sets the number of decimals. + */ + [oneway] void setDecimalDigits( [in] short nDigits ); + + //------------------------------------------------------------------------- + + /** returns the currently set number of decimals. + */ + short getDecimalDigits(); + + //------------------------------------------------------------------------- + + /** determines if the format is checked during user input. + */ + [oneway] void setStrictFormat( [in] boolean bStrict ); + + //------------------------------------------------------------------------- + + /** returns whether the format is currently checked during user input. + */ + boolean isStrictFormat(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XPaintListener.idl b/offapi/com/sun/star/awt/XPaintListener.idl new file mode 100644 index 000000000000..95874a5d6e10 --- /dev/null +++ b/offapi/com/sun/star/awt/XPaintListener.idl @@ -0,0 +1,62 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XPaintListener_idl__ +#define __com_sun_star_awt_XPaintListener_idl__ + +#ifndef __com_sun_star_lang_XEventListener_idl__ +#include <com/sun/star/lang/XEventListener.idl> +#endif + +#ifndef __com_sun_star_awt_PaintEvent_idl__ +#include <com/sun/star/awt/PaintEvent.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** makes it possible to receive paint events. + */ +published interface XPaintListener: com::sun::star::lang::XEventListener +{ + //------------------------------------------------------------------------- + + /** is invoked when a region of the window became invalid, e.g. when + another window has been moved away. + */ + [oneway] void windowPaint( [in] com::sun::star::awt::PaintEvent e ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XPatternField.idl b/offapi/com/sun/star/awt/XPatternField.idl new file mode 100644 index 000000000000..2db8433f8e57 --- /dev/null +++ b/offapi/com/sun/star/awt/XPatternField.idl @@ -0,0 +1,89 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XPatternField_idl__ +#define __com_sun_star_awt_XPatternField_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** gives access to the value and formatting of a pattern field. + */ +published interface XPatternField: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** sets the pattern mask. + */ + [oneway] void setMasks( [in] string EditMask, + [in] string LiteralMask ); + + //------------------------------------------------------------------------- + + /** returns the currently set pattern mask. + */ + void getMasks( [out] string EditMask, + [out] string LiteralMask ); + + //------------------------------------------------------------------------- + + /** sets the string value of the pattern field. + */ + [oneway] void setString( [in] string Str ); + + //------------------------------------------------------------------------- + + /** returns the currently set string value of the pattern field. + */ + string getString(); + + //------------------------------------------------------------------------- + + /** determines if the format is checked during user input. + */ + [oneway] void setStrictFormat( [in] boolean bStrict ); + + //------------------------------------------------------------------------- + + /** returns whether the format is currently checked during user input. + */ + boolean isStrictFormat(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XPointer.idl b/offapi/com/sun/star/awt/XPointer.idl new file mode 100644 index 000000000000..63e5f99944d9 --- /dev/null +++ b/offapi/com/sun/star/awt/XPointer.idl @@ -0,0 +1,64 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XPointer_idl__ +#define __com_sun_star_awt_XPointer_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** gives access to the type of mouse pointer. + */ +published interface XPointer: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** selects a <type>SystemPointer</type> for this mouse pointer. + */ + [oneway] void setType( [in] long nType ); + + //------------------------------------------------------------------------- + + /** returns the currently set <type>SystemPointer</type> of this mouse + pointer. + */ + long getType(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XPopupMenu.idl b/offapi/com/sun/star/awt/XPopupMenu.idl new file mode 100644 index 000000000000..62280d4c6c89 --- /dev/null +++ b/offapi/com/sun/star/awt/XPopupMenu.idl @@ -0,0 +1,96 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XPopupMenu_idl__ +#define __com_sun_star_awt_XPopupMenu_idl__ + +#ifndef __com_sun_star_awt_XMenu_idl__ +#include <com/sun/star/awt/XMenu.idl> +#endif + +#ifndef __com_sun_star_awt_Rectangle_idl__ +#include <com/sun/star/awt/Rectangle.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { + + published interface XWindowPeer; + +//============================================================================= + +/** controls a popup menu. + */ +published interface XPopupMenu: XMenu +{ + //------------------------------------------------------------------------- + + /** inserts a separator at the specified position. + */ + [oneway] void insertSeparator( [in] short nPos ); + + //------------------------------------------------------------------------- + + /** sets the menu default item. + */ + [oneway] void setDefaultItem( [in] short nItemId ); + + //------------------------------------------------------------------------- + + /** returns the menu default item. + */ + short getDefaultItem(); + + //------------------------------------------------------------------------- + + /** sets the state of the item to be checked or unchecked. + */ + [oneway] void checkItem( [in] short nItemId, + [in] boolean bCheck ); + + //------------------------------------------------------------------------- + + /** returns whether the item is checked or unchecked. + */ + boolean isItemChecked( [in] short nItemId ); + + //------------------------------------------------------------------------- + + /** executes the popup menu and returns the selected item + or <code>0</code>, if cancelled. + */ + short execute( [in] XWindowPeer Parent, + [in] Rectangle Area, + [in] short Direction ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XPopupMenuExtended.idl b/offapi/com/sun/star/awt/XPopupMenuExtended.idl new file mode 100755 index 000000000000..ecec10fad8ea --- /dev/null +++ b/offapi/com/sun/star/awt/XPopupMenuExtended.idl @@ -0,0 +1,361 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XPopupMenuExtended_idl__ +#define __com_sun_star_awt_XPopupMenuExtended_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XPopupMenu_idl__ +#include <com/sun/star/awt/XPopupMenu.idl> +#endif + +#ifndef __com_sun_star_awt_XMenuExtended2_idl__ +#include <com/sun/star/awt/XMenuExtended2.idl> +#endif + +#ifndef __com_sun_star_awt_MenuLogo_idl__ +#include <com/sun/star/awt/MenuLogo.idl> +#endif + +#ifndef __com_sun_star_container_NoSuchElementException_idl__ +#include <com/sun/star/container/NoSuchElementException.idl> +#endif + +#ifndef __com_sun_star_awt_KeyEvent_idl__ +#include <com/sun/star/awt/KeyEvent.idl> +#endif + +#ifndef com_sun_star_graphic_XGraphic_idl +#include <com/sun/star/graphic/XGraphic.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { + +/** specifies extended functions for a <type scope="com::sun::star::awt">PopupMenu</type>. + + @since OOo 3.1 + */ +interface XPopupMenuExtended +{ + /** specifies basic functions for a popup menu. + */ + interface ::com::sun::star::awt::XPopupMenu; + + /** specifies extended menu functions, available for both + <type scope="com::sun::star::awt">MenuBar</type> and + <type scope="com::sun::star::awt">PopupMenu</type>. + */ + interface ::com::sun::star::awt::XMenuExtended2; + + //========================================================================= + + /** queries if the <type scope="com::sun::star::awt">PopupMenu</type> + is being executed as a result of invoking + <member scope="com::sun::star::awt">XPopupMenu::execute()</member>; that is, + for a <type>PopupMenu</type> activated by a <type>MenuBar</type> item, + this methods returns <FALSE/>. + + @return + <TRUE/> if the <type scope="com::sun::star::awt">PopupMenu</type> + is being executed, <FALSE/> otherwise. + + @see <member scope="com::sun::star::awt">XPopupMenu::execute()</member> + + @since OOo 3.1 + */ + boolean isInExecute(); + + /** ends the execution of the <type scope="com::sun::star::awt">PopupMenu</type>. + <member scope="com::sun::star::awt">XPopupMenu::execute()</member> will then return 0. + + @see <member scope="com::sun::star::awt">XPopupMenu::execute()</member> + + @since OOo 3.1 + */ + void endExecute(); + + //============================================================================= + + /** sets the <type>MenuLogo</type> for this <type>PopupMenu</type>. + + @param aMenuLogo + the <type>MenuLogo</type>. + + @since OOo 3.1 + */ + void setLogo( [in] ::com::sun::star::awt::MenuLogo aMenuLogo ); + + /** retrieves the <type>MenuLogo</type> for this <type>PopupMenu</type>. + + @return + the <type>MenuLogo</type>. + + @since OOo 3.1 + */ + ::com::sun::star::awt::MenuLogo getLogo(); + + + //========================================================================= + + + /** specifies whether mnemonics are automatically assigned to menu items, or not. + + @param bEnable + if <TRUE/>, mnemonics are automatically assigned to menu items. + */ + void enableAutoMnemonics( [in] boolean bEnable ); + + + //========================================================================= + + /** sets the <type>KeyEvent</type> for the menu item. + + <p>The <type>KeyEvent</type> is <b>only</b> used as a container to transport + the shortcut information, this methods only draws the text corresponding to + this keyboard shortcut. The client code is responsible for listening to + keyboard events (typicaly done via <type>XUserInputInterception</type>), + and dispatch the respective command.</p> + + @param nItemId + specifies the menu item identifier for which the <type>KeyEvent</type> should be set. + + @param aKeyEvent + specifies the <type>KeyEvent</type> for the menu item. + + @throws <type scope="com::sun::star::container">NoSuchElementException</type> + if there is no menu item with the identifier specified in <var>nItemId</var>. + + @since OOo 3.1 + */ + void setAcceleratorKeyEvent( [in] short nItemId, [in] ::com::sun::star::awt::KeyEvent aKeyEvent ) + raises ( ::com::sun::star::container::NoSuchElementException ); + + /** retrieves the <type>KeyEvent</type> for the menu item. + + <p>The <type>KeyEvent</type> is <b>only</b> used as a container to transport + the shortcut information, so that in this case + <member scope="::com::sun::star::lang::">EventObject::Source</member> is <NULL/>.</p> + + @param nItemId + specifies the menu item identifier for which the <type>KeyEvent</type> should be retrieved. + + @return + the <type>KeyEvent</type> struct assigned to the requested menu item. + + @throws <type scope="com::sun::star::container">NoSuchElementException</type> + if there is no menu item with the identifier specified in <var>nItemId</var>. + + @since OOo 3.1 + */ + ::com::sun::star::awt::KeyEvent getAcceleratorKeyEvent( [in] short nItemId ) + raises ( ::com::sun::star::container::NoSuchElementException ); + + //============================================================================= + + /** sets the help text for the menu item. + + @param nItemId + specifies the menu item identifier for which the help text should be set. + + @param sHelpText + specifies the help text for the menu item. + + @throws <type scope="com::sun::star::container">NoSuchElementException</type> + if there is no menu item with the identifier specified in <var>nItemId</var>. + + @since OOo 3.1 + */ + void setHelpText( [in] short nItemId, [in] string sHelpText ) + raises ( ::com::sun::star::container::NoSuchElementException ); + + /** retrieves the help text for the menu item. + + @param nItemId + specifies the menu item identifier for which the help text should be retrieved. + + @return + a string with the help text. + + @throws <type scope="com::sun::star::container">NoSuchElementException</type> + if there is no menu item with the identifier specified in <var>nItemId</var>. + + @since OOo 3.1 + */ + string getHelpText( [in] short nItemId ) + raises ( ::com::sun::star::container::NoSuchElementException ); + + //============================================================================= + + /** sets the tip help text for the menu item. + + @param nItemId + specifies the menu item identifier for which the tip help text should be set. + + @param sTipHelpText + specifies the tip help text for the menu item. + + @throws <type scope="com::sun::star::container">NoSuchElementException</type> + if there is no menu item with the identifier specified in <var>nItemId</var>. + + @since OOo 3.1 + */ + void setTipHelpText( [in] short nItemId, [in] string sTipHelpText ) + raises ( ::com::sun::star::container::NoSuchElementException ); + + /** retrieves the tip help text for the menu item. + + @param nItemId + specifies the menu item identifier for which the tip help text should be retrieved. + + @return + a string with the tip help text. + + @throws <type scope="com::sun::star::container">NoSuchElementException</type> + if there is no menu item with the identifier specified in <var>nItemId</var>. + + @since OOo 3.1 + */ + string getTipHelpText( [in] short nItemId ) + raises ( ::com::sun::star::container::NoSuchElementException ); + + //============================================================================= + + /** sets the image for the menu item. + + @param nItemId + specifies the menu item identifier for which the image should be set. + + @param xGraphic + specifies the image for the menu item. + + @param bScale + if <TRUE/>, the image will be scaled to the standard size used internally by + the implementation. + + @throws <type scope="com::sun::star::container">NoSuchElementException</type> + if there is no menu item with the identifier specified in <var>nItemId</var>. + + @since OOo 3.1 + */ + void setItemImage( [in] short nItemId, + [in] ::com::sun::star::graphic::XGraphic xGraphic, + [in] boolean bScale ) + raises ( ::com::sun::star::container::NoSuchElementException ); + + /** retrieves the image for the menu item. + + @param nItemId + specifies the menu item identifier for which the image should be retrieved. + + @return + a <type scope="::com::sun::star::graphic::">XGraphic</type> reference + to the current image for the requested menu item. + + @throws <type scope="com::sun::star::container">NoSuchElementException</type> + if there is no menu item with the identifier specified in <var>nItemId</var>. + + @since OOo 3.1 + */ + ::com::sun::star::graphic::XGraphic getItemImage( [in] short nItemId ) + raises ( ::com::sun::star::container::NoSuchElementException ); + + //............................................................................. + + + /** sets the rotation angle of a menu item image. + + @param nItemId + specifies the menu item identifier for which the image angle should be set. + + @param nAngle + specifies the rotation angle for the menu item image. + + @throws <type scope="com::sun::star::container">NoSuchElementException</type> + if there is no menu item with the identifier specified in <var>nItemId</var>. + + @since OOo 3.1 + */ + void setItemImageAngle( [in] short nItemId, [in] long nAngle ) + raises ( ::com::sun::star::container::NoSuchElementException ); + + /** retrieves the rotation angle of a menu item image. + + @param nItemId + specifies the menu item identifier for which the rotation angle should be retrieved. + + @return the rotation angle of the menu item image, or 0 if it has no rotation. + + @throws <type scope="com::sun::star::container">NoSuchElementException</type> + if there is no menu item with the identifier specified in <var>nItemId</var>. + + @since OOo 3.1 + */ + long getItemImageAngle( [in] short nItemId ) + raises ( ::com::sun::star::container::NoSuchElementException ); + + //............................................................................. + + /** sets the mirror mode of a menu item image. + + @param nItemId + specifies the menu item identifier for which the mirror mode should be set. + + @param bMirror + if <TRUE/>, the item image is mirrored. + + @throws <type scope="com::sun::star::container">NoSuchElementException</type> + if there is no menu item with the identifier specified in <var>nItemId</var>. + + @since OOo 3.1 + */ + void setItemImageMirrorMode( [in] short nItemId, [in] boolean bMirror ) + raises ( ::com::sun::star::container::NoSuchElementException ); + + /** indicates whether the menu item image is mirrored. + + @param nItemId + specifies the menu item identifier for which the image mirror mode should be checked. + + @return <TRUE/> if the item image is mirrored, <FALSE/> otherwise. + + @throws <type scope="com::sun::star::container">NoSuchElementException</type> + if there is no menu item with the identifier specified in <var>nItemId</var>. + + @since OOo 3.1 + */ + boolean isItemImageInMirrorMode( [in] short nItemId ) + raises ( ::com::sun::star::container::NoSuchElementException ); + +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XPrinter.idl b/offapi/com/sun/star/awt/XPrinter.idl new file mode 100644 index 000000000000..4b600ad4ab01 --- /dev/null +++ b/offapi/com/sun/star/awt/XPrinter.idl @@ -0,0 +1,124 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XPrinter_idl__ +#define __com_sun_star_awt_XPrinter_idl__ + +#ifndef __com_sun_star_awt_XPrinterPropertySet_idl__ +#include <com/sun/star/awt/XPrinterPropertySet.idl> +#endif + +#ifndef __com_sun_star_awt_PrinterException_idl__ +#include <com/sun/star/awt/PrinterException.idl> +#endif + +#ifndef __com_sun_star_lang_IllegalArgumentException_idl__ +#include <com/sun/star/lang/IllegalArgumentException.idl> +#endif + +#ifndef __com_sun_star_awt_XDevice_idl__ +#include <com/sun/star/awt/XDevice.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** represents a virtual printer. + + <p>All properties are vetoable properties. + If you change the properties between a call to + <member scope="com::sun::star::awt">XPrinter::startPage</member> and a call + to <member scope="com::sun::star::awt">XPrinter::endPage</member>, + a <type scope="com::sun::star::beans">PropertyVetoException</type> is + thrown.</p> + */ +published interface XPrinter: com::sun::star::awt::XPrinterPropertySet +{ + //------------------------------------------------------------------------- + + /** puts the job into the printer spooler. + + <p>This call may block the thread. So release all resources + (mutex, semaphore, etc.) before this call.</p> + */ + boolean start( [in] string nJobName, + [in] short nCopies, + [in] boolean nCollate ) + raises( com::sun::star::awt::PrinterException, + com::sun::star::lang::IllegalArgumentException ); + + //------------------------------------------------------------------------- + + /** notifies the printer spooler that the job is done and printing + starts. + + @see terminate + */ + void end() + raises( com::sun::star::awt::PrinterException ); + + //------------------------------------------------------------------------- + + /** stops the current print job. + + <p>If the method + <member scope="com::sun::star::awt">XPrinter::end</member> + is called beforehand, then this call does nothing. If you call + <member scope="com::sun::star::awt">XPrinter::terminate</member> + in or before the call to + <member scope="com::sun::star::awt">XPrinter::start</member>, + <member scope="com::sun::star::awt">XPrinter::terminate</member> + returns <FALSE/>. This call must not block the thread.</p> + + @see end + */ + void terminate(); + + //------------------------------------------------------------------------- + + /** begins with a new page. + */ + com::sun::star::awt::XDevice startPage() + raises( com::sun::star::awt::PrinterException ); + + //------------------------------------------------------------------------- + + /** ends the current page. + */ + void endPage() + raises( com::sun::star::awt::PrinterException ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XPrinterPropertySet.idl b/offapi/com/sun/star/awt/XPrinterPropertySet.idl new file mode 100644 index 000000000000..9dde4b077fe6 --- /dev/null +++ b/offapi/com/sun/star/awt/XPrinterPropertySet.idl @@ -0,0 +1,109 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XPrinterPropertySet_idl__ +#define __com_sun_star_awt_XPrinterPropertySet_idl__ + +#ifndef __com_sun_star_beans_XPropertySet_idl__ +#include <com/sun/star/beans/XPropertySet.idl> +#endif + +#ifndef __com_sun_star_beans_PropertyVetoException_idl__ +#include <com/sun/star/beans/PropertyVetoException.idl> +#endif + +#ifndef __com_sun_star_lang_IllegalArgumentException_idl__ +#include <com/sun/star/lang/IllegalArgumentException.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** represents an extended property set for printer properties. + + <p>All properties are vetoable properties. If you change the properties + between <member scope="com::sun::star::awt">XPrinter::startPage</member> + and <member scope="com::sun::star::awt">XPrinter::endPage</member>, a + <type scope="com::sun::star::beans">PropertyVetoException</type> + is thrown.</p> + + @see XPrinter + @see XInfoPrinter + */ +published interface XPrinterPropertySet: com::sun::star::beans::XPropertySet +{ + //------------------------------------------------------------------------- + + /** sets the orientation. + */ + void setHorizontal( [in] boolean bHorizontal ) + raises( com::sun::star::beans::PropertyVetoException, + com::sun::star::lang::IllegalArgumentException ); + + //------------------------------------------------------------------------- + + /** returns descriptions of all available printer forms. + */ + sequence<string> getFormDescriptions(); + + //------------------------------------------------------------------------- + + /** sets the form that should be used. + + <p>Indirectly a printer is selected.</p> + */ + void selectForm( [in] string aFormDescription ) + raises( com::sun::star::beans::PropertyVetoException, + com::sun::star::lang::IllegalArgumentException ); + + //------------------------------------------------------------------------- + + /** returns a binary encoded version of the printer setup. + */ + sequence<byte> getBinarySetup(); + + //------------------------------------------------------------------------- + + /** sets the data specific to the printer driver. + + <p>Get this data from the info printer and set the data to the + printer.</p> + */ + void setBinarySetup( [in] sequence<byte> data ) + raises( com::sun::star::beans::PropertyVetoException, + com::sun::star::lang::IllegalArgumentException ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XPrinterServer.idl b/offapi/com/sun/star/awt/XPrinterServer.idl new file mode 100644 index 000000000000..275590e3e665 --- /dev/null +++ b/offapi/com/sun/star/awt/XPrinterServer.idl @@ -0,0 +1,84 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XPrinterServer_idl__ +#define __com_sun_star_awt_XPrinterServer_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XPrinter_idl__ +#include <com/sun/star/awt/XPrinter.idl> +#endif + +#ifndef __com_sun_star_awt_XInfoPrinter_idl__ +#include <com/sun/star/awt/XInfoPrinter.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** manages several printers on one machine. + */ +published interface XPrinterServer: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** returns a list of all available printer names. + */ + sequence<string> getPrinterNames(); + + //------------------------------------------------------------------------- + + /** creates a new virtual printer. + + <p>You must call + <member scope="com::sun::star::awt">XPrinter::start</member> + to put the job into the printer spooler.</p> + */ + com::sun::star::awt::XPrinter createPrinter( [in] string printerName ); + + //------------------------------------------------------------------------- + + /** creates a new information printer. + + <p>You can get all information from this printer, + but the printer cannot really print.</p> + */ + com::sun::star::awt::XInfoPrinter createInfoPrinter( [in] string printerName ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XProgressBar.idl b/offapi/com/sun/star/awt/XProgressBar.idl new file mode 100644 index 000000000000..6107c1211105 --- /dev/null +++ b/offapi/com/sun/star/awt/XProgressBar.idl @@ -0,0 +1,89 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XProgressBar_idl__ +#define __com_sun_star_awt_XProgressBar_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** gives access to the value and settings of a progress bar. + */ +published interface XProgressBar: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** sets the foreground color (RGB) of the control. + */ + [oneway] void setForegroundColor( [in] com::sun::star::util::Color Color ); + + //------------------------------------------------------------------------- + + /** sets the background color (RGB) of the control. + */ + [oneway] void setBackgroundColor( [in] com::sun::star::util::Color Color ); + + //------------------------------------------------------------------------- + + /** sets the minimum and the maximum progress value of the progress bar. + + <p>If the minimum value is greater than the maximum value, the method + exchanges the values automatically.</p> + */ + [oneway] void setRange( [in] long Min, + [in] long Max ); + + //------------------------------------------------------------------------- + + /** sets the progress value of the progress bar. + */ + [oneway] void setValue( [in] long Value ); + + //------------------------------------------------------------------------- + + /** returns the current progress value of the progress bar. + */ + long getValue(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XProgressMonitor.idl b/offapi/com/sun/star/awt/XProgressMonitor.idl new file mode 100644 index 000000000000..74cda157a017 --- /dev/null +++ b/offapi/com/sun/star/awt/XProgressMonitor.idl @@ -0,0 +1,71 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XProgressMonitor_idl__ +#define __com_sun_star_awt_XProgressMonitor_idl__ + +#ifndef __com_sun_star_awt_XProgressBar_idl__ +#include <com/sun/star/awt/XProgressBar.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** gives access to the text of a progress monitor. + + @deprecated + */ +published interface XProgressMonitor: com::sun::star::awt::XProgressBar +{ + //------------------------------------------------------------------------- + + /** adds a new text line to the control. + */ + [oneway] void addText ( [in] string Topic, [in] string Text, [in] boolean beforeProgress ) ; + + //------------------------------------------------------------------------- + + /** removes a text line from the control. + */ + [oneway] void removeText ( [in] string Topic, [in] boolean beforeProgress ) ; + + //------------------------------------------------------------------------- + + /** updates an existing text line at the control. + */ + [oneway] void updateText ( [in] string Topic, [in] string Text, [in] boolean beforeProgress ) ; + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XRadioButton.idl b/offapi/com/sun/star/awt/XRadioButton.idl new file mode 100644 index 000000000000..18a05a9cb5fe --- /dev/null +++ b/offapi/com/sun/star/awt/XRadioButton.idl @@ -0,0 +1,86 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XRadioButton_idl__ +#define __com_sun_star_awt_XRadioButton_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XItemListener_idl__ +#include <com/sun/star/awt/XItemListener.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** gives access to the state of a radio button and makes it possible + to register item event listeners. + */ +published interface XRadioButton: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** registers a listener for item events. + */ + [oneway] void addItemListener( [in] com::sun::star::awt::XItemListener l ); + + //------------------------------------------------------------------------- + + /** unregisters a listener for item events. + */ + [oneway] void removeItemListener( [in] com::sun::star::awt::XItemListener l ); + + //------------------------------------------------------------------------- + + /** returns <true/> if the button is checked, <false/> otherwise. + */ + boolean getState(); + + //------------------------------------------------------------------------- + + /** sets the state of the radio button. + */ + [oneway] void setState( [in] boolean b ); + + //------------------------------------------------------------------------- + + /** sets the label of the radio button. + */ + [oneway] void setLabel( [in] string Label ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XRegion.idl b/offapi/com/sun/star/awt/XRegion.idl new file mode 100644 index 000000000000..eabc39ac6697 --- /dev/null +++ b/offapi/com/sun/star/awt/XRegion.idl @@ -0,0 +1,130 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XRegion_idl__ +#define __com_sun_star_awt_XRegion_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_Rectangle_idl__ +#include <com/sun/star/awt/Rectangle.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** manages multiple rectangles which make up a region. + */ +published interface XRegion: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** returns the bounding box of the shape. + */ + Rectangle getBounds(); + + //------------------------------------------------------------------------- + + /** makes this region an empty region. + */ + [oneway] void clear(); + + //------------------------------------------------------------------------- + + /** moves this region by the specified horizontal and vertical delta. + */ + [oneway] void move( [in] long nHorzMove, + [in] long nVertMove ); + + //------------------------------------------------------------------------- + + /** adds the specified rectangle to this region. + */ + [oneway] void unionRectangle( [in] Rectangle Rect ); + + //------------------------------------------------------------------------- + + /** intersects the specified rectangle with the current region. + */ + [oneway] void intersectRectangle( [in] Rectangle Region ); + + //------------------------------------------------------------------------- + + /** removes the area of the specified rectangle from this region. + */ + [oneway] void excludeRectangle( [in] Rectangle Rect ); + + //------------------------------------------------------------------------- + + /** applies an exclusive-or operation with the specified rectangle + to this region. + */ + [oneway] void xOrRectangle( [in] Rectangle Rect ); + + //------------------------------------------------------------------------- + + /** adds the specified region to this region. + */ + [oneway] void unionRegion( [in] XRegion Region ); + + //------------------------------------------------------------------------- + + /** intersects the specified region with the current region. + */ + [oneway] void intersectRegion( [in] XRegion Region ); + + //------------------------------------------------------------------------- + + /** removes the area of the specified region from this region. + */ + [oneway] void excludeRegion( [in] XRegion Region ); + + //------------------------------------------------------------------------- + + /** applies an exclusive-or operation with the specified region + to this region. + */ + [oneway] void xOrRegion( [in] XRegion Region ); + + //------------------------------------------------------------------------- + + /** returns all rectangles which are making up this region. + */ + sequence<Rectangle> getRectangles(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XRequestCallback.idl b/offapi/com/sun/star/awt/XRequestCallback.idl new file mode 100644 index 000000000000..7d89f0138683 --- /dev/null +++ b/offapi/com/sun/star/awt/XRequestCallback.idl @@ -0,0 +1,64 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_XRequestCallback_idl__ +#define __com_sun_star_awt_XRequestCallback_idl__ + +#ifndef __com_sun_star_awt_XCallback_idl__ +#include <com/sun/star/awt/XCallback.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** specifices an interface which can be used to call back + an implementation + */ +interface XRequestCallback +{ + //------------------------------------------------------------------------- + + /** adds a callback request to the implementation + + @param aData + any private data which will be provided to the callback implementation. + + @param xCallback + a reference to the callback which should be called by the implementation + of this interface. + */ + void addCallback( [in] XCallback xCallback, [in] any aData ); +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XReschedule.idl b/offapi/com/sun/star/awt/XReschedule.idl new file mode 100644 index 000000000000..7aaff1830b41 --- /dev/null +++ b/offapi/com/sun/star/awt/XReschedule.idl @@ -0,0 +1,60 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_XReschedule_idl__ +#define __com_sun_star_awt_XReschedulet_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** The <type>XReschedule</type> interface can be used to give control to the main + thread to allow events processing. + + @deprecated + This interface was only implemented in an intermediate developer + release anyway. + + @since OOo 2.0 +*/ +published interface XReschedule : ::com::sun::star::uno::XInterface +{ + /** Allow the main thread to process some events. + */ + void reschedule(); +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XScrollBar.idl b/offapi/com/sun/star/awt/XScrollBar.idl new file mode 100644 index 000000000000..d5b0f2060582 --- /dev/null +++ b/offapi/com/sun/star/awt/XScrollBar.idl @@ -0,0 +1,150 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XScrollBar_idl__ +#define __com_sun_star_awt_XScrollBar_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XAdjustmentListener_idl__ +#include <com/sun/star/awt/XAdjustmentListener.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** gives access to the value and settings of a scroll bar and makes it possible + to register adjustment event listeners. + */ +published interface XScrollBar: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** registers an adjustment event listener. + */ + [oneway] void addAdjustmentListener( [in] com::sun::star::awt::XAdjustmentListener l ); + + //------------------------------------------------------------------------- + + /** unregisters an adjustment event listener. + */ + [oneway] void removeAdjustmentListener( [in] com::sun::star::awt::XAdjustmentListener l ); + + //------------------------------------------------------------------------- + + /** sets the scroll value of the scroll bar. + */ + [oneway] void setValue( [in] long n ); + + //------------------------------------------------------------------------- + + /** sets the scroll value, visible area and maximum scroll value + of the scoll bar. + */ + [oneway] void setValues( [in] long nValue, + [in] long nVisible, + [in] long nMax ); + + //------------------------------------------------------------------------- + + /** returns the current scroll value of the scroll bar. + */ + long getValue(); + + //------------------------------------------------------------------------- + + /** sets the maximum scroll value of the scroll bar. + */ + [oneway] void setMaximum( [in] long n ); + + //------------------------------------------------------------------------- + + /** returns the currently set maximum scroll value of the scroll bar. + */ + long getMaximum(); + + //------------------------------------------------------------------------- + + /** sets the increment for a single line move. + */ + [oneway] void setLineIncrement( [in] long n ); + + //------------------------------------------------------------------------- + + /** returns the currently set increment for a single line move. + */ + long getLineIncrement(); + + //------------------------------------------------------------------------- + + /** sets the increment for a block move. + */ + [oneway] void setBlockIncrement( [in] long n ); + + //------------------------------------------------------------------------- + + /** returns the currently set increment for a block move. + */ + long getBlockIncrement(); + + //------------------------------------------------------------------------- + + /** sets the visible size of the scroll bar. + */ + [oneway] void setVisibleSize( [in] long n ); + + //------------------------------------------------------------------------- + + /** returns the currently visible size of the scroll bar. + */ + long getVisibleSize(); + + //------------------------------------------------------------------------- + + /** sets the <type>ScrollBarOrientation</type> of the scroll bar. + */ + [oneway] void setOrientation( [in] long n ); + + //------------------------------------------------------------------------- + + /** returns the currently set <type>ScrollBarOrientation</type> of the + scroll bar. + */ + long getOrientation(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XSimpleAnimation.idl b/offapi/com/sun/star/awt/XSimpleAnimation.idl new file mode 100644 index 000000000000..1cfd758590b9 --- /dev/null +++ b/offapi/com/sun/star/awt/XSimpleAnimation.idl @@ -0,0 +1,72 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XSimpleAnimation_idl__ +#define __com_sun_star_awt_XSimpleAnimation_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef com_sun_star_graphic_XGraphic_idl +#include <com/sun/star/graphic/XGraphic.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** Controls the animation control. + */ +published interface XSimpleAnimation: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** starts the animation of the control. + */ + void start(); + + //------------------------------------------------------------------------- + + /** stops the animation of the control. + */ + void stop(); + + //------------------------------------------------------------------------- + + /** The list of images to be displayed. + */ + void setImageList( [in] sequence < com::sun::star::graphic::XGraphic > ImageList ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XSimpleTabController.idl b/offapi/com/sun/star/awt/XSimpleTabController.idl new file mode 100644 index 000000000000..0688a1d08018 --- /dev/null +++ b/offapi/com/sun/star/awt/XSimpleTabController.idl @@ -0,0 +1,172 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XSimpleTabController_idl__ +#define __com_sun_star_awt_XSimpleTabController_idl__ + +#ifndef __com_sun_star_awt_XTabListener_idl__ +#include <com/sun/star/awt/XTabListener.idl> +#endif + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_lang_IndexOutOfBoundsException_idl__ +#include <com/sun/star/lang/IndexOutOfBoundsException.idl> +#endif + +#ifndef __com_sun_star_beans_NamedValue_idl__ +#include <com/sun/star/beans/NamedValue.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the basic operations for a tab controller, + but does not require XControl as type of tabs. + */ +interface XSimpleTabController : com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + /** create a new tab and return an unique ID, + which can be used further to adress this tab by using other methods + of this interface. + + @return [long + an unique ID for this new tab. + */ + long insertTab(); + + //------------------------------------------------------------------------- + /** remove a tab with the given ID. + + @param ID + the ID of the tab, which should be removed. + + @throws ::com::sun::star::lang::IndexOutOfBoundsException + if the specified ID isnt used inside this tab controller. + */ + void removeTab( [in] long ID ) + raises( com::sun::star::lang::IndexOutOfBoundsException ); + + //------------------------------------------------------------------------- + /** change some properties of the specified tab. + + @descr Such properties can be: + <table> + <tr> + <td><b>Property</b></td> + <td><b>Type</b></td> + <td><b>Description</b></td> + </tr> + <tr> + <td>Title</td> + <td>string</td> + <td>the title of the tab, which is shown at the UI.</td> + </tr> + <tr> + <td>Position</td> + <td>int</td> + <td>describe the order of this tab in relation to all other tabs inside this control.</td> + </tr> + </table> + + @attention Not all properties must be supported by all implementations of this interface. + Of course some important ones should be handled by every implementation ... + as e.g. "Title". + + @param ID + the ID of the tab, which should be changed. + + @throws ::com::sun::star::lang::IndexOutOfBoundsException + if the specified ID isnt used inside this tab controller. + */ + void setTabProps( [in] long ID , + [in] sequence< com::sun::star::beans::NamedValue > Properties ) + raises( com::sun::star::lang::IndexOutOfBoundsException ); + + //------------------------------------------------------------------------- + /** retrieve the set of properties for the specified tab. + + @param ID + the ID of the tab. + + @throws ::com::sun::star::lang::IndexOutOfBoundsException + if the specified ID isnt used inside this tab controller. + */ + sequence< com::sun::star::beans::NamedValue > getTabProps( [in] long ID ) + raises( com::sun::star::lang::IndexOutOfBoundsException ); + + //------------------------------------------------------------------------- + /** activate the specified tab. + + @descr The new tab will be activated and all listener will get an event describing this. + Of course there will be an event too, which notify's listener about the deactivation + of the last active tab. + + @param ID + the ID of the new active tab. + + @throws ::com::sun::star::lang::IndexOutOfBoundsException + if the specified ID isnt used inside this tab controller. + */ + void activateTab( [in] long ID ) + raises( com::sun::star::lang::IndexOutOfBoundsException ); + + //------------------------------------------------------------------------- + /** return the unique ID of the current active tab. + + @eturn [long] + the ID of the active tab. + */ + long getActiveTabID(); + + //------------------------------------------------------------------------- + /** register listener for inserting/removing tab's and changing her properties. + + @param Listener + the listener for registration. + */ + void addTabListener( [in] XTabListener Listener ); + + //------------------------------------------------------------------------- + /** deregister listener for inserting/removing tab's and changing her properties. + + @param Listener + the listener for deregistration. + */ + void removeTabListener( [in] XTabListener Listener ); +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XSpinField.idl b/offapi/com/sun/star/awt/XSpinField.idl new file mode 100644 index 000000000000..580472c8372f --- /dev/null +++ b/offapi/com/sun/star/awt/XSpinField.idl @@ -0,0 +1,98 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XSpinField_idl__ +#define __com_sun_star_awt_XSpinField_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XSpinListener_idl__ +#include <com/sun/star/awt/XSpinListener.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** gives access to the value of a spin field and makes it possible to + register for spin events. + */ +published interface XSpinField: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** registers a listener for spin events. + */ + [oneway] void addSpinListener( [in] com::sun::star::awt::XSpinListener l ); + + //------------------------------------------------------------------------- + + /** unregisters a listener for spin events. + */ + [oneway] void removeSpinListener( [in] com::sun::star::awt::XSpinListener l ); + + //------------------------------------------------------------------------- + + /** increases the value by one step. + */ + [oneway] void up(); + + //------------------------------------------------------------------------- + + /** decreases the value by one step. + */ + [oneway] void down(); + + //------------------------------------------------------------------------- + + /** sets the value to the previously set lower value. + */ + [oneway] void first(); + + //------------------------------------------------------------------------- + + /** sets the value to the previously set upper value. + */ + [oneway] void last(); + + //------------------------------------------------------------------------- + + /** enables/disables automatic repeat mode. + */ + [oneway] void enableRepeat( [in] boolean bRepeat ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XSpinListener.idl b/offapi/com/sun/star/awt/XSpinListener.idl new file mode 100644 index 000000000000..05446c42d29e --- /dev/null +++ b/offapi/com/sun/star/awt/XSpinListener.idl @@ -0,0 +1,79 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XSpinListener_idl__ +#define __com_sun_star_awt_XSpinListener_idl__ + +#ifndef __com_sun_star_lang_XEventListener_idl__ +#include <com/sun/star/lang/XEventListener.idl> +#endif + +#ifndef __com_sun_star_awt_SpinEvent_idl__ +#include <com/sun/star/awt/SpinEvent.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** makes it possible to receive spin events. + */ +published interface XSpinListener: com::sun::star::lang::XEventListener +{ + //------------------------------------------------------------------------- + + /** is invoked when the spin field is spun up. + */ + [oneway] void up( [in] com::sun::star::awt::SpinEvent rEvent ); + + //------------------------------------------------------------------------- + + /** is invoked when the spin field is spun down. + */ + [oneway] void down( [in] com::sun::star::awt::SpinEvent rEvent ); + + //------------------------------------------------------------------------- + + /** is invoked when the spin field is set to the lower value. + */ + [oneway] void first( [in] com::sun::star::awt::SpinEvent rEvent ); + + //------------------------------------------------------------------------- + + /** is invoked when the spin field is set to the upper value. + */ + [oneway] void last( [in] com::sun::star::awt::SpinEvent rEvent ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XSpinValue.idl b/offapi/com/sun/star/awt/XSpinValue.idl new file mode 100644 index 000000000000..be02f115a2c2 --- /dev/null +++ b/offapi/com/sun/star/awt/XSpinValue.idl @@ -0,0 +1,148 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XSpinValue_idl__ +#define __com_sun_star_awt_XSpinValue_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XAdjustmentListener_idl__ +#include <com/sun/star/awt/XAdjustmentListener.idl> +#endif + +#ifndef __com_sun_star_lang_NoSupportException_idl__ +#include <com/sun/star/lang/NoSupportException.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** gives access to the value and settings of a control which is associated with + a spinnable value. + */ +interface XSpinValue : com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** registers an adjustment event listener. + */ + [oneway] void addAdjustmentListener( [in] com::sun::star::awt::XAdjustmentListener listener ); + + //------------------------------------------------------------------------- + + /** unregisters an adjustment event listener. + */ + [oneway] void removeAdjustmentListener( [in] com::sun::star::awt::XAdjustmentListener listener ); + + //------------------------------------------------------------------------- + + /** sets the current value of the control + */ + [oneway] void setValue( [in] long value ); + + //------------------------------------------------------------------------- + + /** sets the value and value range of the control + + @see setValue + @see setMinimum + @see setMaximum + */ + [oneway] void setValues( [in] long minValue, [in] long maxValue, [in] long currentValue ); + + //------------------------------------------------------------------------- + + /** returns the current value of the control. + */ + long getValue(); + + //------------------------------------------------------------------------- + + /** sets the minimum value which can be set on the control + */ + [oneway] void setMinimum( [in] long minValue ); + + //------------------------------------------------------------------------- + + /** sets the maximum value which can be set on the control + */ + [oneway] void setMaximum( [in] long maxValue ); + + //------------------------------------------------------------------------- + + /** returns the currently set minimum value of the control + */ + long getMinimum(); + + //------------------------------------------------------------------------- + + /** returns the currently set maximum value of the control + */ + long getMaximum(); + + //------------------------------------------------------------------------- + + /** sets the value by which the current value of the control + should be incremented or decremented upon spinning. + */ + [oneway] void setSpinIncrement( [in] long spinIncrement ); + + //------------------------------------------------------------------------- + + /** returns the value by which the current value of the control + should be incremented or decremented upon spinning. + */ + long getSpinIncrement(); + + //------------------------------------------------------------------------- + + /** controls the orientation of the control + @param orientation + one of the <type>ScrollBarOrientation</type> values specifying the orientation + @throws com::sun::star::lang::NoSupportException + in case the given orientation is not supported + */ + void setOrientation( [in] long orientation ) + raises( com::sun::star::lang::NoSupportException ); + + //------------------------------------------------------------------------- + + /** returns the current orientation of the control + */ + long getOrientation(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XStyleChangeListener.idl b/offapi/com/sun/star/awt/XStyleChangeListener.idl new file mode 100644 index 000000000000..819f211a737f --- /dev/null +++ b/offapi/com/sun/star/awt/XStyleChangeListener.idl @@ -0,0 +1,54 @@ +/************************************************************************* + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_XStyleChangeListener_idl__ +#define __com_sun_star_awt_XStyleChangeListener_idl__ + +#include <com/sun/star/lang/XEventListener.idl> + +//================================================================================================================== + +module com { module sun { module star { module awt { + +//================================================================================================================== + +/** to be implemented by components which wish to be notified about changes in the style of a component + + @see XStyleSettings + */ +interface XStyleChangeListener : ::com::sun::star::lang::XEventListener +{ + /// called when the style settings of the observed component changed + void styleSettingsChanged( [in] com::sun::star::lang::EventObject Event ); +}; + +//================================================================================================================== + +}; }; }; }; + +//================================================================================================================== + +#endif diff --git a/offapi/com/sun/star/awt/XStyleSettings.idl b/offapi/com/sun/star/awt/XStyleSettings.idl new file mode 100644 index 000000000000..67c3bba7d8f1 --- /dev/null +++ b/offapi/com/sun/star/awt/XStyleSettings.idl @@ -0,0 +1,239 @@ +/************************************************************************* + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_XStyleSettings_idl__ +#define __com_sun_star_awt_XStyleSettings_idl__ + +#include <com/sun/star/util/Color.idl> +#include <com/sun/star/awt/FontDescriptor.idl> +#include <com/sun/star/uno/XInterface.idl> + +//================================================================================================================== + +module com { module sun { module star { module awt { + +interface XStyleChangeListener; + +//================================================================================================================== + +/** provides access to certain style settings within an OpenOffice.org component, such as a window, or + within OpenOffice.org as a whole. + + <p>Note that there are constraints for those settings. For instance, if controls are drawn with the + native widget framework, i.e. in the desktop theme's look, then they won't necessarily respect all + their style settings, because those have a lesser priority than the native look.</p> + + <p>On the other hand, some settings are respected only when rendering the controls in the native + desktop/theme look. For instance, without native theming, buttons do not support a "roll over" mode, + i.e., they're painted the same way, no matter if they mouse hovers over them or not. But with native + theming, this changes, as here the general button look is drawn by the system's theming engine, + while the text is drawn by OpenOffice.org. In this case, the button respects the + <code>ButtonRolloverTextColor</code> when painting its text.</p> + */ +interface XStyleSettings +{ + /// specifies the color of the border of active windows + [attribute] ::com::sun::star::util::Color ActiveBorderColor; + + /// + [attribute] ::com::sun::star::util::Color ActiveColor; + + /// specifies the color of the active tab of a tab control + [attribute] ::com::sun::star::util::Color ActiveTabColor; + + /// specifies the text color for active UI components + [attribute] ::com::sun::star::util::Color ActiveTextColor; + + /// specifies the color to use for text on buttons which are hovered with the mouse + [attribute] ::com::sun::star::util::Color ButtonRolloverTextColor; + + /// specifies the color to use for text on buttons + [attribute] ::com::sun::star::util::Color ButtonTextColor; + + /// + [attribute] ::com::sun::star::util::Color CheckedColor; + + /// specifies the dark portion of the shadow to use for UI elements + [attribute] ::com::sun::star::util::Color DarkShadowColor; + + /// specifies the color of the border of inactive windows + [attribute] ::com::sun::star::util::Color DeactiveBorderColor; + + /// + [attribute] ::com::sun::star::util::Color DeactiveColor; + + /// specifies the text color for inactive UI components + [attribute] ::com::sun::star::util::Color DeactiveTextColor; + + /// specifies the background color of dialogs + [attribute] ::com::sun::star::util::Color DialogColor; + + /// specifies the text color of dialogs + [attribute] ::com::sun::star::util::Color DialogTextColor; + + /// specifies the text color for disabled UI elements + [attribute] ::com::sun::star::util::Color DisableColor; + + /// + [attribute] ::com::sun::star::util::Color FaceColor; + + /// + [attribute, readonly] ::com::sun::star::util::Color FaceGradientColor; + + /// specifies the background color for dialog input controls + [attribute] ::com::sun::star::util::Color FieldColor; + + /// specifies the text color for dialog input controls which are hovered with the mouse + [attribute] ::com::sun::star::util::Color FieldRolloverTextColor; + + /// specifies the text color for dialog input controls + [attribute] ::com::sun::star::util::Color FieldTextColor; + + /// specifies the text color for dialog elements used for grouping other elements + [attribute] ::com::sun::star::util::Color GroupTextColor; + + /// specifies the background color for dialog elements displaying help content + [attribute] ::com::sun::star::util::Color HelpColor; + + /// specifies the text color for dialog elements displaying help content + [attribute] ::com::sun::star::util::Color HelpTextColor; + + /// specifies the background color for UI elements which are highlighted + [attribute] ::com::sun::star::util::Color HighlightColor; + + /// specifies the text color for UI elements which are highlighted + [attribute] ::com::sun::star::util::Color HighlightTextColor; + + /// specifies the color of inactive tabs of a tab control + [attribute] ::com::sun::star::util::Color InactiveTabColor; + + /// specifies the text color of dialog elements displaying some info text + [attribute] ::com::sun::star::util::Color InfoTextColor; + + /// specifies the text color of label elements in dialogs + [attribute] ::com::sun::star::util::Color LabelTextColor; + + /// + [attribute] ::com::sun::star::util::Color LightColor; + + /// specifies the background color of menu bars + [attribute] ::com::sun::star::util::Color MenuBarColor; + + /// specifies the text color of menu bars + [attribute] ::com::sun::star::util::Color MenuBarTextColor; + + /// specifies the border color of menus + [attribute] ::com::sun::star::util::Color MenuBorderColor; + + // specifies the background color of menus + [attribute] ::com::sun::star::util::Color MenuColor; + + /// specifies the background color of highlighted menu items + [attribute] ::com::sun::star::util::Color MenuHighlightColor; + + /// specifies the text color of highlighted menu items + [attribute] ::com::sun::star::util::Color MenuHighlightTextColor; + + // specifies the text color of menus + [attribute] ::com::sun::star::util::Color MenuTextColor; + + /// specifies the color to use for monochrome control elements such as flat borders of controls + [attribute] ::com::sun::star::util::Color MonoColor; + + /// specifies the text color of radio buttons and check boxes + [attribute] ::com::sun::star::util::Color RadioCheckTextColor; + + /// specifies the color of separators between UI elements + [attribute, readonly] ::com::sun::star::util::Color SeparatorColor; + + /// specifies the color to use for UI elements + [attribute] ::com::sun::star::util::Color ShadowColor; + + /// specifies the background color to use for non-dialog windows + [attribute] ::com::sun::star::util::Color WindowColor; + + /// specifies the text color to use for non-dialog windows + [attribute] ::com::sun::star::util::Color WindowTextColor; + + /// specifies the background color to use for document workspaces + [attribute] ::com::sun::star::util::Color WorkspaceColor; + + /** controls whether the an UI component should use a high-contrast mode + */ + [attribute] boolean HighContrastMode; + + /// specifies the application font + [attribute] FontDescriptor ApplicationFont; + + /// specifies the help font + [attribute] FontDescriptor HelpFont; + + /// specifies the font to use for window titles + [attribute] FontDescriptor TitleFont; + + /// specifies the font to use the title of floating windows + [attribute] FontDescriptor FloatTitleFont; + + /// specifies the font to use for menus + [attribute] FontDescriptor MenuFont; + + /// specifies the font to use for tool elements + [attribute] FontDescriptor ToolFont; + + /// specifies the font for dialog elements used for grouping other elements + [attribute] FontDescriptor GroupFont; + + /// specifies the font for label controls + [attribute] FontDescriptor LabelFont; + + /// specifies the font of dialog elements displaying some info text + [attribute] FontDescriptor InfoFont; + + /// specifies the font of radio buttons and check boxes + [attribute] FontDescriptor RadioCheckFont; + + /// specifies the font of push buttons + [attribute] FontDescriptor PushButtonFont; + + /// specifies the font for dialog input controls + [attribute] FontDescriptor FieldFont; + + /// registers a listener to be notified when the style settings change + void addStyleChangeListener( + [in] XStyleChangeListener Listener ); + + /// registers a listener to be notified when the style settings change + void removeStyleChangeListener( + [in] XStyleChangeListener Listener ); +}; + +//================================================================================================================== + +}; }; }; }; + +//================================================================================================================== + +#endif diff --git a/offapi/com/sun/star/awt/XStyleSettingsSupplier.idl b/offapi/com/sun/star/awt/XStyleSettingsSupplier.idl new file mode 100644 index 000000000000..cb60994ff894 --- /dev/null +++ b/offapi/com/sun/star/awt/XStyleSettingsSupplier.idl @@ -0,0 +1,53 @@ +/************************************************************************* + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XStyleSettingsSupplier_idl__ +#define __com_sun_star_awt_XStyleSettingsSupplier_idl__ + +#include <com/sun/star/uno/XInterface.idl> + +//================================================================================================================== + +module com { module sun { module star { module awt { + + interface XStyleSettings; + +//================================================================================================================== + +/** provides access to the style settings of a component + */ +interface XStyleSettingsSupplier +{ + [attribute, readonly] XStyleSettings StyleSettings; +}; + +//================================================================================================================== + +}; }; }; }; + +//================================================================================================================== + +#endif + diff --git a/offapi/com/sun/star/awt/XSystemChildFactory.idl b/offapi/com/sun/star/awt/XSystemChildFactory.idl new file mode 100644 index 000000000000..d55fa005c4b2 --- /dev/null +++ b/offapi/com/sun/star/awt/XSystemChildFactory.idl @@ -0,0 +1,84 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_XSystemChildFactory_idl__ +#define __com_sun_star_awt_XSystemChildFactory_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + + published interface XWindowPeer; + +/** specifies a factory interface for creating system child windows. + */ +published interface XSystemChildFactory : com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** creates a system child window. + + @returns + the created window. + + @param Parent + a sytem-specific handle to a window. + + <p>You must check the machine ID and the process ID.<BR> + WIN32: HWND.<BR> + WIN16: HWND.<BR> + + JAVA: global reference to a java.awt.Component + object provided from the JNI-API.<BR> + + OS2: HWND.<BR> + MAC: Not supported.<BR></p> + + @param ProcessId + the process identifier. Use the sal_getGlobalProcessId + function of the RTL library. + + @param SystemType + one constant out of the constant group + <type scope="com::sun::star::lang">SystemDependent</type>. + */ + XWindowPeer createSystemChild( [in] any Parent, [in] sequence< byte > ProcessId, [in] short SystemType ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XSystemDependentMenuPeer.idl b/offapi/com/sun/star/awt/XSystemDependentMenuPeer.idl new file mode 100644 index 000000000000..6ac9cce707b0 --- /dev/null +++ b/offapi/com/sun/star/awt/XSystemDependentMenuPeer.idl @@ -0,0 +1,77 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XSystemDependentMenuPeer_idl__ +#define __com_sun_star_awt_XSystemDependentMenuPeer_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** provides access to the system dependent implementation of the window. + + @see com::sun::star::lang::SystemDependent + @see WindowAttribute + @see WindowAttribute::SYSTEMDEPENDENT + */ +interface XSystemDependentMenuPeer: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** returns a system-specific window handle. + + @returns + a sytem-specific handle to a menu + or 0 if the menu is not in the same process. + + <p>You must check the machine ID and the process ID.<BR> + WIN32: Returns an HMENU if possible, otherwise 0.<BR> + WIN16: Returns an HMENU if possible, otherwise 0.<BR> + + @param ProcessId + the process identifier. Use the sal_getGlobalProcessId + function of the RTL library. + + @param SystemType + one constant out of the constant group + <type scope="com::sun::star::lang">SystemDependent</type>. + */ + any getMenuHandle( [in] sequence< byte > ProcessId, [in] short SystemType ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XSystemDependentWindowPeer.idl b/offapi/com/sun/star/awt/XSystemDependentWindowPeer.idl new file mode 100644 index 000000000000..29fae21d88a6 --- /dev/null +++ b/offapi/com/sun/star/awt/XSystemDependentWindowPeer.idl @@ -0,0 +1,87 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XSystemDependentWindowPeer_idl__ +#define __com_sun_star_awt_XSystemDependentWindowPeer_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** provides access to the system dependent implementation of the window. + + @see com::sun::star::lang::SystemDependent + @see WindowAttribute + @see WindowAttribute::SYSTEMDEPENDENT + */ +published interface XSystemDependentWindowPeer: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** returns a system-specific window handle. + + @returns + a sytem-specific handle to a window + or 0 if the window is not in the same process. + + <p>You must check the machine ID and the process ID.<BR> + WIN32: Returns an HWND if possible, otherwise 0.<BR> + WIN16: Returns an HWND if possible, otherwise 0.<BR> + + JAVA: Returns a global reference to a java.awt.Component + object provided from the JNI-API.<BR> + + OS2: Returns an HWND if possible, otherwise 0.<BR> + + MAC: Returns a ptr to the NSView implementing the window.<BR> + + XWINDOW: Returns a structure SystemDependentXWindow + or void if it is not reachable.<BR></p> + + @param ProcessId + the process identifier. Use the sal_getGlobalProcessId + function of the RTL library. + + @param SystemType + one constant out of the constant group + <type scope="com::sun::star::lang">SystemDependent</type>. + */ + any getWindowHandle( [in] sequence< byte > ProcessId, [in] short SystemType ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XTabController.idl b/offapi/com/sun/star/awt/XTabController.idl new file mode 100644 index 000000000000..c5d36ed8238f --- /dev/null +++ b/offapi/com/sun/star/awt/XTabController.idl @@ -0,0 +1,119 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XTabController_idl__ +#define __com_sun_star_awt_XTabController_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XTabControllerModel_idl__ +#include <com/sun/star/awt/XTabControllerModel.idl> +#endif + +#ifndef __com_sun_star_awt_XControlContainer_idl__ +#include <com/sun/star/awt/XControlContainer.idl> +#endif + +#ifndef __com_sun_star_awt_XControl_idl__ +#include <com/sun/star/awt/XControl.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the basic operations for a tab controller. + */ +published interface XTabController: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** sets the tab controller model. + */ + [oneway] void setModel( [in] com::sun::star::awt::XTabControllerModel Model ); + + //------------------------------------------------------------------------- + + /** returns the tab controller model. + */ + com::sun::star::awt::XTabControllerModel getModel(); + + //------------------------------------------------------------------------- + + /** set the control container. + */ + [oneway] void setContainer( [in] com::sun::star::awt::XControlContainer Container ); + + //------------------------------------------------------------------------- + + /** returns the control container. + */ + com::sun::star::awt::XControlContainer getContainer(); + + //------------------------------------------------------------------------- + + /** returns all controls of the control container. + */ + sequence<com::sun::star::awt::XControl> getControls(); + + //------------------------------------------------------------------------- + + /** enables automatic tab order. + */ + [oneway] void autoTabOrder(); + + //------------------------------------------------------------------------- + + /** activates tab order. + */ + [oneway] void activateTabOrder(); + + //------------------------------------------------------------------------- + + /** sets the focus to the first control that can be reached with the + TAB key. + */ + [oneway] void activateFirst(); + + //------------------------------------------------------------------------- + + /** sets the focus to the last control that can be reached with the + TAB key. + */ + [oneway] void activateLast(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XTabControllerModel.idl b/offapi/com/sun/star/awt/XTabControllerModel.idl new file mode 100644 index 000000000000..275a72d379ed --- /dev/null +++ b/offapi/com/sun/star/awt/XTabControllerModel.idl @@ -0,0 +1,107 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XTabControllerModel_idl__ +#define __com_sun_star_awt_XTabControllerModel_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XControlModel_idl__ +#include <com/sun/star/awt/XControlModel.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the basic operations for a tab controller model. + */ +published interface XTabControllerModel: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** returns whether the control models are grouped together. + */ + boolean getGroupControl(); + + //------------------------------------------------------------------------- + + /** determines if the control models are grouped together. + */ + [oneway] void setGroupControl( [in] boolean GroupControl ); + + //------------------------------------------------------------------------- + + /** sets the control models. + */ + [oneway] void setControlModels( [in] sequence<com::sun::star::awt::XControlModel> Controls ); + + //------------------------------------------------------------------------- + + /** returns the control models. + */ + sequence<com::sun::star::awt::XControlModel> getControlModels(); + + //------------------------------------------------------------------------- + + /** sets a control model group. + */ + [oneway] void setGroup( [in] sequence<com::sun::star::awt::XControlModel> Group, + [in] string GroupName ); + + //------------------------------------------------------------------------- + + /** returns the number of control model groups. + */ + long getGroupCount(); + + //------------------------------------------------------------------------- + + /** returns a control model group. + */ + void getGroup( [in] long nGroup, + [out] sequence<com::sun::star::awt::XControlModel> Group, + [out] string Name ); + + //------------------------------------------------------------------------- + + /** returns a control model group by name. + */ + void getGroupByName( [in] string Name, + [out] sequence<com::sun::star::awt::XControlModel> Group ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XTabListener.idl b/offapi/com/sun/star/awt/XTabListener.idl new file mode 100644 index 000000000000..e7018bb284af --- /dev/null +++ b/offapi/com/sun/star/awt/XTabListener.idl @@ -0,0 +1,97 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XTabListener_idl__ +#define __com_sun_star_awt_XTabListener_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_lang_XEventListener_idl__ +#include <com/sun/star/lang/XEventListener.idl> +#endif + +#ifndef __com_sun_star_beans_NamedValue_idl__ +#include <com/sun/star/beans/NamedValue.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** such listener will be informed if tab's was inserted/removed from + an XSimpleTabController instance or if the properties of a tab was changed. + */ +interface XTabListener : com::sun::star::lang::XEventListener +{ + //------------------------------------------------------------------------- + /** a new tab was inserted. + + @param ID + this is the unique ID of this new tab. + */ + void inserted( [in] long ID ); + + //------------------------------------------------------------------------- + /** a tab was removed. + + @param ID + this was the unique ID of this tab. + */ + void removed( [in] long ID ); + + //------------------------------------------------------------------------- + /** a tab was changed within it's properties. + + @param ID + the unique ID of the changed tab. + + @param Properties + the current set of properties for this tab. + */ + void changed( [in] long ID , + [in] sequence< com::sun::star::beans::NamedValue > Properties ); + + //------------------------------------------------------------------------- + /** a tab was activated (e.g. by using mouse/keyboard or + method XSimpleTabController::activateTab() + */ + void activated( [in] long ID ); + + //------------------------------------------------------------------------- + /** a tab was deactivated, because another tab becames the new active state. + */ + void deactivated( [in] long ID ); +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XTextArea.idl b/offapi/com/sun/star/awt/XTextArea.idl new file mode 100644 index 000000000000..051a74901303 --- /dev/null +++ b/offapi/com/sun/star/awt/XTextArea.idl @@ -0,0 +1,57 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XTextArea_idl__ +#define __com_sun_star_awt_XTextArea_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** gives access to the text in a control. + */ +published interface XTextArea: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** returns the text lines as a single string with line separators. + */ + string getTextLines(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XTextComponent.idl b/offapi/com/sun/star/awt/XTextComponent.idl new file mode 100644 index 000000000000..92bbc8e8d219 --- /dev/null +++ b/offapi/com/sun/star/awt/XTextComponent.idl @@ -0,0 +1,133 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XTextComponent_idl__ +#define __com_sun_star_awt_XTextComponent_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XTextListener_idl__ +#include <com/sun/star/awt/XTextListener.idl> +#endif + +#ifndef __com_sun_star_awt_Selection_idl__ +#include <com/sun/star/awt/Selection.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** gives access to the text of a component and makes it possible + to register event listeners. + */ +published interface XTextComponent: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** registers a text event listener. + */ + [oneway] void addTextListener( [in] com::sun::star::awt::XTextListener l ); + + //------------------------------------------------------------------------- + + /** unregisters a text event listener. + */ + [oneway] void removeTextListener( [in] com::sun::star::awt::XTextListener l ); + + //------------------------------------------------------------------------- + + /** sets the text of the component. + */ + [oneway] void setText( [in] string aText ); + + //------------------------------------------------------------------------- + + /** inserts text at the specified position. + */ + [oneway] void insertText( [in] com::sun::star::awt::Selection Sel, + [in] string Text ); + + //------------------------------------------------------------------------- + + /** returns the text of the component. + */ + string getText(); + + //------------------------------------------------------------------------- + + /** returns the currently selected text. + */ + string getSelectedText(); + + //------------------------------------------------------------------------- + + /** sets the user selection. + */ + [oneway] void setSelection( [in] com::sun::star::awt::Selection aSelection ); + + //------------------------------------------------------------------------- + + /** returns the current user selection. + */ + com::sun::star::awt::Selection getSelection(); + + //------------------------------------------------------------------------- + + /** returns if the text is editable by the user. + */ + boolean isEditable(); + + //------------------------------------------------------------------------- + + /** makes the text editable for the user or read-only. + */ + [oneway] void setEditable( [in] boolean bEditable ); + + //------------------------------------------------------------------------- + + /** sets the maximum text length. + */ + [oneway] void setMaxTextLen( [in] short nLen ); + + //------------------------------------------------------------------------- + + /** returns the currently set maximum text length. + */ + short getMaxTextLen(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XTextEditField.idl b/offapi/com/sun/star/awt/XTextEditField.idl new file mode 100644 index 000000000000..b2898a72c6c7 --- /dev/null +++ b/offapi/com/sun/star/awt/XTextEditField.idl @@ -0,0 +1,57 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XTextEditField_idl__ +#define __com_sun_star_awt_XTextEditField_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** is used for password fields. + */ +published interface XTextEditField: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** sets the character to display as a substitute on user input. + */ + [oneway] void setEchoChar( [in] char cEcho ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XTextLayoutConstrains.idl b/offapi/com/sun/star/awt/XTextLayoutConstrains.idl new file mode 100644 index 000000000000..642d525afe42 --- /dev/null +++ b/offapi/com/sun/star/awt/XTextLayoutConstrains.idl @@ -0,0 +1,68 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XTextLayoutConstrains_idl__ +#define __com_sun_star_awt_XTextLayoutConstrains_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_Size_idl__ +#include <com/sun/star/awt/Size.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the layout contstraints for a text field. + */ +published interface XTextLayoutConstrains: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** returns the minimum size for a given number of columns and lines. + */ + com::sun::star::awt::Size getMinimumSize( [in] short nCols, + [in] short nLines ); + + //------------------------------------------------------------------------- + + /** returns the ideal number of columns and lines for displaying this text. + */ + void getColumnsAndLines( [out] short nCols, [out] short nLines ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XTextListener.idl b/offapi/com/sun/star/awt/XTextListener.idl new file mode 100644 index 000000000000..cd476068b1ef --- /dev/null +++ b/offapi/com/sun/star/awt/XTextListener.idl @@ -0,0 +1,61 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XTextListener_idl__ +#define __com_sun_star_awt_XTextListener_idl__ + +#ifndef __com_sun_star_lang_XEventListener_idl__ +#include <com/sun/star/lang/XEventListener.idl> +#endif + +#ifndef __com_sun_star_awt_TextEvent_idl__ +#include <com/sun/star/awt/TextEvent.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** makes it possible to receive text change events. + */ +published interface XTextListener: com::sun::star::lang::XEventListener +{ + //------------------------------------------------------------------------- + + /** is invoked when the text has changed. + */ + [oneway] void textChanged( [in] com::sun::star::awt::TextEvent rEvent ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XThrobber.idl b/offapi/com/sun/star/awt/XThrobber.idl new file mode 100644 index 000000000000..0a4ac133524a --- /dev/null +++ b/offapi/com/sun/star/awt/XThrobber.idl @@ -0,0 +1,65 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XThrobber_idl__ +#define __com_sun_star_awt_XThrobber_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef com_sun_star_graphic_XGraphic_idl +#include <com/sun/star/graphic/XGraphic.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** Controls the animation control. + */ +published interface XThrobber: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** starts the animation of the control. + */ + void start(); + + //------------------------------------------------------------------------- + + /** stops the animation of the control. + */ + void stop(); +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XTimeField.idl b/offapi/com/sun/star/awt/XTimeField.idl new file mode 100644 index 000000000000..d2efddd4fa2b --- /dev/null +++ b/offapi/com/sun/star/awt/XTimeField.idl @@ -0,0 +1,141 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XTimeField_idl__ +#define __com_sun_star_awt_XTimeField_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** gives access to the value and settings of a time field. + */ +published interface XTimeField: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** sets the time value which is displayed in the time field. + + <p>The time value must be specified in the format HHMMSShh, + where HH are hours, MM are minutes, SS are seconds and hh are + hundredth seconds.</p> + */ + [oneway] void setTime( [in] long Time ); + + //------------------------------------------------------------------------- + + /** returns the time value which is currently displayed in the time field. + */ + long getTime(); + + //------------------------------------------------------------------------- + + /** sets the minimum time value that can be entered by the user. + */ + [oneway] void setMin( [in] long Time ); + + //------------------------------------------------------------------------- + + /** returns the currently set minimum time value that can be entered by + the user. + */ + long getMin(); + + //------------------------------------------------------------------------- + + /** sets the maximum time value that can be entered by the user. + */ + [oneway] void setMax( [in] long Time ); + + //------------------------------------------------------------------------- + + /** returns the currently set maximum time value that can be entered by + the user. + */ + long getMax(); + + //------------------------------------------------------------------------- + + /** sets the first value to be set on POS1 key. + */ + [oneway] void setFirst( [in] long Time ); + + //------------------------------------------------------------------------- + + /** returns the currently set first value which is set on POS1 key. + */ + long getFirst(); + + //------------------------------------------------------------------------- + + /** sets the last value to be set on END key. + */ + [oneway] void setLast( [in] long Time ); + + //------------------------------------------------------------------------- + + /** returns the currently set last value which is set on END key. + */ + long getLast(); + + //------------------------------------------------------------------------- + + /** sets an empty value for the time. + */ + void setEmpty(); + + //------------------------------------------------------------------------- + + /** returns whether currently an empty value is set for the time. + */ + boolean isEmpty(); + + //------------------------------------------------------------------------- + + /** determines if the format is checked during user input. + */ + [oneway] void setStrictFormat( [in] boolean bStrict ); + + //------------------------------------------------------------------------- + + /** returns whether the format is currently checked during user input. + */ + boolean isStrictFormat(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XToggleButton.idl b/offapi/com/sun/star/awt/XToggleButton.idl new file mode 100644 index 000000000000..447eebd5806c --- /dev/null +++ b/offapi/com/sun/star/awt/XToggleButton.idl @@ -0,0 +1,57 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XToggleButton_idl__ +#define __com_sun_star_awt_XToggleButton_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XItemEventBroadcaster_idl__ +#include <com/sun/star/awt/XItemEventBroadcaster.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** is supported by buttons which can be toggled between a "pressed" and an "unpressed" state + + <p>Changes in the toggle state are broadcasted to <type>XItemListener</type> instances.</p> + */ +interface XToggleButton: XItemEventBroadcaster +{ +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XToolkit.idl b/offapi/com/sun/star/awt/XToolkit.idl new file mode 100644 index 000000000000..c92d928403ce --- /dev/null +++ b/offapi/com/sun/star/awt/XToolkit.idl @@ -0,0 +1,118 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XToolkit_idl__ +#define __com_sun_star_awt_XToolkit_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XWindowPeer_idl__ +#include <com/sun/star/awt/XWindowPeer.idl> +#endif + +#ifndef __com_sun_star_awt_Rectangle_idl__ +#include <com/sun/star/awt/Rectangle.idl> +#endif + +#ifndef __com_sun_star_awt_WindowDescriptor_idl__ +#include <com/sun/star/awt/WindowDescriptor.idl> +#endif + +#ifndef __com_sun_star_lang_IllegalArgumentException_idl__ +#include <com/sun/star/lang/IllegalArgumentException.idl> +#endif + +#ifndef __com_sun_star_awt_XDevice_idl__ +#include <com/sun/star/awt/XDevice.idl> +#endif + +#ifndef __com_sun_star_awt_XRegion_idl__ +#include <com/sun/star/awt/XRegion.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies a factory interface for the window toolkit. + + <p>This is similar to the abstract window toolkit (AWT) in Java.</p> + */ +published interface XToolkit: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** returns the desktop window. + */ + com::sun::star::awt::XWindowPeer getDesktopWindow(); + + //------------------------------------------------------------------------- + + /** returns the complete work area for this toolkit. + */ + com::sun::star::awt::Rectangle getWorkArea(); + + //------------------------------------------------------------------------- + + /** creates a new window using the given descriptor. + */ + com::sun::star::awt::XWindowPeer createWindow( [in] com::sun::star::awt::WindowDescriptor Descriptor ) + raises( com::sun::star::lang::IllegalArgumentException ); + + //------------------------------------------------------------------------- + + /** returns a sequence of windows which are newly created using the + given descriptors. + */ + sequence<com::sun::star::awt::XWindowPeer> createWindows( + [in] sequence<com::sun::star::awt::WindowDescriptor> Descriptors ) + raises( com::sun::star::lang::IllegalArgumentException ); + + //------------------------------------------------------------------------- + + /** creates a virtual device that is compatible with the screen. + */ + com::sun::star::awt::XDevice createScreenCompatibleDevice( [in] long Width, + [in] long Height ); + + //------------------------------------------------------------------------- + + /** creates a region. + */ + com::sun::star::awt::XRegion createRegion(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XTopWindow.idl b/offapi/com/sun/star/awt/XTopWindow.idl new file mode 100644 index 000000000000..e74fc7e7ae7a --- /dev/null +++ b/offapi/com/sun/star/awt/XTopWindow.idl @@ -0,0 +1,93 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XTopWindow_idl__ +#define __com_sun_star_awt_XTopWindow_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XTopWindowListener_idl__ +#include <com/sun/star/awt/XTopWindowListener.idl> +#endif + +#ifndef __com_sun_star_awt_XMenuBar_idl__ +#include <com/sun/star/awt/XMenuBar.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** manages the functionality specific for a top window. + */ +published interface XTopWindow: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** adds the specified top window listener to receive window events from + this window. + */ + [oneway] void addTopWindowListener( [in] com::sun::star::awt::XTopWindowListener xListener ); + + //------------------------------------------------------------------------- + + /** removes the specified top window listener so that it no longer + receives window events from this window. + */ + [oneway] void removeTopWindowListener( [in] com::sun::star::awt::XTopWindowListener xListener ); + + //------------------------------------------------------------------------- + + /** places this window at the top of the stacking order and + shows it in front of any other windows. + */ + [oneway] void toFront(); + + //------------------------------------------------------------------------- + + /** places this window at the bottom of the stacking order and + makes the corresponding adjustment to other visible windows. + */ + [oneway] void toBack(); + + //------------------------------------------------------------------------- + + /** sets a menu bar. + */ + [oneway] void setMenuBar( [in] com::sun::star::awt::XMenuBar xMenu ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XTopWindow2.idl b/offapi/com/sun/star/awt/XTopWindow2.idl new file mode 100644 index 000000000000..d06d1273bad8 --- /dev/null +++ b/offapi/com/sun/star/awt/XTopWindow2.idl @@ -0,0 +1,77 @@ +/************************************************************************* + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * +************************************************************************/ + +#ifndef __com_sun_star_awt_XTopWindow2_idl__ +#define __com_sun_star_awt_XTopWindow2_idl__ + +#include <com/sun/star/awt/XTopWindow.idl> +#include <com/sun/star/lang/IndexOutOfBoundsException.idl> + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** extends XTopWindow with additional functionality + */ +interface XTopWindow2 : XTopWindow +{ + /** controls whether the window is currently maximized + */ + [attribute] boolean IsMaximized; + + /** controls whether the window is currently minimized + */ + [attribute] boolean IsMinimized; + + /** controls on which display the window is shown. + + <p>When retrieving this property, in case the window is positioned on multiple displays, + the number returned will be of the display containing the upper left pixel of the frame + area (that is of the client area on system decorated windows, or the frame area of + undecorated resp. owner decorated windows).</p> + + @throws ::com::sun::star::lang::IndexOutOfBoundsException + if you attempt to set this property to a value which does not correspond to the number + of an existing screen. + + @see com::sun::star::awt::DisplayAccess + @see com::sun::star::awt::DisplayInfo + */ + [attribute] long Display + { + set raises (::com::sun::star::lang::IndexOutOfBoundsException); + }; +}; + +//============================================================================= + +}; }; }; }; + +//============================================================================= + +#endif diff --git a/offapi/com/sun/star/awt/XTopWindowListener.idl b/offapi/com/sun/star/awt/XTopWindowListener.idl new file mode 100644 index 000000000000..cf78ff343839 --- /dev/null +++ b/offapi/com/sun/star/awt/XTopWindowListener.idl @@ -0,0 +1,101 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XTopWindowListener_idl__ +#define __com_sun_star_awt_XTopWindowListener_idl__ + +#ifndef __com_sun_star_lang_XEventListener_idl__ +#include <com/sun/star/lang/XEventListener.idl> +#endif + +#ifndef __com_sun_star_lang_EventObject_idl__ +#include <com/sun/star/lang/EventObject.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** makes it possible to receive window events. + + @see XActivateListener + */ +published interface XTopWindowListener: com::sun::star::lang::XEventListener +{ + //------------------------------------------------------------------------- + + /** is invoked when a window has been opened. + */ + [oneway] void windowOpened( [in] com::sun::star::lang::EventObject e ); + + //------------------------------------------------------------------------- + + /** is invoked when a window is in the process of being closed. + + <p>The close operation can be overridden at this point.</p> + */ + [oneway] void windowClosing( [in] com::sun::star::lang::EventObject e ); + + //------------------------------------------------------------------------- + + /** is invoked when a window has been closed. + */ + [oneway] void windowClosed( [in] com::sun::star::lang::EventObject e ); + + //------------------------------------------------------------------------- + + /** is invoked when a window is iconified. + */ + [oneway] void windowMinimized( [in] com::sun::star::lang::EventObject e ); + + //------------------------------------------------------------------------- + + /** is invoked when a window is de-iconified. + */ + [oneway] void windowNormalized( [in] com::sun::star::lang::EventObject e ); + + //------------------------------------------------------------------------- + + /** is invoked when a window is activated. + */ + [oneway] void windowActivated( [in] com::sun::star::lang::EventObject e ); + + //------------------------------------------------------------------------- + + /** is invoked when a window is de-activated. + */ + [oneway] void windowDeactivated( [in] com::sun::star::lang::EventObject e ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XUnitConversion.idl b/offapi/com/sun/star/awt/XUnitConversion.idl new file mode 100644 index 000000000000..b04802ee0728 --- /dev/null +++ b/offapi/com/sun/star/awt/XUnitConversion.idl @@ -0,0 +1,118 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XUnitConversion_idl__ +#define __com_sun_star_awt_XUnitConversion_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_Point_idl__ +#include <com/sun/star/awt/Point.idl> +#endif + +#ifndef __com_sun_star_awt_Size_idl__ +#include <com/sun/star/awt/Size.idl> +#endif + +#ifndef __com_sun_star_lang_IllegalArgumentException_idl__ +#include <com/sun/star/lang/IllegalArgumentException.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** allows converting between different measurement units + + @since OOo 3.0 + */ +interface XUnitConversion: com::sun::star::uno::XInterface +{ + /** converts the given <type>Point</type>, which is specified in pixels, into the given logical unit + + @param Point + A given <type>Point</type> in a well known type + @param TargetUnit + A type from <type scope="com::sun::star::util">MeasureUnit</type> in which the Point will convert to. + + @return + Returns a new <type>Point</type> in the TargetUnit type format. + */ + com::sun::star::awt::Point convertPointToLogic( [in] com::sun::star::awt::Point Point, [in] short TargetUnit ) + raises ( com::sun::star::lang::IllegalArgumentException ); + + /** converts the given <type>Point</type>, which is specified in the given logical unit, into pixels + + @param Point + A given Point in the SourceUnit type + @param SourceUnit + The type from <type scope="com::sun::star::util">MeasureUnit</type> of the Point. + + @return + Return a new <type>Point</type> in Pixel type format. + */ + com::sun::star::awt::Point convertPointToPixel( [in] com::sun::star::awt::Point aPoint, [in] short SourceUnit ) + raises ( com::sun::star::lang::IllegalArgumentException ); + + + /** converts the given <type>Size</type>, which is specified in pixels, into the given logical unit + + @param aSize + A given <type>Size</type> in a well known type + @param TargetUnit + A type from <type scope="com::sun::star::util">MeasureUnit</type> in which the Size will convert to. + + @return + Returns a new <type>Size</type> in the TargetUnit type format. + */ + com::sun::star::awt::Size convertSizeToLogic( [in] com::sun::star::awt::Size aSize, [in] short TargetUnit ) + raises ( com::sun::star::lang::IllegalArgumentException ); + + /** converts the given <type>Size</type>, which is specified in the given logical unit, into pixels + + @param Size + A given <type>Size</type> in a well known type + @param TargetUnit + The type from <type scope="com::sun::star::util">MeasureUnit</type> of the Size. + + @return + Returns a new <type>Size</type> in the TargetUnit type format. + */ + com::sun::star::awt::Size convertSizeToPixel( [in] com::sun::star::awt::Size aSize, [in] short SourceUnit ) + raises ( com::sun::star::lang::IllegalArgumentException ); + + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XUnoControlContainer.idl b/offapi/com/sun/star/awt/XUnoControlContainer.idl new file mode 100644 index 000000000000..2d28b7152246 --- /dev/null +++ b/offapi/com/sun/star/awt/XUnoControlContainer.idl @@ -0,0 +1,79 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XUnoControlContainer_idl__ +#define __com_sun_star_awt_XUnoControlContainer_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XTabController_idl__ +#include <com/sun/star/awt/XTabController.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** gives access to the tab controllers of a <type>UnoControlContainer</type>. + */ +published interface XUnoControlContainer: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** sets a set of tab controllers. + */ + [oneway] void setTabControllers( [in] sequence<com::sun::star::awt::XTabController> TabControllers ); + + //------------------------------------------------------------------------- + + /** returns all currently specified tab controllers. + */ + sequence<com::sun::star::awt::XTabController> getTabControllers(); + + //------------------------------------------------------------------------- + + /** adds a single tab controller. + */ + [oneway] void addTabController( [in] com::sun::star::awt::XTabController TabController ); + + //------------------------------------------------------------------------- + + /** removes a single tab controller. + */ + [oneway] void removeTabController( [in] com::sun::star::awt::XTabController TabController ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XUserInputInterception.idl b/offapi/com/sun/star/awt/XUserInputInterception.idl new file mode 100644 index 000000000000..a329e7d2f39e --- /dev/null +++ b/offapi/com/sun/star/awt/XUserInputInterception.idl @@ -0,0 +1,100 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_awt_XUserInputInterception_idl__ +#define __com_sun_star_awt_XUserInputInterception_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XKeyHandler_idl__ +#include <com/sun/star/awt/XKeyHandler.idl> +#endif + +#ifndef __com_sun_star_awt_XMouseClickHandler_idl__ +#include <com/sun/star/awt/XMouseClickHandler.idl> +#endif + +module com { module sun { module star { module awt { + +/** Interface to add handlers for key and mouse events. A handler is not a passive + listener, it can even consume the event. + + @since OOo 1.1.2 + */ +published interface XUserInputInterception : ::com::sun::star::uno::XInterface +{ + /** Add a new listener that is called on <type + scope="::com::sun::star::awt">KeyEvent</type>s. Every listener is + given the opportunity to consume the event, i.e. prevent the not yet + called listeners from being called. + @param xHandler + If this is a valid reference it is inserted into the list of + handlers. It is the task of the caller to not register the + same handler twice (otherwise that listener will be called + twice.) + */ + [oneway] void addKeyHandler ( + [in] ::com::sun::star::awt::XKeyHandler xHandler); + + + /** Remove the specified listener from the list of listeners. + @param xHandler + If the reference is empty then nothing will be changed. If the + handler has been registered twice (or more) then all refrences + will be removed. + */ + [oneway] void removeKeyHandler ( + [in] ::com::sun::star::awt::XKeyHandler xHandler); + + /** Add a new listener that is called on <type + scope="::com::sun::star::awt">MouseEvent</type>s. Every listener is + given the opportunity to consume the event, i.e. prevent the not yet + called listeners from being called. + @param xHandler + If this is a valid reference it is inserted into the list of + handlers. It is the task of the caller to not register the + same handler twice (otherwise that listener will be called + twice.) + */ + [oneway] void addMouseClickHandler ( + [in] ::com::sun::star::awt::XMouseClickHandler xHandler); + + /** Remove the specified listener from the list of listeners. + @param xHandler + If the reference is empty then nothing will be changed. If the + handler has been registered twice (or more) then all refrences + will be removed. + */ + [oneway] void removeMouseClickHandler ( + [in] ::com::sun::star::awt::XMouseClickHandler xHandler); +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XVclContainer.idl b/offapi/com/sun/star/awt/XVclContainer.idl new file mode 100644 index 000000000000..9126ad18f912 --- /dev/null +++ b/offapi/com/sun/star/awt/XVclContainer.idl @@ -0,0 +1,81 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XVclContainer_idl__ +#define __com_sun_star_awt_XVclContainer_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XVclContainerListener_idl__ +#include <com/sun/star/awt/XVclContainerListener.idl> +#endif + +#ifndef __com_sun_star_awt_XWindow_idl__ +#include <com/sun/star/awt/XWindow.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** represents a VCL container window. + + @deprecated + */ +published interface XVclContainer: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** adds the specified container listener to receive + container events from this container. + */ + [oneway] void addVclContainerListener( [in] com::sun::star::awt::XVclContainerListener l ); + + //------------------------------------------------------------------------- + + /** removes the specified container listener so that it + no longer receives container events from this container. + */ + [oneway] void removeVclContainerListener( [in] com::sun::star::awt::XVclContainerListener l ); + + //------------------------------------------------------------------------- + + /** returns all windows. + */ + sequence<com::sun::star::awt::XWindow> getWindows(); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XVclContainerListener.idl b/offapi/com/sun/star/awt/XVclContainerListener.idl new file mode 100644 index 000000000000..160972dd3036 --- /dev/null +++ b/offapi/com/sun/star/awt/XVclContainerListener.idl @@ -0,0 +1,74 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XVclContainerListener_idl__ +#define __com_sun_star_awt_XVclContainerListener_idl__ + +#ifndef __com_sun_star_lang_XEventListener_idl__ +#include <com/sun/star/lang/XEventListener.idl> +#endif + +#ifndef __com_sun_star_awt_VclContainerEvent_idl__ +#include <com/sun/star/awt/VclContainerEvent.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** makes it possible to receive container events. + + <p>Container events are provided <strong>only</strong> for + notification purposes. The VCL will automatically handle + add and remove operations internally.</p> + + @deprecated + */ +published interface XVclContainerListener: com::sun::star::lang::XEventListener +{ + //------------------------------------------------------------------------- + + /** is invoked when a window has been added to the VCL container window. + */ + [oneway] void windowAdded( [in] com::sun::star::awt::VclContainerEvent e ); + + //------------------------------------------------------------------------- + + /** is invoked when a window has been removed from the VCL container + window. + */ + [oneway] void windowRemoved( [in] com::sun::star::awt::VclContainerEvent e ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XVclContainerPeer.idl b/offapi/com/sun/star/awt/XVclContainerPeer.idl new file mode 100644 index 000000000000..363e580ac7dc --- /dev/null +++ b/offapi/com/sun/star/awt/XVclContainerPeer.idl @@ -0,0 +1,77 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XVclContainerPeer_idl__ +#define __com_sun_star_awt_XVclContainerPeer_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XWindow_idl__ +#include <com/sun/star/awt/XWindow.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** gives access to the VCL container window implementation. + + @deprecated + */ +published interface XVclContainerPeer: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** enable as dialog control. + */ + [oneway] void enableDialogControl( [in] boolean bEnable ); + + //------------------------------------------------------------------------- + + /** sets the tab order. + */ + [oneway] void setTabOrder( [in] sequence<com::sun::star::awt::XWindow> WindowOrder, + [in] sequence<any> Tabs, + [in] boolean GroupControl ); + + //------------------------------------------------------------------------- + + /** sets a group. + */ + [oneway] void setGroup( [in] sequence<com::sun::star::awt::XWindow> Windows ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XVclWindowPeer.idl b/offapi/com/sun/star/awt/XVclWindowPeer.idl new file mode 100644 index 000000000000..1e5e03b58b1f --- /dev/null +++ b/offapi/com/sun/star/awt/XVclWindowPeer.idl @@ -0,0 +1,121 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XVclWindowPeer_idl__ +#define __com_sun_star_awt_XVclWindowPeer_idl__ + +#ifndef __com_sun_star_awt_XWindowPeer_idl__ +#include <com/sun/star/awt/XWindowPeer.idl> +#endif + +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + +#ifndef __com_sun_star_awt_FontDescriptor_idl__ +#include <com/sun/star/awt/FontDescriptor.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** gives access to the VCL window implementation. + + @deprecated + */ +published interface XVclWindowPeer: com::sun::star::awt::XWindowPeer +{ + //------------------------------------------------------------------------- + + /** returns <true/> if the window peer is a child, <false/> otherwise. + */ + boolean isChild( [in] com::sun::star::awt::XWindowPeer Peer ); + + //------------------------------------------------------------------------- + + /** sets the design mode for use in a design editor. + */ + [oneway] void setDesignMode( [in] boolean bOn ); + + //------------------------------------------------------------------------- + + /** returns <true/> if the window peer is in design mode, + <false/> otherwise. + */ + boolean isDesignMode(); + + //------------------------------------------------------------------------- + + /** enables clipping of sibling windows. + */ + [oneway] void enableClipSiblings( [in] boolean bClip ); + + //------------------------------------------------------------------------- + + /** sets the foreground color. + */ + [oneway] void setForeground( [in] com::sun::star::util::Color Color ); + + //------------------------------------------------------------------------- + + /** sets the control font. + */ + [oneway] void setControlFont( [in] com::sun::star::awt::FontDescriptor aFont ); + + //------------------------------------------------------------------------- + + /** returns the font, foreground and background color for the specified + type. + */ + void getStyles( [in] short nType, + [out] com::sun::star::awt::FontDescriptor Font, + [out] com::sun::star::util::Color ForegroundColor, + [out] com::sun::star::util::Color BackgroundColor ); + + //------------------------------------------------------------------------- + + /** sets the value of the property with the specified name. + */ + void setProperty( [in] string PropertyName, + [in] any Value ); + + //------------------------------------------------------------------------- + + /** returns the value of the property with the specified name. + */ + any getProperty( [in] string PropertyName ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XView.idl b/offapi/com/sun/star/awt/XView.idl new file mode 100644 index 000000000000..fdc57452683f --- /dev/null +++ b/offapi/com/sun/star/awt/XView.idl @@ -0,0 +1,101 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XView_idl__ +#define __com_sun_star_awt_XView_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_XGraphics_idl__ +#include <com/sun/star/awt/XGraphics.idl> +#endif + +#ifndef __com_sun_star_awt_Size_idl__ +#include <com/sun/star/awt/Size.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** makes it possible to attach an oputput device to the object. + + <p>This kind of object is called view-object.</p> + */ +published interface XView: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** sets the output device. + */ + boolean setGraphics( [in] com::sun::star::awt::XGraphics aDevice ); + + //------------------------------------------------------------------------- + + /** returns the output device which was set using the method + <member>XView::setGraphics</member>. + */ + com::sun::star::awt::XGraphics getGraphics(); + + //------------------------------------------------------------------------- + + /** returns the size of the object in device units. + + <p>A device must be set before.</p> + */ + com::sun::star::awt::Size getSize(); + + //------------------------------------------------------------------------- + + /** draws the object at the specified position. + + <p>If the output should be clipped, the caller has to set the + clipping region.</p> + */ + [oneway] void draw( [in] long nX, + [in] long nY ); + + //------------------------------------------------------------------------- + + /** sets the zoom factor. + + <p>The zoom factor only affects the content of the view, not the size.</p> + */ + [oneway] void setZoom( [in] float fZoomX, + [in] float fZoomY ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XWindow.idl b/offapi/com/sun/star/awt/XWindow.idl new file mode 100644 index 000000000000..7742fd7b284d --- /dev/null +++ b/offapi/com/sun/star/awt/XWindow.idl @@ -0,0 +1,210 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XWindow_idl__ +#define __com_sun_star_awt_XWindow_idl__ + +#ifndef __com_sun_star_lang_XComponent_idl__ +#include <com/sun/star/lang/XComponent.idl> +#endif + +#ifndef __com_sun_star_awt_Rectangle_idl__ +#include <com/sun/star/awt/Rectangle.idl> +#endif + +#ifndef __com_sun_star_awt_XWindowListener_idl__ +#include <com/sun/star/awt/XWindowListener.idl> +#endif + +#ifndef __com_sun_star_awt_XFocusListener_idl__ +#include <com/sun/star/awt/XFocusListener.idl> +#endif + +#ifndef __com_sun_star_awt_XKeyListener_idl__ +#include <com/sun/star/awt/XKeyListener.idl> +#endif + +#ifndef __com_sun_star_awt_XMouseListener_idl__ +#include <com/sun/star/awt/XMouseListener.idl> +#endif + +#ifndef __com_sun_star_awt_XMouseMotionListener_idl__ +#include <com/sun/star/awt/XMouseMotionListener.idl> +#endif + +#ifndef __com_sun_star_awt_XPaintListener_idl__ +#include <com/sun/star/awt/XPaintListener.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies the basic operations for a window component. + + <p>A window is a rectangular region on an output device with + its own position, size, and internal coordinate system. + A window is used for displaying data. In addition, the window + receives events from the user.</p> + */ +published interface XWindow: com::sun::star::lang::XComponent +{ + //------------------------------------------------------------------------- + + /** sets the outer bounds of the window. + + @param X + the x-coordinate of the window. + + @param Y + the y-coordinate of the window. + + @param Width + the width of the window. + + @param Height + the height of the window. + + @param Flags + Flags are of type <type>PosSize</type> and specify, which parameters + are taken into account when setting the outer bounds of the window. + */ + [oneway] void setPosSize( [in] long X, + [in] long Y, + [in] long Width, + [in] long Height, + [in] short Flags ); + + //------------------------------------------------------------------------- + + /** returns the outer bounds of the window. + */ + com::sun::star::awt::Rectangle getPosSize(); + + //------------------------------------------------------------------------- + + /** shows or hides the window depending on the parameter. + */ + [oneway] void setVisible( [in] boolean Visible ); + + //------------------------------------------------------------------------- + + /** enables or disables the window depending on the parameter. + */ + [oneway] void setEnable( [in] boolean Enable ); + + //------------------------------------------------------------------------- + + /** sets the focus to the window. + */ + [oneway] void setFocus(); + + //------------------------------------------------------------------------- + + /** adds a window listener to the object. + + @param xListener + the listener to add. If this listener also supports the <type>XWindowListener2</type> interface, + it will receive the additional events declared in XWindowListener2. + */ + [oneway] void addWindowListener( [in] com::sun::star::awt::XWindowListener xListener ); + + //------------------------------------------------------------------------- + + /** removes the specified window listener from the listener list. + */ + [oneway] void removeWindowListener( [in] com::sun::star::awt::XWindowListener xListener ); + + //------------------------------------------------------------------------- + + /** adds a focus listener to the object. + */ + [oneway] void addFocusListener( [in] com::sun::star::awt::XFocusListener xListener ); + + //------------------------------------------------------------------------- + + /** removes the specified focus listener from the listener list. + */ + [oneway] void removeFocusListener( [in] com::sun::star::awt::XFocusListener xListener ); + + //------------------------------------------------------------------------- + + /** adds a key listener to the object. + */ + [oneway] void addKeyListener( [in] com::sun::star::awt::XKeyListener xListener ); + + //------------------------------------------------------------------------- + + /** removes the specified key listener from the listener list. + */ + [oneway] void removeKeyListener( [in] com::sun::star::awt::XKeyListener xListener ); + + //------------------------------------------------------------------------- + + /** adds a mouse listener to the object. + */ + [oneway] void addMouseListener( [in] com::sun::star::awt::XMouseListener xListener ); + + //------------------------------------------------------------------------- + + /** removes the specified mouse listener from the listener list. + */ + [oneway] void removeMouseListener( [in] com::sun::star::awt::XMouseListener xListener ); + + //------------------------------------------------------------------------- + + /** adds a mouse motion listener to the object. + */ + [oneway] void addMouseMotionListener( [in] com::sun::star::awt::XMouseMotionListener xListener ); + + //------------------------------------------------------------------------- + + /** removes the specified mouse motion listener from the listener list. + */ + [oneway] void removeMouseMotionListener( [in] com::sun::star::awt::XMouseMotionListener xListener ); + + //------------------------------------------------------------------------- + + /** adds a paint listener to the object. + */ + [oneway] void addPaintListener( [in] com::sun::star::awt::XPaintListener xListener ); + + //------------------------------------------------------------------------- + + /** removes the specified paint listener from the listener list. + */ + [oneway] void removePaintListener( [in] com::sun::star::awt::XPaintListener xListener ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XWindow2.idl b/offapi/com/sun/star/awt/XWindow2.idl new file mode 100644 index 000000000000..0116ff88943b --- /dev/null +++ b/offapi/com/sun/star/awt/XWindow2.idl @@ -0,0 +1,102 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XWindow2_idl__ +#define __com_sun_star_awt_XWindow2_idl__ + +#ifndef __com_sun_star_awt_XWindow_idl__ +#include <com/sun/star/awt/XWindow.idl> +#endif + +#ifndef __com_sun_star_awt_Size_idl__ +#include <com/sun/star/awt/Size.idl> +#endif + + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** specifies some extended operations for a window component. + + <p>A window is a rectangular region on an output device with + its own position, size, and internal coordinate system. + A window is used for displaying data. In addition, the window + receives events from the user.</p> + */ +published interface XWindow2: com::sun::star::awt::XWindow +{ + //------------------------------------------------------------------------- + + /** sets the inner bounds of the window, also known as the client size + + @param Size + the inner width and height of the window. + + */ + void setOutputSize( [in] com::sun::star::awt::Size aSize ); + + //------------------------------------------------------------------------- + + /** returns the inner bounds of the window, also known as the client size. + */ + com::sun::star::awt::Size getOutputSize(); + + //------------------------------------------------------------------------- + + /** returns the visibility state of the window + */ + boolean isVisible(); + + //------------------------------------------------------------------------- + + /** returns the activation state of the window + */ + boolean isActive(); + + //------------------------------------------------------------------------- + + /** returns the enabled state of the window + */ + boolean isEnabled(); + + //------------------------------------------------------------------------- + + /** returns the focus state of the window + */ + boolean hasFocus(); + + //------------------------------------------------------------------------- +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XWindowListener.idl b/offapi/com/sun/star/awt/XWindowListener.idl new file mode 100644 index 000000000000..2b7fb824d6fc --- /dev/null +++ b/offapi/com/sun/star/awt/XWindowListener.idl @@ -0,0 +1,88 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XWindowListener_idl__ +#define __com_sun_star_awt_XWindowListener_idl__ + +#ifndef __com_sun_star_lang_XEventListener_idl__ +#include <com/sun/star/lang/XEventListener.idl> +#endif + +#ifndef __com_sun_star_awt_WindowEvent_idl__ +#include <com/sun/star/awt/WindowEvent.idl> +#endif + +#ifndef __com_sun_star_lang_EventObject_idl__ +#include <com/sun/star/lang/EventObject.idl> +#endif + + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** makes it possible to receive window events. + + <p>Component events are provided <strong>only</strong> for + notification purposes. Moves and resizes will be handled + internally by the window component, so that GUI layout works properly + regardless of whether a program registers such a listener or not.</p> + */ +published interface XWindowListener: com::sun::star::lang::XEventListener +{ + //------------------------------------------------------------------------- + + /** is invoked when the window has been resized. + */ + [oneway] void windowResized( [in] com::sun::star::awt::WindowEvent e ); + + //------------------------------------------------------------------------- + + /** is invoked when the window has been moved. + */ + [oneway] void windowMoved( [in] com::sun::star::awt::WindowEvent e ); + + //------------------------------------------------------------------------- + + /** is invoked when the window has been shown. + */ + [oneway] void windowShown( [in] com::sun::star::lang::EventObject e ); + + //------------------------------------------------------------------------- + + /** is invoked when the window has been hidden. + */ + [oneway] void windowHidden( [in] com::sun::star::lang::EventObject e ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XWindowListener2.idl b/offapi/com/sun/star/awt/XWindowListener2.idl new file mode 100644 index 000000000000..1313246664ef --- /dev/null +++ b/offapi/com/sun/star/awt/XWindowListener2.idl @@ -0,0 +1,61 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XWindowListener2_idl__ +#define __com_sun_star_awt_XWindowListener2_idl__ + +#ifndef __com_sun_star_awt_XWindowListener_idl__ +#include <com/sun/star/awt/XWindowListener.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { + +//============================================================================= + +/** allows receive window-related events, additional to the ones received by an <type>XWindowListener</type> + */ +interface XWindowListener2: XWindowListener +{ + //------------------------------------------------------------------------- + + /** is called when the window has been enabled. + */ + [oneway] void windowEnabled( [in] com::sun::star::lang::EventObject e ); + + //------------------------------------------------------------------------- + + /** is called when the window has been disabled. + */ + [oneway] void windowDisabled( [in] com::sun::star::lang::EventObject e ); +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/XWindowPeer.idl b/offapi/com/sun/star/awt/XWindowPeer.idl new file mode 100644 index 000000000000..cc734d0c8784 --- /dev/null +++ b/offapi/com/sun/star/awt/XWindowPeer.idl @@ -0,0 +1,93 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XWindowPeer_idl__ +#define __com_sun_star_awt_XWindowPeer_idl__ + +#ifndef __com_sun_star_lang_XComponent_idl__ +#include <com/sun/star/lang/XComponent.idl> +#endif + +#ifndef __com_sun_star_util_Color_idl__ +#include <com/sun/star/util/Color.idl> +#endif + +#ifndef __com_sun_star_awt_Rectangle_idl__ +#include <com/sun/star/awt/Rectangle.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { + + published interface XToolkit; + published interface XPointer; + +//============================================================================= + +/** gives access to the actual window implementation on the device. + */ +published interface XWindowPeer: com::sun::star::lang::XComponent +{ + //------------------------------------------------------------------------- + + /** returns the toolkit which created this object. + */ + XToolkit getToolkit(); + + //------------------------------------------------------------------------- + + /** sets the mouse pointer. + */ + [oneway] void setPointer( [in] XPointer Pointer ); + + //------------------------------------------------------------------------- + + /** sets the background color. + */ + [oneway] void setBackground( [in] com::sun::star::util::Color Color ); + + //------------------------------------------------------------------------- + + /** invalidates the whole window with the specified + <type>InvalidateStyle</type>. + */ + [oneway] void invalidate( [in] short Flags ); + + //------------------------------------------------------------------------- + + /** invalidates a rectangular area of the window with the specified + <type>InvalidateStyle</type>. + */ + [oneway] void invalidateRect( [in] Rectangle Rect, [in] short Flags ); + +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/grid/DefaultGridColumnModel.idl b/offapi/com/sun/star/awt/grid/DefaultGridColumnModel.idl new file mode 100644 index 000000000000..db69a6b5d842 --- /dev/null +++ b/offapi/com/sun/star/awt/grid/DefaultGridColumnModel.idl @@ -0,0 +1,52 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_DefaultGridColumnModel_idl__ +#define __com_sun_star_awt_DefaultGridColumnModel_idl__ + +#ifndef __com_sun_star_awt_grid_XGridColumnModel_idl__ +#include <com/sun/star/awt/grid/XGridColumnModel.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { module grid { + +//============================================================================= + +/** If you do not want to implement the <type>XGridColumnModel</type> yourself, use this service. + @since OOo 3.3.0 + */ +service DefaultGridColumnModel +{ + interface com::sun::star::awt::grid::XGridColumnModel; +}; + +//============================================================================= + +}; }; }; };}; + +#endif diff --git a/offapi/com/sun/star/awt/grid/DefaultGridDataModel.idl b/offapi/com/sun/star/awt/grid/DefaultGridDataModel.idl new file mode 100644 index 000000000000..c487afc79b49 --- /dev/null +++ b/offapi/com/sun/star/awt/grid/DefaultGridDataModel.idl @@ -0,0 +1,53 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_DefaultGridDataModel_idl__ +#define __com_sun_star_awt_DefaultGridDataModel_idl__ + +#ifndef __com_sun_star_awt_grid_XGridDataModel_idl__ +#include <com/sun/star/awt/grid/XGridDataModel.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { module grid { + +//============================================================================= + +/** If you do not want to implement the <type>XGridDataModel</type> yourself, use this service. + + @since OOo 3.3.0 + */ +service DefaultGridDataModel +{ + interface com::sun::star::awt::grid::XGridDataModel; +}; + +//============================================================================= + +}; }; }; };}; + +#endif diff --git a/offapi/com/sun/star/awt/grid/GridColumn.idl b/offapi/com/sun/star/awt/grid/GridColumn.idl new file mode 100644 index 000000000000..a87aef84f7d3 --- /dev/null +++ b/offapi/com/sun/star/awt/grid/GridColumn.idl @@ -0,0 +1,53 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_GridColumn_idl__ +#define __com_sun_star_awt_GridColumn_idl__ + +#ifndef __com_sun_star_awt_grid_XGridColumn_idl__ +#include <com/sun/star/awt/grid/XGridColumn.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { module grid { + +//============================================================================= + +/** Represents a column as used by the <type>DefaultGridColumnModel</type> + + @since OOo 3.3.0 + */ +service GridColumn +{ + interface com::sun::star::awt::grid::XGridColumn; +}; + +//============================================================================= + +}; }; }; };}; + +#endif diff --git a/offapi/com/sun/star/awt/grid/GridColumnEvent.idl b/offapi/com/sun/star/awt/grid/GridColumnEvent.idl new file mode 100644 index 000000000000..caab721185a5 --- /dev/null +++ b/offapi/com/sun/star/awt/grid/GridColumnEvent.idl @@ -0,0 +1,63 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_grid_GridColumnEvent_idl__ +#define __com_sun_star_awt_grid_GridColumnEvent_idl__ + +#ifndef __com_sun_star_lang_EventObject_idl__ +#include <com/sun/star/lang/EventObject.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { module grid { + +//============================================================================= +/** An event used by a <type>XGridColumn</type> to notify changes in the column. + + @since OOo 3.3.0 + */ +struct GridColumnEvent: com::sun::star::lang::EventObject +{ + /** Contains the property name of the changed value **/ + string valueName; + + /** Contains the old value **/ + any oldValue; + + /** Contains the new value **/ + any newValue; + + /** Contains the index of the changed column**/ + long index; + //------------------------------------------------------------------------- +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/grid/GridControlEvent.idl b/offapi/com/sun/star/awt/grid/GridControlEvent.idl new file mode 100644 index 000000000000..ce8736fb1b93 --- /dev/null +++ b/offapi/com/sun/star/awt/grid/GridControlEvent.idl @@ -0,0 +1,54 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_GridControlEvent_idl__ +#define __com_sun_star_awt_GridControlEvent_idl__ + +#ifndef __com_sun_star_lang_EventObject_idl__ +#include <com/sun/star/lang/EventObject.idl> +#endif + + +//============================================================================= + +module com { module sun { module star { module awt { module grid { + +//============================================================================= + + +struct GridControlEvent: com::sun::star::lang::EventObject +{ + //------------------------------------------------------------------------- + + string ActionCommand; + +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/grid/GridDataEvent.idl b/offapi/com/sun/star/awt/grid/GridDataEvent.idl new file mode 100644 index 000000000000..1e0afb610f16 --- /dev/null +++ b/offapi/com/sun/star/awt/grid/GridDataEvent.idl @@ -0,0 +1,78 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_grid_GridDataEvent_idl__ +#define __com_sun_star_awt_grid_GridDataEvent_idl__ + +#include <com/sun/star/lang/EventObject.idl> + +//============================================================================= + +module com { module sun { module star { module awt { module grid { + +//============================================================================= + +/** An event used by a <type>XGridDataModel</type> to notify changes in the data + model to the <type>XGridControl</type>. + You usually need to fill this event only if you implement the <type>XGridDataModel</type> + yourself. + + @see XGridDataModel + @see XGridControl + @see XGridDataListener + + @sonce OOo 3.3.0 + */ +struct GridDataEvent: com::sun::star::lang::EventObject +{ + //------------------------------------------------------------------------- + + /** Contains the property name of the changed value **/ + string valueName; + + /** Contains the old value **/ + any oldValue; + + /** Contains the new value **/ + any newValue; + + /** Contains the index of the changed row**/ + long index; + + /** Contains the header name of the changed row**/ + string headerName; + + /** Contains the changed row**/ + sequence<any> rowData; + + +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/grid/GridInvalidDataException.idl b/offapi/com/sun/star/awt/grid/GridInvalidDataException.idl new file mode 100644 index 000000000000..af1f90dfdc8b --- /dev/null +++ b/offapi/com/sun/star/awt/grid/GridInvalidDataException.idl @@ -0,0 +1,58 @@ +/************************************************************************* + * + * 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: GridInvalidDataException.idl,v $ + * $Revision: 1.0 $ + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_grid_GridInvalidDataException_idl__ +#define __com_sun_star_awt_grid_GridInvalidDataException_idl__ + +#ifndef __com_sun_star_uno_RuntimeException_idl__ +#include <com/sun/star/uno/RuntimeException.idl> +#endif + + +//============================================================================= + +module com { module sun { module star { module awt { module grid { + +//============================================================================= + +/** Exception is thrown to indicate that set data is invalid, e.g. type of data is unknown + or data count doesn't match with column count. + + @since OOo 3.3.0 + */ +exception GridInvalidDataException : com::sun::star::uno::RuntimeException +{ + +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/grid/GridInvalidModelException.idl b/offapi/com/sun/star/awt/grid/GridInvalidModelException.idl new file mode 100644 index 000000000000..9d96daf624bb --- /dev/null +++ b/offapi/com/sun/star/awt/grid/GridInvalidModelException.idl @@ -0,0 +1,57 @@ +/************************************************************************* + * + * 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: GridInvalidModelException.idl,v $ + * $Revision: 1.0 $ + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_grid_GridInvalidModelException_idl__ +#define __com_sun_star_awt_grid_GridInvalidModelException_idl__ + +#ifndef __com_sun_star_uno_RuntimeException_idl__ +#include <com/sun/star/uno/RuntimeException.idl> +#endif + + +//============================================================================= + +module com { module sun { module star { module awt { module grid { + +//============================================================================= + +/** Exception is thrown when data or column model isn't set. + + @since OOo 3.3.0 + */ +exception GridInvalidModelException : com::sun::star::uno::RuntimeException +{ + +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/grid/GridSelectionEvent.idl b/offapi/com/sun/star/awt/grid/GridSelectionEvent.idl new file mode 100644 index 000000000000..e9b87c2fe7ed --- /dev/null +++ b/offapi/com/sun/star/awt/grid/GridSelectionEvent.idl @@ -0,0 +1,71 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_GridSelectionEvent_idl__ +#define __com_sun_star_awt_GridSelectionEvent_idl__ + +#ifndef __com_sun_star_lang_EventObject_idl__ +#include <com/sun/star/lang/EventObject.idl> +#endif + +#ifndef __com_sun_star_awt_grid_SelectionEventType_idl__ +#include <com/sun/star/awt/grid/SelectionEventType.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { module grid { + +//============================================================================= + +/** An event used by a <type>XGridControl</type> to notify changes in the selection. + + @see XGridControl + @see XGridSelectionListener + */ +struct GridSelectionEvent: com::sun::star::lang::EventObject +{ + //------------------------------------------------------------------------- + + /** the selected row*/ + long Row; + + /** the selected column*/ + long Column; + + /**number of selected rows, if multiple rows selected*/ + long Range; + + /** Contains the action <type>SelectionEventType</types> that was performed **/ + SelectionEventType Action; + +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/grid/ScrollBarMode.idl b/offapi/com/sun/star/awt/grid/ScrollBarMode.idl new file mode 100644 index 000000000000..d22cd8f30c78 --- /dev/null +++ b/offapi/com/sun/star/awt/grid/ScrollBarMode.idl @@ -0,0 +1,70 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_grid_ScrollBarMode_idl__ +#define __com_sun_star_awt_grid_ScrollBarMode_idl__ + + +//============================================================================= + +module com { module sun { module star { module awt { module grid { + +//============================================================================= + +/** specifies the adjustment type. + */ +enum ScrollBarMode +{ + //------------------------------------------------------------------------- + + /** adjustment is originated by a line jump. + + <p>A line jump can, for example, be caused by a click on + one of the pointer buttons.</p> + */ + AUTO, + + //------------------------------------------------------------------------- + + /** adjustment is originated by a page jump. + + <p>A page jump can, for example, be caused by a click in the + background area of the scrollbar (neither one of the pointer + buttons, nor the thumb).</p> + */ + ON, + + OFF + + + +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/grid/SelectionEventType.idl b/offapi/com/sun/star/awt/grid/SelectionEventType.idl new file mode 100644 index 000000000000..c7ee61498cc3 --- /dev/null +++ b/offapi/com/sun/star/awt/grid/SelectionEventType.idl @@ -0,0 +1,66 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_grid_SelectionEventType_idl__ +#define __com_sun_star_awt_grid_SelectionEventType_idl__ + + +//============================================================================= + +module com { module sun { module star { module awt { module grid { + +//============================================================================= + +/** specifies the type of a selection event, as used by + <type>GridSelectionEvent</type>. + */ +enum SelectionEventType +{ + //------------------------------------------------------------------------- + + /** This value indicates that a selection was added to the grid control + */ + ADD, + + //------------------------------------------------------------------------- + + /** This value indicates that a selection was removed from the grid control + */ + REMOVE, + + //------------------------------------------------------------------------- + + /** This value indicates that a selection was changed + */ + CHANGE + +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/grid/UnoControlGrid.idl b/offapi/com/sun/star/awt/grid/UnoControlGrid.idl new file mode 100644 index 000000000000..542c27085dcb --- /dev/null +++ b/offapi/com/sun/star/awt/grid/UnoControlGrid.idl @@ -0,0 +1,82 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_UnoControlGrid_idl__ +#define __com_sun_star_awt_UnoControlGrid_idl__ + +#ifndef __com_sun_star_awt_UnoControl_idl__ +#include <com/sun/star/awt/UnoControl.idl> +#endif + +#ifndef __com_sun_star_awt_grid_XGridControl_idl__ +#include <com/sun/star/awt/grid/XGridControl.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { module grid { + +//============================================================================= + +//============================================================================= + +/** A control that displays a set of tabular data. + + <p> + <h4>The Column Model</h4> + <p>The horizontal structure of the grid is defined by the <type>XGridColumnModel</type> implemented in <type>DefaultGridColumnModel</type> + The <type>XGridColumn</type> implemented in <typeGridColumn</type> describes the properties and behavior of a single column. Use the <member>XGridColumnModel::addColumn()</member> to add a column to the column model. + </p> + <p> + <h4>The Data Model</h4> + <p> All row data are stored in the <type>XGridDataModel</type>. + Use the <type>DefaultGridDataModel</type> to add <member>XGridDataModel::addRow()</member> or remove <member>XGridDataModel::removeRow()</member> rows. + </p> + + <p>The column and data model must be set at the <member>UnoControlGridModel::ColumnModel</member> and <member>UnoControlGridModel::GridDataModel</member> properties.</p> + + <h4>Selection</h4> + <p>If you are interested in knowing when the selection changes implement a + <type>XGridSelectionListener</type> and add the instance with the method + <member>XGridSelection::addSelectionListener()</member>. + You than will be notified for any selection change. + + The <type>XGridSelection</type> interface provides a bunch of methods to set and get selection for the grid control. + </p> + @since OOo 3.3.0 + */ +service UnoControlGrid +{ + service com::sun::star::awt::UnoControl; + + interface com::sun::star::awt::grid::XGridControl; +}; + +//============================================================================= + +}; }; }; };}; + +#endif diff --git a/offapi/com/sun/star/awt/grid/UnoControlGridModel.idl b/offapi/com/sun/star/awt/grid/UnoControlGridModel.idl new file mode 100644 index 000000000000..7eea49624045 --- /dev/null +++ b/offapi/com/sun/star/awt/grid/UnoControlGridModel.idl @@ -0,0 +1,163 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_grid_UnoControlGridModel_idl__ +#define __com_sun_star_awt_grid_UnoControlGridModel_idl__ + +#include <com/sun/star/awt/grid/XGridColumnModel.idl> + +#include <com/sun/star/awt/grid/XGridDataModel.idl> + +#include <com/sun/star/awt/grid/ScrollBarMode.idl> + +#include <com/sun/star/awt/UnoControlModel.idl> + +#include <com/sun/star/view/SelectionType.idl> + +#include <com/sun/star/awt/FontDescriptor.idl> + +#include <com/sun/star/style/VerticalAlignment.idl> + +#include <com/sun/star/util/Color.idl> + +//============================================================================= + +module com { module sun { module star { module awt { module grid { + +//============================================================================= + +/** specifies the standard model of a <type>UnoControlGridModel</type>. + + @since OOo 3.3.0 + */ +service UnoControlGridModel +{ + /** specifies the standard model of an <type scope="com::sun::star::awt">UnoControl</type>. */ + service com::sun::star::awt::UnoControlModel; + + /** Specifies whether the grid control should display a special header column. + <p>The default value is <FALSE/></p> + */ + [property] boolean ShowRowHeader; + + /** Specifies whether the grid control should display a title row. + <p>The default value is <TRUE/></p> + */ + [property] boolean ShowColumnHeader; + + /** Specifies the <type>XGridColumnModel</type> that is providing the column structure. + + <p>You can implement your own instance of <type>XGridColumnModel</type> or use + the <type>DefaultGridColumnModel</type>. + */ + [property] XGridColumnModel ColumnModel; + + /** Specifies the <type>XGridDataModel</type> that is providing the hierarchical data. + + <p>You can implement your own instance of <type>XGridDataModel</type> or use + the <type>DefaultGridDataModel</type>. + */ + [property] XGridDataModel DataModel; + + /** Specifies the vertical scrollbar mode. + <p>The default value is <FALSE/></p> + */ + [property] boolean HScroll; + + /** Specifies the horizontal scrollbar mode. + <p>The default value is <FALSE/></p> + */ + [property] boolean VScroll; + + /** Specifies that the control can be reached with the TAB key. + */ + [property] boolean Tabstop; + + /** Specifies the selection mode that is enabled for this grid control. + <p>The default value is <member scope="com::sun::star::view">SelectionType::SINGLE</member></p> + */ + [property] ::com::sun::star::view::SelectionType SelectionModel; + + /** Specifies the background color of rows. If color for even rows is set, then specifies + the color of odd rows. Default value is white. + */ + [property] ::com::sun::star::util::Color RowBackgroundColor; + + /** Specifies the background color of even rows. Default value is white. + */ + [property] ::com::sun::star::util::Color EvenRowBackgroundColor; + + /** Specifies the background color of header. Default value is white. + */ + [property] ::com::sun::star::util::Color HeaderBackgroundColor; + + /** Specifies the text color. Default value is black. + */ + [property] ::com::sun::star::util::Color TextColor; + + /** Specifies the line color. Default value is white. + */ + [property] ::com::sun::star::util::Color LineColor; + + /** specifies the vertical alignment of the content in the control. + + <pre> + TOP + MIDDLE + BOTTOM + </pre> + */ + [property] com::sun::star::style::VerticalAlignment VerticalAlign; + + /** specifies the font attributes of the text in the control. + */ + [property] com::sun::star::awt::FontDescriptor FontDescriptor; + + /** specifies the <type scope="com::sun::star::text">FontEmphasis</type> + value of the text in the control. + */ + [property] short FontEmphasisMark; + + /** specifies the <type scope="com::sun::star::text">FontRelief</type> + value of the text in the control. + */ + [property] short FontRelief; + + /** specifies the help text of the control. + */ + [property] string HelpText; + + /** specifies the help URL of the control. + */ + [property] string HelpURL; + +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/grid/XGridCell.idl b/offapi/com/sun/star/awt/grid/XGridCell.idl new file mode 100644 index 000000000000..08f3cfd1b2d5 --- /dev/null +++ b/offapi/com/sun/star/awt/grid/XGridCell.idl @@ -0,0 +1,56 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_grid_XGridCell_idl__ +#define __com_sun_star_awt_grid_XGridCell_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + + + +//============================================================================= + +module com { module sun { module star { module awt { module grid { + +//============================================================================= + +interface XGridCell +{ + + [attribute] string Value; + + [attribute] boolean Editable; + + [attribute] any Data; +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/grid/XGridCellRenderer.idl b/offapi/com/sun/star/awt/grid/XGridCellRenderer.idl new file mode 100644 index 000000000000..7f9fa28c3307 --- /dev/null +++ b/offapi/com/sun/star/awt/grid/XGridCellRenderer.idl @@ -0,0 +1,52 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_grid_XGridCellRenderer_idl__ +#define __com_sun_star_awt_grid_XGridCellRenderer_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { module grid { + +//============================================================================= + +/** renderer for cells + */ +interface XGridCellRenderer +{ + //------------------------------------------------------------------------- + +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/grid/XGridColumn.idl b/offapi/com/sun/star/awt/grid/XGridColumn.idl new file mode 100644 index 000000000000..d217ff5d4ac6 --- /dev/null +++ b/offapi/com/sun/star/awt/grid/XGridColumn.idl @@ -0,0 +1,111 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_grid_XGridColumn_idl__ +#define __com_sun_star_awt_grid_XGridColumn_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif +#include <com/sun/star/style/HorizontalAlignment.idl> +#include <com/sun/star/awt/grid/XGridColumnListener.idl> + + +//============================================================================= + +module com { module sun { module star { module awt { module grid { + +//============================================================================= + +/** The <type>XGridColumn</types> defines the properties and behavior of a column in a grid control + @since OOo 3.3.0 + */ +interface XGridColumn +{ + /** Specifies the an idendifier of the colomn.**/ + [attribute] any Identifier; + + /** Specifies the default column witdth. **/ + [attribute] long ColumnWidth; + + /** Specifies the preferred column witdth. **/ + [attribute] long PreferredWidth; + + /** Specifies the min column witdth. **/ + [attribute] long MinWidth; + + /** Specifies the max column witdth. **/ + [attribute] long MaxWidth; + + /** Specifies whether column has fixed size or not. **/ + [attribute] boolean Resizeable; + + /** Specifies the horizontal alignment of the content in the control. + + <pre> + LEFT + CENTER + RIGHT + </pre> + */ + [attribute] ::com::sun::star::style::HorizontalAlignment HorizontalAlign; + + /** A title is displayed in the colum header row if <method>UnoControlGridModel::ShowRowHeader</method> is set to <true/>**/ + [attribute] string Title; + + /** Adds a listener for the <type>GridColumnEvent</type> posted after the grid changes. + @param Listener + the listener to add. + */ + [oneway] void addColumnListener( [in] XGridColumnListener listener); + + //------------------------------------------------------------------------- + + /** Removes a listener previously added with <method>addColumnListener()</method>. + @param Listener + the listener to remove. + */ + [oneway] void removeColumnListener( [in] XGridColumnListener listener); + + /**Updates changed column widths, when column widths are being resized. + @param name + can be PrefWidth or ColWidth, depending on which was changed + @param width + the new column width + */ + void updateColumn( [in] string name, [in] long width); + /**Sets column index + @param index + index, which is the index of the column in the column array of the column model + */ + void setIndex( [in] long index ); +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/grid/XGridColumnListener.idl b/offapi/com/sun/star/awt/grid/XGridColumnListener.idl new file mode 100644 index 000000000000..8a2d044f33d5 --- /dev/null +++ b/offapi/com/sun/star/awt/grid/XGridColumnListener.idl @@ -0,0 +1,73 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_grid_XGridColumnListener_idl__ +#define __com_sun_star_awt_grid_XGridColumnListener_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_awt_grid_GridColumnEvent_idl__ +#include <com/sun/star/awt/grid/GridColumnEvent.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { module grid { + +//============================================================================= + +/** An instance of this interface is used by the <type>XGridColumnModel</type> to + get notifications about column model changes. + + <p>Usually you must not implement this interface yourself, but you must notify it correctly if + you implement the <type>XGridColumnModel</type> yourself</p>. + + @since OOo 3.3.0 + */ +interface XGridColumnListener +{ + // /** + // Invoked after a column was added to the column model. + //*/ + //void columnAdded( [in] GridColumnEvent event ); + // + // /** + // Invoked after a column was removed from the column model. + //*/ + //void columnRemoved( [in] GridColumnEvent event ); + + /** + Invoked after a column was modified. + */ + void columnChanged( [in] GridColumnEvent event ); +}; +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/grid/XGridColumnModel.idl b/offapi/com/sun/star/awt/grid/XGridColumnModel.idl new file mode 100644 index 000000000000..86e77680cd95 --- /dev/null +++ b/offapi/com/sun/star/awt/grid/XGridColumnModel.idl @@ -0,0 +1,119 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_grid_XGridColumnModel_idl__ +#define __com_sun_star_awt_grid_XGridColumnModel_idl__ + +#include <com/sun/star/uno/XInterface.idl> + +#include <com/sun/star/awt/grid/XGridColumn.idl> + +#include <com/sun/star/awt/grid/XGridColumnListener.idl> + +//============================================================================= + +module com { module sun { module star { module awt { module grid { + +//============================================================================= + +/** An instance of this interface is used by the <type>UnoControlGrid</type> to + retrieve the column structure that is displayed in the actual control. + + If you do not need your own model implementation, you can also use the <type>DefaultGridColumnModel</type>. + + @since OOo 3.3.0 +*/ +interface XGridColumnModel +{ + ///** Specifies whether column selection is allowed + //*/ + //[attribute] boolean ColumnSelectionAllowed; + + /**Specifies the height of column header. + */ + [attribute] long ColumnHeaderHeight; + + /** Returns the number of columns. + @returns + the number of columns. + */ + long getColumnCount(); + + /** Adds a column to the model. + @param column + the column to add to the model. + + @returns + the index of new created column. + */ + long addColumn( [in] XGridColumn column ); + + /* + long getSelectedCount(); + + sequence<XGridColumn> getSelectedColumns(); + + sequence<long> getSelectedIndex(); + + */ + + /** Returns all columns of the model. + @returns + all columns associated with the model in a sequence of <type>XGridColumn</type>. + */ + sequence<XGridColumn> getColumns(); + + /** Returns a specific column. + @param index + the position of the requested column. + @returns + the requested column. + */ + XGridColumn getColumn( [in] long index); + + /** Sets default columns to the column model. + @param elements + the number of default columns that should be set. + */ + void setDefaultColumns([in] long elements); + + /**Creates new XGridColumn with the settings of other column. To be used if the columns which are added to + the column model have the same settings. + @param column + the column, which is already created + */ + XGridColumn copyColumn( [in] XGridColumn column ); + + /* + long getTotalColumnWidth(); + */ +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/grid/XGridControl.idl b/offapi/com/sun/star/awt/grid/XGridControl.idl new file mode 100644 index 000000000000..5019a571663b --- /dev/null +++ b/offapi/com/sun/star/awt/grid/XGridControl.idl @@ -0,0 +1,70 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_grid_XGridControl_idl__ +#define __com_sun_star_awt_grid_XGridControl_idl__ + +#include <com/sun/star/awt/grid/XGridSelection.idl> +#include <com/sun/star/awt/grid/XGridColumnModel.idl> +#include <com/sun/star/awt/grid/XGridDataModel.idl> +#include <com/sun/star/awt/XMouseListener.idl> + +//============================================================================= + +module com { module sun { module star { module awt { module grid { + +//============================================================================= + +/** An interface to a control that displays a tabular data. + + @see UnoControlGrid + + @since OOo 3.3.0 + */ +interface XGridControl: XGridSelection +{ + /** Converting + */ + + long getItemIndexAtPoint( [in] long x, [in] long y); + + /** Sets tooltip for row + @param textForTooltip + text, which will be shown as tooltip. + If only cell content should be displayed, leave sequence empty. + @param columnsForTooltip + column numbers, which define the cell content that should be shown in the tooltip. + If only text should be shown, leave this sequence empty. + */ + void setToolTip( [in] sequence< string > textForTooltip, [in] sequence< long > columnsForTooltip); + +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/grid/XGridControlListener.idl b/offapi/com/sun/star/awt/grid/XGridControlListener.idl new file mode 100644 index 000000000000..6f4fdf68ccd4 --- /dev/null +++ b/offapi/com/sun/star/awt/grid/XGridControlListener.idl @@ -0,0 +1,49 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_grid_XGridControlListener_idl__ +#define __com_sun_star_awt_grid_XGridControlListener_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { module grid { + +//============================================================================= + +interface XGridControlListener +{ + +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/grid/XGridDataListener.idl b/offapi/com/sun/star/awt/grid/XGridDataListener.idl new file mode 100644 index 000000000000..d6d0d930b331 --- /dev/null +++ b/offapi/com/sun/star/awt/grid/XGridDataListener.idl @@ -0,0 +1,75 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_grid_XGridDataListener_idl__ +#define __com_sun_star_awt_grid_XGridDataListener_idl__ + +#ifndef __com_sun_star_awt_grid_GridDataEvent_idl__ +#include <com/sun/star/awt/grid/GridDataEvent.idl> +#endif + +#ifndef __com_sun_star_lang_XEventListener_idl__ +#include <com/sun/star/lang/XEventListener.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { module grid { + +//============================================================================= + +/** An instance of this interface is used by the <type>XGridDataModel</type> to + get notifications about data model changes. + + <p>Usually you must not implement this interface yourself, but you must notify it correctly if + you implement the <type>XGridDataModel</type> yourself</p>. + + @since OOo 3.3.0 + */ +interface XGridDataListener: com::sun::star::lang::XEventListener +{ + + /** + Invoked after a row was added to the data model. + */ + void rowAdded( [in] GridDataEvent Event ); + + /** + Invoked after a row was added to the data model. + */ + void rowRemoved( [in] GridDataEvent Event ); + + /** + Invoked after a row was added to the data model. + */ + void dataChanged( [in] GridDataEvent Event ); +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/grid/XGridDataModel.idl b/offapi/com/sun/star/awt/grid/XGridDataModel.idl new file mode 100644 index 000000000000..5cc4085807e1 --- /dev/null +++ b/offapi/com/sun/star/awt/grid/XGridDataModel.idl @@ -0,0 +1,134 @@ +/************************************************************************* + * + * $Revision: 1.8 $ + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_grid_XGridDataModel_idl__ +#define __com_sun_star_awt_grid_XGridDataModel_idl__ + + +#include <com/sun/star/lang/XComponent.idl> +#include <com/sun/star/awt/grid/XGridDataListener.idl> + + +//============================================================================= + +module com { module sun { module star { module awt { module grid { + +//============================================================================= +/** An instance of this interface is used by the <type>UnoControlGrid</type> to + retrieve the content data that is displayed in the actual control. + + If you do not need your own model implementation, you can also use the <type>DefaultGridDataModel</type>. + + @since OOo 3.3.0 +*/ +interface XGridDataModel: ::com::sun::star::lang::XComponent +{ + /** Specifies the height of each row. + */ + [attribute] long RowHeight; + + /** Contains the row header. + */ + [attribute] sequence< string > RowHeaders; + + /** Returns the content of each row. + */ + [attribute,readonly] sequence< sequence< any > > Data; + + /**Specifies the width of row header. + */ + [attribute] long RowHeaderWidth; + + /** Returns the number of rows in in the model. + @returns + the number of rows. + */ + long getRowCount(); + + /** Adds a row to the model. + + @param headername + specifies the name of the row. + @param data + the content of the row. + */ + void addRow( [in] string headername, [in] sequence< any > data ); + + /** Removes a row from the model. + + @param index + the index of the row that should be removed. + */ + void removeRow( [in] long index); + + /** Removes all rows from the model. + */ + void removeAll(); + + /**Updates the content of a given cell. + @param row + the row index + @param column + the column index + @param value + the new value of the cell. + */ + void updateCell([in] long row, [in] long column, [in] any value ); + + /**Updates the content of a given row. + @param row + the row index + @param columns + column indexes of the cells, which should be updated + @param value + the new values of the cells. + */ + void updateRow([in] long row, [in] sequence< long > columns, [in] sequence< any > values); + + //------------------------------------------------------------------------- + + /** Adds a listener for the <type>GridDataEvent</type> posted after the grid changes. + @param Listener + the listener to add. + */ + [oneway] void addDataListener( [in] XGridDataListener listener); + + //------------------------------------------------------------------------- + + /** Removes a listener previously added with <method>addDataListener()</method>. + @param Listener + the listener to remove. + */ + [oneway] void removeDataListener( [in] XGridDataListener listener); + +}; + +//============================================================================= + +}; }; }; };}; + +#endif diff --git a/offapi/com/sun/star/awt/grid/XGridSelection.idl b/offapi/com/sun/star/awt/grid/XGridSelection.idl new file mode 100644 index 000000000000..5049426018b0 --- /dev/null +++ b/offapi/com/sun/star/awt/grid/XGridSelection.idl @@ -0,0 +1,127 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_grid_XGridSelection_idl__ +#define __com_sun_star_awt_grid_XGridSelection_idl__ + +#include <com/sun/star/uno/XInterface.idl> +#include <com/sun/star/awt/grid/XGridSelectionListener.idl> +#include <com/sun/star/view/SelectionType.idl> + +//============================================================================= + +module com { module sun { module star { module awt { module grid { + +//============================================================================= + +/** This interfaces provides access to the selection of row for <type>UnoControlGrid</type>. + */ +interface XGridSelection +{ + /** Returns the lowest index of the selection. + @returns + the lowest index. + */ + long getMinSelectionIndex(); + + /** Returns the highest index of the selection. + @returns + the highest index. + */ + long getMaxSelectionIndex(); + + /** Selects all rows. + */ + [oneway] void selectAllRows(); + + /** Selects multiple rows. Previous selections will be removed. + @param rangeOfRows + array of rows indexes, which will be selected. + */ + [oneway] void selectRows( [in] sequence< long > rangeOfRows); + + /** Deselects all selected rows. + */ + [oneway] void deselectAllRows(); + + /** Deselects selected rows. Selected rows, which aren't in the range remain selected. + @param rangeOfRows + array of rows indexes, which will be deselected. + */ + [oneway] void deselectRows( [in] sequence< long > rangeOfRows); + + /** Returns the indicies of all selected rows. + @returns + a sequence of indicies. + */ + sequence< long > getSelection(); + + /** Returns whether rows are selected. + @returns + <true/> if rows are selected otherwise <false/>. + */ + boolean isSelectionEmpty(); + + /** Returns whether a specific row is selected. + @param + the index of a row. + @returns + <true/> if row are selected otherwise <false/>. + */ + boolean isSelectedIndex( [in] long index); + + /** Marks a row as selected. + @param index + the index of a row. + */ + [oneway] void selectRow( [in] long index); + + /* + [oneway] void selectColumn( [in] long x); + */ + + /** Adds a listener for the <type>GridSelectionEvent</type> posted after the grid changes. + @param listener + the listener to add. + */ + [oneway] void addSelectionListener( [in] XGridSelectionListener listener); + + //------------------------------------------------------------------------- + + /** Removes a listener previously added with <method>addSelectionListener()</method>. + @param listener + the listener to remove. + */ + [oneway] void removeSelectionListener( [in] XGridSelectionListener listener); + + +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/grid/XGridSelectionListener.idl b/offapi/com/sun/star/awt/grid/XGridSelectionListener.idl new file mode 100644 index 000000000000..61e8d3050b0d --- /dev/null +++ b/offapi/com/sun/star/awt/grid/XGridSelectionListener.idl @@ -0,0 +1,63 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_grid_XGridSelectionListener_idl__ +#define __com_sun_star_awt_grid_XGridSelectionListener_idl__ + +#ifndef __com_sun_star_lang_XEventListener_idl__ +#include <com/sun/star/lang/XEventListener.idl> +#endif + +#ifndef __com_sun_star_awt_grid_GridSelectionEvent_idl__ +#include <com/sun/star/awt/grid/GridSelectionEvent.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { module grid { + +//============================================================================= + +/** An instance of this interface is used by the <type>XGridSelection</type> to + get notifications about selection changes. + + <p>Usually you must not implement this interface yourself, but you must notify it correctly if + you implement the <type>XGridSelection</type> yourself</p>. + */ +interface XGridSelectionListener: com::sun::star::lang::XEventListener +{ + //------------------------------------------------------------------------- + /** Invoked after a selection was changed. + */ + [oneway] void selectionChanged( [in] GridSelectionEvent gridSelectionEvent); + +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/grid/makefile.mk b/offapi/com/sun/star/awt/grid/makefile.mk new file mode 100644 index 000000000000..02c159f8ffec --- /dev/null +++ b/offapi/com/sun/star/awt/grid/makefile.mk @@ -0,0 +1,66 @@ +#************************************************************************* +# +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. +# +# Copyright 2000, 2010 Oracle and/or its affiliates. +# +# OpenOffice.org - a multi-platform office productivity suite +# +# 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 +# <http://www.openoffice.org/license.html> +# for a copy of the LGPLv3 License. +# +#************************************************************************* + +PRJ=..$/..$/..$/..$/.. + +PRJNAME=api + +TARGET=cssawtgrid +PACKAGE=com$/sun$/star$/awt$/grid + +# --- Settings ----------------------------------------------------- + +.INCLUDE : $(PRJ)$/util$/makefile.pmk + +# ------------------------------------------------------------------------ +IDLFILES=\ + GridColumnEvent.idl\ + GridControlEvent.idl\ + GridDataEvent.idl\ + SelectionEventType.idl\ + GridSelectionEvent.idl\ + XGridControlListener.idl\ + XGridSelectionListener.idl\ + XGridSelection.idl\ + XGridColumn.idl\ + XGridColumnListener.idl\ + XGridDataListener.idl\ + XGridCell.idl\ + XGridCellRenderer.idl\ + DefaultGridDataModel.idl\ + XGridDataModel.idl\ + XGridColumnModel.idl\ + ScrollBarMode.idl\ + XGridControl.idl\ + UnoControlGrid.idl\ + UnoControlGridModel.idl\ + GridInvalidDataException.idl\ + GridInvalidModelException.idl +# ------------------------------------------------------------------ + +.INCLUDE : target.mk +.INCLUDE : $(PRJ)$/util$/target.pmk diff --git a/offapi/com/sun/star/awt/makefile.mk b/offapi/com/sun/star/awt/makefile.mk new file mode 100644 index 000000000000..a6357703500c --- /dev/null +++ b/offapi/com/sun/star/awt/makefile.mk @@ -0,0 +1,342 @@ +#************************************************************************* +# +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. +# +# Copyright 2000, 2010 Oracle and/or its affiliates. +# +# OpenOffice.org - a multi-platform office productivity suite +# +# 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 +# <http://www.openoffice.org/license.html> +# for a copy of the LGPLv3 License. +# +#************************************************************************* + +PRJ=..$/..$/..$/.. + +PRJNAME=offapi + +TARGET=cssawt +PACKAGE=com$/sun$/star$/awt + +# --- Settings ----------------------------------------------------- +.INCLUDE : $(PRJ)$/util$/makefile.pmk + +# ------------------------------------------------------------------------ + +IDLFILES=\ + AccessibleButton.idl\ + AccessibleCheckBox.idl\ + AccessibleComboBox.idl\ + AccessibleDropDownComboBox.idl\ + AccessibleDropDownListBox.idl\ + AccessibleEdit.idl\ + AccessibleFixedText.idl\ + AccessibleIconChoiceControl.idl\ + AccessibleIconChoiceControlEntry.idl\ + AccessibleList.idl\ + AccessibleListBox.idl\ + AccessibleListBoxList.idl\ + AccessibleListItem.idl\ + AccessibleMenu.idl\ + AccessibleMenuBar.idl\ + AccessibleMenuItem.idl\ + AccessibleMenuSeparator.idl\ + AccessiblePopupMenu.idl\ + AccessibleRadioButton.idl\ + AccessibleScrollBar.idl\ + AccessibleStatusBar.idl\ + AccessibleStatusBarItem.idl\ + AccessibleTabBar.idl\ + AccessibleTabBarPage.idl\ + AccessibleTabBarPageList.idl\ + AccessibleTabControl.idl\ + AccessibleTabPage.idl\ + AccessibleTextField.idl\ + AccessibleToolBox.idl\ + AccessibleToolBoxItem.idl\ + AccessibleTreeListBox.idl\ + AccessibleTreeListBoxEntry.idl\ + AccessibleWindow.idl\ + ActionEvent.idl\ + AdjustmentEvent.idl\ + AdjustmentType.idl\ + AsyncCallback.idl\ + CharSet.idl\ + Command.idl\ + DeviceCapability.idl\ + DeviceInfo.idl\ + DialogProvider.idl\ + DialogProvider2.idl\ + ContainerWindowProvider.idl\ + DockingData.idl\ + DockingEvent.idl\ + EndDockingEvent.idl\ + EndPopupModeEvent.idl\ + EnhancedMouseEvent.idl\ + FieldUnit.idl\ + FocusChangeReason.idl\ + FocusEvent.idl\ + FontDescriptor.idl\ + FontEmphasisMark.idl\ + FontFamily.idl\ + FontPitch.idl\ + FontRelief.idl\ + FontSlant.idl\ + FontStrikeout.idl\ + FontType.idl\ + FontUnderline.idl\ + FontWeight.idl\ + FontWidth.idl\ + Gradient.idl\ + GradientStyle.idl\ + ImageAlign.idl\ + ImagePosition.idl\ + ImageScaleMode.idl\ + ImageStatus.idl\ + InputEvent.idl\ + InvalidateStyle.idl\ + ItemEvent.idl\ + Key.idl\ + KeyEvent.idl\ + KeyFunction.idl\ + KeyGroup.idl\ + KeyModifier.idl\ + KeyStroke.idl\ + LineEndFormat.idl\ + MenuEvent.idl\ + MenuItemStyle.idl\ + MessageBoxButtons.idl\ + MessageBoxCommand.idl\ + MouseButton.idl\ + MouseEvent.idl\ + MouseWheelBehavior.idl\ + PaintEvent.idl\ + Point.idl\ + PopupMenuDirection.idl\ + PosSize.idl\ + PrinterException.idl\ + PushButtonType.idl\ + RasterOperation.idl\ + Rectangle.idl\ + RoadmapItem.idl\ + ScrollBarOrientation.idl\ + Selection.idl\ + SimpleFontMetric.idl\ + Size.idl\ + SpinEvent.idl\ + Style.idl\ + SystemPointer.idl\ + TabController.idl\ + TabControllerModel.idl\ + TextAlign.idl\ + TextEvent.idl\ + Toolkit.idl\ + UnoControl.idl\ + UnoControlButton.idl\ + UnoControlButtonModel.idl\ + UnoControlCheckBox.idl\ + UnoControlCheckBoxModel.idl\ + UnoControlComboBox.idl\ + UnoControlComboBoxModel.idl\ + UnoControlContainer.idl\ + UnoControlContainerModel.idl\ + UnoControlCurrencyField.idl\ + UnoControlCurrencyFieldModel.idl\ + UnoControlDateField.idl\ + UnoControlDateFieldModel.idl\ + UnoControlDialog.idl\ + UnoControlDialogElement.idl\ + UnoControlDialogModel.idl\ + UnoControlEdit.idl\ + UnoControlEditModel.idl\ + UnoControlFileControl.idl\ + UnoControlFileControlModel.idl\ + UnoControlFixedHyperlink.idl\ + UnoControlFixedHyperlinkModel.idl\ + UnoControlFixedLine.idl\ + UnoControlFixedLineModel.idl\ + UnoControlFixedText.idl\ + UnoControlFixedTextModel.idl\ + UnoControlFormattedField.idl\ + UnoControlFormattedFieldModel.idl\ + UnoControlGroupBox.idl\ + UnoControlGroupBoxModel.idl\ + UnoControlImageControl.idl\ + UnoControlImageControlModel.idl\ + UnoControlListBox.idl\ + UnoControlListBoxModel.idl\ + UnoControlModel.idl\ + UnoControlNumericField.idl\ + UnoControlNumericFieldModel.idl\ + UnoControlPatternField.idl\ + UnoControlPatternFieldModel.idl\ + UnoControlProgressBar.idl\ + UnoControlProgressBarModel.idl\ + UnoControlRadioButton.idl\ + UnoControlRadioButtonModel.idl\ + UnoControlRoadmap.idl\ + UnoControlRoadmapModel.idl\ + UnoControlScrollBar.idl\ + UnoControlScrollBarModel.idl\ + UnoControlSimpleAnimation.idl\ + UnoControlSimpleAnimationModel.idl\ + UnoControlSpinButton.idl\ + UnoControlSpinButtonModel.idl\ + UnoControlThrobber.idl\ + UnoControlThrobberModel.idl\ + UnoControlTimeField.idl\ + UnoControlTimeFieldModel.idl\ + VclContainerEvent.idl\ + VclWindowPeerAttribute.idl\ + VisualEffect.idl\ + WindowAttribute.idl\ + WindowClass.idl\ + WindowDescriptor.idl\ + WindowEvent.idl\ + XActionListener.idl\ + XActivateListener.idl\ + XAdjustmentListener.idl\ + XBitmap.idl\ + XButton.idl\ + XCallback.idl\ + XCheckBox.idl\ + XComboBox.idl\ + XControl.idl\ + XControlContainer.idl\ + XControlModel.idl\ + XCurrencyField.idl\ + XDataTransferProviderAccess.idl\ + XDateField.idl\ + XDevice.idl\ + XDialog.idl\ + XDialogProvider.idl\ + XDialogProvider2.idl\ + XDialogEventHandler.idl\ + ContainerWindowProvider.idl\ + XContainerWindowProvider.idl\ + XContainerWindowEventHandler.idl\ + XDisplayBitmap.idl\ + XDisplayConnection.idl\ + XDockableWindow.idl\ + XDockableWindowListener.idl\ + XEnhancedMouseClickHandler.idl\ + XEventHandler.idl\ + XExtendedToolkit.idl\ + XFileDialog.idl\ + XFixedHyperlink.idl\ + XFixedText.idl\ + XFocusListener.idl\ + XFont.idl\ + XFont2.idl\ + XGraphics.idl\ + XImageButton.idl\ + XImageConsumer.idl\ + XImageProducer.idl\ + XInfoPrinter.idl\ + XItemEventBroadcaster.idl\ + XItemListener.idl\ + XKeyHandler.idl\ + XKeyListener.idl\ + XLayoutConstrains.idl\ + XListBox.idl\ + XMenu.idl\ + XMenuBar.idl\ + XMenuListener.idl\ + XMessageBox.idl\ + XMessageBoxFactory.idl\ + XMetricField.idl\ + XMouseClickHandler.idl\ + XMouseListener.idl\ + XMouseMotionListener.idl\ + XMouseMotionHandler.idl\ + XNumericField.idl\ + XPaintListener.idl\ + XPatternField.idl\ + XPointer.idl\ + XPopupMenu.idl\ + XPrinter.idl\ + XPrinterPropertySet.idl\ + XPrinterServer.idl\ + XProgressBar.idl\ + XProgressMonitor.idl\ + XRadioButton.idl\ + XRegion.idl\ + XRequestCallback.idl\ + XReschedule.idl\ + XScrollBar.idl\ + XSimpleTabController.idl\ + XSpinField.idl\ + XSpinListener.idl\ + XSpinValue.idl\ + XStyleChangeListener.idl\ + XStyleSettings.idl\ + XStyleSettingsSupplier.idl\ + XSystemChildFactory.idl\ + XSystemDependentMenuPeer.idl\ + XSystemDependentWindowPeer.idl\ + SystemDependentXWindow.idl\ + XSimpleAnimation.idl\ + XSimpleTabController.idl\ + XThrobber.idl\ + XTabController.idl\ + XTabControllerModel.idl\ + XTabListener.idl\ + XTextArea.idl\ + XTextComponent.idl\ + XTextEditField.idl\ + XTextLayoutConstrains.idl\ + XTextListener.idl\ + XTimeField.idl\ + XToggleButton.idl\ + XToolkit.idl\ + XTopWindow.idl\ + XTopWindow2.idl\ + XTopWindowListener.idl\ + XUnitConversion.idl\ + XUnoControlContainer.idl\ + XUserInputInterception.idl\ + XVclContainer.idl\ + XVclContainerListener.idl\ + XVclContainerPeer.idl\ + XVclWindowPeer.idl\ + XView.idl\ + XWindow.idl\ + XWindow2.idl\ + XWindowListener.idl\ + XWindowListener2.idl\ + XWindowPeer.idl\ + XMenuExtended.idl\ + MaxChildrenException.idl\ + XDialog2.idl\ + XLayoutContainer.idl\ + XLayoutFlow.idl\ + XLayoutFlowContainer.idl\ + XLayoutRoot.idl\ + XLayoutUnit.idl \ + MenuItemType.idl \ + MenuLogo.idl \ + XMenuExtended2.idl \ + XMenuBarExtended.idl \ + XPopupMenuExtended.idl \ + XItemList.idl \ + XItemListListener.idl \ + ItemListEvent.idl + +# ------------------------------------------------------------------ + +.INCLUDE : target.mk +.INCLUDE : $(PRJ)$/util$/target.pmk diff --git a/offapi/com/sun/star/awt/tree/ExpandVetoException.idl b/offapi/com/sun/star/awt/tree/ExpandVetoException.idl new file mode 100644 index 000000000000..cbee77879859 --- /dev/null +++ b/offapi/com/sun/star/awt/tree/ExpandVetoException.idl @@ -0,0 +1,58 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_tree_ExpandVetoException_idl__ +#define __com_sun_star_awt_tree_ExpandVetoException_idl__ + +#ifndef __com_sun_star_util_VetoException_idl__ +#include <com/sun/star/util/VetoException.idl> +#endif + +#ifndef __com_sun_star_awt_tree_TreeExpansionEvent_idl__ +#include <com/sun/star/awt/tree/TreeExpansionEvent.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { module tree { + +//============================================================================= + +/** Exception used to stop an expand/collapse from happening. + @see XTreeExpansionListener + @see XTreeControl + */ +exception ExpandVetoException : com::sun::star::util::VetoException +{ + /** The event that the exception was created for. */ + TreeExpansionEvent Event; +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/tree/MutableTreeDataModel.idl b/offapi/com/sun/star/awt/tree/MutableTreeDataModel.idl new file mode 100644 index 000000000000..92875a7806d8 --- /dev/null +++ b/offapi/com/sun/star/awt/tree/MutableTreeDataModel.idl @@ -0,0 +1,55 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_tree_MutableTreeDataModel_idl__ +#define __com_sun_star_awt_tree_MutableTreeDataModel_idl__ + +#ifndef __com_sun_star_awt_tree_XMutableTreeDataModelidl__ +#include <com/sun/star/awt/tree/XMutableTreeDataModel.idl> +#endif + +#ifndef __com_sun_star_awt_tree_XMutableTreeNode_idl__ +#include <com/sun/star/awt/tree/XMutableTreeNode.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { module tree { + +//============================================================================= + +/** If you do not want to implement the <type>XTreeDataModel</type> yourself, use this service. + This implementation uses <type>MutableTreeNode</type> for its nodes. + */ +service MutableTreeDataModel : XMutableTreeDataModel +{ +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/tree/MutableTreeNode.idl b/offapi/com/sun/star/awt/tree/MutableTreeNode.idl new file mode 100644 index 000000000000..c2db72d93bb6 --- /dev/null +++ b/offapi/com/sun/star/awt/tree/MutableTreeNode.idl @@ -0,0 +1,50 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_tree_MutableTreeNode_idl__ +#define __com_sun_star_awt_tree_MutableTreeNode_idl__ + +#ifndef __com_sun_star_awt_tree_XMutableTreeNode_idl__ +#include <com/sun/star/awt/tree/XMutableTreeNode.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { module tree { + +//============================================================================= + +/** Represents an editable tree node as used by the <type>MutableTreeDataModel</type> + */ +service MutableTreeNode : XMutableTreeNode +{ +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/tree/TreeControl.idl b/offapi/com/sun/star/awt/tree/TreeControl.idl new file mode 100644 index 000000000000..79ed4b86ab90 --- /dev/null +++ b/offapi/com/sun/star/awt/tree/TreeControl.idl @@ -0,0 +1,97 @@ +/************************************************************************ + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_tree_TreeControl_idl__ +#define __com_sun_star_awt_tree_TreeControl_idl__ + +#ifndef __com_sun_star_awt_tree_XTreeControl_idl__ +#include <com/sun/star/awt/tree/XTreeControl.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { module tree { + +//============================================================================= + +/** A control that displays a set of hierarchical data as an outline. + + <p> + <h4>The Data Model</h4> + <p>A specific node in a tree is identified by a <type>XTreeNode</type>. + A leaf node is a node without any children and that returns <FALSE/> when calling <member>XTreeNode::hasChildrenOnDemand()</member>. + An expanded node is a non-leaf node that will displays its children when all its ancestors are expanded. + A collapsed node is one which hides them. + A node is visible when all parent nodes are expanded and the node itself is in the display area. + </p> + + <p>The nodes are retrieved from a <type>XTreeDataModel</type>. + You can implement it yourself or use the <type>MutableTreeDataModel</type> + which uses <type>XMutableTreeNode</type> and <type>XMutableTreeDataModel</type> + for a simple and mutable data model. + + <p>The data model must be set at the <member>TreeControlModel::TreeDataModel</member> property.</p> + + <h4>Selection</h4> + <p>If you are interested in knowing when the selection changes implement a + <type scope="com::sun::star::view">XSelectionChangeListener</type> and add the instance with the method + <member scope="::com::sun::star::view">XSelectionSupplier::addSelectionChangeListener()</member>. + You than will be notified for any selection change. + </p> + + <p> + If you are interested in detecting either double-click events or when a user clicks on a node, + regardless of whether or not it was selected, you can get the <type scope="com::sun::star::awt">XWindow</type> + and add yourself as a <type scope="com::sun::star::awt">XMouseClickHandler</type>. You can use the + method <member>XTreeControl::getNodeForLocation()</member> to retrieve the node that was under the + mouse at the time the event was fired. + </p> + + <h4>Adding child nodes on demand</h4> + <p>If you want to add child nodes to your tree on demand you can do the following. + <ul> + <li>Make sure the parent node returns <TRUE/> for <member>XTreeNode::hasChildrenOnDemand()</member> either + by implementing <type>XTreeNode</type> yourself or if you use the <type>MutableTreeDataModel</type>, + use <member>XMutableTreeNode::setHasChildrenOnDemand()</member>.</li> + <li>Implement a <type>XTreeExpansionListener</type> and add the instance with the method + <member>XTreeControl::addTreeExpansionListener()</member>.</li> + </ul> + Now you get called when the node will become expanded or collapsed. + So on <member>XTreeExpansionListener::treeExpanding()</member> you can + check the <type>TreeExpansionEvent</type> if the parent node with children on demand is going to + be expanded and in that case add the missing child nodes. You can also veto the expansion or + collapsing of a parent node by using the <type>ExpandVetoException</type>. + </p> + */ +service TreeControl: XTreeControl +{ +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/tree/TreeControlModel.idl b/offapi/com/sun/star/awt/tree/TreeControlModel.idl new file mode 100644 index 000000000000..6a84d52e165e --- /dev/null +++ b/offapi/com/sun/star/awt/tree/TreeControlModel.idl @@ -0,0 +1,114 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_tree_TreeControlModel_idl__ +#define __com_sun_star_awt_tree_TreeControlModel_idl__ + +#ifndef __com_sun_star_awt_tree_XTreeDataModel_idl__ +#include <com/sun/star/awt/tree/XTreeDataModel.idl> +#endif + +#ifndef __com_sun_star_awt_UnoControlModel_idl__ +#include <com/sun/star/awt/UnoControlModel.idl> +#endif + +#ifndef __com_sun_star_view_SelectionType_idl__ +#include <com/sun/star/view/SelectionType.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { module tree { + +//============================================================================= + +/** specifies the standard model of a <type>TreeControl</type>. + */ +service TreeControlModel +{ + /** specifies the standard model of an <type scope="com::sun::star::awt">UnoControl</type>. */ + service ::com::sun::star::awt::UnoControlModel; + + /** Specifies the selection mode that is enabled for this tree. + <p>The default value is <member scope="com::sun::star::view">SelectionType::NONE</member></p> + */ + [property] ::com::sun::star::view::SelectionType SelectionType; + + /** Specifies the <type>XTreeDataModel</type> that is providing the hierarchical data. + + <p>You can implement your own instance of <type>XTreeDataModel</type> or use + the <type>MutableTreeDataModel</type>. + */ + [property] XTreeDataModel DataModel; + + /** Specifies if the root node of the tree is displayed. + <p>If <var>RootDisplayed</var> is set to <FALSE/>, the root node of a model is no longer + a valid node for the <type>XTreeControl</type> and can't be used with any method of + <type>XTreeControl</type>. + <p>The default value is <TRUE/></p> + */ + [property] boolean RootDisplayed; + + /** Specifies whether the node handles should be displayed. + <p>The handles are doted lines that visualize the tree like hirarchie<p> + <p>The default value is <TRUE/></p> + */ + [property] boolean ShowsHandles; + + /** Specifies whether the node handles should also be displayed at root level. + <p>The default value is <TRUE/></p> + */ + [property] boolean ShowsRootHandles; + + /** Specifies the height of each row, in pixels. + <p>If the specified value is less than or equal to zero, the row height is the maximum height + of all rows.</p> + <p>The default value is 0</p> + */ + [property] long RowHeight; + + /** Specifies whether the nodes of the tree are editable. + <p>The default value is <FALSE/></p> + + @see XTreeControl::startEditingAtNode() + @see XTreeEditListener + */ + [property] boolean Editable; + + /** Specifies what happens when editing is interrupted by selecting another node in the tree, + a change in the tree's data, or by some other means. + <p>Setting this property to <TRUE/> causes the changes to be automatically saved when editing + is interrupted. <FALSE/> means that editing is canceled and changes are lost + <p>The default value is <FALSE/></p> + */ + [property] boolean InvokesStopNodeEditing; +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/tree/TreeDataModelEvent.idl b/offapi/com/sun/star/awt/tree/TreeDataModelEvent.idl new file mode 100644 index 000000000000..380848950e6e --- /dev/null +++ b/offapi/com/sun/star/awt/tree/TreeDataModelEvent.idl @@ -0,0 +1,68 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_tree_TreeDataModelEvent_idl__ +#define __com_sun_star_awt_tree_TreeDataModelEvent_idl__ + +#ifndef __com_sun_star_lang_EventObject_idl__ +#include <com/sun/star/lang/EventObject.idl> +#endif + +#ifndef __com_sun_star_awt_tree_XTreeNode_idl__ +#include <com/sun/star/awt/tree/XTreeNode.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { module tree { + +//============================================================================= + +/** An event used by a <type>XTreeDataModel</type> to notify changes in the data + model to the <type>XTreeControl</type>. + You usually need to fill this event only if you implement the <type>XTreeDataModel</type> + yourself. + + @see XTreeDataModel + @see XTreeControl + @see XTreeDataModelListener + */ +struct TreeDataModelEvent : ::com::sun::star::lang::EventObject +{ + /** contains the changed, added or removed nodes. + <p> All nodes must have <member>ParentNode</member> as parent. */ + sequence< XTreeNode > Nodes; + + /** holds the parent node for changed, added or removed nodes. + <p> If this is null, <member>Nodes</member> must contain only the root node */ + XTreeNode ParentNode; +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/tree/TreeExpansionEvent.idl b/offapi/com/sun/star/awt/tree/TreeExpansionEvent.idl new file mode 100644 index 000000000000..20ee645d56e8 --- /dev/null +++ b/offapi/com/sun/star/awt/tree/TreeExpansionEvent.idl @@ -0,0 +1,59 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_tree_TreeExpansionEvent_idl__ +#define __com_sun_star_awt_tree_TreeExpansionEvent_idl__ + +#ifndef __com_sun_star_lang_EventObject_idl__ +#include <com/sun/star/lang/EventObject.idl> +#endif + +#ifndef __com_sun_star_awt_tree_XTreeNode_idl__ +#include <com/sun/star/awt/tree/XTreeNode.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { module tree { + +//============================================================================= + +/** This event tells you what node is currently expanding or collapsing. + + @see XTreeExpansionListener + @see XTreeControl + */ +struct TreeExpansionEvent : ::com::sun::star::lang::EventObject +{ + /* The node that has been expanded/collapsed.*/ + com::sun::star::awt::tree::XTreeNode Node; +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/tree/XMutableTreeDataModel.idl b/offapi/com/sun/star/awt/tree/XMutableTreeDataModel.idl new file mode 100644 index 000000000000..b2ef8c65a706 --- /dev/null +++ b/offapi/com/sun/star/awt/tree/XMutableTreeDataModel.idl @@ -0,0 +1,85 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_tree_XMutableTreeDataModel_idl__ +#define __com_sun_star_awt_tree_XMutableTreeDataModel_idl__ + +#ifndef __com_sun_star_awt_tree_XTreeDataModel_idl__ +#include <com/sun/star/awt/tree/XTreeDataModel.idl> +#endif + +#ifndef __com_sun_star_awt_tree_XMutableTreeNode_idl__ +#include <com/sun/star/awt/tree/XMutableTreeNode.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { module tree { + +//============================================================================= + +/** This is the editable version of the <type>XTreeDataModel</type>. + + <p>Note that only <type>XTreeNode</type> created from the same instance with <member>createNode</member> + are valids nodes for this instance.</p> + */ +interface XMutableTreeDataModel : XTreeDataModel +{ + /** creates a new tree node with the given value and given settings. + + @param DisplayValue + should be convertable to a string and is used by the <type>XTreeControl</type> + as a textual represenation of the created node. + + @param ChildrenOnDemand + if <TRUE/> is used as a parameter, the created node will be treated as a non-leaf + node by the <type>XTreeControl</type>, even when it has no child nodes. + + @returns + a new <type>XMutableTreeNode</type> that can be used for this model. + + @see XTreeNode::getDisplayValue() + @see XTreeNode::hasChildrenOnDemand() + */ + XMutableTreeNode createNode( [in] any DisplayValue, [in] boolean ChildrenOnDemand ); + + /** changes the root node of this model to <var>RootNode</var>. + + @param RootNode + the <type>XMutableTreeNode</type> that becomes the new root node of this model. + + @throws ::com::sun::star::lang::IllegalArgumentException + if <var>RootNode</var> is not a valid node of this <type>XTreeDataModel</type>. + */ + void setRoot( [in] XMutableTreeNode RootNode ) + raises( ::com::sun::star::lang::IllegalArgumentException ); +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/tree/XMutableTreeNode.idl b/offapi/com/sun/star/awt/tree/XMutableTreeNode.idl new file mode 100644 index 000000000000..1ecf30290400 --- /dev/null +++ b/offapi/com/sun/star/awt/tree/XMutableTreeNode.idl @@ -0,0 +1,122 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_tree_XMutableTreeNode_idl__ +#define __com_sun_star_awt_tree_XMutableTreeNode_idl__ + +#ifndef __com_sun_star_awt_tree_XTreeNode_idl__ +#include <com/sun/star/awt/tree/XTreeNode.idl> +#endif + +#ifndef __com_sun_star_lang_IllegalArgumentException_idl__ +#include <com/sun/star/lang/IllegalArgumentException.idl> +#endif + +#ifndef __com_sun_star_lang_IndexOutOfBoundsException_idl__ +#include <com/sun/star/lang/IndexOutOfBoundsException.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { module tree { + +//============================================================================= + +/** Represents a mutable tree node as used by the <type>MutableTreeDataModel</type> + */ +interface XMutableTreeNode : XTreeNode +{ + /** appends <var>ChildNode</var> to this instance. + + @throws ::com::sun::star::lang::IllegalArgumentException + if <var>ChildNode</var> is not a valid node of the corresponding <type>XTreeDataModel</type>. + */ + void appendChild( [in] XMutableTreeNode ChildNode ) + raises( com::sun::star::lang::IllegalArgumentException ); + + /** inserts <var>ChildNode</var> to this instance at the given index. + + @param Index + the index where the node will be inserted to this instance. + + @throws ::com::sun::star::lang::IllegalArgumentException + if <var>ChildNode</var> is not a valid node of the corresponding <type>XTreeDataModel</type>. + + @throws ::com::sun::star::lang::IndexOutOfBoundsException + if <var>Index</var> is less than 0 or greater then <member>XTreeNode::getChildCount()</member>. + */ + void insertChildByIndex( [in] long Index, [in] XMutableTreeNode ChildNode ) + raises( com::sun::star::lang::IllegalArgumentException, + com::sun::star::lang::IndexOutOfBoundsException ); + + /** removes the node from this instance at the specified index. + + @param Index + the index of the node to be removed from this instance. + + @throws ::com::sun::star::lang::IndexOutOfBoundsException + if <var>Index</var> is less than 0 or greater then <member>XTreeNode::getChildCount()</member>. + */ + void removeChildByIndex( [in] long Index ) + raises( com::sun::star::lang::IndexOutOfBoundsException ); + + /** Changes if the children of this node are created on demand. + + @see XTreeNode::hasChildrenOnDemand() + */ + void setHasChildrenOnDemand( [in] boolean ChildrenOnDemand ); + + /** sets the display value of this node */ + void setDisplayValue( [in] any Value ); + + /** Stores an implementation dependend value. + + <p>You can use this attribute to store data for this node that + is independend of the display value</p> + */ + [attribute] any DataValue; + + /** The URL for a graphic that is rendered before the text part of this node. + <p>If this URL is empty, no graphic is rendered. + */ + void setNodeGraphicURL( [in] string URL ); + + /** The URL for a graphic that is rendered to visualize expanded non leaf nodes. + <p>If <var>URL</var> is empty, <member>XTreeControl::DefaultExpandedGraphicURL</member> is used. + */ + void setExpandedGraphicURL( [in] string URL ); + + /** The URL for a graphic that is rendered to visualize collapsed non leaf nodes. + <p>If <var>URL</var> is empty, <member>XTreeControl::DefaultCollapsedGraphicURL</member> is used. + */ + void setCollapsedGraphicURL( [in] string URL ); +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/tree/XTreeControl.idl b/offapi/com/sun/star/awt/tree/XTreeControl.idl new file mode 100644 index 000000000000..a5341257ba45 --- /dev/null +++ b/offapi/com/sun/star/awt/tree/XTreeControl.idl @@ -0,0 +1,295 @@ +/************************************************************************ + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_tree_XTreeControl_idl__ +#define __com_sun_star_awt_tree_XTreeControl_idl__ + +#ifndef __com_sun_star_awt_XControl_idl__ +#include <com/sun/star/awt/XControl.idl> +#endif + +#ifndef __com_sun_star_awt_tree_XTreeExpansionListener_idl__ +#include <com/sun/star/awt/tree/XTreeExpansionListener.idl> +#endif + +#ifndef __com_sun_star_view_XMultiSelectionSupplier_idl__ +#include <com/sun/star/view/XMultiSelectionSupplier.idl> +#endif + +#ifndef __com_sun_star_awt_tree_XTreeEditListener_idl__ +#include <com/sun/star/awt/tree/XTreeEditListener.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { module tree { + +//============================================================================= + +/** An interface to a control that displays a set of hierarchical data as an outline. + + @see TreeControl + */ +interface XTreeControl +{ + /** This interfaces provides access to the selection of tree nodes for this control. + + <p>valid selection values for this interface are + <type>XTreeNode</type> or sequence<<type>XTreeNode</type>>.</p> + + <method scope="::com::sun::star::view">XSelectionSupplier::getSelection()</method> + returns an emtpy any for no selection, an any with <type>XTreeNode</type> for + a single selection and a sequence<<type>XTreeNode</type>> for a multiselection. + */ + interface ::com::sun::star::view::XMultiSelectionSupplier; + + // ---------------------------- + // expanding/collapsing/visible + // ---------------------------- + + /** Returns <TRUE/> if <var>Node</var> is currently expanded. + + @param Node + the <type>XTreeNode</type> specifying the node to check. + + @returns + <FALSE/> if <var>Node</var> or at least one of its parent nodes are collapsed, + <TRUE/> if <var>Node</var> and all of its parent nodes are expanded. + + @throws ::com::sun::star::lang::IllegalArgumentException + if <var>Node</var> is not a valid node of the corresponding <type>XTreeDataModel</type>. + */ + boolean isNodeExpanded( [in] XTreeNode Node ) + raises( ::com::sun::star::lang::IllegalArgumentException ); + + /** Returns <TRUE/> if <var>Node</var> is currently collapsed. + + @param Node + the <type>XTreeNode</type> specifying the node to check + + @returns + <TRUE/> if <var>Node</var> or at least one of its parent nodes are collapsed, + <FALSE/> if <var>Node</var> and all of its parent nodes are expanded + + @throws ::com::sun::star::lang::IllegalArgumentException + if <var>Node</var> is not a valid node of the corresponding <type>XTreeDataModel</type>. + */ + boolean isNodeCollapsed( [in] XTreeNode Node ) + raises( ::com::sun::star::lang::IllegalArgumentException ); + + /** Ensures that <var>Node</var> is currently visible. + <p>This includes expanding all parent nodes and scroll the control so this + node is visible in the controls display area.</p> + + @param Node + the <type>XTreeNode</type> specifying the node to make visible. + + @throws ::com::sun::star::lang::IllegalArgumentException + if <var>Node</var> is not a valid node of the corresponding <type>XTreeDataModel</type>. + + @throws ExpandVetoException + if <var>Node</var>can't be made visible since at least one of the parent nodes are + collapsed and expanding failed because at least one of the registered + <type>XTreeExpansionListener</type> raised a <type>ExpandVetoException</type>. + */ + void makeNodeVisible( [in] XTreeNode Node ) + raises( com::sun::star::lang::IllegalArgumentException, ExpandVetoException ); + + /** Returns <TRUE/> if <var>Node</var> is currently visible. + <p>Visible means it is either the root or all of its parents are expanded.</p> + + @returns + <TRUE/> if <var>Node</var> is visible, otherwise <FALSE/> + + @throws ::com::sun::star::lang::IllegalArgumentException + if <var>Node</var> is not a valid node of the corresponding <type>XTreeDataModel</type>. + */ + boolean isNodeVisible( [in] XTreeNode Node ) + raises( com::sun::star::lang::IllegalArgumentException ); + + /** Ensures that <var>Node</var> is expanded and visible. + <p>If <var>Node</var> is a leaf node, this will have no effect.</p> + + @param Node + the <type>XTreeNode</type> identifying a node. + + @throws ::com::sun::star::lang::IllegalArgumentException + if <var>Node</var> is not a valid node of the corresponding <type>XTreeDataModel</type>. + + @throws ExpandVetoException + if expanding <var>Node</var> failed because at least one of the registered + <type>XTreeExpansionListener</type> raised a <type>ExpandVetoException</type>. + */ + void expandNode( [in] XTreeNode Node ) + raises( com::sun::star::lang::IllegalArgumentException, ExpandVetoException ); + + /** Ensures that <var>Node</var> is collapsed. + + @param Node + the <type>XTreeNode</type> identifying a node + + @throws ::com::sun::star::lang::IllegalArgumentException + if <var>Node</var> is not a valid node of the corresponding <type>XTreeDataModel</type>. + + @raises ExpandVetoException + if collapsing <var>Node</var> failed because at least one of the registered + <type>XTreeExpansionListener</type> raised a <type>ExpandVetoException</type>. + */ + void collapseNode( [in] XTreeNode Node ) + raises( com::sun::star::lang::IllegalArgumentException, ExpandVetoException ); + + /** Adds a listener for <type>TreeExpansion</type> events. + + @param Listener + a <type>XTreeExpansionListener</type> that will be notified when a tree + node is expanded or collapsed. + */ + void addTreeExpansionListener( [in] XTreeExpansionListener Listener ); + + /** Removes a listener for <type>TreeExpansion</type> events. + + @param Listener + the <type>XTreeExpansionListener</type> to remove. + */ + void removeTreeExpansionListener( [in] XTreeExpansionListener Listener ); + + /** If the given URL points to a loadable graphic, the graphic is rendered + before expanded non leaf nodes. + + <p>This can be overriden for individual nodes by <member>XTreeNode::getExpandedGraphicURL()</member></p> + */ + [attribute] string DefaultExpandedGraphicURL; + + /** If the given URL points to a loadable graphic, the graphic is rendered + before collapsed non leaf nodes. + + <p>This can be overriden for individual nodes by <member>XTreeNode::getCollapsedGraphicURL()</member></p> + */ + [attribute] string DefaultCollapsedGraphicURL; + + // ------------ + // tree geometry + // ------------ + + /** Returns the node at the specified location. + + @param x + an integer giving the number of pixels horizontally from the left edge of the controls display area + @param y + an integer giving the number of pixels vertically from the top edge of the controls display area + @returns + the <type>XTreeNode</type> for the node at that location, or 0 if there is no node at the given position + */ + XTreeNode getNodeForLocation( [in] long x, [in] long y ); + + /** Returns the node that is closest to x,y. + <p>If no nodes are currently viewable, or there is no model, returns null, + otherwise it always returns a valid node. To test if the node is exactly + at x, y, use <member>getNodeForLocation()</member>. + + @param x + an integer giving the number of pixels horizontally from the left edge of the controls display area + @para y + an integer giving the number of pixels vertically from the top edge of the controls display area + @returns + the <type>XTreeNode</type> for the node closest to that location, null if nothing is viewable or there is no model + */ + XTreeNode getClosestNodeForLocation( [in] long x, [in] long y ); + + /** returns the rectangle occupied by the visual representation of the given node + + @param Node + the node whose geometry should be obtained + @throws ::com::sun::star::lang::IllegalArgumentException + if the given node is <NULL/>, or does not belong to the tree's data model + */ + ::com::sun::star::awt::Rectangle + getNodeRect( [in] XTreeNode Node ) + raises( ::com::sun::star::lang::IllegalArgumentException ); + + // ------------ + // tree editing + // ------------ + + /** Returns <TRUE/> if one of tree's nodes is being currently edited. + <p>The node that is being edited can be obtained using <method scope="com::sun::star::view">XSelectionSupplier::getSelection()</method>. + + @returns + <TRUE/> if the user is currently editing a node + */ + boolean isEditing(); + + /** Ends the current editing session. + <p>All registered <type>XTreeEditListener</type> are notified if an editing session was in progress</p> + <p>Has no effect if the tree isn't being edited.</p> + + @returns + <TRUE/> if editing was in progress and is now stopped, <FALSE/> if editing was not in progress + */ + boolean stopEditing(); + + /** Cancels the current editing session. + <p>Has no effect if the tree isn't being edited.</p> + */ + void cancelEditing(); + + /** Selects <var>Node</var> and initiates editing. + + <p>If <member>TreeControlModel::Editable</member> is <FALSE/> or if there are no + registered <type>XTreeEditListener</type>, this call has no effect.</p> + + <p>Calling this method also ensures that <var>Node</var> will become visible.</p> + + @param Node + the <type>XTreeNode</type> identifying a node. + + @throws ::com::sun::star::lang::IllegalArgumentException + if <var>Node</var> is not a valid node of the corresponding <type>XTreeDataModel</type>. + */ + void startEditingAtNode( [in] XTreeNode Node ) + raises( ::com::sun::star::lang::IllegalArgumentException ); + + /** Adds a <type>XTreeEditListener</type>. + + @param xListener + a <type>XTreeEditListener</type> that will be notified + before and after a tree node is edited. + */ + void addTreeEditListener( [in] XTreeEditListener Listener ); + + /** Removes a <type>XTreeEditListener</type>. + + @param xListener + the <type>XTreeEditListener</type> to remove + */ + void removeTreeEditListener( [in] XTreeEditListener Listener ); +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/tree/XTreeDataModel.idl b/offapi/com/sun/star/awt/tree/XTreeDataModel.idl new file mode 100644 index 000000000000..50f6dcae2151 --- /dev/null +++ b/offapi/com/sun/star/awt/tree/XTreeDataModel.idl @@ -0,0 +1,92 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_tree_XTreeDataModel_idl__ +#define __com_sun_star_awt_tree_XTreeDataModel_idl__ + +#ifndef __com_sun_star_awt_tree_XTreeDataModelListener_idl__ +#include <com/sun/star/awt/tree/XTreeDataModelListener.idl> +#endif + +#ifndef __com_sun_star_lang_IllegalArgumentException_idl__ +#include <com/sun/star/lang/IllegalArgumentException.idl> +#endif + +#ifndef __com_sun_star_lang_XComponent_idl__ +#include <com/sun/star/lang/XComponent.idl> +#endif + +#ifndef __com_sun_star_awt_tree_XTreeNode_idl__ +#include <com/sun/star/awt/tree/XTreeNode.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { module tree { + +//============================================================================= + +/** An instance of this interface is used by the <type>TreeControl</type> to + retrieve the hierarchical outline data that is displayed in the actual control. + + <p>If you implement your own <type>XTreeDataModel</type> you need to notify registered + <type>XTreeDataModelListener</type> if your model changes after the control is created. + If this is not done correctly the <type>TreeControl</type> will not update the data properly.</p> + + If you do not need your own model implementation, you can also use the <type>MutableTreeDataModel</type>. +*/ +interface XTreeDataModel : ::com::sun::star::lang::XComponent +{ + /** Returns the root of the tree. + <p>Returns null only if the tree has no nodes. + + @returns + the root of the tree + */ + XTreeNode getRoot(); + + /** Adds a listener for the <type>TreeDataModelEvent</type> posted after the tree changes. + + @param Listener + the listener to add. + */ + void addTreeDataModelListener( [in] XTreeDataModelListener Listener ); + + + /** Removes a listener previously added with <method>addTreeDataModelListener()</method>. + + @param Listener + the listener to remove. + */ + void removeTreeDataModelListener( [in] XTreeDataModelListener Listener ); + +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/tree/XTreeDataModelListener.idl b/offapi/com/sun/star/awt/tree/XTreeDataModelListener.idl new file mode 100644 index 000000000000..5110dac3623e --- /dev/null +++ b/offapi/com/sun/star/awt/tree/XTreeDataModelListener.idl @@ -0,0 +1,95 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_tree_XTreeDataModelListener_idl__ +#define __com_sun_star_awt_tree_XTreeDataModelListener_idl__ + +#ifndef __com_sun_star_lang_XEventListener_idl__ +#include <com/sun/star/lang/XEventListener.idl> +#endif + +#ifndef __com_sun_star_awt_tree_TreeDataModelEvent_idl__ +#include <com/sun/star/awt/tree/TreeDataModelEvent.idl> +#endif + + +//============================================================================= + +module com { module sun { module star { module awt { module tree { + +//============================================================================= + +/** An instance of this interface is used by the <type>TreeControl</type> to + get notifications about data model changes. + + <p>Usually you must not implement this interface yourself as it is already handled + by the <type>TreeControl</type>, but you must notify it correctly if + you implement the <type>XTreeDataModel</type> yourself</p>. + */ +interface XTreeDataModelListener: com::sun::star::lang::XEventListener +{ + /** Invoked after a node (or a set of siblings) has changed in some way. + The node(s) have not changed locations in the tree or altered their + children arrays, but other attributes have changed and may affect + presentation. + + Example: the name of a file has changed, but it is in the same location in the file system. + + To indicate the root has changed, <member>TreeDataModelEvent::Nodes</member> will contain + the root node and <member>TreeDataModelEvent::ParentNode</member> will be empty. + */ + void treeNodesChanged( [in] TreeDataModelEvent Event ); + + /** Invoked after nodes have been inserted into the tree. + + Use <member>TreeDataModelEvent::ParentNode</member> to get the parent of the new node(s). + <member>TreeDataModelEvent::Nodes</member> contains the new node(s). + */ + void treeNodesInserted( [in] TreeDataModelEvent Event ); + + /** Invoked after nodes have been removed from the tree. + <p>Note that if a subtree is removed from the tree, + this method may only be invoked once for the root of the removed subtree, + not once for each individual set of siblings removed. + + Use <member>TreeDataModelEvent::ParentNode</member> to get the former parent of the deleted node(s). + <member>TreeDataModelEvent::Nodes</member> contains the removed node(s). + */ + void treeNodesRemoved( [in] TreeDataModelEvent Event ); + + /** Invoked after the tree has drastically changed structure from a given node down. + + Use <member>TreeDataModelEvent::ParentNode</member> to get the node which + structure has changed. <member>TreeDataModelEvent::Nodes</member> is empty. + */ + void treeStructureChanged( [in] TreeDataModelEvent Event ); +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/tree/XTreeEditListener.idl b/offapi/com/sun/star/awt/tree/XTreeEditListener.idl new file mode 100644 index 000000000000..dcaec810dae8 --- /dev/null +++ b/offapi/com/sun/star/awt/tree/XTreeEditListener.idl @@ -0,0 +1,89 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_tree_XTreeEditListener_idl__ +#define __com_sun_star_awt_tree_XTreeEditListener_idl__ + +#ifndef __com_sun_star_awt_tree_XTreeNode_idl__ +#include <com/sun/star/awt/tree/XTreeNode.idl> +#endif + +#ifndef __com_sun_star_lang_XEventListener_idl__ +#include <com/sun/star/lang/XEventListener.idl> +#endif + +#ifndef __com_sun_star_util_VetoException_idl__ +#include <com/sun/star/util/VetoException.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { module tree { + +//============================================================================= + +/** You can implement this interface and register with <method scope="XTreeControl">addTreeEditListener</method> + to get notifcaitons when editing of a node starts and ends. + + <p>You have to set the <member>TreeControlModel::Editable</member> property to + <TRUE/> before a tree supports editing.</p> + */ +interface XTreeEditListener : ::com::sun::star::lang::XEventListener +{ + /** This method is called from the <type>TreeControl</type> implementation when editing of + <var>Node</var> is requested by calling <member>XTreeControl::startEditingAtNode()</member>. + + @param Node + the <type>XTreeNode</type> for that an edit request was fired by calling + <method scope="XTreeControl">startEditingAtNode</method> + + @throws VetoException + if thrown the editing will not start. + */ + void nodeEditing( [in] XTreeNode Node ) + raises ( ::com::sun::star::util::VetoException ); + + /** This method is called from the <type>TreeControl</type> implementation when editing + of <var>Node</var> is finished and was not canceled. + + <p>Implementations that register a <type>XTreeEditListener</type> must update the + display value at the Node.</p> + + @param Node + the <type>XTreeNode</type> for that an edit request was fired by calling + <method scope="XTreeControl">startEditingAtNode</method> + + @param NewText + the text that was entered by the user. + */ + void nodeEdited( [in] XTreeNode Node, [in] string NewText ); +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/tree/XTreeExpansionListener.idl b/offapi/com/sun/star/awt/tree/XTreeExpansionListener.idl new file mode 100644 index 000000000000..8b235ff6db28 --- /dev/null +++ b/offapi/com/sun/star/awt/tree/XTreeExpansionListener.idl @@ -0,0 +1,92 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_tree_XTreeExpansionListener_idl__ +#define __com_sun_star_awt_tree_XTreeExpansionListener_idl__ + +#ifndef __com_sun_star_lang_XEventListener_idl__ +#include <com/sun/star/lang/XEventListener.idl> +#endif + +#ifndef __com_sun_star_awt_tree_TreeExpansionEvent_idl__ +#include <com/sun/star/awt/tree/TreeExpansionEvent.idl> +#endif + +#ifndef __com_sun_star_awt_tree_ExpandVetoException_idl__ +#include <com/sun/star/awt/tree/ExpandVetoException.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { module tree { + +//============================================================================= + +/** An instance of this interface can get notifications from a <type>TreeControl</type> + when nodes are expanded or collapsed. + + @see XTreeControl::addTreeExpansionListener + @see XTreeControl::removeTreeExpansionListener + */ +interface XTreeExpansionListener: com::sun::star::lang::XEventListener +{ + /** Invoked when a node with children on demand is about to be expanded. + + <p>This event is invoked befor the <method>treeExpanding()</method> + event.</p> + */ + void requestChildNodes( [in] TreeExpansionEvent Event ); + + /** Invoked whenever a node in the tree is about to be expanded. + + @throws ExpandVetoException + to notify the calling <type>XTreeControl</type> that expanding + <member>TreeExpansionEvent::Node</member> should faild. + */ + void treeExpanding( [in] TreeExpansionEvent Event ) + raises ( ExpandVetoException ); + + /** Invoked whenever a node in the tree is about to be collapsed. + + @throws ExpandVetoException + to notify the calling <type>XTreeControl</type> that collapsing + <member>TreeExpansionEvent::Node</member> should faild. + */ + void treeCollapsing( [in] TreeExpansionEvent Event ) + raises ( ExpandVetoException ); + + /** Called whenever a node in the tree has been succesfully expanded. */ + void treeExpanded( [in] TreeExpansionEvent Event ); + + /** Called whenever a node in the tree has been succesfully collapsed. */ + void treeCollapsed( [in] TreeExpansionEvent Event ); +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/tree/XTreeNode.idl b/offapi/com/sun/star/awt/tree/XTreeNode.idl new file mode 100644 index 000000000000..b19af432f5d2 --- /dev/null +++ b/offapi/com/sun/star/awt/tree/XTreeNode.idl @@ -0,0 +1,105 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * 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 + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_tree_XTreeNode_idl__ +#define __com_sun_star_awt_tree_XTreeNode_idl__ + +#ifndef __com_sun_star_container_XEnumerationAccess_idl__ +#include <com/sun/star/container/XEnumerationAccess.idl> +#endif + +#ifndef _com_sun_star_lang_IndexOutOfBoundsException_idl_ +#include <com/sun/star/lang/IndexOutOfBoundsException.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module awt { module tree { + +//============================================================================= + +/** An instance implementing this interface represents the model data for an entry in a + <type>XTreeDataModel</type>. + <p>The <type>TreeControl</type> uses this interface to retrieve the model + information needed to display a hierarchical outline</p> + <p>Each XTreeNode in a <type>XTreeDataModel</type> must be unique. + */ +interface XTreeNode +{ + /** Returns the child tree node at <var>Index</var>. + + @throws ::com::sun::star::lang::IndexOutOfBoundsException + if <var>Index</var> is less than 0 or equal or greater then <member>getChildCount</member>. + */ + XTreeNode getChildAt( [in] long Index ) + raises( com::sun::star::lang::IndexOutOfBoundsException ); + + /** Returns the number of child nodes. */ + long getChildCount(); + + /** Returns the parent node of this node. */ + XTreeNode getParent(); + + /** Returns the index of <var>Node</Node> in this instances children. + @returns + The child index of <var>Node</Node> , or -1 if <var>Node</Node> is no child of this instance. + */ + long getIndex( [in] XTreeNode Node); + + /** Returns <TRUE/> if the children of this node are created on demand. + <p>A <type>TreeControl</type> will handle a node that returns <TRUE/> always + like a node that has child nodes, even if <member>getChildCount</member> + returns 0.</p> + + @see TreeExpansionListener; + */ + boolean hasChildrenOnDemand(); + + /** If not empty, the textual representation of this any is used as the text part of this node. + */ + any getDisplayValue(); + + /** The URL for a graphic that is rendered before the text part of this node. + <p>If this URL is empty, no graphic is rendered. + */ + string getNodeGraphicURL(); + + /** The URL for a graphic that is rendered to visualize expanded non leaf nodes. + <p>If <var>URL</var> is empty, <member>XTreeControl::DefaultExpandedGraphicURL</member> is used. + */ + string getExpandedGraphicURL(); + + /** The URL for a graphic that is rendered to visualize collapsed non leaf nodes. + <p>If <var>URL</var> is empty, <member>XTreeControl::DefaultCollapsedGraphicURL</member> is used. + */ + string getCollapsedGraphicURL(); +}; + +//============================================================================= + +}; }; }; }; }; + +#endif diff --git a/offapi/com/sun/star/awt/tree/makefile.mk b/offapi/com/sun/star/awt/tree/makefile.mk new file mode 100644 index 000000000000..797644e7628e --- /dev/null +++ b/offapi/com/sun/star/awt/tree/makefile.mk @@ -0,0 +1,61 @@ +#************************************************************************* +# +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. +# +# Copyright 2000, 2010 Oracle and/or its affiliates. +# +# OpenOffice.org - a multi-platform office productivity suite +# +# 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 +# <http://www.openoffice.org/license.html> +# for a copy of the LGPLv3 License. +# +#************************************************************************* + +PRJ=..$/..$/..$/..$/.. + +PRJNAME=api + +TARGET=cssawttree +PACKAGE=com$/sun$/star$/awt$/tree + +# --- Settings ----------------------------------------------------- + +.INCLUDE : $(PRJ)$/util$/makefile.pmk + +# ------------------------------------------------------------------------ + +IDLFILES=\ + MutableTreeDataModel.idl\ + ExpandVetoException.idl\ + MutableTreeNode.idl\ + TreeControl.idl\ + TreeControlModel.idl\ + TreeDataModelEvent.idl\ + TreeExpansionEvent.idl\ + XMutableTreeDataModel.idl\ + XMutableTreeNode.idl\ + XTreeControl.idl\ + XTreeDataModel.idl\ + XTreeDataModelListener.idl\ + XTreeExpansionListener.idl\ + XTreeNode.idl\ + XTreeEditListener.idl + +# ------------------------------------------------------------------ + +.INCLUDE : target.mk +.INCLUDE : $(PRJ)$/util$/target.pmk |