tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / offapi / com / sun / star / awt / XSpinValue.idl
blob5c193a8f51fbb9a666558445c4a93feac81d6a8c
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
21 module com { module sun { module star { module awt {
24 /** gives access to the value and settings of a control which is associated with
25 a spinnable value.
27 interface XSpinValue : com::sun::star::uno::XInterface
30 /** registers an adjustment event listener.
32 void addAdjustmentListener( [in] com::sun::star::awt::XAdjustmentListener listener );
35 /** unregisters an adjustment event listener.
37 void removeAdjustmentListener( [in] com::sun::star::awt::XAdjustmentListener listener );
40 /** sets the current value of the control
42 void setValue( [in] long value );
45 /** sets the value and value range of the control
47 @see setValue
48 @see setMinimum
49 @see setMaximum
51 void setValues( [in] long minValue, [in] long maxValue, [in] long currentValue );
54 /** returns the current value of the control.
56 long getValue();
59 /** sets the minimum value which can be set on the control
61 void setMinimum( [in] long minValue );
64 /** sets the maximum value which can be set on the control
66 void setMaximum( [in] long maxValue );
69 /** returns the currently set minimum value of the control
71 long getMinimum();
74 /** returns the currently set maximum value of the control
76 long getMaximum();
79 /** sets the value by which the current value of the control
80 should be incremented or decremented upon spinning.
82 void setSpinIncrement( [in] long spinIncrement );
85 /** returns the value by which the current value of the control
86 should be incremented or decremented upon spinning.
88 long getSpinIncrement();
91 /** controls the orientation of the control
92 @param orientation
93 one of the ScrollBarOrientation values specifying the orientation
94 @throws com::sun::star::lang::NoSupportException
95 in case the given orientation is not supported
97 void setOrientation( [in] long orientation )
98 raises( com::sun::star::lang::NoSupportException );
101 /** returns the current orientation of the control
103 long getOrientation();
108 }; }; }; };
110 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */