1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 module com
{ module sun
{ module star
{ module ui
{
22 /** Represents an item in a status bar
24 @see com::sun::star::frame::XStatusbarController
26 @since LibreOffice 4.1
28 interface XStatusbarItem
30 /** the command of the status bar item
32 [attribute
, readonly] string Command
;
34 /** the unique ID of the control within the status bar
36 [attribute
, readonly] unsigned short ItemId
;
38 /** the width of the status bar item
40 [attribute
, readonly] unsigned long Width
;
42 /** the style of the status bar item
44 <p>The following values apply for a status bar item:</p>
48 <li>com::sun::star::ui::ItemStyle::ALIGN_LEFT</li>
49 <li>com::sun::star::ui::ItemStyle::ALIGN_CENTER</li>
50 <li>com::sun::star::ui::ItemStyle::ALIGN_RIGHT</li>
55 <li>com::sun::star::ui::ItemStyle::DRAW_OUT3D</li>
56 <li>com::sun::star::ui::ItemStyle::DRAW_IN3D</li>
57 <li>com::sun::star::ui::ItemStyle::DRAW_FLAT</li>
60 <li>com::sun::star::ui::ItemStyle::AUTO_SIZE</li>
61 <li>com::sun::star::ui::ItemStyle::OWNER_DRAW</li>
62 <li>com::sun::star::ui::ItemStyle::MANDATORY (@since LibreOffice 6.1)</li>
65 @see com::sun::star::ui::ItemStyle
67 [attribute
, readonly] unsigned short Style
;
69 /** the offset between this status bar item and the following
71 [attribute
, readonly] long Offset
;
73 /** the rectangle on the status bar device onto which the item is drawn
75 @see com::sun::star::frame::XStatusbarController::paint()
77 [attribute
, readonly] com
::sun
::star
::awt
::Rectangle ItemRect
;
79 /** the text of status bar item
81 [attribute
] string Text
;
83 /** the help text of the status bar item when extended help tips are on
85 [attribute
] string HelpText
;
87 /** the help text of the status bar item when help tips are on
89 [attribute
] string QuickHelpText
;
91 /** the accessible name of the status bar item
93 [attribute
] string AccessibleName
;
95 /** whether the item is visible or not
97 [attribute
] boolean Visible
;
99 /** forces repainting the item onto the status bar device
101 @see com::sun::star::frame::XStatusbarController::paint()
108 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */