From 267c6f2ac71f92999e969232431ba04678e7437e Mon Sep 17 00:00:00 2001
From: Daniel Baumann 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 XActionListener object
+ that registered to receive such events using the component's
+ The object that implements the XActionListener 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". A line jump can, for example, be caused by a click on
+ one of the pointer buttons. 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). The currently defined constants of IMPORTANT: These constants have to be disjunct with
+ constants in util/MeasureUnit. 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. For example, this can be used to select a font. Use one value out of the constant group
+ com::sun::star::awt::FontFamily. Use one value out of the constant group
+ com::sun::star::awt::CharSet. Use one value out of the constant group
+ com::sun::star::awt::FontPitch. Depending on the specified width, a font that supports this
+ width may be selected. The value is expressed as a percentage. Depending on the specified weight, a font that supports this
+ thickness may be selected. The value is expressed as a percentage. Use one value out of the constant group
+ com::sun::star::awt::FontUnderline. Use one value out of the constant group
+ com::sun::star::awt::FontStrikeout. The unit of measure is degrees; 0 is the baseline. `TRUE` means that only non-space characters get underlined,
+ `FALSE` means that the spacing also gets underlined. This property is only valid if the property
+ com::sun::star::awt::FontDescriptor::Underline
+ is not FontUnderline::NONE. One or more values out of the constant group
+ com::sun::star::awt::FontType can be combined by
+ an arithmetical or-operation. They may be expanded in future versions. They may be expanded in future versions. They may be expanded in future versions. They may be expanded in future versions. They may be expanded in future versions. They may be expanded in future versions. They may be expanded in future versions. They may be expanded in future versions. They may be expanded in future versions. The image will finally cover all of the surrounding area, but its dimensions might be distorted. Input events are delivered to listeners before they are
+ processed normally by the source where they originated. Zero or more constants from the
+ com::sun::star::awt::KeyModifier group. In case the event is not related to a single item, but to the complete list, the value of this
+ member is undefined. If the event being notified did not touch the text of an item, this member is empty. For instance, upon
+ invocation of XItemList::setItemImage(), only If the event being notified did not touch the image of an item, this member is empty. For instance, upon
+ invocation of XItemList::setItemText(), only This is a constant from the constant group Key. This is a constant from the constant group
+ KeyFunction. Zero or more constants from the group
+ com::sun::star::awt::KeyModifier. This is a constant from the constant group
+ com::sun::star::awt::Key. This is a constant from the constant group
+ com::sun::star::awt::KeyFunction. A menu bar can only be used by top-level windows. They support
+ the interface com::sun::star::awt::XTopWindow
+ to set an menu bar object.
+ This event is also used for pop-up menu requests on objects.
+ See #PopupTrigger for details. Zero or more constants from the
+ com::sun::star::awt::MouseButton group. If this member is `TRUE`, the event describes a request for a pop-up menu,
+ also known as context menu, on an object. In this case, X and Y describe the position
+ where the request was issued. If those members are 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. 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. They may be expanded in future versions. It is an error if the exception occurs in a non-transacted task.
+ A transacted task repeats later. For example, the letters "b", "d", "h", "k" and "l"
+ have an ascent unequal to 0. The ascent is measured in pixels, thus the font metric is
+ device dependent. For example, the letters "g", "p", and "y"
+ have a descent unequal to 0. The descent is measured in pixels, thus the font metric is
+ device dependent. The leading is measured in pixels, thus the font metric is
+ device dependent. The slant is measured in degrees from 0 to 359. To show a progress which cannot be expressed as a percentage of execution,
+ it displays animated images from a standard image set. Three image sets are provided, of size 16x16, 32x32, and 64x64 pixels. This is the structure returned in the
+ XSystemDependentWindowPeer::getWindowHandle() call,
+ if the system type is
+ com::sun::star::lang::SystemDependent::XWINDOW. 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. 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. You must set a model and a stub to the UnoControl before using
+ other methods. The implementation only allows the change of the
+ graphics (XView) 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. The change of data directly at the control may not affect the
+ model data. To ensure this behavior, modify the data of the model. If set to `TRUE` (which is the default), the button control automatically grabs the
+ focus when the user clicks onto it with the mouse. Valid values of this property are specified with ImagePosition. If this property is present, it supersedes the #ImageAlign property - setting
+ one of both properties sets the other one to the best possible match. If this property is present, it interacts with the #ImageURL in the
+ following way:
+
+
+ */
+ 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:
+
+
+
+
+ */
+ interface ::com::sun::star::accessibility::XAccessibleAction;
+
+ /** This interface gives access to the numerical value of a button,
+ which is related to the button's
+ com::sun::star::accessibility::AccessibleStateType::PRESSED state.
+ */
+ interface ::com::sun::star::accessibility::XAccessibleValue;
+
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleCheckBox.idl b/offapi/com/sun/star/awt/AccessibleCheckBox.idl
new file mode 100644
index 0000000000..a893413900
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleCheckBox.idl
@@ -0,0 +1,100 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+module com { module sun { module star { module awt {
+
+/** specifies accessibility support for a check box.
+
+ @since OOo 1.1.2
+ */
+service AccessibleCheckBox
+{
+ /** This interface gives access to the structural information of a
+ check box:
+
+
+
+ */
+ 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:
+
+
+
+
+ */
+ 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:
+
+
+ 0: not checked
+ 1: checked
+ 2: don't know
+
+ */
+ interface ::com::sun::star::accessibility::XAccessibleValue;
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleComboBox.idl b/offapi/com/sun/star/awt/AccessibleComboBox.idl
new file mode 100644
index 0000000000..76f77258e2
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleComboBox.idl
@@ -0,0 +1,86 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+module com { module sun { module star { module accessibility {
+
+ interface XAccessibleText;
+ interface XAccessibleExtendedComponent;
+ 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
+*/
+service AccessibleComboBox
+{
+ /** This interface gives access to the structural information of a combo box:
+
+
+
+ */
+
+ service com::sun::star::accessibility::AccessibleContext;
+
+ interface com::sun::star::accessibility::XAccessibleComponent;
+ interface com::sun::star::accessibility::XAccessibleExtendedComponent;
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleDropDownComboBox.idl b/offapi/com/sun/star/awt/AccessibleDropDownComboBox.idl
new file mode 100644
index 0000000000..9c671e734b
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleDropDownComboBox.idl
@@ -0,0 +1,97 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+
+module com { module sun { module star { module accessibility {
+
+ interface XAccessibleAction;
+ interface XAccessibleExtendedComponent;
+ 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
+*/
+service AccessibleDropDownComboBox
+{
+ /** This interface gives access to the structural information of a dropdown combo box:
+
+
+
+
+
+ */
+ 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:
+
+
+
+
+ */
+ interface com::sun::star::accessibility::XAccessibleAction;
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleDropDownListBox.idl b/offapi/com/sun/star/awt/AccessibleDropDownListBox.idl
new file mode 100644
index 0000000000..6102be8709
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleDropDownListBox.idl
@@ -0,0 +1,97 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+
+module com { module sun { module star { module accessibility {
+
+ interface XAccessibleAction;
+ interface XAccessibleExtendedComponent;
+ 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
+*/
+service AccessibleDropDownListBox
+{
+ /** This interface gives access to the structural information of a dropdown list box:
+
+
+
+ */
+ 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:
+
+
+
+
+ */
+ interface com::sun::star::accessibility::XAccessibleAction;
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleEdit.idl b/offapi/com/sun/star/awt/AccessibleEdit.idl
new file mode 100644
index 0000000000..2a9526744b
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleEdit.idl
@@ -0,0 +1,98 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+module com { module sun { module star { module awt {
+
+/** specifies accessibility support for an edit.
+
+ @since OOo 1.1.2
+ */
+service AccessibleEdit
+{
+ /** This interface gives access to the structural information of an edit:
+
+
+
+ */
+ 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
+ com::sun::star::accessibility::XAccessibleText
+ interface and gives read and write access to the text representation
+ of an edit.
+ */
+ interface ::com::sun::star::accessibility::XAccessibleEditableText;
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleFixedText.idl b/offapi/com/sun/star/awt/AccessibleFixedText.idl
new file mode 100644
index 0000000000..28099f50b7
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleFixedText.idl
@@ -0,0 +1,81 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+module com { module sun { module star { module awt {
+
+/** specifies accessibility support for a fixed text.
+
+ @since OOo 1.1.2
+ */
+service AccessibleFixedText
+{
+ /** This interface gives access to the structural information of a
+ fixed text:
+
+
+
+
+
+
+
+ */
+ 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;
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleIconChoiceControl.idl b/offapi/com/sun/star/awt/AccessibleIconChoiceControl.idl
new file mode 100644
index 0000000000..38bb1552e4
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleIconChoiceControl.idl
@@ -0,0 +1,92 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+
+module com { module sun { module star { module accessibility {
+
+ interface XAccessibleSelection;
+ 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
+*/
+service AccessibleIconChoiceControl
+{
+ /** This interface gives access to the structural information of an icon choice control:
+
+
+
+
+
+
+
+ */
+ 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;
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleIconChoiceControlEntry.idl b/offapi/com/sun/star/awt/AccessibleIconChoiceControlEntry.idl
new file mode 100644
index 0000000000..4fcd24e2a0
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleIconChoiceControlEntry.idl
@@ -0,0 +1,87 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+
+module com { module sun { module star { module accessibility {
+
+ interface XAccessibleText;
+ 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
+*/
+service AccessibleIconChoiceControlEntry
+{
+ /** This interface gives access to the structural information of an icon choice control entry:
+
+
+
+
+
+ */
+ 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;
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleList.idl b/offapi/com/sun/star/awt/AccessibleList.idl
new file mode 100644
index 0000000000..d3d677f3d3
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleList.idl
@@ -0,0 +1,113 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+module com { module sun { module star { module accessibility {
+
+ interface XAccessible;
+ interface XAccessibleExtendedComponent;
+ interface XAccessibleComponent;
+ 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
+*/
+service AccessibleList
+{
+ /** This interface gives access to the structural information of a list:
+
+
+
+
+
+ */
+ service com::sun::star::accessibility::AccessibleContext;
+
+ interface com::sun::star::accessibility::XAccessibleComponent;
+ interface com::sun::star::accessibility::XAccessibleExtendedComponent;
+
+ /** Support of the com::sun::star::accessibility::XAccessible 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;
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleListBox.idl b/offapi/com/sun/star/awt/AccessibleListBox.idl
new file mode 100644
index 0000000000..1c343cbeb4
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleListBox.idl
@@ -0,0 +1,85 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+module com { module sun { module star { module accessibility {
+
+ interface XAccessibleSelection;
+ interface XAccessibleExtendedComponent;
+ 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
+*/
+service AccessibleListBox
+{
+ /** This interface gives access to the structural information of a list box:
+
+
+
+
+
+
+
+ */
+ service com::sun::star::accessibility::AccessibleContext;
+
+ interface com::sun::star::accessibility::XAccessibleComponent;
+ interface com::sun::star::accessibility::XAccessibleExtendedComponent;
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleListBoxList.idl b/offapi/com/sun/star/awt/AccessibleListBoxList.idl
new file mode 100644
index 0000000000..5c691f43aa
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleListBoxList.idl
@@ -0,0 +1,37 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+
+module com { module sun { module star { module awt {
+
+/** Accessible list box lists are used by list boxes as container for
+ the list items. In addition of the simple container functionality of the
+ AccessibleList service the
+ com::sun::star::accessibility::XAccessibleSelection interface is supported.
+
+ @since OOo 1.1.2
+*/
+service AccessibleListBoxList
+{
+ service AccessibleList;
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleListItem.idl b/offapi/com/sun/star/awt/AccessibleListItem.idl
new file mode 100644
index 0000000000..0f9db9c4e1
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleListItem.idl
@@ -0,0 +1,85 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+
+module com { module sun { module star { module accessibility {
+
+ interface XAccessibleText;
+ 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
+*/
+service AccessibleListItem
+{
+ /** This interface gives access to the structural information of a list item:
+
+
+
+
+
+ */
+ 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;
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleMenu.idl b/offapi/com/sun/star/awt/AccessibleMenu.idl
new file mode 100644
index 0000000000..276b4b7a77
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleMenu.idl
@@ -0,0 +1,110 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+module com { module sun { module star { module awt {
+
+/** specifies accessibility support for a menu.
+
+ @since OOo 1.1.2
+ */
+service AccessibleMenu
+{
+ /** This interface gives access to the structural information of a menu:
+
+
+
+
+
+ */
+ 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:
+
+
+
+
+ */
+ interface ::com::sun::star::accessibility::XAccessibleAction;
+
+ /** This interface gives access to the numerical value of a
+ menu, which is related to the menu's
+ com::sun::star::accessibility::AccessibleStateType::SELECTED state.
+ */
+ interface ::com::sun::star::accessibility::XAccessibleValue;
+
+ /** This interface gives access to the selectable children of a
+ menu.
+ */
+ interface ::com::sun::star::accessibility::XAccessibleSelection;
+
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleMenuBar.idl b/offapi/com/sun/star/awt/AccessibleMenuBar.idl
new file mode 100644
index 0000000000..d36a42534a
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleMenuBar.idl
@@ -0,0 +1,83 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+module com { module sun { module star { module awt {
+
+/** specifies accessibility support for a menu bar.
+
+ @since OOo 1.1.2
+ */
+service AccessibleMenuBar
+{
+ /** This interface gives access to the structural information of a
+ menu bar:
+
+
+
+ */
+ 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;
+
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleMenuItem.idl b/offapi/com/sun/star/awt/AccessibleMenuItem.idl
new file mode 100644
index 0000000000..ef86f72009
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleMenuItem.idl
@@ -0,0 +1,102 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+module com { module sun { module star { module awt {
+
+/** specifies accessibility support for a menu item.
+
+ @since OOo 1.1.2
+ */
+service AccessibleMenuItem
+{
+ /** This interface gives access to the structural information of a
+ menu item:
+
+
+
+
+
+ */
+ 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:
+
+
+
+
+ */
+ 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
+ com::sun::star::accessibility::AccessibleStateType::SELECTED state.
+ */
+ interface ::com::sun::star::accessibility::XAccessibleValue;
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleMenuSeparator.idl b/offapi/com/sun/star/awt/AccessibleMenuSeparator.idl
new file mode 100644
index 0000000000..b44015e045
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleMenuSeparator.idl
@@ -0,0 +1,78 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+module com { module sun { module star { module awt {
+
+/** specifies accessibility support for a menu separator.
+
+ @since OOo 1.1.2
+ */
+service AccessibleMenuSeparator
+{
+ /** This interface gives access to the structural information of a
+ menu separator:
+
+
+
+ */
+ interface ::com::sun::star::accessibility::XAccessibleContext;
+
+ interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster;
+
+ interface ::com::sun::star::accessibility::XAccessibleComponent;
+
+ interface ::com::sun::star::accessibility::XAccessibleExtendedComponent;
+
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessiblePopupMenu.idl b/offapi/com/sun/star/awt/AccessiblePopupMenu.idl
new file mode 100644
index 0000000000..035189839e
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessiblePopupMenu.idl
@@ -0,0 +1,83 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+module com { module sun { module star { module awt {
+
+/** specifies accessibility support for a pop-up menu.
+
+ @since OOo 1.1.2
+ */
+service AccessiblePopupMenu
+{
+ /** This interface gives access to the structural information of a
+ pop-up menu:
+
+
+
+
+
+ */
+ 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
+ pop-up menu.
+ */
+ interface ::com::sun::star::accessibility::XAccessibleSelection;
+
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleRadioButton.idl b/offapi/com/sun/star/awt/AccessibleRadioButton.idl
new file mode 100644
index 0000000000..8c49b6a7c6
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleRadioButton.idl
@@ -0,0 +1,102 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+module com { module sun { module star { module awt {
+
+/** specifies accessibility support for a radio button.
+
+ @since OOo 1.1.2
+ */
+service AccessibleRadioButton
+{
+ /** This interface gives access to the structural information of a
+ radio button:
+
+
+
+
+
+ */
+ 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:
+
+
+
+
+
+
+ */
+ 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
+ com::sun::star::accessibility::AccessibleStateType::CHECKED state.
+ */
+ interface ::com::sun::star::accessibility::XAccessibleValue;
+
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleScrollBar.idl b/offapi/com/sun/star/awt/AccessibleScrollBar.idl
new file mode 100644
index 0000000000..ddb035b427
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleScrollBar.idl
@@ -0,0 +1,92 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+module com { module sun { module star { module awt {
+
+/** specifies accessibility support for a scroll bar.
+
+ @since OOo 1.1.2
+ */
+service AccessibleScrollBar
+{
+ /** This interface gives access to the structural information of a
+ scroll bar:
+
+
+
+ */
+ 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:
+
+
+
+
+ */
+ 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;
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleStatusBar.idl b/offapi/com/sun/star/awt/AccessibleStatusBar.idl
new file mode 100644
index 0000000000..afb31ddb07
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleStatusBar.idl
@@ -0,0 +1,70 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+module com { module sun { module star { module awt {
+
+/** specifies accessibility support for a status bar.
+
+ @since OOo 1.1.2
+ */
+service AccessibleStatusBar
+{
+ /** This interface gives access to the structural information of a
+ status bar:
+
+
+
+ */
+ interface ::com::sun::star::accessibility::XAccessibleContext;
+
+ interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster;
+
+ interface ::com::sun::star::accessibility::XAccessibleComponent;
+
+ interface ::com::sun::star::accessibility::XAccessibleExtendedComponent;
+
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleStatusBarItem.idl b/offapi/com/sun/star/awt/AccessibleStatusBarItem.idl
new file mode 100644
index 0000000000..8bbc9daf35
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleStatusBarItem.idl
@@ -0,0 +1,77 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+module com { module sun { module star { module awt {
+
+/** specifies accessibility support for a status bar item.
+
+ @since OOo 1.1.2
+ */
+service AccessibleStatusBarItem
+{
+ /** This interface gives access to the structural information of a
+ status bar item:
+
+
+
+
+
+ */
+ 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;
+
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleTabBar.idl b/offapi/com/sun/star/awt/AccessibleTabBar.idl
new file mode 100644
index 0000000000..9af9fce4f1
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleTabBar.idl
@@ -0,0 +1,79 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+module com { module sun { module star { module awt {
+
+/** specifies accessibility support for a tabbar.
+
+ @since OOo 1.1.2
+ */
+service AccessibleTabBar
+{
+ /** This interface gives access to the structural information of a
+ tabbar:
+
+
+
+
+
+ */
+ interface ::com::sun::star::accessibility::XAccessibleContext;
+
+ interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster;
+
+ interface ::com::sun::star::accessibility::XAccessibleComponent;
+
+ interface ::com::sun::star::accessibility::XAccessibleExtendedComponent;
+
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleTabBarPage.idl b/offapi/com/sun/star/awt/AccessibleTabBarPage.idl
new file mode 100644
index 0000000000..f1a0aeb2c7
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleTabBarPage.idl
@@ -0,0 +1,76 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+module com { module sun { module star { module awt {
+
+/** specifies accessibility support for a tabbar page.
+
+ @since OOo 1.1.2
+ */
+service AccessibleTabBarPage
+{
+ /** This interface gives access to the structural information of a
+ tabbar page:
+
+
+
+
+
+ */
+ interface ::com::sun::star::accessibility::XAccessibleContext;
+
+ interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster;
+
+ interface ::com::sun::star::accessibility::XAccessibleComponent;
+
+ interface ::com::sun::star::accessibility::XAccessibleExtendedComponent;
+
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleTabBarPageList.idl b/offapi/com/sun/star/awt/AccessibleTabBarPageList.idl
new file mode 100644
index 0000000000..98cb27a2f2
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleTabBarPageList.idl
@@ -0,0 +1,77 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+module com { module sun { module star { module awt {
+
+/** specifies accessibility support for a tabbar page list.
+
+ @since OOo 1.1.2
+ */
+service AccessibleTabBarPageList
+{
+ /** This interface gives access to the structural information of a
+ tabbar page list:
+
+
+
+
+
+ */
+ 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;
+
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleTabControl.idl b/offapi/com/sun/star/awt/AccessibleTabControl.idl
new file mode 100644
index 0000000000..f77f2c3ded
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleTabControl.idl
@@ -0,0 +1,81 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+module com { module sun { module star { module awt {
+
+/** specifies accessibility support for a tab control.
+
+ @since OOo 1.1.2
+ */
+service AccessibleTabControl
+{
+ /** This interface gives access to the structural information of a
+ tab control:
+
+
+
+
+
+ */
+ 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;
+
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleTabPage.idl b/offapi/com/sun/star/awt/AccessibleTabPage.idl
new file mode 100644
index 0000000000..3ca99229fc
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleTabPage.idl
@@ -0,0 +1,84 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+module com { module sun { module star { module awt {
+
+/** specifies accessibility support for a tab page.
+
+ @since OOo 1.1.2
+ */
+service AccessibleTabPage
+{
+ /** This interface gives access to the structural information of a
+ tab page:
+
+
+
+
+
+ */
+ 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;
+
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleTextField.idl b/offapi/com/sun/star/awt/AccessibleTextField.idl
new file mode 100644
index 0000000000..d2098ef8b1
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleTextField.idl
@@ -0,0 +1,94 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+
+module com { module sun { module star { module accessibility {
+
+ interface XAccessibleExtendedComponent;
+ interface XAccessibleComponent;
+ interface XAccessibleText;
+
+}; }; }; };
+
+module com { module sun { module star { module awt {
+
+
+/** Text fields are like edit fields as described by the
+ AccessibleEdit 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
+*/
+service AccessibleTextField
+{
+ /** This interface gives access to the structural information of a text field:
+
+
+
+
+
+ */
+
+ 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;
+
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleToolBox.idl b/offapi/com/sun/star/awt/AccessibleToolBox.idl
new file mode 100644
index 0000000000..afc0300510
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleToolBox.idl
@@ -0,0 +1,92 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+
+module com { module sun { module star { module accessibility {
+
+ interface XAccessibleExtendedComponent;
+ 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
+*/
+service AccessibleToolBox
+{
+ /** This interface gives access to the structural information of a tool box:
+
+
+
+
+
+ */
+ service com::sun::star::accessibility::AccessibleContext;
+
+ interface com::sun::star::accessibility::XAccessibleComponent;
+ interface com::sun::star::accessibility::XAccessibleExtendedComponent;
+
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleToolBoxItem.idl b/offapi/com/sun/star/awt/AccessibleToolBoxItem.idl
new file mode 100644
index 0000000000..3681efe25f
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleToolBoxItem.idl
@@ -0,0 +1,115 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+
+module com { module sun { module star { module accessibility {
+
+ interface XAccessibleAction;
+ interface XAccessibleText;
+ interface XAccessibleValue;
+ interface XAccessibleExtendedComponent;
+ 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
+*/
+service AccessibleToolBoxItem
+{
+ /** This interface gives access to the structural information of a tool box item:
+
+
+
+
+
+ */
+ 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:
+
+
+
+
+ */
+ 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
+ com::sun::star::accessibility::AccessibleStateType::CHECKED state.
+ */
+ interface com::sun::star::accessibility::XAccessibleValue;
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleTreeListBox.idl b/offapi/com/sun/star/awt/AccessibleTreeListBox.idl
new file mode 100644
index 0000000000..fce939eb8f
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleTreeListBox.idl
@@ -0,0 +1,92 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+
+module com { module sun { module star { module accessibility {
+
+ interface XAccessibleSelection;
+ 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
+*/
+service AccessibleTreeListBox
+{
+ /** This interface gives access to the structural information of a tree list box:
+
+
+
+ */
+ 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;
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleTreeListBoxEntry.idl b/offapi/com/sun/star/awt/AccessibleTreeListBoxEntry.idl
new file mode 100644
index 0000000000..e35f4f5aaa
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleTreeListBoxEntry.idl
@@ -0,0 +1,115 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+
+module com { module sun { module star { module accessibility {
+
+ interface XAccessibleAction;
+ interface XAccessibleSelection;
+ interface XAccessibleText;
+ 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
+*/
+service AccessibleTreeListBoxEntry
+{
+ /** This interface gives access to the structural information of a tree list box entry:
+
+
+
+
+
+ */
+ 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:
+
+
+
+
+ */
+ 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;
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/AccessibleWindow.idl b/offapi/com/sun/star/awt/AccessibleWindow.idl
new file mode 100644
index 0000000000..ac739f1ad0
--- /dev/null
+++ b/offapi/com/sun/star/awt/AccessibleWindow.idl
@@ -0,0 +1,86 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+module com { module sun { module star { module awt {
+
+/** specifies accessibility support for a window.
+
+ @since OOo 1.1.2
+ */
+service AccessibleWindow
+{
+ /** This interface gives access to the structural information of a window:
+
+
+
+ */
+ interface ::com::sun::star::accessibility::XAccessibleContext;
+ interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster;
+ interface ::com::sun::star::accessibility::XAccessibleComponent;
+ interface ::com::sun::star::accessibility::XAccessibleExtendedComponent;
+};
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/ActionEvent.idl b/offapi/com/sun/star/awt/ActionEvent.idl
new file mode 100644
index 0000000000..fe301f14ea
--- /dev/null
+++ b/offapi/com/sun/star/awt/ActionEvent.idl
@@ -0,0 +1,51 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+
+
+ module com { module sun { module star { module awt {
+
+
+/** a semantic event which indicates that a component-defined action occurred.
+
+
+
+
+
+ addActionListener
method.CharSet
have the same
+ numerical values as the corresponding enum values of the C/C++
+ rtl_TextEncoding
(from rtl/textenc.h
). This
+ correspondence is by design. Since CharSet
is deprecated,
+ however, it is not planned to add further constants to keep it in sync with
+ rtl_TextEncoding
.ItemImageURL
will be set, and
+ ItemText
will be empty.ItemText
will be set, and
+ ItemImageURL
will be empty.-1
, then the
+ request was issued using the keyboard, by pressing the operating-system dependent
+ key combination for this purpose.
+ 0: left
+ 1: center
+ 2: right
+
+ */
+ [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.
+
+
+ If set to `FALSE`, the focus is preserved when the user operates the button control with
+ the mouse.
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.
+ + @since OOo 2.0 + */ + [optional, property] boolean Repeat; + + + /** specifies the mouse repeat delay, in milliseconds. + +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.
+ + @since OOo 2.0 + */ + [optional, property] long RepeatDelay; + + + /** specifies the state of the control. + + If #Toggle property is set to `TRUE`, the pressed state + is enabled and its pressed state can be obtained with this property. + ++ 0: not pressed + 1: pressed + 2: don't know ++ @see #Toggle + */ + [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. + +
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 pressed and a not + pressed state.
+ +The default for this property is `FALSE`, which means the button behaves like a usual + push button.
+ + @since OOo 2.0 + */ + [optional, property] boolean Toggle; + + + /** specifies the vertical alignment of the text in the control. + + @since OOo 2.0 + */ + [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlCheckBox.idl b/offapi/com/sun/star/awt/UnoControlCheckBox.idl new file mode 100644 index 0000000000..af5775305d --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlCheckBox.idl @@ -0,0 +1,40 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + 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; + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlCheckBoxModel.idl b/offapi/com/sun/star/awt/UnoControlCheckBoxModel.idl new file mode 100644 index 0000000000..6d879b18ce --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlCheckBoxModel.idl @@ -0,0 +1,190 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + module com { module sun { module star { module awt { + + +/** specifies the standard model of a UnoControlCheckBox. + */ +published service UnoControlCheckBoxModel +{ + service com::sun::star::awt::UnoControlModel; + + + /** specifies the horizontal alignment of the text in the control. + ++ 0: left + 1: center + 2: right ++ + @since OOo 2.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 com::sun::star::text::FontEmphasis + value of the text in the control. + */ + [property] short FontEmphasisMark; + + + /** specifies the com::sun::star::text::FontRelief + 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 + +
Valid values of this property are specified with ImagePosition.
+ */ + [optional, property] short ImagePosition; + + + /** specifies a 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 + +If this property is present, it interacts with the #ImageURL in the + following way: +
+ 0: not checked + 1: checked + 2: don't know ++ */ + [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 + */ + [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; + + + /** specifies a visual effect to apply to the check box control + +
Possible values for this property are VisualEffect::FLAT and + VisualEffect::LOOK3D.
+ + @see com::sun::star::awt::VisualEffect + + @since OOo 2.0 + */ + [optional, property] short VisualEffect; + + /** denotes the writing mode used in the control, as specified in the + com::sun::star::text::WritingMode2 constants group. + +Only com::sun::star::text::WritingMode2::LR_TB and + com::sun::star::text::WritingMode2::RL_TB are supported at the moment.
+ + @since OOo 3.1 + */ + [optional, property] short WritingMode; +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlComboBox.idl b/offapi/com/sun/star/awt/UnoControlComboBox.idl new file mode 100644 index 0000000000..e8cdedc5be --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlComboBox.idl @@ -0,0 +1,38 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + 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; + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlComboBoxModel.idl b/offapi/com/sun/star/awt/UnoControlComboBoxModel.idl new file mode 100644 index 0000000000..929586f5f5 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlComboBoxModel.idl @@ -0,0 +1,216 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + module com { module sun { module star { module awt { + + +/** specifies the standard model of a UnoControlComboBox. + */ +published service UnoControlComboBoxModel +{ + service com::sun::star::awt::UnoControlModel; + + + /** specifies the horizontal alignment of the text in the control. + ++ 0: left + 1: center + 2: right ++ */ + [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. + +
+ 0: No border + 1: 3D border + 2: simple border ++ */ + [property] short Border; + + + /** specifies the color of the border, if present + +
Not every border style (see #Border) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.
+ + @since OOo 2.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 com::sun::star::text::FontEmphasis + value of the text in the control. + */ + [property] short FontEmphasisMark; + + + /** specifies the com::sun::star::text::FontRelief + 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 + */ + [optional, property] boolean HideInactiveSelection; + + + /** specifies the maximum line count displayed in the drop down box. + */ + [property] short LineCount; + + + /** specifies the maximum character count. + +There's no limitation, if set to 0.
+ */ + [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] sequenceOnly com::sun::star::text::WritingMode2::LR_TB and + com::sun::star::text::WritingMode2::RL_TB are supported at the moment.
+ + @since OOo 3.1 + */ + [optional, property] short WritingMode; + + /** defines how the mouse wheel can be used to scroll through the control's content. + +Usually, the mouse wheel scroll through the control's entry list. Using this property, + and one of the MouseWheelBehavior constants, you can control under which circumstances + this is possible.
+ */ + [optional, property] short MouseWheelBehavior; + + /** allows manipulating the list of items in the combo box more fine-grained than the + #StringItemList property. + */ + [optional] interface XItemList; + + /** specifies the list of raw typed (not stringized) items. + +This list corresponds with the StringItemList and if given + has to be of the same length, the elements' positions matching + those of their string representation in StringItemList.
+ +If a new value is entered via the ComboBox edit then this + list will be invalidated.
+ + @since LibreOffice 5.4 + */ + [optional, property] sequence+ 0: No border + 1: 3D border + 2: simple border ++ */ + [property] short Border; + + + /** specifies the color of the border, if present + +
Not every border style (see #Border) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.
+ + @since OOo 2.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; + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlCurrencyField.idl b/offapi/com/sun/star/awt/UnoControlCurrencyField.idl new file mode 100644 index 0000000000..815eb202b5 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlCurrencyField.idl @@ -0,0 +1,48 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + module com { module sun { module star { module awt { + + +/** specifies a currency field control. + +A currency field makes it possible to enter, display and edit + currency values.
+ */ +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; + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlCurrencyFieldModel.idl b/offapi/com/sun/star/awt/UnoControlCurrencyFieldModel.idl new file mode 100644 index 0000000000..17858c37e2 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlCurrencyFieldModel.idl @@ -0,0 +1,234 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + module com { module sun { module star { module awt { + + +/** specifies the standard model of a UnoControlCurrencyField. + */ +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. + ++ 0: No border + 1: 3D border + 2: simple border ++ */ + [property] short Border; + + + /** specifies the color of the border, if present + +
Not every border style (see #Border) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.
+ + @since OOo 2.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 com::sun::star::text::FontEmphasis + value of the text in the control. + */ + [property] short FontEmphasisMark; + + + /** specifies the com::sun::star::text::FontRelief + 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 + */ + [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 behavior, i.e. + repeatedly trigger an action when keeping pressed. + + @since OOo 2.0 + */ + [optional, property] boolean Repeat; + + + /** specifies the mouse repeat delay, in milliseconds. + +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.
+ + @since OOo 2.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 + com::sun::star::text::WritingMode2 constants group. + +Only com::sun::star::text::WritingMode2::LR_TB and + com::sun::star::text::WritingMode2::RL_TB are supported at the moment.
+ + @since OOo 3.1 + */ + [optional, property] short WritingMode; + + /** defines how the mouse wheel can be used to scroll through the control's content. + +Usually, the mouse wheel spins the numeric value displayed in the control. Using this property, + and one of the MouseWheelBehavior constants, you can control under which circumstances + this is possible.
+ */ + [optional, property] short MouseWheelBehavior; + + + /** specifies the vertical alignment of the text in the control. + + @since OOo 3.3 + */ + [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; + + /** specifies the background color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightColor; + + /** specifies the text color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightTextColor; +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlDateField.idl b/offapi/com/sun/star/awt/UnoControlDateField.idl new file mode 100644 index 0000000000..ea6a572bd8 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlDateField.idl @@ -0,0 +1,47 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + module com { module sun { module star { module awt { + + +/** specifies a date field control. + +A date field makes it possible to enter, display and edit date values.
+ */ +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; + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlDateFieldModel.idl b/offapi/com/sun/star/awt/UnoControlDateFieldModel.idl new file mode 100644 index 0000000000..82ccd12c0a --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlDateFieldModel.idl @@ -0,0 +1,245 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + module com { module sun { module star { module awt { + + +/** specifies the standard model of a UnoControlDateField. + */ +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. + ++ 0: No border + 1: 3D border + 2: simple border ++ */ + [property] short Border; + + + /** specifies the color of the border, if present + +
Not every border style (see #Border) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.
+ + @since OOo 2.0 + */ + [optional, property] long BorderColor; + + + /** specifies the date displayed in the control. + */ + [property] ::com::sun::star::util::Date Date; + + + /** specifies the format of the displayed date. + ++ 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 ++ */ + [property] short DateFormat; + + + /** specifies the maximum date that can be entered. + */ + [property] ::com::sun::star::util::Date DateMax; + + + /** specifies the minimum date that can be entered. + */ + [property] ::com::sun::star::util::Date 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 com::sun::star::text::FontEmphasis + value of the text in the control. + */ + [property] short FontEmphasisMark; + + + /** specifies the com::sun::star::text::FontRelief + 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 + */ + [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 behavior, i.e. + repeatedly trigger an action when keeping pressed. + + @since OOo 2.0 + */ + [optional, property] boolean Repeat; + + + /** specifies the mouse repeat delay, in milliseconds. + +
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.
+ + @since OOo 2.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 + */ + [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 + com::sun::star::text::WritingMode2 constants group. + +Only com::sun::star::text::WritingMode2::LR_TB and + com::sun::star::text::WritingMode2::RL_TB are supported at the moment.
+ + @since OOo 3.1 + */ + [optional, property] short WritingMode; + + /** defines how the mouse wheel can be used to scroll through the control's content. + +Usually, the mouse wheel spins the numeric value displayed in the control. Using this property, + and one of the MouseWheelBehavior constants, you can control under which circumstances + this is possible.
+ */ + [optional, property] short MouseWheelBehavior; + + + /** specifies the vertical alignment of the text in the control. + + @since OOo 3.3 + */ + [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; + + /** specifies the background color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightColor; + + /** specifies the text color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightTextColor; +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlDialog.idl b/offapi/com/sun/star/awt/UnoControlDialog.idl new file mode 100644 index 0000000000..90620ab309 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlDialog.idl @@ -0,0 +1,30 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +module com { module sun { module star { module awt { + + +/** specifies a dialog control. + */ +published service UnoControlDialog : XUnoControlDialog; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlDialogElement.idl b/offapi/com/sun/star/awt/UnoControlDialogElement.idl new file mode 100644 index 0000000000..4176645b1e --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlDialogElement.idl @@ -0,0 +1,75 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + module com { module sun { module star { module awt { + + +/** specifies a set of properties to describe the model of an + UnoControl which is embedded in a + UnoControlDialogModel. + */ +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; + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlDialogModel.idl b/offapi/com/sun/star/awt/UnoControlDialogModel.idl new file mode 100644 index 0000000000..3f5d41cbb7 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlDialogModel.idl @@ -0,0 +1,172 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + module com { module sun { module star { module awt { + + +/** specifies the standard model of a UnoControlDialog. + */ +published service UnoControlDialogModel +{ + service com::sun::star::awt::UnoControlModel; + + /** allows to create control models, which support the + UnoControlDialogElement 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 com::sun::star::text::FontEmphasis + value of the text in the caption bar of the dialog. + */ + [property] short FontEmphasisMark; + + + /** specifies the com::sun::star::text::FontRelief + 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 + */ + [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 + */ + [optional, property] string ImageURL; + + /** specifies a graphic to be displayed as a background image + +If this property is present, it interacts with the #ImageURL in the + following way: +
+ 0: left + 1: center + 2: right ++ */ + [property] short Align; + + + /** If set to true an horizontal scrollbar will be added automatically + when needed. + + @since OOo 2.3 + */ + [optional, property] boolean AutoHScroll; + + + /** If set to true a vertical scrollbar will be added automatically + when needed. + + @since OOo 2.3 + */ + [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. + +
+ 0: No border + 1: 3D border + 2: simple border ++ */ + [property] short Border; + + + /** specifies the color of the border, if present + +
Not every border style (see #Border) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.
+ + @since OOo 2.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 com::sun::star::text::FontEmphasis + value of the text in the control. + */ + [property] short FontEmphasisMark; + + + /** specifies the com::sun::star::text::FontRelief + value of the text in the control. + */ + [property] short FontRelief; + + + /** specifies if hard line breaks will be returned in the + XTextComponent::getText() 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 + */ + [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 + +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 #Text property always contains only + line ends in the format specified.
+ +Possible values are all constants from the LineEndFormat group.
+ +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.
+ + @since OOo 2.0 + */ + [optional, property] short LineEndFormat; + + + /** specifies the maximum character count. + +There's no limitation, if set to 0.
+ */ + [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 + */ + [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 + com::sun::star::text::WritingMode2 constants group. + +Only com::sun::star::text::WritingMode2::LR_TB and + com::sun::star::text::WritingMode2::RL_TB are supported at the moment.
+ + @since OOo 3.1 + */ + [optional, property] short WritingMode; + + + /** specifies the vertical alignment of the text in the control. + + @since OOo 3.3 + */ + [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; + + /** specifies the background color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightColor; + + /** specifies the text color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightTextColor; +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlFileControl.idl b/offapi/com/sun/star/awt/UnoControlFileControl.idl new file mode 100644 index 0000000000..a45280f1e6 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlFileControl.idl @@ -0,0 +1,39 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + module com { module sun { module star { module awt { + + +/** specifies a file control. + +A file control extends the UnoControlEdit with a file + dialog.
+ */ +published service UnoControlFileControl +{ + service com::sun::star::awt::UnoControlEdit; + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlFileControlModel.idl b/offapi/com/sun/star/awt/UnoControlFileControlModel.idl new file mode 100644 index 0000000000..c48e21c812 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlFileControlModel.idl @@ -0,0 +1,139 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + module com { module sun { module star { module awt { + + +/** specifies the standard model of a UnoControlFileControl. + */ +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. + ++ 0: No border + 1: 3D border + 2: simple border ++ */ + [property] short Border; + + + /** specifies the color of the border, if present + +
Not every border style (see #Border) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.
+ + @since OOo 2.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 com::sun::star::text::FontEmphasis + value of the text in the control. + */ + [property] short FontEmphasisMark; + + + /** specifies the com::sun::star::text::FontRelief + 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 + */ + [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 OOo 3.3 + */ + [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlFixedHyperlink.idl b/offapi/com/sun/star/awt/UnoControlFixedHyperlink.idl new file mode 100644 index 0000000000..c950dcab2c --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlFixedHyperlink.idl @@ -0,0 +1,39 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + 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; +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlFixedHyperlinkModel.idl b/offapi/com/sun/star/awt/UnoControlFixedHyperlinkModel.idl new file mode 100644 index 0000000000..a707d9dd07 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlFixedHyperlinkModel.idl @@ -0,0 +1,141 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + module com { module sun { module star { module awt { + + +/** specifies the standard model of a UnoControlFixedHyperlink. + */ +service UnoControlFixedHyperlinkModel +{ + service com::sun::star::awt::UnoControlModel; + + + /** specifies the horizontal alignment of the text in the control. + ++ 0: left + 1: center + 2: right ++ */ + [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. + +
+ 0: No border + 1: 3D border + 2: simple border ++ */ + [property] short Border; + + + /** specifies the color of the border, if present + +
Not every border style (see #Border) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.
+ + @since OOo 2.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 com::sun::star::text::FontEmphasis + value of the text in the control. + */ + [property] short FontEmphasisMark; + + + /** specifies the com::sun::star::text::FontRelief + 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 + */ + [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlFixedLine.idl b/offapi/com/sun/star/awt/UnoControlFixedLine.idl new file mode 100644 index 0000000000..9671f138c2 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlFixedLine.idl @@ -0,0 +1,37 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + module com { module sun { module star { module awt { + + +/** specifies a fixed line control. + */ +published service UnoControlFixedLine +{ + service com::sun::star::awt::UnoControl; + +}; + + +}; }; }; }; + + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlFixedLineModel.idl b/offapi/com/sun/star/awt/UnoControlFixedLineModel.idl new file mode 100644 index 0000000000..2b87771903 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlFixedLineModel.idl @@ -0,0 +1,98 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + module com { module sun { module star { module awt { + + +/** specifies the standard model of a UnoControlFixedLine. + */ +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 com::sun::star::text::FontEmphasis + value of the text in the control. + */ + [property] short FontEmphasisMark; + + + /** specifies the com::sun::star::text::FontRelief + 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. + ++ 0: horizontal + 1: vertical ++ */ + [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; + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlFixedText.idl b/offapi/com/sun/star/awt/UnoControlFixedText.idl new file mode 100644 index 0000000000..bcd7f17695 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlFixedText.idl @@ -0,0 +1,40 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + 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; + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlFixedTextModel.idl b/offapi/com/sun/star/awt/UnoControlFixedTextModel.idl new file mode 100644 index 0000000000..c5c1f6fbba --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlFixedTextModel.idl @@ -0,0 +1,156 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + module com { module sun { module star { module awt { + + +/** specifies the standard model of a UnoControlFixedText. + */ +published service UnoControlFixedTextModel +{ + service com::sun::star::awt::UnoControlModel; + + + /** specifies the horizontal alignment of the text in the control. + +
+ 0: left + 1: center + 2: right ++ */ + [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. + +
+ 0: No border + 1: 3D border + 2: simple border ++ */ + [property] short Border; + + + /** specifies the color of the border, if present + +
Not every border style (see #Border) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.
+ + @since OOo 2.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 com::sun::star::text::FontEmphasis + value of the text in the control. + */ + [property] short FontEmphasisMark; + + + /** specifies the com::sun::star::text::FontRelief + 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 + */ + [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; + + //------------------------------------------------------------------------- + + /** suppresses automatic accelerator assignment on this control. + + @since OOo 2.4 + */ + [optional, property] boolean NoLabel; + + /** specifies the background color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightColor; + + /** specifies the text color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightTextColor; +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlFormattedField.idl b/offapi/com/sun/star/awt/UnoControlFormattedField.idl new file mode 100644 index 0000000000..123fc267d3 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlFormattedField.idl @@ -0,0 +1,43 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + 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; + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlFormattedFieldModel.idl b/offapi/com/sun/star/awt/UnoControlFormattedFieldModel.idl new file mode 100644 index 0000000000..36a55fa3b8 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlFormattedFieldModel.idl @@ -0,0 +1,273 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + module com { module sun { module star { module awt { + + +/** specifies the standard model of a UnoControlFormattedField . + */ +published service UnoControlFormattedFieldModel +{ + service com::sun::star::awt::UnoControlModel; + + + /** specifies the horizontal alignment of the text in the control. + ++ 0: left + 1: center + 2: right ++ */ + [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. + +
+ 0: No border + 1: 3D border + 2: simple border ++ */ + [property] short Border; + + + /** specifies the color of the border, if present + +
Not every border style (see #Border) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.
+ + @since OOo 2.0 + */ + [optional, property] long BorderColor; + + + /** specifies the default value of the formatted field. + +This may be a numeric value (double) or a string, depending on + the formatting of the field.
+ */ + [property] any EffectiveDefault; + + + /** specifies the maximum value that can be entered. + +This property is ignored if the format of the field is no numeric + format.
+ */ + [property] double EffectiveMax; + + + /** specifies the minimum value that can be entered. + +This property is ignored if the format of the field is no numeric + format.
+ */ + [property] double EffectiveMin; + + + /** specifies the current value of the formatted field. + +This may be a numeric value (double) or a string, depending on + the formatting of the field.
+ */ + [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 com::sun::star::text::FontEmphasis + value of the text in the control. + */ + [property] short FontEmphasisMark; + + + /** specifies the com::sun::star::text::FontRelief + value of the text in the control. + */ + [property] short FontRelief; + + + /** specifies the format to be used when formatting the field input + and output. + +This value is meaningful relative to the FormatsSupplier property + only.
+ */ + [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 + */ + [optional, property] boolean HideInactiveSelection; + + + /** specifies the maximum character count. + +There's no limitation, if set to 0.
+ */ + [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 behavior, i.e. + repeatedly trigger an action when keeping pressed. + + @since OOo 2.0 + */ + [optional, property] boolean Repeat; + + + /** specifies the mouse repeat delay, in milliseconds. + +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.
+ + @since OOo 2.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. + +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.
+ */ + [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 + com::sun::star::text::WritingMode2 constants group. + +Only com::sun::star::text::WritingMode2::LR_TB and + com::sun::star::text::WritingMode2::RL_TB are supported at the moment.
+ + @since OOo 3.1 + */ + [optional, property] short WritingMode; + + /** defines how the mouse wheel can be used to scroll through the control's content. + +Usually, the mouse wheel spins the numeric value displayed in the control. Using this property, + and one of the MouseWheelBehavior constants, you can control under which circumstances + this is possible.
+ */ + [optional, property] short MouseWheelBehavior; + + + /** specifies the vertical alignment of the text in the control. + + @since OOo 3.3 + */ + [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; + + /** specifies the background color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightColor; + + /** specifies the text color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightTextColor; +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlGroupBox.idl b/offapi/com/sun/star/awt/UnoControlGroupBox.idl new file mode 100644 index 0000000000..f363427a4f --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlGroupBox.idl @@ -0,0 +1,36 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + module com { module sun { module star { module awt { + + +/** specifies a group box control. + */ +published service UnoControlGroupBox +{ + service com::sun::star::awt::UnoControl; + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlGroupBoxModel.idl b/offapi/com/sun/star/awt/UnoControlGroupBoxModel.idl new file mode 100644 index 0000000000..8e23284ef5 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlGroupBoxModel.idl @@ -0,0 +1,97 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + module com { module sun { module star { module awt { + + +/** specifies the standard model of a UnoControlGroupBox. + */ +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 com::sun::star::text::FontEmphasis + value of the text in the control. + */ + [property] short FontEmphasisMark; + + + /** specifies the com::sun::star::text::FontRelief + 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 + com::sun::star::text::WritingMode2 constants group. + +Only com::sun::star::text::WritingMode2::LR_TB and + com::sun::star::text::WritingMode2::RL_TB are supported at the moment.
+ + @since OOo 3.1 + */ + [optional, property] short WritingMode; +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlImageControl.idl b/offapi/com/sun/star/awt/UnoControlImageControl.idl new file mode 100644 index 0000000000..880252850c --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlImageControl.idl @@ -0,0 +1,38 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + 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; + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlImageControlModel.idl b/offapi/com/sun/star/awt/UnoControlImageControlModel.idl new file mode 100644 index 0000000000..80bd149d15 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlImageControlModel.idl @@ -0,0 +1,127 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + module com { module sun { module star { module awt { + + +/** specifies the standard model of a UnoControlImageControl. + */ +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. + ++ 0: No border + 1: 3D border + 2: simple border ++ */ + [property] short Border; + + + /** specifies the color of the border, if present + +
Not every border style (see #Border) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.
+ + @since OOo 2.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 a URL to an image to use for the control. + @see Graphic + */ + [property] string ImageURL; + + + /** specifies a graphic to be displayed on the control + +If this property is present, it interacts with the #ImageURL in the + following way: +
If this property is present, it supersedes the #ScaleImage property.
+ +The value of this property is one of the ImageScaleMode constants.
+ + @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; + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlListBox.idl b/offapi/com/sun/star/awt/UnoControlListBox.idl new file mode 100644 index 0000000000..f3078bbcac --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlListBox.idl @@ -0,0 +1,45 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + module com { module sun { module star { module awt { + + +/** specifies a list box control. + +A list box displays a list of strings and allows a selection within + these.
+ */ +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; + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlListBoxModel.idl b/offapi/com/sun/star/awt/UnoControlListBoxModel.idl new file mode 100644 index 0000000000..965f3be42b --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlListBoxModel.idl @@ -0,0 +1,209 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + module com { module sun { module star { module awt { + + +/** specifies the standard model of a UnoControlListBox. + */ +published service UnoControlListBoxModel +{ + service com::sun::star::awt::UnoControlModel; + + + /** specifies the horizontal alignment of the text in the control. + ++ 0: left + 1: center + 2: right ++ */ + [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. + +
+ 0: No border + 1: 3D border + 2: simple border ++ */ + [property] short Border; + + + /** specifies the color of the border, if present + +
Not every border style (see #Border) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.
+ + @since OOo 2.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 com::sun::star::text::FontEmphasis + value of the text in the control. + */ + [property] short FontEmphasisMark; + + + /** specifies the com::sun::star::text::FontRelief + 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, identified by the position. + */ + [property] sequenceOnly com::sun::star::text::WritingMode2::LR_TB and + com::sun::star::text::WritingMode2::RL_TB are supported at the moment.
+ + @since OOo 3.1 + */ + [optional, property] short WritingMode; + + /** defines how the mouse wheel can be used to scroll through the control's content. + +Usually, the mouse wheel scroll through the control's entry list. Using this property, + and one of the MouseWheelBehavior constants, you can control under which circumstances + this is possible.
+ */ + [optional, property] short MouseWheelBehavior; + + /** allows manipulating the list of items in the list box more fine-grained than the + #StringItemList property. + + @since OOo 3.3 + */ + [optional] interface XItemList; + + /** specifies where an item separator - a horizontal line - is drawn. + +If this is not `NULL`, then a horizontal line will be drawn between the item at the given position, + and the following item.
+ + @since OOo 3.3 + */ + [optional, property, maybevoid] short ItemSeparatorPos; + + /** specifies the list of raw typed (not stringized) items. + +This list corresponds with the StringItemList and if given + has to be of the same length, the elements' positions matching + those of their string representation in StringItemList.
+ + @since LibreOffice 5.4 + */ + [optional, property] sequenceThe interfaces com::sun::star::beans::XPropertySet + and com::sun::star::beans::XMultiPropertySet 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.
+ */ +published service UnoControlModel +{ + /** This service is present when the control model is embedded in an + UnoControlDialogModel. + */ + [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; + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlNumericField.idl b/offapi/com/sun/star/awt/UnoControlNumericField.idl new file mode 100644 index 0000000000..e82a8c4a65 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlNumericField.idl @@ -0,0 +1,48 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + module com { module sun { module star { module awt { + + +/** specifies a numeric field control. + +A numeric field makes it possible to enter, display and edit + formatted numeric values.
+ */ +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; + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlNumericFieldModel.idl b/offapi/com/sun/star/awt/UnoControlNumericFieldModel.idl new file mode 100644 index 0000000000..c54b10105b --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlNumericFieldModel.idl @@ -0,0 +1,224 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + module com { module sun { module star { module awt { + + +/** specifies the standard model of a UnoControlNumericField. + */ +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. + ++ 0: No border + 1: 3D border + 2: simple border ++ */ + [property] short Border; + + + /** specifies the color of the border, if present + +
Not every border style (see #Border) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.
+ + @since OOo 2.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 com::sun::star::text::FontEmphasis + value of the text in the control. + */ + [property] short FontEmphasisMark; + + + /** specifies the com::sun::star::text::FontRelief + 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 + */ + [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 behavior, i.e. + repeatedly trigger an action when keeping pressed. + + @since OOo 2.0 + */ + [optional, property] boolean Repeat; + + + /** specifies the mouse repeat delay, in milliseconds. + +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.
+ + @since OOo 2.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 + com::sun::star::text::WritingMode2 constants group. + +Only com::sun::star::text::WritingMode2::LR_TB and + com::sun::star::text::WritingMode2::RL_TB are supported at the moment.
+ + @since OOo 3.1 + */ + [optional, property] short WritingMode; + + /** defines how the mouse wheel can be used to scroll through the control's content. + +Usually, the mouse wheel spins the numeric value displayed in the control. Using this property, + and one of the MouseWheelBehavior constants, you can control under which circumstances + this is possible.
+ */ + [optional, property] short MouseWheelBehavior; + + + /** specifies the vertical alignment of the text in the control. + + @since OOo 3.3 + */ + [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; + + /** specifies the background color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightColor; + + /** specifies the text color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightTextColor; +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlPatternField.idl b/offapi/com/sun/star/awt/UnoControlPatternField.idl new file mode 100644 index 0000000000..9230c62b21 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlPatternField.idl @@ -0,0 +1,48 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + module com { module sun { module star { module awt { + + +/** specifies a pattern field control. + +A pattern field makes it possible to enter, display and edit text + which conforms to a specified pattern.
+ */ +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; + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlPatternFieldModel.idl b/offapi/com/sun/star/awt/UnoControlPatternFieldModel.idl new file mode 100644 index 0000000000..8cc0431835 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlPatternFieldModel.idl @@ -0,0 +1,188 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + module com { module sun { module star { module awt { + + +/** specifies the standard model of a UnoControlPatternField. + */ +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. + ++ 0: No border + 1: 3D border + 2: simple border ++ */ + [property] short Border; + + + /** specifies the color of the border, if present + +
Not every border style (see #Border) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.
+ + @since OOo 2.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 com::sun::star::text::FontEmphasis + value of the text in the control. + */ + [property] short FontEmphasisMark; + + + /** specifies the com::sun::star::text::FontRelief + 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 + */ + [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 + com::sun::star::text::WritingMode2 constants group. + +Only com::sun::star::text::WritingMode2::LR_TB and + com::sun::star::text::WritingMode2::RL_TB are supported at the moment.
+ + @since OOo 3.1 + */ + [optional, property] short WritingMode; + + /** defines how the mouse wheel can be used to scroll through the control's content. + +Usually, the mouse wheel spins the numeric value displayed in the control. Using this property, + and one of the MouseWheelBehavior constants, you can control under which circumstances + this is possible.
+ */ + [optional, property] short MouseWheelBehavior; + + + /** specifies the vertical alignment of the text in the control. + + @since OOo 3.3 + */ + [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; + + /** specifies the background color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightColor; + + /** specifies the text color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightTextColor; +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlProgressBar.idl b/offapi/com/sun/star/awt/UnoControlProgressBar.idl new file mode 100644 index 0000000000..b799933a42 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlProgressBar.idl @@ -0,0 +1,39 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + 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; + +}; + + +}; }; }; }; + + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlProgressBarModel.idl b/offapi/com/sun/star/awt/UnoControlProgressBarModel.idl new file mode 100644 index 0000000000..10dee12a0c --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlProgressBarModel.idl @@ -0,0 +1,102 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + module com { module sun { module star { module awt { + + +/** specifies the standard model of a UnoControlProgressBar. + */ +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. + ++ 0: No border + 1: 3D border + 2: simple border ++ */ + [property] short Border; + + + /** specifies the color of the border, if present + +
Not every border style (see #Border) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.
+ + @since OOo 2.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; + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlRadioButton.idl b/offapi/com/sun/star/awt/UnoControlRadioButton.idl new file mode 100644 index 0000000000..2236d0029c --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlRadioButton.idl @@ -0,0 +1,40 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + +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; + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlRadioButtonModel.idl b/offapi/com/sun/star/awt/UnoControlRadioButtonModel.idl new file mode 100644 index 0000000000..c686b859f0 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlRadioButtonModel.idl @@ -0,0 +1,185 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + module com { module sun { module star { module awt { + + +/** specifies the standard model of a UnoControlRadioButton. + */ +published service UnoControlRadioButtonModel +{ + service com::sun::star::awt::UnoControlModel; + + + /** specifies the horizontal alignment of the text in the control. + ++ 0: left + 1: center + 2: right ++ + @since OOo 2.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 com::sun::star::text::FontEmphasis + value of the text in the control. + */ + [property] short FontEmphasisMark; + + + /** specifies the com::sun::star::text::FontRelief + 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 + +
Valid values of this property are specified with ImagePosition.
+ */ + [optional, property] short ImagePosition; + + + /** specifies a 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 + +If this property is present, it interacts with the #ImageURL in the + following way: +
+ 0: not checked + 1: checked ++ */ + [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 + */ + [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; + + + /** specifies a visual effect to apply to the radio button control. + +
Possible values for this property are VisualEffect::FLAT and + VisualEffect::LOOK3D.
+ + @see com::sun::star::awt::VisualEffect + + @since OOo 2.0 + */ + [optional, property] short VisualEffect; + + /** denotes the writing mode used in the control, as specified in the + com::sun::star::text::WritingMode2 constants group. + +Only com::sun::star::text::WritingMode2::LR_TB and + com::sun::star::text::WritingMode2::RL_TB are supported at the moment.
+ + @since OOo 3.1 + */ + [optional, property] short WritingMode; +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlRoadmap.idl b/offapi/com/sun/star/awt/UnoControlRoadmap.idl new file mode 100644 index 0000000000..9e31f5f2ec --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlRoadmap.idl @@ -0,0 +1,60 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + + module com { module sun { module star { module awt { + + +/** specifies a Roadmap control. The model of the Roadmap control must be a + UnoControlRoadmapModel + +The model properties are implemented in the control as follows: +
A roadmap control which is interactive allows selecting its items out-of-order, + by simply clicking them.
+ */ + [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 a 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 + +If this property is present, it interacts with the #ImageURL in the + following way: +
+ 0: No border + 1: 3D border + 2: simple border ++ */ + [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; + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlScrollBar.idl b/offapi/com/sun/star/awt/UnoControlScrollBar.idl new file mode 100644 index 0000000000..04b3cce647 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlScrollBar.idl @@ -0,0 +1,39 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + 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; + +}; + + +}; }; }; }; + + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlScrollBarModel.idl b/offapi/com/sun/star/awt/UnoControlScrollBarModel.idl new file mode 100644 index 0000000000..876b490b0a --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlScrollBarModel.idl @@ -0,0 +1,162 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + module com { module sun { module star { module awt { + + +/** specifies the standard model of a UnoControlScrollBar. + */ +published service UnoControlScrollBarModel +{ + service com::sun::star::awt::UnoControlModel; + + + /** specifies the RGB color to be used for the control. + + @since OOo 2.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. + +
+ 0: No border + 1: 3D border + 2: simple border ++ */ + [property] short Border; + + + /** specifies the color of the border, if present + +
Not every border style (see #Border) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.
+ + @since OOo 2.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 behavior of the control. + +`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.
+ + @since OOo 2.0 + */ + [optional, property] boolean LiveScroll; + + + /** specifies the ScrollBarOrientation 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. + +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.
+ + @since OOo 2.0 + */ + [optional, property] long RepeatDelay; + + + /** specifies the scroll value of the control. + */ + [property] long ScrollValue; + + + /** specifies the minimum scroll value of the control. + +If this optional property is not present, clients of the component should assume + a minimal scroll value of 0.
+ */ + [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 + */ + [optional, property] com::sun::star::util::Color SymbolColor; + + + /** specifies that the control can be reached with the TAB key. + + @since OOo 2.0 + */ + [optional, property] boolean Tabstop; + + + /** specifies the visible size of the scroll bar. + */ + [property] long VisibleSize; + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlSpinButton.idl b/offapi/com/sun/star/awt/UnoControlSpinButton.idl new file mode 100644 index 0000000000..2f7fd73af1 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlSpinButton.idl @@ -0,0 +1,42 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + module com { module sun { module star { module awt { + + +/** specifies a spin button control. + +The model of a UnoControlSpinButton control must support + the UnoControlSpinButtonModel service. + */ +service UnoControlSpinButton +{ + service com::sun::star::awt::UnoControl; + + interface com::sun::star::awt::XSpinValue; + +}; + + +}; }; }; }; + + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlSpinButtonModel.idl b/offapi/com/sun/star/awt/UnoControlSpinButtonModel.idl new file mode 100644 index 0000000000..93dfd4c618 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlSpinButtonModel.idl @@ -0,0 +1,147 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + module com { module sun { module star { module awt { + + +/** specifies the standard model of a UnoControlSpinButton. + +
A spin button is a control which has a numeric value associated with it, + and allows to change this value using two spin buttons.
+ +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 + its value to other controls.
+ + @see UnoControlScrollBarModel + */ +service UnoControlSpinButtonModel +{ + service com::sun::star::awt::UnoControlModel; + + + /** specifies the border style of the control. + ++ 0: No border + 1: 3D border + 2: simple border ++ */ + [property] short Border; + + + /** specifies the color of the border, if present + +
Not every border style (see #Border) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.
+ + @since OOo 2.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 ScrollBarOrientation 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 behavior, i.e. + repeatedly trigger an action when keeping pressed. + */ + [property] boolean Repeat; + + + /** specifies the mouse repeat delay, in milliseconds. + +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.
+ */ + [property] long RepeatDelay; + + /** defines how the mouse wheel can be used to scroll through the control's content. + +Usually, the mouse wheel spins the numeric value displayed in the control. Using this property, + and one of the MouseWheelBehavior constants, you can control under which circumstances + this is possible.
+ */ + [optional, property] short MouseWheelBehavior; +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlTimeField.idl b/offapi/com/sun/star/awt/UnoControlTimeField.idl new file mode 100644 index 0000000000..0f3ee992f9 --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlTimeField.idl @@ -0,0 +1,48 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + module com { module sun { module star { module awt { + + +/** specifies a time field control. + +A time field makes it possible to enter, display, and edit time + values.
+ */ +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; + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/UnoControlTimeFieldModel.idl b/offapi/com/sun/star/awt/UnoControlTimeFieldModel.idl new file mode 100644 index 0000000000..a97ec8c71a --- /dev/null +++ b/offapi/com/sun/star/awt/UnoControlTimeFieldModel.idl @@ -0,0 +1,229 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + module com { module sun { module star { module awt { + + +/** specifies the standard model of a UnoControlTimeField. + */ +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. + ++ 0: No border + 1: 3D border + 2: simple border ++ */ + [property] short Border; + + + /** specifies the color of the border, if present + +
Not every border style (see #Border) may support coloring. + For instance, usually a border with 3D effect will ignore the BorderColor setting.
+ + @since OOo 2.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 com::sun::star::text::FontEmphasis + value of the text in the control. + */ + [property] short FontEmphasisMark; + + + /** specifies the com::sun::star::text::FontRelief + 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 + */ + [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 behavior, i.e. + repeatedly trigger an action when keeping pressed. + + @since OOo 2.0 + */ + [optional, property] boolean Repeat; + + + /** specifies the mouse repeat delay, in milliseconds. + +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.
+ + @since OOo 2.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 + */ + [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] com::sun::star::util::Time Time; + + + /** specifies the format of the displayed time. + ++ 0: 24h short + 1: 24h long + 2: 12h short + 3: 12h long + 4: Duration short + 5: Duration long ++ */ + [property] short TimeFormat; + + + /** specifies the maximum time that can be entered. + */ + [property] com::sun::star::util::Time TimeMax; + + + /** specifies the minimum time that can be entered. + */ + [property] com::sun::star::util::Time TimeMin; + + /** denotes the writing mode used in the control, as specified in the + com::sun::star::text::WritingMode2 constants group. + +
Only com::sun::star::text::WritingMode2::LR_TB and + com::sun::star::text::WritingMode2::RL_TB are supported at the moment.
+ + @since OOo 3.1 + */ + [optional, property] short WritingMode; + + /** defines how the mouse wheel can be used to scroll through the control's content. + +Usually, the mouse wheel spins the numeric value displayed in the control. Using this property, + and one of the MouseWheelBehavior constants, you can control under which circumstances + this is possible.
+ */ + [optional, property] short MouseWheelBehavior; + + + /** specifies the vertical alignment of the text in the control. + + @since OOo 3.3 + */ + [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; + + /** specifies the background color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightColor; + + /** specifies the text color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightTextColor; +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/VclContainerEvent.idl b/offapi/com/sun/star/awt/VclContainerEvent.idl new file mode 100644 index 0000000000..874cd409a1 --- /dev/null +++ b/offapi/com/sun/star/awt/VclContainerEvent.idl @@ -0,0 +1,44 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + module com { module sun { module star { module awt { + + +/** specifies a container event. + +These events are provided only for notification + purposes.
+ + @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; + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/VclWindowPeerAttribute.idl b/offapi/com/sun/star/awt/VclWindowPeerAttribute.idl new file mode 100644 index 0000000000..f129e45638 --- /dev/null +++ b/offapi/com/sun/star/awt/VclWindowPeerAttribute.idl @@ -0,0 +1,117 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + module com { module sun { module star { module awt { + + +/** specifies attributes for the VCL window implementation. + +IMPORTANT: These constants have to be disjunct with + constants in WindowAttribute.
+ + @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; + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/VisualEffect.idl b/offapi/com/sun/star/awt/VisualEffect.idl new file mode 100644 index 0000000000..d457395af5 --- /dev/null +++ b/offapi/com/sun/star/awt/VisualEffect.idl @@ -0,0 +1,46 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + +module com { module sun { module star { module awt { + + +/** These values are used to specify the visual effect of controls + +The list may grow in future versions.
+*/ +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; +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/WindowAttribute.idl b/offapi/com/sun/star/awt/WindowAttribute.idl new file mode 100644 index 0000000000..817e69d1a7 --- /dev/null +++ b/offapi/com/sun/star/awt/WindowAttribute.idl @@ -0,0 +1,112 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + module com { module sun { module star { module awt { + + +/** These values are used to specify the decorations of a window. + +IMPORTANT: These constants have to be disjunct with + constants in VclWindowPeerAttribute.
+ */ +published constants WindowAttribute +{ + + /** specifies that the window is initially visible. + */ + const long SHOW = 1; + + + /** specifies that the window fills the complete desktop area. + +This applies only to top windows.
+ */ + const long FULLSIZE = 2; + + + /** specifies that the window is optimum size. + +This applies only to top windows.
+ */ + const long OPTIMUMSIZE = 4; + + + /** specifies that the window is minimum size. + +This applies only to top windows.
+ */ + const long MINSIZE = 8; + + + /** specifies that the window has visible borders. + +This applies only to top windows.
+ */ + const long BORDER = 16; + + + /** specifies that the size of the window can be changed by the user. + +This applies only to top windows.
+ */ + const long SIZEABLE = 32; + + + /** specifies that the window can be moved by the user. + +This applies only to top windows.
+ */ + const long MOVEABLE = 64; + + + /** specifies that the window can be closed by the user. + +This applies only to top windows.
+ */ + const long CLOSEABLE = 128; + + + /** specifies that the window should support the + com::sun::star::awt::XSystemDependentWindowPeer + interface. + +This flag may be ignored, but in this case no system-dependent + extension works.
+ + @see XSystemDependentWindowPeer + @see com::sun::star::lang::SystemDependent + + @deprecated + conflicts with VclWindowPeerAttribute::HSCROLL + */ + const long SYSTEMDEPENDENT = 256; + + + /** specifies that the window should have no decoration. + */ + const long NODECORATION = 512; + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/WindowClass.idl b/offapi/com/sun/star/awt/WindowClass.idl new file mode 100644 index 0000000000..00cf5c5670 --- /dev/null +++ b/offapi/com/sun/star/awt/WindowClass.idl @@ -0,0 +1,55 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + 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 + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/WindowDescriptor.idl b/offapi/com/sun/star/awt/WindowDescriptor.idl new file mode 100644 index 0000000000..e1683b7d2e --- /dev/null +++ b/offapi/com/sun/star/awt/WindowDescriptor.idl @@ -0,0 +1,146 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + module com { module sun { module star { module awt { + + +/** describes a window. + */ +published struct WindowDescriptor +{ + + /** specifies the type of window. + */ + com::sun::star::awt::WindowClass Type; + + + /** specifies the name of the component service. + +A zero length name means that the VCL creates a blank top,
+ a container, or a simple window.
+ The following service names are defined:
+
If Parent == 0 && ParentIndex == -1
,
+ then the window is on the desktop.
If Parent == 0
and this struct is a member of an array,
+ then this is the offset from the beginning of the array to the parent.
+ A value of -1 means desktop.
This member is ignored if the window attribute is + com::sun::star::awt::WindowAttribute::FULLSIZE.
+ */ + com::sun::star::awt::Rectangle Bounds; + + + /** specifies the window attributes. + +Use one value out of the constant group + com::sun::star::awt::WindowAttribute.
+ */ + long WindowAttributes; + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/WindowEvent.idl b/offapi/com/sun/star/awt/WindowEvent.idl new file mode 100644 index 0000000000..51268c569f --- /dev/null +++ b/offapi/com/sun/star/awt/WindowEvent.idl @@ -0,0 +1,86 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + 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. + +The inset is the distance between the outer and the inner window, + that means the left inset is the width of the left border.
+ */ + long LeftInset; + + + /** specifies the inset from the top. + +The inset is the distance between the outer and the inner window, + that means the top inset is the height of the top border.
+ */ + long TopInset; + + + /** specifies the inset from the right. + +The inset is the distance between the outer and the inner window, + that means the right inset is the width of the right border.
+ */ + long RightInset; + + + /** specifies the inset from the bottom. + +The inset is the distance between the outer and the inner window, + that means the bottom inset is the height of the bottom border.
+ */ + long BottomInset; + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/XActionListener.idl b/offapi/com/sun/star/awt/XActionListener.idl new file mode 100644 index 0000000000..d79f6d6276 --- /dev/null +++ b/offapi/com/sun/star/awt/XActionListener.idl @@ -0,0 +1,39 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + 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. + */ + void actionPerformed( [in] com::sun::star::awt::ActionEvent rEvent ); + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/XActivateListener.idl b/offapi/com/sun/star/awt/XActivateListener.idl new file mode 100644 index 0000000000..5b93570a31 --- /dev/null +++ b/offapi/com/sun/star/awt/XActivateListener.idl @@ -0,0 +1,55 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + 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. + +A window is activated if a child or itself got the focus.
+ + @see XFocusListener::focusGained + */ + void windowActivated( [in] com::sun::star::lang::EventObject e ); + + + /** is invoked when a window is deactivated. + +A window is deactivated if a child or itself lost the focus.
+ + @see XFocusListener::focusLost + */ + void windowDeactivated( [in] com::sun::star::lang::EventObject e ); + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/XAdjustmentListener.idl b/offapi/com/sun/star/awt/XAdjustmentListener.idl new file mode 100644 index 0000000000..b50b5685d8 --- /dev/null +++ b/offapi/com/sun/star/awt/XAdjustmentListener.idl @@ -0,0 +1,39 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + 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. + */ + void adjustmentValueChanged( [in] com::sun::star::awt::AdjustmentEvent rEvent ); + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/XAnimatedImages.idl b/offapi/com/sun/star/awt/XAnimatedImages.idl new file mode 100644 index 0000000000..bb4c8975b8 --- /dev/null +++ b/offapi/com/sun/star/awt/XAnimatedImages.idl @@ -0,0 +1,157 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + +module com { module sun { module star { module awt { + + +/** allows administrating a set of images, to be displayed as animated seres. + +Components implementing this interface maintain a variable number of image sets. Components displaying + those images will choose the best-fitting image set depending on the available space, and possibly other + restrictions.
+ + @since OOo 3.4 + */ +interface XAnimatedImages +{ + /** specifies the time in milliseconds between two animation steps. + +This is the minimum time, the actual value might be longer due to + system load. The default value will be 100 ms.
+ */ + [attribute] long StepTime; + + /** specifies whether the animation should start over with the first image of the image series when the last image + has been played. + +The default value for this attribute is `TRUE`.
+ */ + [attribute] boolean AutoRepeat; + + /** controls the way the images are scaled up or down, when the available space is larger or smaller + than what is needed for them. + +Allowed values are those from the ImageScaleMode constants group.
+ */ + [attribute] short ScaleMode + { + set raises (::com::sun::star::lang::IllegalArgumentException); + }; + + /** returns the number of images sets maintained by the component. + */ + long + getImageSetCount(); + + /** returns the URLs of the image set with the given index + + @param iIndex + the index of the set those image URLs are to be retrieved. Must be greater than or equal to0
,
+ and smaller than the value returned by getImageSetCount().
+
+ @throws ::com::sun::star::lang::IndexOutOfBoundsException
+ if the iIndex
is not a valid index.
+ */
+ sequence< string >
+ getImageSet
+ (
+ [in] long iIndex
+ )
+ raises
+ (
+ ::com::sun::star::lang::IndexOutOfBoundsException
+ );
+
+ /** sets the URLs of the image set with the given index
+
+ @param iIndex
+ the index at which a new image set should be inserted. Must be greater than or equal to 0
,
+ and smaller than or equal to the value returned by getImageSetCount().
+ @param iImageURLs
+ the URLs for the images for the given set. Will be resolved using a com::sun::star::graphic::GraphicProvider.
+
+ @throws ::com::sun::star::lang::IndexOutOfBoundsException
+ if the iIndex
is not a valid index.
+ */
+ void
+ insertImageSet
+ (
+ [in] long iIndex,
+ [in] sequence< string > iImageURLs
+ )
+ raises
+ (
+ ::com::sun::star::lang::IndexOutOfBoundsException
+ );
+
+ /** replaces the image set given by index with a new one
+
+ @param iIndex
+ the index of the set those image URLs are to be replaced. Must be greater than or equal to 0
,
+ and smaller than the value returned by getImageSetCount().
+
+ @param iImageURLs
+ the URLs for the images for the given set. Will be resolved using a com::sun::star::graphic::GraphicProvider.
+
+ @throws ::com::sun::star::lang::IndexOutOfBoundsException
+ if the iIndex
is not a valid index.
+ */
+ void
+ replaceImageSet
+ (
+ [in] long iIndex,
+ [in] sequence< string > iImageURLs
+ )
+ raises
+ (
+ ::com::sun::star::lang::IndexOutOfBoundsException
+ );
+
+
+ /** removes the image set with the given index
+
+ @param iIndex
+ the index of the set to remove. Must be greater than or equal to 0
,
+ and smaller than the value returned by getImageSetCount().
+
+ @throws ::com::sun::star::lang::IndexOutOfBoundsException
+ if the iIndex
is not a valid index.
+ */
+ void
+ removeImageSet
+ (
+ [in] long iIndex
+ )
+ raises
+ (
+ ::com::sun::star::lang::IndexOutOfBoundsException
+ );
+
+
+ /** allows other components to observer the insertion, removal, and replacement of image sets
+ */
+ interface ::com::sun::star::container::XContainer;
+};
+
+
+}; }; }; };
+
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/XAnimation.idl b/offapi/com/sun/star/awt/XAnimation.idl
new file mode 100644
index 0000000000..6ffd390bc3
--- /dev/null
+++ b/offapi/com/sun/star/awt/XAnimation.idl
@@ -0,0 +1,47 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+
+module com { module sun { module star { module awt {
+
+
+/** allows controlling an animation.
+
+ @since OOo 3.4
+ */
+interface XAnimation
+{
+ /** starts the animation
+ */
+ void startAnimation();
+
+ /** stops the animation
+ */
+ void stopAnimation();
+
+ /** determines whether the animation is currently running
+ */
+ boolean isAnimationRunning();
+};
+
+
+}; }; }; };
+
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/XBitmap.idl b/offapi/com/sun/star/awt/XBitmap.idl
new file mode 100644
index 0000000000..6d9b480233
--- /dev/null
+++ b/offapi/com/sun/star/awt/XBitmap.idl
@@ -0,0 +1,49 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+
+
+ 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.
+ */
+ sequencevnd.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
+ com::sun::star::awt::XContainerWindowEventHandler.
+
+ 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 com::sun::star::awt::XWindow 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 com::sun::star::awt::XContainerWindowEventHandler
+
+ */
+ 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 );
+};
+
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/XControl.idl b/offapi/com/sun/star/awt/XControl.idl
new file mode 100644
index 0000000000..16a528e90c
--- /dev/null
+++ b/offapi/com/sun/star/awt/XControl.idl
@@ -0,0 +1,99 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+
+
+ module com { module sun { module star { module awt {
+
+
+/** identifies a control.
+
+ 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 + XControl::createPeer() method must be called.
+ +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.
+ */ +published interface XControl: com::sun::star::lang::XComponent +{ + + /** sets the context of the control. + */ + 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. + +If the parent is NULL, then the desktop window of the toolkit + is the parent.
+ */ + 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. + +Normally the control will be painted directly without a peer.
+ */ + 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(); + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/XControlContainer.idl b/offapi/com/sun/star/awt/XControlContainer.idl new file mode 100644 index 0000000000..5a9f096109 --- /dev/null +++ b/offapi/com/sun/star/awt/XControlContainer.idl @@ -0,0 +1,61 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + module com { module sun { module star { module awt { + + +/** Provides access to the controls within an + UnoControlContainer. + */ +published interface XControlContainer: com::sun::star::uno::XInterface +{ + + /** sets the status text in the status bar of the container. + */ + void setStatusText( [in] string StatusText ); + + + /** returns all controls. + */ + sequenceIf the device does not support the GETBITS device capability, + this method returns `NULL`.
+ */ + 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. + */ + sequenceIf the specified area does not lie entirely in the device, the bits + outside are not specified.
+ */ + XBitmap createBitmap( [in] long nX, + [in] long nY, + [in] long nWidth, + [in] long nHeight ); + + + /** creates a device compatible bitmap. + +The data of the bitmap is in process memory instead of in the device, + so that the output operation is fast.
+ */ + XDisplayBitmap createDisplayBitmap( [in] XBitmap Bitmap ); + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/XDialog.idl b/offapi/com/sun/star/awt/XDialog.idl new file mode 100644 index 0000000000..ab23433b2c --- /dev/null +++ b/offapi/com/sun/star/awt/XDialog.idl @@ -0,0 +1,57 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + 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. + */ + void setTitle( [in] string Title ); + + + /** gets the title of the dialog. + */ + string getTitle(); + + + /** runs the dialog modally: shows it, and waits for the execution to end. + Returns an exit code (e.g., indicating the button that was used to end the execution). + */ + short execute(); + + + /** hides the dialog and then causes XDialog::execute() + to return. + */ + void endExecute(); + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/XDialog2.idl b/offapi/com/sun/star/awt/XDialog2.idl new file mode 100644 index 0000000000..a82556662d --- /dev/null +++ b/offapi/com/sun/star/awt/XDialog2.idl @@ -0,0 +1,44 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + +module com { module sun { module star { module awt { + + +/** Makes it possible to end a dialog and set a help id. + + @since OOo 3.0 + */ +published interface XDialog2: com::sun::star::awt::XDialog +{ + /** hides the dialog and then causes XDialog::execute() + 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] string Id ); +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/XDialogEventHandler.idl b/offapi/com/sun/star/awt/XDialogEventHandler.idl new file mode 100644 index 0000000000..f8fdb95f21 --- /dev/null +++ b/offapi/com/sun/star/awt/XDialogEventHandler.idl @@ -0,0 +1,81 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + +module com { module sun { module star { module awt { + + +/** Handles events fired by dialogs represented by a + com::sun::star::awt::XDialog 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 com::sun::star::awt::XDialogProvider2 + 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 + com::sun::star::lang::EventObject. 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 + com::sun::star::lang::WrappedTargetException. + + */ + 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. + */ + sequencevnd.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
+ com::sun::star::awt::XDialogEventHandler.
+
+ 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 com::sun::star::awt::XDialog 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 com::sun::star::awt::XDialogEventHandler
+
+ */
+ 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
+
+ The arguments accepted so far are +
XWindowPeer
can be
+ obtained from it. The given window will be used as parent window for the to-be-created dialog.Drawing of this bitmap is only valid on a compatible device.
+ */ +published interface XDisplayBitmap: com::sun::star::uno::XInterface +{ +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/XDisplayConnection.idl b/offapi/com/sun/star/awt/XDisplayConnection.idl new file mode 100644 index 0000000000..4dce090153 --- /dev/null +++ b/offapi/com/sun/star/awt/XDisplayConnection.idl @@ -0,0 +1,86 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + +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. + */ + void addEventHandler( [in] any window, [in] XEventHandler eventHandler, [in] long eventMask ); + + + /** removes an eventHandler from the handler list. + + @param window + the platform specific window id the handler should be unregistered for. + If empty, the handler should be unregistered completely. + + @param eventHandler + the handler to remove. + */ + void removeEventHandler( [in] any window, [in] XEventHandler eventHandler ); + + + /** register an error handler for toolkit specific errors. + + @param errorHandler + the handler to register. + */ + void addErrorHandler( [in] XEventHandler errorHandler ); + + + /** remover an error handler from the handler list. + + @param errorHandler + the handler to remove. + */ + void removeErrorHandler( [in] XEventHandler errorHandler ); + + + /** returns an identifier. + + @returns a unique platform dependent identifier for a display connection. + */ + any getIdentifier(); + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/XDockableWindow.idl b/offapi/com/sun/star/awt/XDockableWindow.idl new file mode 100644 index 0000000000..c8d76eeccd --- /dev/null +++ b/offapi/com/sun/star/awt/XDockableWindow.idl @@ -0,0 +1,116 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + +module com { module sun { module star { module awt { + + +/** specifies the docking interface for a window component. + +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. +
+ */ +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 + com::sun::star::awt::XDockableWindowListener 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 com::sun::star::awt::XDockableWindowListener for + the corresponding events + @param WindowRect + specifies the position and size of the pop-up window in frame coordinates + + @deprecated - doesn't do anything + */ + void startPopupMode( [in] com::sun::star::awt::Rectangle WindowRect ); + + + /** queries the current pop-up mode + @returns + `TRUE` if the window is in pop-up mode + `FALSE` if the window is not in pop-up mode + + @deprecated - always returns `FALSE` + */ + boolean isInPopupMode(); +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/XDockableWindowListener.idl b/offapi/com/sun/star/awt/XDockableWindowListener.idl new file mode 100644 index 0000000000..e9eb44471f --- /dev/null +++ b/offapi/com/sun/star/awt/XDockableWindowListener.idl @@ -0,0 +1,82 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + +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 pop-up mode and wants to be undocked + or closed + */ + void endPopupMode( [in] com::sun::star::awt::EndPopupModeEvent e ); + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/XEnhancedMouseClickHandler.idl b/offapi/com/sun/star/awt/XEnhancedMouseClickHandler.idl new file mode 100644 index 0000000000..44437c3e8a --- /dev/null +++ b/offapi/com/sun/star/awt/XEnhancedMouseClickHandler.idl @@ -0,0 +1,47 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + +module com { module sun { module star { module awt { + + +/** makes it possible to receive enhanced events from the mouse. + + @since OOo 2.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 ); + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/XEventHandler.idl b/offapi/com/sun/star/awt/XEventHandler.idl new file mode 100644 index 0000000000..938901907c --- /dev/null +++ b/offapi/com/sun/star/awt/XEventHandler.idl @@ -0,0 +1,47 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + +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 + dependent event. + + @returns `TRUE` if the event was handled properly and no further + handling should take place, `FALSE` otherwise. + + @param event + the platform dependent event. + */ + boolean handleEvent( [in] any event ); + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/XExtendedToolkit.idl b/offapi/com/sun/star/awt/XExtendedToolkit.idl new file mode 100644 index 0000000000..2508bd1182 --- /dev/null +++ b/offapi/com/sun/star/awt/XExtendedToolkit.idl @@ -0,0 +1,183 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + +module com { module sun { module star { module awt { + + +/** The XExtendedToolkit is an extension of the + ::com::sun::star::awt::XToolkit 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. + +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 XExtendedToolkit::getTopWindowCount() and + XExtendedToolkit::getTopWindow() methods.
+ +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.
+ +The last event broadcaster sends events on focus changes of all + elements that can have the input focus.
+ + @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 + getTopWindowCount() and successive calls to this + function. + @param nIndex + The index should be in the interval from 0 up to but not + including the number of top-level windows as returned by + getTopWindowCount(). + @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 + ::com::sun::star::awt::XTopWindow. After having + obtained the current list of existing 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.) + */ + 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 references + will be removed. + */ + void removeTopWindowListener ( + [in] ::com::sun::star::awt::XTopWindowListener xListener); + + + /** Add a new listener that is called on + ::com::sun::star::awt::KeyEvent. 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.) + */ + 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 references + will be removed. + */ + void removeKeyHandler ( + [in] ::com::sun::star::awt::XKeyHandler xHandler); + + + /** Add a new listener that is called on + ::com::sun::star::awt::FocusEvent. 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.) + */ + 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 references + will be removed. + */ + 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 + com::sun::star::accessibility::XAccessible. + */ + 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 + com::sun::star::accessibility::XAccessible. + */ + void fireFocusLost ( + [in] ::com::sun::star::uno::XInterface source); + +}; + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/XFileDialog.idl b/offapi/com/sun/star/awt/XFileDialog.idl new file mode 100644 index 0000000000..be76d4b93d --- /dev/null +++ b/offapi/com/sun/star/awt/XFileDialog.idl @@ -0,0 +1,62 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + 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. + */ + void setPath( [in] string Path ); + + + /** returns the path. + */ + string getPath(); + + + /** sets the filters. + */ + void setFilters( [in] sequence+ 0: left + 1: center + 2: right ++ */ + void setAlignment( [in] short nAlign ); + + + /** returns the alignment of the text in the control. + */ + short getAlignment(); + + + /** registers an event handler for click action event. + */ + void addActionListener( [in] com::sun::star::awt::XActionListener l ); + + + /** unregisters an event handler for click action event. + */ + void removeActionListener( [in] com::sun::star::awt::XActionListener l ); + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/XFixedText.idl b/offapi/com/sun/star/awt/XFixedText.idl new file mode 100644 index 0000000000..1764402898 --- /dev/null +++ b/offapi/com/sun/star/awt/XFixedText.idl @@ -0,0 +1,60 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + 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. + */ + void setText( [in] string Text ); + + + /** returns the text of the control. + */ + string getText(); + + + /** sets the alignment of the text in the control. + +
+ 0: left + 1: center + 2: right ++ */ + void setAlignment( [in] short nAlign ); + + + /** returns the alignment of the text in the control. + */ + short getAlignment(); + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/XFocusListener.idl b/offapi/com/sun/star/awt/XFocusListener.idl new file mode 100644 index 0000000000..b951f83f28 --- /dev/null +++ b/offapi/com/sun/star/awt/XFocusListener.idl @@ -0,0 +1,51 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + module com { module sun { module star { module awt { + + +/** makes it possible to receive keyboard focus events. + +
The window which has the keyboard focus is the window which gets + the keyboard events.
+ */ +published interface XFocusListener: com::sun::star::lang::XEventListener +{ + + /** is invoked when a window gains the keyboard focus. + + @see XActivateListener::windowActivated + */ + void focusGained( [in] com::sun::star::awt::FocusEvent e ); + + + /** is invoked when a window loses the keyboard focus. + + @see XActivateListener::windowDeactivated + */ + void focusLost( [in] com::sun::star::awt::FocusEvent e ); + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/awt/XFont.idl b/offapi/com/sun/star/awt/XFont.idl new file mode 100644 index 0000000000..2c9dbe1a9e --- /dev/null +++ b/offapi/com/sun/star/awt/XFont.idl @@ -0,0 +1,97 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + + module com { module sun { module star { module awt { + + +/** describes a font on a specific device. + +All values are in pixels within this device.
+ */ +published interface XFont: com::sun::star::uno::XInterface +{ + + /** returns the description of the font. + +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 If the device does not support raster operations
+ then this call is ignored. 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. Note that some devices may not support this operation. An image consumer is a component which wants to display or just
+ receive an image from an image producer. 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 * nScanSize
+ + m + nOffset). 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 * nScanSize
+ + m + nOffset). 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. The image producer may, at its discretion, start delivering the
+ image data to the consumer using the XImageConsumer
+ interface immediately, or when the next available image reconstruction
+ is triggered by a call to the startProduction method. 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. 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. The current settings are used as a template. 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. Consumers of this event should discard their cached information about the current item list,
+ and completely refresh it from the XItemList's current state. 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. Consuming this event does not prevent the pending key-release
+ event from being broadcasted. 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. The item is appended if the position is greater than or equal to
+ getItemCount() or if it is negative. This parameter must not be null. A combination of com::sun::star::awt::MessageBoxButtons A com::sun::star::awt::MessageBoxType::INFOBOX
+ ignores this parameter, instead it uses a
+ com::sun::star::awt::MessageBoxButtons::BUTTONS_OK. Since mouse presses are usually also used to indicate requests for pop-up 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 mousePressed() indicating
+ the mouse click, and another one indicating the context menu request. For
+ the latter, the MouseEvent::PopupTrigger member of the
+ event will be set to `TRUE`. 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). 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). Returns `TRUE` only if the PopupMenu is being executed
+ as a result of invoking XPopupMenu::execute(); that is,
+ for a PopupMenu activated by a MenuBar item,
+ this methods returns `FALSE`. com::sun::star::awt::XPopupMenu::execute()
+ will then return 0. The KeyEvent is only 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 (typically done via XUserInputInterception),
+ and dispatch the respective command. The KeyEvent is only used as a container to transport
+ the shortcut information, so that in this case
+ ::com::sun::star::lang::EventObject::Source is NULL. All properties are vetoable properties.
+ If you change the properties between a call to
+ com::sun::star::awt::XPrinter::startPage() and a call
+ to com::sun::star::awt::XPrinter::endPage(),
+ a com::sun::star::beans::PropertyVetoException is
+ thrown. This call may block the thread. So release all resources
+ (mutex, semaphore, etc.) before this call. If the method
+ com::sun::star::awt::XPrinter::end()
+ is called beforehand, then this call does nothing. If you call
+ com::sun::star::awt::XPrinter::terminate()
+ in or before the call to
+ com::sun::star::awt::XPrinter::start(),
+ com::sun::star::awt::XPrinter::terminate()
+ returns `FALSE`. This call must not block the thread. All properties are vetoable properties. If you change the properties
+ between com::sun::star::awt::XPrinter::startPage()
+ and com::sun::star::awt::XPrinter::endPage(), a
+ com::sun::star::beans::PropertyVetoException
+ is thrown. Indirectly a printer is selected. Get this data from the info printer and set the data to the
+ printer. You must call
+ com::sun::star::awt::XPrinter::start()
+ to put the job into the printer spooler. You can get all information from this printer,
+ but the printer cannot really print. If the minimum value is greater than the maximum value, the method
+ exchanges the values automatically. 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. 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
+ You must check the machine ID and the process ID. You must check the machine ID and the process ID. You must check the machine ID and the process ID. Changes in the toggle state are broadcasted to XItemListener instances. This is similar to the abstract window toolkit (AWT) in Java. 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). The close operation can be overridden at this point. Container events are provided only for
+ notification purposes. The VCL will automatically handle
+ add and remove operations internally. This kind of object is called view-object. A device must be set before. If the output should be clipped, the caller has to set the
+ clipping region. The zoom factor only affects the content of the view, not the size. 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. 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. Component events are provided only 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. The The implementation will implicitly increase its column count if you add a row which has more values than
+ the current column count. Effectively, a If If This service must be created with a secondary grid data model, which all actual data requests are delegated to.
+ But before providing this data to the service's own clients, it is sorted, according to the sort order defined
+ via the The service implementation is able to compare the default scalar types, plus strings. For determining the data type of a column which the data should be sorted by, the first non-`VOID` data encountered
+ in this column is taken into account. Further read requests to this column will assume that all non-`VOID` data is of
+ the same type. Consequently, you cannot use this service with data sets containing heterogeneous data in a given column. All requests made via the XMutableGridDataModel are delegated to the Note that changing the data might result in the sort order being destroyed. If you want to ensure
+ that the data represented by the model is still sorted after your modifications, you should call
+ XSortableGridData::sortByColumn(), again. For string comparison, a default ::com::sun::star::i18n::Collator, based on the system's
+ locale, will be used. The horizontal structure of the grid is defined by the XGridColumnModel implemented in DefaultGridColumnModel
+ The XGridColumn implemented in GridColumn describes the properties and behavior of a single column. Use the XGridColumnModel::addColumn() to add a column to the column model.
+ All row data are stored in the XGridDataModel.
+ Use the DefaultGridDataModel to add XGridDataModel::addRow() or remove XGridDataModel::removeRow() rows.
+ The column and data model must be set at the UnoControlGridModel::ColumnModel and UnoControlGridModel::GridDataModel properties. If you are interested in knowing when the selection changes implement a
+ XGridSelectionListener and add the instance with the method
+ XGridRowSelection::addSelectionListener().
+ You than will be notified for any selection change. The default value is `FALSE` The width is specified in application font units - see com::sun::star::util::MeasureUnit. The value given here is ignored if #ShowRowHeader is `FALSE`. The default value is `TRUE` The height is specified in application font units - see com::sun::star::util::MeasureUnit. The value given here is ignored if #ShowColumnHeader is `FALSE`. If the property is `VOID`, the grid control shall automatically determine a height which conveniently allows,
+ according to the used font, to display one line of text. The height is specified in application font units - see com::sun::star::util::MeasureUnit. You can implement your own instance of XGridColumnModel or use
+ the DefaultGridColumnModel.
+
+ The column model is in the ownership of the grid model: When you set a new column model, or dispose
+ the grid model, then the (old) column model is disposed, too. The default for this property is an empty instance of the DefaultGridColumnModel. You can implement your own instance of XGridDataModel or use
+ the DefaultGridDataModel.
+
+ The data model is in the ownership of the grid model: When you set a new data model, or dispose
+ the grid model, then the (old) data model is disposed, too. The default for this property is an empty instance of the DefaultGridDataModel. The default value is `FALSE` The default value is `FALSE` The default value is com::sun::star::view::SelectionType::SINGLE If this property has a value of `VOID`, the grid control renderer will use some default color,
+ depending on the control's style settings. If this property has a value of `VOID`, the grid control renderer will use some default color,
+ depending on the control's style settings. If this property has a value of `VOID`, the grid control renderer will use some default color,
+ depending on the control's style settings. If this property has a value of `VOID`, the grid control renderer will use some default color,
+ depending on the control's style settings. If this property has a value of `VOID`, the grid control renderer will use some default color,
+ depending on the control's style settings. If this property has a value of `VOID`, the grid control renderer will use some default color,
+ depending on the control's style settings. If this property has a value of `VOID`, the grid control renderer will use some default color,
+ depending on the control's style settings. If this sequence is non-empty, the data rows will be rendered with alternating background colors: Assuming
+ the sequence has If this sequence is empty, all rows will use the same background color as the control as whole. If this property has a value of `VOID`, rows will be painted
+ in alternating background colors, every second row having a background color derived from the control's
+ selection color. If this property has a value of `VOID`, the grid control renderer will use some default color,
+ depending on the control's style settings. If this property has a value of `VOID`, the grid control renderer will use some default color,
+ depending on the control's style settings. This identifier will not be evaluated by the grid control, or its model. It is merely for clients
+ to identify particular columns. If this is `TRUE`, the user can interactively change the column's width. Also, the column is subject to
+ auto-resizing, if its #Flexibility attribute is greater Specify If a column has a flexibility greater than 0, it is set in relationship to the flexibility of all
+ other such columns, and the respective widths of the columns are changed in the same relationship. Note that a column's flexibility is ignored if its #Resizeable attribute is
+ `FALSE`. A column's flexibility cannot be negative, attempts to set a negative value will raise an exception. A grid control will usually display a column's help text as tooltip. If the column is not yet part of a column model, A grid control has a column model and a data model, both containing a possibly different number of columns.
+ The Using this, you can do runtime changes to the column model, i.e. insertion and removal of columns, without
+ necessarily needing to adjust the data model, too. If The newly created column is not yet inserted into the column container, you need to call addColumn()
+ after you initialized the column object. You should use the createColumn() member to create a new column. This gives
+ implementations of the As soon as the column has been inserted into the model, the model takes ownership of it. This means when the
+ column is removed, or when the column model is disposed, the grid column is disposed as well. The column object will be disposed upon removal. Existing columns will be removed before adding new columns. Listeners at the column model will
+ be notified one com::sun::star::container::XContainerListener::elementRemoved() event
+ for each removed column, and one com::sun::star::container::XContainerListener::elementInserted()
+ event for each insertion. If the grid control's does not contain any cells (which happens if the grid column model does not contain any
+ columns, or if grid data model does not contain any rows), then If the grid control's does not contain any cells (which happens if the grid column model does not contain any
+ columns, or if grid data model does not contain any rows), then Usually you must not implement this interface yourself, but you must notify it correctly if
+ you implement the XGridDataModel yourself At the moment, only string tool tips are supported. If `VOID` is returned here, the cell's content will be displayed as tip, but only if it does
+ not fit into the cell. A grid control will usually paint a row's title in the header column of the respective row. At the moment, only strings are supported as row headings. This method is provided for performance and convenience reasons, it delivers the same result
+ as subsequent calls to getCellData() would. The change in the data model will be notified to registered listeners via
+ XGridDataListener::dataChanged(). The GridDataEvent::FirstColumn and
+ GridDataEvent::LastColumn will denote the smallest respectively largest column
+ index from ColumnIndexes. Effectively this method is a shortcut for calling updateCellToolTip() multiple
+ times in a row, for all cells of a given row. If you set a new column sort order, the implementation will notify the registered XGridDataListeners
+ via a call to its XGridDataListener::dataChanged() method.
+ A specific node in a tree is identified by a XTreeNode.
+ A leaf node is a node without any children and that returns `FALSE` when calling XTreeNode::hasChildrenOnDemand().
+ 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.
+ The nodes are retrieved from a XTreeDataModel.
+ You can implement it yourself or use the MutableTreeDataModel
+ which uses XMutableTreeNode and XMutableTreeDataModel
+ for a simple and mutable data model.
+
+ The data model must be set at the TreeControlModel::TreeDataModel property. If you are interested in knowing when the selection changes implement a
+ com::sun::star::view::XSelectionChangeListener and add the instance with the method
+ ::com::sun::star::view::XSelectionSupplier::addSelectionChangeListener().
+ You than will be notified for any selection change.
+
+ 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 com::sun::star::awt::XWindow
+ and add yourself as a com::sun::star::awt::XMouseClickHandler. You can use the
+ method XTreeControl::getNodeForLocation() to retrieve the node that was under the
+ mouse at the time the event was fired.
+ If you want to add child nodes to your tree on demand you can do the following.
+ Position
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 #ItemCount.
+
+ @param ItemText
+ the text of the item to be inserted.
+
+ @throws ::com::sun::star::lang::IndexOutOfBoundsException
+ if Position
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 #ItemCount.
+
+ @param ItemImageURL
+ the URL of the image to display for the item
+
+ @throws ::com::sun::star::lang::IndexOutOfBoundsException
+ if Position
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 #ItemCount.
+
+ @throws ::com::sun::star::lang::IndexOutOfBoundsException
+ if Position
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 #ItemCount.
+
+ @param ItemText
+ the new text of the item
+
+ @throws ::com::sun::star::lang::IndexOutOfBoundsException
+ if Position
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 #ItemCount.
+
+ @param ItemImageURL
+ the new URL of the image to display for the item
+
+ @throws ::com::sun::star::lang::IndexOutOfBoundsException
+ if Position
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 #ItemCount.
+
+ @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 Position
is invalid.
+ */
+ void setItemTextAndImage(
+ [in] long Position,
+ [in] string ItemText,
+ [in] string ItemImageURL
+ )
+ raises ( ::com::sun::star::lang::IndexOutOfBoundsException );
+
+ /** associates an implementation dependent value with the given list item.
+
+ Position
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 #ItemCount.
+
+ @throws ::com::sun::star::lang::IndexOutOfBoundsException
+ if Position
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 #ItemCount.
+
+ @throws ::com::sun::star::lang::IndexOutOfBoundsException
+ if Position
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 #ItemCount.
+
+ @throws ::com::sun::star::lang::IndexOutOfBoundsException
+ if Position
is invalid.
+ */
+ ::com::sun::star::beans::Pair< string, string >
+ getItemTextAndImage(
+ [in] long Position
+ )
+ raises ( ::com::sun::star::lang::IndexOutOfBoundsException );
+
+ /** retrieves the implementation dependent value associated with the given list item.
+ @param Position
+ the position of the item whose data value should be retrieved. Must be greater or equal to 0, and
+ lesser than #ItemCount.
+
+ @throws ::com::sun::star::lang::IndexOutOfBoundsException
+ if Position
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 );
+};
+
+
+}; }; }; };
+
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/XItemListListener.idl b/offapi/com/sun/star/awt/XItemListListener.idl
new file mode 100644
index 0000000000..9f41c22ba9
--- /dev/null
+++ b/offapi/com/sun/star/awt/XItemListListener.idl
@@ -0,0 +1,68 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+
+module com { module sun { module star { module awt {
+
+
+/** describes a listener for changes in an 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
+ XItemList::removeAllItems()
+ */
+ void allItemsRemoved(
+ [in] ::com::sun::star::lang::EventObject Event
+ );
+
+ /** is called when the changes to the item list which occurred are too complex to be notified
+ in single events.
+
+
+ *
+ */
+published interface XMouseListener: com::sun::star::lang::XEventListener
+{
+
+ /** is invoked when a mouse button has been pressed on a window.
+
+ 0
, if cancelled.
+
+ @param Parent
+ the parent window.
+
+ @param Position
+ a Rectangle representing the coordinates system
+ where the popup menu should be executed.
+
+ @param Direction
+ the direction in which a popup menu will grow, as specified
+ by one of the PopupMenuDirection constants.
+
+ @return
+ returns the selected item or 0
, if cancelled.
+ */
+ short execute( [in] XWindowPeer Parent,
+ [in] Rectangle Position,
+ [in] short Direction );
+
+ /** queries if the PopupMenu is being.
+
+
+
+
+ @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 isn't 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 isn't 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.
+
+ The new tab will be activated and all listener will get an event describing this.
+ Of course there will be an event too, which notifies 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 isn't 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.
+
+ @return [long]
+ the ID of the active tab.
+ */
+ long getActiveTabID();
+
+ /** register listener for inserting/removing tabs and changing their properties.
+
+ @param Listener
+ the listener to register.
+ */
+ void addTabListener( [in] XTabListener Listener );
+
+ /** unregister listener for inserting/removing tabs and changing their properties.
+
+ @param Listener
+ the listener to unregister.
+ */
+ void removeTabListener( [in] XTabListener Listener );
+};
+
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/XSpinField.idl b/offapi/com/sun/star/awt/XSpinField.idl
new file mode 100644
index 0000000000..3aabff0d4c
--- /dev/null
+++ b/offapi/com/sun/star/awt/XSpinField.idl
@@ -0,0 +1,70 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+
+
+ 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.
+ */
+ void addSpinListener( [in] com::sun::star::awt::XSpinListener l );
+
+
+ /** unregisters a listener for spin events.
+ */
+ void removeSpinListener( [in] com::sun::star::awt::XSpinListener l );
+
+
+ /** increases the value by one step.
+ */
+ void up();
+
+
+ /** decreases the value by one step.
+ */
+ void down();
+
+
+ /** sets the value to the previously set lower value.
+ */
+ void first();
+
+
+ /** sets the value to the previously set upper value.
+ */
+ void last();
+
+
+ /** enables/disables automatic repeat mode.
+ */
+ void enableRepeat( [in] boolean bRepeat );
+
+};
+
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/XSpinListener.idl b/offapi/com/sun/star/awt/XSpinListener.idl
new file mode 100644
index 0000000000..78bacd18c9
--- /dev/null
+++ b/offapi/com/sun/star/awt/XSpinListener.idl
@@ -0,0 +1,54 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+
+
+ 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.
+ */
+ void up( [in] com::sun::star::awt::SpinEvent rEvent );
+
+
+ /** is invoked when the spin field is spun down.
+ */
+ void down( [in] com::sun::star::awt::SpinEvent rEvent );
+
+
+ /** is invoked when the spin field is set to the lower value.
+ */
+ void first( [in] com::sun::star::awt::SpinEvent rEvent );
+
+
+ /** is invoked when the spin field is set to the upper value.
+ */
+ void last( [in] com::sun::star::awt::SpinEvent rEvent );
+
+};
+
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/XSpinValue.idl b/offapi/com/sun/star/awt/XSpinValue.idl
new file mode 100644
index 0000000000..5c193a8f51
--- /dev/null
+++ b/offapi/com/sun/star/awt/XSpinValue.idl
@@ -0,0 +1,110 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+
+ 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.
+ */
+ void addAdjustmentListener( [in] com::sun::star::awt::XAdjustmentListener listener );
+
+
+ /** unregisters an adjustment event listener.
+ */
+ void removeAdjustmentListener( [in] com::sun::star::awt::XAdjustmentListener listener );
+
+
+ /** sets the current value of the control
+ */
+ void setValue( [in] long value );
+
+
+ /** sets the value and value range of the control
+
+ @see setValue
+ @see setMinimum
+ @see setMaximum
+ */
+ 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
+ */
+ void setMinimum( [in] long minValue );
+
+
+ /** sets the maximum value which can be set on the control
+ */
+ 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.
+ */
+ 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 ScrollBarOrientation 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();
+
+};
+
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/XStyleChangeListener.idl b/offapi/com/sun/star/awt/XStyleChangeListener.idl
new file mode 100644
index 0000000000..b73a6297a2
--- /dev/null
+++ b/offapi/com/sun/star/awt/XStyleChangeListener.idl
@@ -0,0 +1,38 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+
+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 );
+};
+
+
+}; }; }; };
+
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/XStyleSettings.idl b/offapi/com/sun/star/awt/XStyleSettings.idl
new file mode 100644
index 0000000000..8687156059
--- /dev/null
+++ b/offapi/com/sun/star/awt/XStyleSettings.idl
@@ -0,0 +1,215 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+
+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.
+
+
+
+ Property
+ Type
+ Description
+
+
+ Title
+ string
+ the title of the tab, which is shown at the UI.
+
+
+ Position
+ int
+ describe the order of this tab in relation to all other tabs inside this control.
+ ButtonRolloverTextColor
when painting its text.
+ WIN32: HWND.
+ WIN16: HWND.
+
+ JAVA: global reference to a java.awt.Component
+ object provided from the JNI-API.
+
+ MAC: (NSView*) pointer.
+ WIN32: Returns an HMENU if possible, otherwise 0.
+ WIN16: Returns an HMENU if possible, otherwise 0.
+
+ @param ProcessId
+ the process identifier. Use the sal_getGlobalProcessId
+ function of the RTL library.
+
+ @param SystemType
+ one constant out of the constant group
+ com::sun::star::lang::SystemDependent.
+ */
+ any getMenuHandle( [in] sequence< byte > ProcessId, [in] short SystemType );
+
+};
+
+
+}; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/XSystemDependentWindowPeer.idl b/offapi/com/sun/star/awt/XSystemDependentWindowPeer.idl
new file mode 100644
index 0000000000..525964b0de
--- /dev/null
+++ b/offapi/com/sun/star/awt/XSystemDependentWindowPeer.idl
@@ -0,0 +1,67 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+
+
+ 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 system-specific handle to a window
+ or 0 if the window is not in the same process.
+
+
+ WIN32: Returns an HWND if possible, otherwise 0.
+ WIN16: Returns an HWND if possible, otherwise 0.
+
+ JAVA: Returns a global reference to a java.awt.Component
+ object provided from the JNI-API.
+
+ MAC: Returns a ptr to the NSView implementing the window.
+
+ XWINDOW: Returns a structure SystemDependentXWindow
+ or void if it is not reachable.DefaultGridDataModel
implementation is a dumb container of tabular data. You can add
+ and remove rows, modify cell values, and the like.GridDataEvent
denotes a continuous two-dimensional cell range
+ within a grid's data model, which is affected by a certain change.FirstColumn
is -1, the listener should assume that all rows of a grid's data model
+ are affected.FirstRow
is -1, the listener should assume that all rows of a grid's data model
+ are affected.XSortableGridData
interface.XMutableGridDataModel
+ instance passed in the service constructor.SortableGridDataModel
+
+ DelegatorModel
is `NULL`
+ */
+ create(
+ [in] XMutableGridDataModel DelegatorModel
+ )
+ raises ( ::com::sun::star::lang::IllegalArgumentException );
+
+ /** creates a new instance of the ScortableDefaultGridDataModel, passing a collator to be used for string comparison.
+
+ @param DelegatorModel
+ is the data model to which read requests are delegated
+ @param Collator
+ is the collator to be used for string comparison
+ @throws ::com::sun::star::lang::IllegalArgumentException
+ if the given DelegatorModel
is `NULL`
+ */
+ createWithCollator(
+ [in] XMutableGridDataModel DelegatorModel,
+ [in] ::com::sun::star::i18n::XCollator Collator
+ )
+ raises ( ::com::sun::star::lang::IllegalArgumentException );
+};
+
+
+}; }; }; }; };
+
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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 0000000000..58eb698a78
--- /dev/null
+++ b/offapi/com/sun/star/awt/grid/UnoControlGrid.idl
@@ -0,0 +1,60 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+
+ module com { module sun { module star { module awt { module grid {
+
+
+
+/** A control that displays a set of tabular data.
+
+ The Column Model
+
+ The Data Model
+ Selection
+ n
elements, each row will use the background color as specified by its number's
+ remainder modulo n
.0
.0
here if you do not want the column to be resized automatically.Index
is -1.DataColumnIndex
attribute defines the index of the column within the data model, which should
+ be used to retrieve actual data.DataColumnIndex
is negative, the it will be ignored, then the column's index within its
+ column model, as determined by the #Index attribute, will be used.XGridColumnModel
interface the possibility to provide own column
+ implementations which extend the basic GridColumn type.ColumnIndex
does not denote a valid column index.
+ */
+ void removeColumn( [in] long ColumnIndex )
+ raises ( ::com::sun::star::lang::IndexOutOfBoundsException );
+
+ /** Returns all columns of the model.
+ @returns
+ all columns associated with the model in a sequence of XGridColumn.
+ */
+ sequence-1
is returned.-1
is returned.ColumnIndex
or RowIndex
are out of range.
+ @throws ::com::sun::star::util::VetoException
+ if moving the cursor to another cell is vetoed.
+ */
+ void goToCell(
+ [in] long ColumnIndex,
+ [in] long RowIndex
+ )
+ raises ( ::com::sun::star::lang::IndexOutOfBoundsException
+ , ::com::sun::star::util::VetoException
+ );
+};
+
+
+}; }; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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 0000000000..5502a6e4da
--- /dev/null
+++ b/offapi/com/sun/star/awt/grid/XGridDataListener.idl
@@ -0,0 +1,55 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+
+module com { module sun { module star { module awt { module grid {
+
+
+/** An instance of this interface is used by the XGridDataModel to
+ get notifications about data model changes.
+
+ RowIndex
does not denote a valid row index
+ */
+ void selectRow( [in] long RowIndex )
+ raises ( ::com::sun::star::lang::IndexOutOfBoundsException );
+
+ /** Deselects all selected rows.
+ */
+ void deselectAllRows();
+
+ /** removes the selection for a given row
+
+ @param RowIndex
+ denotes the index of the row to deselect
+ */
+ void deselectRow( [in] long RowIndex )
+ raises ( ::com::sun::star::lang::IndexOutOfBoundsException );
+
+ /** Returns the indices of all selected rows.
+ @returns
+ a sequence of indices.
+ */
+ sequence< long > getSelectedRows();
+
+ /** Returns whether rows are selected.
+ @returns
+ `TRUE` if and only if at least one row is selected.
+ */
+ boolean hasSelectedRows();
+
+ /** Returns whether a specific row is selected.
+
+ @param RowIndex
+ the index of a row. If the value does not denote a valid row index, i.e. is smaller than 0
+ or greater than the number of rows, this is silently ignored, and `FALSE` is returned.
+
+ @returns
+ `TRUE` if and only if there is a row with the given index, and it is selected currently.
+ */
+ boolean isRowSelected( [in] long RowIndex );
+
+ /** Adds a listener for the GridSelectionEvent posted after the grid changes.
+ @param listener
+ the listener to add.
+ */
+ void addSelectionListener( [in] XGridSelectionListener listener);
+
+ /** Removes a listener previously added with addSelectionListener().
+ @param listener
+ the listener to remove.
+ */
+ void removeSelectionListener( [in] XGridSelectionListener listener);
+};
+
+
+}; }; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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 0000000000..b115d5641b
--- /dev/null
+++ b/offapi/com/sun/star/awt/grid/XGridSelectionListener.idl
@@ -0,0 +1,38 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+
+module com { module sun { module star { module awt { module grid {
+
+
+/** An instance of this interface is used by the XGridRowSelection to
+ get notifications about selection changes.
+ */
+published interface XGridSelectionListener: com::sun::star::lang::XEventListener
+{
+ /** Invoked after a selection was changed.
+ */
+ void selectionChanged( [in] GridSelectionEvent gridSelectionEvent);
+
+};
+
+
+}; }; }; }; };
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/grid/XMutableGridDataModel.idl b/offapi/com/sun/star/awt/grid/XMutableGridDataModel.idl
new file mode 100644
index 0000000000..237206291d
--- /dev/null
+++ b/offapi/com/sun/star/awt/grid/XMutableGridDataModel.idl
@@ -0,0 +1,175 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+
+module com { module sun { module star { module awt { module grid {
+
+
+/** allows to modify the data represented by a XGridDataModel
+ */
+published interface XMutableGridDataModel : XGridDataModel
+{
+ /** appends a row to the model.
+
+ @param Heading
+ denotes the heading of the row.
+ @param Data
+ specifies the content of the row.
+ */
+ void addRow( [in] any Heading, [in] sequence< any > Data );
+
+ /** appends multiple rows of data to the model.
+ @param Headings
+ denotes the headings of the to-be-added rows.
+ @param Data
+ specifies the data of the rows to be added.
+ @throws ::com::sun::star::lang::IllegalArgumentException
+ if Titles
and Data
are of different length.
+ */
+ void addRows( [in] sequence< any > Headings, [in] sequence< sequence< any > > Data )
+ raises ( ::com::sun::star::lang::IllegalArgumentException );
+
+ /** inserts a row into the set of data rows
+
+ @param Index
+ denotes the position at which the row is to be inserted
+ @param Heading
+ denotes the heading of the row.
+ @param Data
+ specifies the content of the row.
+ @throws ::com::sun::star::lang::IndexOutOfBoundsException
+ if Index
is smaller than 0
or greater than the number of
+ rows in the model.
+ */
+ void insertRow( [in] long Index, [in] any Heading, [in] sequence< any > Data )
+ raises ( ::com::sun::star::lang::IndexOutOfBoundsException );
+
+ /** inserts multiple rows of data into the model.
+ @param Index
+ denotes the position at which the rows are to be inserted
+ @param Headings
+ denotes the headings of the to-be-added rows.
+ @param Data
+ specifies the data of the rows to be added.
+ @throws ::com::sun::star::lang::IllegalArgumentException
+ if Titles
and Data
are of different length.
+ @throws ::com::sun::star::lang::IndexOutOfBoundsException
+ if Index
is smaller than 0
or greater than the number of
+ rows in the model.
+ */
+ void insertRows( [in] long Index, [in] sequence< any > Headings, [in] sequence< sequence< any > > Data )
+ raises ( ::com::sun::star::lang::IndexOutOfBoundsException
+ , ::com::sun::star::lang::IllegalArgumentException );
+
+ /** removes a row of data from the model
+
+ @param RowIndex
+ the index of the row that should be removed.
+ @throws ::com::sun::star::lang::IndexOutOfBoundsException
+ if the given index is invalid
+ */
+ void removeRow( [in] long RowIndex )
+ raises ( ::com::sun::star::lang::IndexOutOfBoundsException );
+
+ /** Removes all rows from the model.
+ */
+ void removeAllRows();
+
+ /** updates the content of the given cell
+ @param ColumnIndex
+ the column index of the to-be-updated cell
+ @param RowIndex
+ the row index of the to-be-updated cell
+ @param Value
+ the new value of the cell.
+ @throws ::com::sun::star::lang::IndexOutOfBoundsException
+ if the row or column index is invalid
+ */
+ void updateCellData( [in] long ColumnIndex, [in] long RowIndex, [in] any Value )
+ raises ( ::com::sun::star::lang::IndexOutOfBoundsException );
+
+ /** updates the content of a given row.
+
+ ColumnIndexes
and Values
sequences are not equal.
+ */
+ void updateRowData( [in] sequence< long > ColumnIndexes, [in] long RowIndex, [in] sequence< any > Values )
+ raises ( ::com::sun::star::lang::IndexOutOfBoundsException
+ , ::com::sun::star::lang::IllegalArgumentException);
+
+ /** sets a new title for a given row.
+
+ @throws ::com::sun::star::lang::IndexOutOfBoundsException
+ if the given index does not denote a valid row.
+ */
+ void
+ updateRowHeading( [in] long RowIndex, [in] any Heading )
+ raises ( ::com::sun::star::lang::IndexOutOfBoundsException );
+
+ /** updates the tooltip to be displayed for a given cell
+
+ @see XGridDataModel::getCellToolTip
+ */
+ void updateCellToolTip( [in] long ColumnIndex, [in] long RowIndex, [in] any Value )
+ raises ( ::com::sun::star::lang::IndexOutOfBoundsException );
+
+ /** updates the tooltip for all cells of a given row
+
+ ColumnIndex
does not denote a valid column.
+ */
+ void sortByColumn( [in] long ColumnIndex, [in] boolean SortAscending )
+ raises ( ::com::sun::star::lang::IndexOutOfBoundsException );
+
+ /** removes any possibly present sorting of the grid data
+ */
+ void removeColumnSort();
+
+ /** returns the current sort order.
+
+ @return
+ a structure describing the current sort order.
+ com::sun::star::beans::Pair::First
+ denotes the column by which the data is sorted, or -1 if
+ the data is currently unsorted.
+ com::sun::star::beans::Pair::Second
+ is `TRUE` if the data is sorted ascending, `FALSE` otherwise.
+ */
+ ::com::sun::star::beans::Pair< long, boolean >
+ getCurrentSortOrder();
+};
+
+
+}; }; }; }; };
+
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/offapi/com/sun/star/awt/grid/XSortableMutableGridDataModel.idl b/offapi/com/sun/star/awt/grid/XSortableMutableGridDataModel.idl
new file mode 100644
index 0000000000..aed6af9787
--- /dev/null
+++ b/offapi/com/sun/star/awt/grid/XSortableMutableGridDataModel.idl
@@ -0,0 +1,44 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+
+module com { module sun { module star { module awt { module grid {
+
+
+/** describes a grid control data model whose data can be modified and sorted.
+ */
+interface XSortableMutableGridDataModel
+{
+ /** provides access to the basic functionality of a grid data model, plus functions to modify it.
+ */
+ interface XMutableGridDataModel;
+
+ /** provides means to sort the data represented by the model.
+
+ The Data Model
+ Selection
+ Adding child nodes on demand
+
+
+ Now you get called when the node will become expanded or collapsed.
+ So on XTreeExpansionListener::treeExpanding() you can
+ check the TreeExpansionEvent 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 ExpandVetoException.
+
The default value is com::sun::star::view::SelectionType::NONE
+ */ + [property] ::com::sun::star::view::SelectionType SelectionType; + + /** Specifies the XTreeDataModel that is providing the hierarchical data. + +You can implement your own instance of XTreeDataModel or use + the MutableTreeDataModel. + */ + [property] XTreeDataModel DataModel; + + /** Specifies if the root node of the tree is displayed. +
If RootDisplayed is set to `FALSE`, the root node of a model is no longer + a valid node for the XTreeControl and can't be used with any method of + XTreeControl. +
The default value is `TRUE`
+ */ + [property] boolean RootDisplayed; + + /** Specifies whether the node handles should be displayed. +The handles are doted lines that visualize the tree like hierarchy
+
The default value is `TRUE`
+ */ + [property] boolean ShowsHandles; + + /** Specifies whether the node handles should also be displayed at root level. +The default value is `TRUE`
+ */ + [property] boolean ShowsRootHandles; + + /** Specifies the height of each row, in pixels. +If the specified value is less than or equal to zero, the row height is the maximum height + of all rows.
+The default value is 0
+ */ + [property] long RowHeight; + + /** Specifies whether the nodes of the tree are editable. +The default value is `FALSE`
+ + @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. +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 +
The default value is `FALSE`
+ */ + [property] boolean InvokesStopNodeEditing; +}; + + +}; }; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 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 0000000000..32669ad5f3 --- /dev/null +++ b/offapi/com/sun/star/awt/tree/TreeDataModelEvent.idl @@ -0,0 +1,47 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + +module com { module sun { module star { module awt { module tree { + + +/** An event used by a XTreeDataModel to notify changes in the data + model to the XTreeControl. + You usually need to fill this event only if you implement the XTreeDataModel + yourself. + + @see XTreeDataModel + @see XTreeControl + @see XTreeDataModelListener + */ +struct TreeDataModelEvent : ::com::sun::star::lang::EventObject +{ + /** contains the changed, added or removed nodes. +All nodes must have #ParentNode as parent. */ + sequence< XTreeNode > Nodes; + + /** holds the parent node for changed, added or removed nodes. +
If this is null, #Nodes must contain only the root node */ + XTreeNode ParentNode; +}; + + +}; }; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 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 0000000000..d16657011f --- /dev/null +++ b/offapi/com/sun/star/awt/tree/TreeExpansionEvent.idl @@ -0,0 +1,38 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + +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; +}; + + +}; }; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 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 0000000000..bd9a0a321d --- /dev/null +++ b/offapi/com/sun/star/awt/tree/XMutableTreeDataModel.idl @@ -0,0 +1,64 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + +module com { module sun { module star { module awt { module tree { + + +/** This is the editable version of the XTreeDataModel. + +
Note that only XTreeNode created from the same instance with createNode() + are valid nodes for this instance.
+ */ +interface XMutableTreeDataModel : XTreeDataModel +{ + /** creates a new tree node with the given value and given settings. + + @param DisplayValue + should be convertible to a string and is used by the XTreeControl + as a textual representation 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 XTreeControl, even when it has no child nodes. + + @returns + a new XMutableTreeNode 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 RootNode. + + @param RootNode + the XMutableTreeNode that becomes the new root node of this model. + + @throws ::com::sun::star::lang::IllegalArgumentException + if RootNode is not a valid node of this XTreeDataModel. + */ + void setRoot( [in] XMutableTreeNode RootNode ) + raises( ::com::sun::star::lang::IllegalArgumentException ); +}; + + +}; }; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 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 0000000000..30be32b26e --- /dev/null +++ b/offapi/com/sun/star/awt/tree/XMutableTreeNode.idl @@ -0,0 +1,100 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + +module com { module sun { module star { module awt { module tree { + + +/** Represents a mutable tree node as used by the MutableTreeDataModel + */ +interface XMutableTreeNode : XTreeNode +{ + /** appends ChildNode to this instance. + + @throws ::com::sun::star::lang::IllegalArgumentException + if ChildNode is not a valid node of the corresponding XTreeDataModel. + */ + void appendChild( [in] XMutableTreeNode ChildNode ) + raises( com::sun::star::lang::IllegalArgumentException ); + + /** inserts ChildNode to this instance at the given index. + + @param Index + the index where the node will be inserted to this instance. + + @param ChildNode + the node to insert. + + @throws ::com::sun::star::lang::IllegalArgumentException + if ChildNode is not a valid node of the corresponding XTreeDataModel. + + @throws ::com::sun::star::lang::IndexOutOfBoundsException + if Index is less than 0 or greater than XTreeNode::getChildCount(). + */ + 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 Index is less than 0 or greater than XTreeNode::getChildCount(). + */ + 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 dependent value. + +You can use this attribute to store data for this node that + is independent of the display value
+ */ + [attribute] any DataValue; + + /** The URL for a graphic that is rendered before the text part of this node. +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. +
If URL is empty, XTreeControl::DefaultExpandedGraphicURL is used. + */ + void setExpandedGraphicURL( [in] string URL ); + + /** The URL for a graphic that is rendered to visualize collapsed non leaf nodes. +
If URL is empty, XTreeControl::DefaultCollapsedGraphicURL is used. + */ + void setCollapsedGraphicURL( [in] string URL ); +}; + + +}; }; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 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 0000000000..d9765bb8d8 --- /dev/null +++ b/offapi/com/sun/star/awt/tree/XTreeControl.idl @@ -0,0 +1,260 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + +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. + +
valid selection values for this interface are + XTreeNode or sequence<XTreeNode>.
+ + ::com::sun::star::view::XSelectionSupplier::getSelection() + returns an empty any for no selection, an any with XTreeNode for + a single selection and a sequence<XTreeNode> for a multiselection. + */ + interface ::com::sun::star::view::XMultiSelectionSupplier; + + // expanding/collapsing/visible + + /** Returns `TRUE` if Node is currently expanded. + + @param Node + the XTreeNode specifying the node to check. + + @returns + `FALSE` if Node or at least one of its parent nodes are collapsed, + `TRUE` if Node and all of its parent nodes are expanded. + + @throws ::com::sun::star::lang::IllegalArgumentException + if Node is not a valid node of the corresponding XTreeDataModel. + */ + boolean isNodeExpanded( [in] XTreeNode Node ) + raises( ::com::sun::star::lang::IllegalArgumentException ); + + /** Returns `TRUE` if Node is currently collapsed. + + @param Node + the XTreeNode specifying the node to check + + @returns + `TRUE` if Node or at least one of its parent nodes are collapsed, + `FALSE` if Node and all of its parent nodes are expanded + + @throws ::com::sun::star::lang::IllegalArgumentException + if Node is not a valid node of the corresponding XTreeDataModel. + */ + boolean isNodeCollapsed( [in] XTreeNode Node ) + raises( ::com::sun::star::lang::IllegalArgumentException ); + + /** Ensures that Node is currently visible. +This includes expanding all parent nodes and scroll the control so this + node is visible in the controls display area.
+ + @param Node + the XTreeNode specifying the node to make visible. + + @throws ::com::sun::star::lang::IllegalArgumentException + if Node is not a valid node of the corresponding XTreeDataModel. + + @throws ExpandVetoException + if Nodecan't be made visible since at least one of the parent nodes are + collapsed and expanding failed because at least one of the registered + XTreeExpansionListener raised an ExpandVetoException. + */ + void makeNodeVisible( [in] XTreeNode Node ) + raises( com::sun::star::lang::IllegalArgumentException, ExpandVetoException ); + + /** Returns `TRUE` if Node is currently visible. +Visible means it is either the root or all of its parents are expanded.
+ + @returns + `TRUE` if Node is visible, otherwise `FALSE` + + @throws ::com::sun::star::lang::IllegalArgumentException + if Node is not a valid node of the corresponding XTreeDataModel. + */ + boolean isNodeVisible( [in] XTreeNode Node ) + raises( com::sun::star::lang::IllegalArgumentException ); + + /** Ensures that Node is expanded and visible. +If Node is a leaf node, this will have no effect.
+ + @param Node + the XTreeNode identifying a node. + + @throws ::com::sun::star::lang::IllegalArgumentException + if Node is not a valid node of the corresponding XTreeDataModel. + + @throws ExpandVetoException + if expanding Node failed because at least one of the registered + XTreeExpansionListener raised an ExpandVetoException. + */ + void expandNode( [in] XTreeNode Node ) + raises( com::sun::star::lang::IllegalArgumentException, ExpandVetoException ); + + /** Ensures that Node is collapsed. + + @param Node + the XTreeNode identifying a node + + @throws ::com::sun::star::lang::IllegalArgumentException + if Node is not a valid node of the corresponding XTreeDataModel. + + @throws ExpandVetoException + if collapsing Node failed because at least one of the registered + XTreeExpansionListener raised an ExpandVetoException. + */ + void collapseNode( [in] XTreeNode Node ) + raises( com::sun::star::lang::IllegalArgumentException, ExpandVetoException ); + + /** Adds a listener for TreeExpansion events. + + @param Listener + a XTreeExpansionListener that will be notified when a tree + node is expanded or collapsed. + */ + void addTreeExpansionListener( [in] XTreeExpansionListener Listener ); + + /** Removes a listener for TreeExpansion events. + + @param Listener + the XTreeExpansionListener 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. + +This can be overridden for individual nodes by XTreeNode::getExpandedGraphicURL()
+ */ + [attribute] string DefaultExpandedGraphicURL; + + /** If the given URL points to a loadable graphic, the graphic is rendered + before collapsed non leaf nodes. + +This can be overridden for individual nodes by XTreeNode::getCollapsedGraphicURL()
+ */ + [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 XTreeNode 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. +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 getNodeForLocation(). + + @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 XTreeNode 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. +
The node that is being edited can be obtained using com::sun::star::view::XSelectionSupplier::getSelection(). + + @returns + `TRUE` if the user is currently editing a node + */ + boolean isEditing(); + + /** Ends the current editing session. +
All registered XTreeEditListener are notified if an editing session was in progress
+Has no effect if the tree isn't being edited.
+ + @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. +Has no effect if the tree isn't being edited.
+ */ + void cancelEditing(); + + /** Selects Node and initiates editing. + +If TreeControlModel::Editable is `FALSE` or if there are no + registered XTreeEditListener, this call has no effect.
+ +Calling this method also ensures that Node will become visible.
+ + @param Node + the XTreeNode identifying a node. + + @throws ::com::sun::star::lang::IllegalArgumentException + if Node is not a valid node of the corresponding XTreeDataModel. + */ + void startEditingAtNode( [in] XTreeNode Node ) + raises( ::com::sun::star::lang::IllegalArgumentException ); + + /** Adds a XTreeEditListener. + + @param Listener + a XTreeEditListener that will be notified + before and after a tree node is edited. + */ + void addTreeEditListener( [in] XTreeEditListener Listener ); + + /** Removes a XTreeEditListener. + + @param Listener + the XTreeEditListener to remove + */ + void removeTreeEditListener( [in] XTreeEditListener Listener ); +}; + + +}; }; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 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 0000000000..291637355e --- /dev/null +++ b/offapi/com/sun/star/awt/tree/XTreeDataModel.idl @@ -0,0 +1,63 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + +module com { module sun { module star { module awt { module tree { + + +/** An instance of this interface is used by the TreeControl to + retrieve the hierarchical outline data that is displayed in the actual control. + +If you implement your own XTreeDataModel you need to notify registered + XTreeDataModelListener if your model changes after the control is created. + If this is not done correctly the TreeControl will not update the data properly.
+ + If you do not need your own model implementation, you can also use the MutableTreeDataModel. +*/ +interface XTreeDataModel : ::com::sun::star::lang::XComponent +{ + /** Returns the root of the tree. +Returns null only if the tree has no nodes. + + @returns + the root of the tree + */ + XTreeNode getRoot(); + + /** Adds a listener for the TreeDataModelEvent posted after the tree changes. + + @param Listener + the listener to add. + */ + void addTreeDataModelListener( [in] XTreeDataModelListener Listener ); + + + /** Removes a listener previously added with addTreeDataModelListener(). + + @param Listener + the listener to remove. + */ + void removeTreeDataModelListener( [in] XTreeDataModelListener Listener ); + +}; + + +}; }; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 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 0000000000..ef10c8c798 --- /dev/null +++ b/offapi/com/sun/star/awt/tree/XTreeDataModelListener.idl @@ -0,0 +1,74 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + + +module com { module sun { module star { module awt { module tree { + + +/** An instance of this interface is used by the TreeControl to + get notifications about data model changes. + +
Usually you must not implement this interface yourself as it is already handled + by the TreeControl, but you must notify it correctly if + you implement the XTreeDataModel yourself
. + */ +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, TreeDataModelEvent::Nodes will contain + the root node and TreeDataModelEvent::ParentNode will be empty. + */ + void treeNodesChanged( [in] TreeDataModelEvent Event ); + + /** Invoked after nodes have been inserted into the tree. + + Use TreeDataModelEvent::ParentNode to get the parent of the new node(s). + TreeDataModelEvent::Nodes contains the new node(s). + */ + void treeNodesInserted( [in] TreeDataModelEvent Event ); + + /** Invoked after nodes have been removed from the tree. +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 TreeDataModelEvent::ParentNode to get the former parent of the deleted node(s). + TreeDataModelEvent::Nodes contains the removed node(s). + */ + void treeNodesRemoved( [in] TreeDataModelEvent Event ); + + /** Invoked after the tree has drastically changed structure from a given node down. + + Use TreeDataModelEvent::ParentNode to get the node which + structure has changed. TreeDataModelEvent::Nodes is empty. + */ + void treeStructureChanged( [in] TreeDataModelEvent Event ); +}; + + +}; }; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 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 0000000000..b12d3b64c9 --- /dev/null +++ b/offapi/com/sun/star/awt/tree/XTreeEditListener.idl @@ -0,0 +1,64 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + +module com { module sun { module star { module awt { module tree { + + +/** You can implement this interface and register with XTreeControl::addTreeEditListener() + to get notifications when editing of a node starts and ends. + +
You have to set the TreeControlModel::Editable property to + `TRUE` before a tree supports editing.
+ */ +interface XTreeEditListener : ::com::sun::star::lang::XEventListener +{ + /** This method is called from the TreeControl implementation when editing of + Node is requested by calling XTreeControl::startEditingAtNode(). + + @param Node + the XTreeNode for that an edit request was fired by calling + XTreeControl::startEditingAtNode() + + @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 TreeControl implementation when editing + of Node is finished and was not canceled. + +Implementations that register a XTreeEditListener must update the + display value at the Node.
+ + @param Node + the XTreeNode for that an edit request was fired by calling + XTreeControl::startEditingAtNode() + + @param NewText + the text that was entered by the user. + */ + void nodeEdited( [in] XTreeNode Node, [in] string NewText ); +}; + + +}; }; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 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 0000000000..896c3d8d72 --- /dev/null +++ b/offapi/com/sun/star/awt/tree/XTreeExpansionListener.idl @@ -0,0 +1,67 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + +module com { module sun { module star { module awt { module tree { + + +/** An instance of this interface can get notifications from a TreeControl + 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. + +This event is invoked before the treeExpanding() + event.
+ */ + void requestChildNodes( [in] TreeExpansionEvent Event ); + + /** Invoked whenever a node in the tree is about to be expanded. + + @throws ExpandVetoException + to notify the calling XTreeControl that expanding + TreeExpansionEvent::Node should fail. + */ + 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 XTreeControl that collapsing + TreeExpansionEvent::Node should fail. + */ + void treeCollapsing( [in] TreeExpansionEvent Event ) + raises ( ExpandVetoException ); + + /** Called whenever a node in the tree has been successfully expanded. */ + void treeExpanded( [in] TreeExpansionEvent Event ); + + /** Called whenever a node in the tree has been successfully collapsed. */ + void treeCollapsed( [in] TreeExpansionEvent Event ); +}; + + +}; }; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 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 0000000000..da697962e0 --- /dev/null +++ b/offapi/com/sun/star/awt/tree/XTreeNode.idl @@ -0,0 +1,85 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + + +module com { module sun { module star { module awt { module tree { + + +/** An instance implementing this interface represents the model data for an entry in a + XTreeDataModel. +The TreeControl uses this interface to retrieve the model + information needed to display a hierarchical outline
+Each XTreeNode in a XTreeDataModel must be unique. + */ +interface XTreeNode +{ + /** Returns the child tree node at Index. + + @throws ::com::sun::star::lang::IndexOutOfBoundsException + if Index is less than 0 or equal or greater than getChildCount(). + */ + 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 Node in this instances children. + @returns + The child index of Node, + or -1 if Node is no child of this instance. + */ + long getIndex( [in] XTreeNode Node); + + /** Returns `TRUE` if the children of this node are created on demand. +
A TreeControl will handle a node that returns `TRUE` always + like a node that has child nodes, even if getChildCount() + returns 0.
+ + @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. +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. +
If URL is empty, XTreeControl::DefaultExpandedGraphicURL is used. + */ + string getExpandedGraphicURL(); + + /** The URL for a graphic that is rendered to visualize collapsed non leaf nodes. +
If URL is empty, XTreeControl::DefaultCollapsedGraphicURL is used. + */ + string getCollapsedGraphicURL(); +}; + + +}; }; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit v1.2.3