use insert function instead of for loop
[LibreOffice.git] / offapi / com / sun / star / awt / XAnimatedImages.idl
blobbb4c8975b8d3291a7a6a909147c00dcfef09e33d
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 /** allows administrating a set of images, to be displayed as animated seres.
26 <p>Components implementing this interface maintain a variable number of image sets. Components displaying
27 those images will choose the best-fitting image set depending on the available space, and possibly other
28 restrictions.</p>
30 @since OOo 3.4
32 interface XAnimatedImages
34 /** specifies the time in milliseconds between two animation steps.
36 <p>This is the minimum time, the actual value might be longer due to
37 system load. The default value will be 100 ms.</p>
39 [attribute] long StepTime;
41 /** specifies whether the animation should start over with the first image of the image series when the last image
42 has been played.
44 <p>The default value for this attribute is `TRUE`.</p>
46 [attribute] boolean AutoRepeat;
48 /** controls the way the images are scaled up or down, when the available space is larger or smaller
49 than what is needed for them.
51 <p>Allowed values are those from the ImageScaleMode constants group.</p>
53 [attribute] short ScaleMode
55 set raises (::com::sun::star::lang::IllegalArgumentException);
58 /** returns the number of images sets maintained by the component.
60 long
61 getImageSetCount();
63 /** returns the URLs of the image set with the given index
65 @param iIndex
66 the index of the set those image URLs are to be retrieved. Must be greater than or equal to <code>0</code>,
67 and smaller than the value returned by getImageSetCount().
69 @throws ::com::sun::star::lang::IndexOutOfBoundsException
70 if the <code>iIndex</code> is not a valid index.
72 sequence< string >
73 getImageSet
75 [in] long iIndex
77 raises
79 ::com::sun::star::lang::IndexOutOfBoundsException
82 /** sets the URLs of the image set with the given index
84 @param iIndex
85 the index at which a new image set should be inserted. Must be greater than or equal to <code>0</code>,
86 and smaller than or equal to the value returned by getImageSetCount().
87 @param iImageURLs
88 the URLs for the images for the given set. Will be resolved using a com::sun::star::graphic::GraphicProvider.
90 @throws ::com::sun::star::lang::IndexOutOfBoundsException
91 if the <code>iIndex</code> is not a valid index.
93 void
94 insertImageSet
96 [in] long iIndex,
97 [in] sequence< string > iImageURLs
99 raises
101 ::com::sun::star::lang::IndexOutOfBoundsException
104 /** replaces the image set given by index with a new one
106 @param iIndex
107 the index of the set those image URLs are to be replaced. Must be greater than or equal to <code>0</code>,
108 and smaller than the value returned by getImageSetCount().
110 @param iImageURLs
111 the URLs for the images for the given set. Will be resolved using a com::sun::star::graphic::GraphicProvider.
113 @throws ::com::sun::star::lang::IndexOutOfBoundsException
114 if the <code>iIndex</code> is not a valid index.
116 void
117 replaceImageSet
119 [in] long iIndex,
120 [in] sequence< string > iImageURLs
122 raises
124 ::com::sun::star::lang::IndexOutOfBoundsException
128 /** removes the image set with the given index
130 @param iIndex
131 the index of the set to remove. Must be greater than or equal to <code>0</code>,
132 and smaller than the value returned by getImageSetCount().
134 @throws ::com::sun::star::lang::IndexOutOfBoundsException
135 if the <code>iIndex</code> is not a valid index.
137 void
138 removeImageSet
140 [in] long iIndex
142 raises
144 ::com::sun::star::lang::IndexOutOfBoundsException
148 /** allows other components to observer the insertion, removal, and replacement of image sets
150 interface ::com::sun::star::container::XContainer;
154 }; }; }; };
157 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */