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 .
21 module com
{ module sun
{ module star
{ module task
{
23 /** controls a status indicator which displays progress of
24 longer actions to the user
27 Such objects are provided by a XStatusIndicatorFactory.
30 @see XStatusIndicatorFactory
32 published
interface XStatusIndicator
: com
::sun
::star
::uno
::XInterface
34 /** initialize and start the progress
37 It activates a new created or reactivate an already used indicator
38 (must be finished by calling XStatusIndicator::end()
39 before!). By the way it's possible to set first progress description
40 and the possible range of progress value. That means that a progress
41 can runs from 0 to <var>Range</var>.
45 initial value for progress description for showing
46 Value can be updated by calling XStatusIndicator::setText().
49 means the maximum value of the progress which can be set by
50 calling XStatusIndicator::setValue().
59 Further calls of XStatusIndicator::setText(),
60 XStatusIndicator::setValue() or
61 XStatusIndicator::reset() must be ignored.
62 Only XStatusIndicator::start() can reactivate this
64 It's not allowed to destruct the indicator inside this method.
65 The instance must be gone by using ref count or disposing.
70 /** update progress description
73 Initial value can be set during starting of the progress by calling
74 XStatusIndicator::start().
75 Stopped indicators must ignore this call.
79 new value for progress description which should be shown now
81 void setText
( [in] string Text
);
83 /** update progress value
86 Wrong values must be ignored and stopped indicators must ignore this
91 new value for progress which should be shown now
92 Must fit the range [0..Range] which was set during
93 XStatusIndicator::start().
95 void setValue
( [in] long Value
);
97 /** clear progress value and description
100 Calling of setValue(0) and setText("") should do the same.
101 Stopped indicators must ignore this call.
109 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */