xref: /aoo4110/main/offapi/com/sun/star/ui/ItemStyle.idl (revision b1cdbd2c)
1*b1cdbd2cSJim Jagielski/**************************************************************
2*b1cdbd2cSJim Jagielski *
3*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one
4*b1cdbd2cSJim Jagielski * or more contributor license agreements.  See the NOTICE file
5*b1cdbd2cSJim Jagielski * distributed with this work for additional information
6*b1cdbd2cSJim Jagielski * regarding copyright ownership.  The ASF licenses this file
7*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the
8*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance
9*b1cdbd2cSJim Jagielski * with the License.  You may obtain a copy of the License at
10*b1cdbd2cSJim Jagielski *
11*b1cdbd2cSJim Jagielski *   http://www.apache.org/licenses/LICENSE-2.0
12*b1cdbd2cSJim Jagielski *
13*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing,
14*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an
15*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b1cdbd2cSJim Jagielski * KIND, either express or implied.  See the License for the
17*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations
18*b1cdbd2cSJim Jagielski * under the License.
19*b1cdbd2cSJim Jagielski *
20*b1cdbd2cSJim Jagielski *************************************************************/
21*b1cdbd2cSJim Jagielski
22*b1cdbd2cSJim Jagielski
23*b1cdbd2cSJim Jagielski
24*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_ui_ItemStyle_idl__
25*b1cdbd2cSJim Jagielski#define __com_sun_star_ui_ItemStyle_idl__
26*b1cdbd2cSJim Jagielski
27*b1cdbd2cSJim Jagielski//=============================================================================
28*b1cdbd2cSJim Jagielski
29*b1cdbd2cSJim Jagielskimodule com {  module sun {  module star {  module ui {
30*b1cdbd2cSJim Jagielski
31*b1cdbd2cSJim Jagielski/**
32*b1cdbd2cSJim Jagielski    specifies styles which influence the appearance and the behavior of an
33*b1cdbd2cSJim Jagielski    user interface item.
34*b1cdbd2cSJim Jagielski
35*b1cdbd2cSJim Jagielski    <p>
36*b1cdbd2cSJim Jagielski    These styles are only valid if the item describes a toolbar or statusbar item.
37*b1cdbd2cSJim Jagielski    The style values can be combined with the OR operator. Styles which are not valid
38*b1cdbd2cSJim Jagielski    for an item will be ignored by the implementation.<br/>
39*b1cdbd2cSJim Jagielski    There are two styles where
40*b1cdbd2cSJim Jagielski    only one value is valid:
41*b1cdbd2cSJim Jagielski    Alignment:
42*b1cdbd2cSJim Jagielski    <ul>
43*b1cdbd2cSJim Jagielski        <li>ALIGN_LEFT</li>
44*b1cdbd2cSJim Jagielski        <li>ALIGN_CENTER</li>
45*b1cdbd2cSJim Jagielski        <li>ALIGN_RIGHT</li>
46*b1cdbd2cSJim Jagielski    </ul>
47*b1cdbd2cSJim Jagielski    Drawing:
48*b1cdbd2cSJim Jagielski    <ul>
49*b1cdbd2cSJim Jagielski        <li>DRAW_OUT3D</li>
50*b1cdbd2cSJim Jagielski        <li>DRAW_IN3D</li>
51*b1cdbd2cSJim Jagielski        <li>DRAW_FLAT</li>
52*b1cdbd2cSJim Jagielski    </ul>
53*b1cdbd2cSJim Jagielski    </p>
54*b1cdbd2cSJim Jagielski
55*b1cdbd2cSJim Jagielski    @since OpenOffice 2.0
56*b1cdbd2cSJim Jagielski*/
57*b1cdbd2cSJim Jagielskiconstants ItemStyle
58*b1cdbd2cSJim Jagielski{
59*b1cdbd2cSJim Jagielski    //-------------------------------------------------------------------------
60*b1cdbd2cSJim Jagielski    /** specifies how the output of the item is aligned in the bounding box of
61*b1cdbd2cSJim Jagielski        the user interface element.
62*b1cdbd2cSJim Jagielski        <p>This style is only valid for an item which describes a statusbar item.
63*b1cdbd2cSJim Jagielski        Draw item with a left aligned output.</p>
64*b1cdbd2cSJim Jagielski    */
65*b1cdbd2cSJim Jagielski    const short ALIGN_LEFT   = 1;
66*b1cdbd2cSJim Jagielski
67*b1cdbd2cSJim Jagielski    /** specifies how the output of the item is aligned in the bounding box of
68*b1cdbd2cSJim Jagielski        the user interface element.
69*b1cdbd2cSJim Jagielski        <p>This style is only valid for an item which describes a statusbar item.
70*b1cdbd2cSJim Jagielski        Draw item with a centered aligned output.</p>
71*b1cdbd2cSJim Jagielski    */
72*b1cdbd2cSJim Jagielski    const short ALIGN_CENTER = 2;
73*b1cdbd2cSJim Jagielski
74*b1cdbd2cSJim Jagielski    /** specifies how the output of the item is aligned in the bounding box of
75*b1cdbd2cSJim Jagielski        the user interface element.
76*b1cdbd2cSJim Jagielski        <p>This style is only valid for an item which describes a statusbar item.
77*b1cdbd2cSJim Jagielski        Draw item with a right aligned output.</p>
78*b1cdbd2cSJim Jagielski    */
79*b1cdbd2cSJim Jagielski    const short ALIGN_RIGHT  = 3;
80*b1cdbd2cSJim Jagielski
81*b1cdbd2cSJim Jagielski    //-------------------------------------------------------------------------
82*b1cdbd2cSJim Jagielski    /** specifies how the implementation should draw the item.
83*b1cdbd2cSJim Jagielski        <p>This style is only valid for an item which describes a statusbar item.
84*b1cdbd2cSJim Jagielski        Draw item with an embossed 3D effect.</p>
85*b1cdbd2cSJim Jagielski    */
86*b1cdbd2cSJim Jagielski    const short DRAW_OUT3D   = 4;
87*b1cdbd2cSJim Jagielski
88*b1cdbd2cSJim Jagielski    /** specifies how the implementation should draw the item.
89*b1cdbd2cSJim Jagielski        <p>This style is only valid for an item which describes a statusbar item.
90*b1cdbd2cSJim Jagielski        Draw item with an impressed 3D effect.</p>
91*b1cdbd2cSJim Jagielski    */
92*b1cdbd2cSJim Jagielski    const short DRAW_IN3D    = 8;
93*b1cdbd2cSJim Jagielski
94*b1cdbd2cSJim Jagielski    /** specifies how the implementation should draw the item.
95*b1cdbd2cSJim Jagielski        <p>This style is only valid for an item which describes a statusbar item.
96*b1cdbd2cSJim Jagielski        Draw item without an 3D effect.</p>
97*b1cdbd2cSJim Jagielski    */
98*b1cdbd2cSJim Jagielski    const short DRAW_FLAT    = 12;
99*b1cdbd2cSJim Jagielski
100*b1cdbd2cSJim Jagielski    //-------------------------------------------------------------------------
101*b1cdbd2cSJim Jagielski    /** specifies whether or not a item is displayed using an external function.
102*b1cdbd2cSJim Jagielski        <p>This style is only valid if the item describes a statusbar item.</p>
103*b1cdbd2cSJim Jagielski    */
104*b1cdbd2cSJim Jagielski    const short OWNER_DRAW    = 16;
105*b1cdbd2cSJim Jagielski
106*b1cdbd2cSJim Jagielski    //-------------------------------------------------------------------------
107*b1cdbd2cSJim Jagielski    /** specifies whether or not the size of the item is set automatically by
108*b1cdbd2cSJim Jagielski        the parent user interface element.
109*b1cdbd2cSJim Jagielski        <p>This style is only valid if the item describes a toolbar or statusbar item.</p>
110*b1cdbd2cSJim Jagielski    */
111*b1cdbd2cSJim Jagielski    const short AUTO_SIZE     = 32;
112*b1cdbd2cSJim Jagielski
113*b1cdbd2cSJim Jagielski    //-------------------------------------------------------------------------
114*b1cdbd2cSJim Jagielski    /**  determines whether the item unchecks neighbor entries which have also this style set.
115*b1cdbd2cSJim Jagielski         <p>This style is only valid if the item describes a toolbar item.</p>
116*b1cdbd2cSJim Jagielski    */
117*b1cdbd2cSJim Jagielski    const short RADIO_CHECK   = 64;
118*b1cdbd2cSJim Jagielski
119*b1cdbd2cSJim Jagielski    //-------------------------------------------------------------------------
120*b1cdbd2cSJim Jagielski    /** specifies if an icon is placed on left side of the text, like an entry in a taskbar.
121*b1cdbd2cSJim Jagielski        <p>This style is only valid if the item describes a toolbar item and visible if
122*b1cdbd2cSJim Jagielski        style of the toolbar is set to symboltext.</p>
123*b1cdbd2cSJim Jagielski        <p> This style can also be used for custom toolbars and menus, in a custom toolbar an item's Style setting can used to override the toolbar container setting, the style can be bitwise OR-ed with <member scope="::com::sun::star::ui::ItemStyle">TEXT</member> to define text, text+icon or icon only is to be displayed. Similarly for menu items, an items Style can override the application setting to display either text or icon ( note: for menu an icon only setting interpreted as icon+text ) </p>
124*b1cdbd2cSJim Jagielski    */
125*b1cdbd2cSJim Jagielski    const short ICON          = 128;
126*b1cdbd2cSJim Jagielski
127*b1cdbd2cSJim Jagielski    //-------------------------------------------------------------------------
128*b1cdbd2cSJim Jagielski    /** specifies that the item supports a dropdown menu or toolbar for additional functions.
129*b1cdbd2cSJim Jagielski        <p>This style is only valid if the item describes a toolbar item.</p>
130*b1cdbd2cSJim Jagielski    */
131*b1cdbd2cSJim Jagielski    const short DROP_DOWN     = 256;
132*b1cdbd2cSJim Jagielski
133*b1cdbd2cSJim Jagielski    //-------------------------------------------------------------------------
134*b1cdbd2cSJim Jagielski    /** indicates that the item continues to execute the command while you click and hold
135*b1cdbd2cSJim Jagielski        the mouse button.
136*b1cdbd2cSJim Jagielski        <p>This style is only valid if the item describes a toolbar item.</p>
137*b1cdbd2cSJim Jagielski    */
138*b1cdbd2cSJim Jagielski    const short REPEAT        = 512;
139*b1cdbd2cSJim Jagielski
140*b1cdbd2cSJim Jagielski    //-------------------------------------------------------------------------
141*b1cdbd2cSJim Jagielski    /** indicates that the item only supports a dropdown menu or toolbar for
142*b1cdbd2cSJim Jagielski        additional functions. There is no function on the button itself.
143*b1cdbd2cSJim Jagielski        <p>This style is only valid if the item describes a toolbar item.</p>
144*b1cdbd2cSJim Jagielski    */
145*b1cdbd2cSJim Jagielski    const short DROPDOWN_ONLY = 1024;
146*b1cdbd2cSJim Jagielski    /** indicates if icon, text or text+icon is displayed for the item.
147*b1cdbd2cSJim Jagielski        <p> This style can be used for custom toolbars and menus, in a custom toolbar an item's Style setting can used to override the toolbar container setting, the style can be bitwise OR-ed with <member scope="com::sun::star::ui::ItemStyle">ICON</member> to define text, text+icon or icon only is to be displayed. Similarly for menu items, an items Style can override the application setting to display either text or icon ( note: for menu an icon only setting interpreted as icon+text ) </p>
148*b1cdbd2cSJim Jagielski    */
149*b1cdbd2cSJim Jagielski    const short TEXT = 2048;
150*b1cdbd2cSJim Jagielski};
151*b1cdbd2cSJim Jagielski
152*b1cdbd2cSJim Jagielski}; }; }; };
153*b1cdbd2cSJim Jagielski
154*b1cdbd2cSJim Jagielski#endif
155