Get the style color and number just once
[LibreOffice.git] / offapi / com / sun / star / util / XLockable.idl
blob52e090aa8e1abd499ae1022b672baedf893d3da8
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 util {
24 /** allows locking a component
26 <p><code>lock</code> and <code>unlock</code> calls can be nested. However, they must be in
27 pairs. As long as there has been one more call to <code>lock</code> than to <code>unlock</code>, the
28 component is considered locked, which is reflected by isLocked() returning `TRUE`.</p>
30 interface XLockable
32 /** locks</a> the component
34 @see unlock
35 @see isLocked
37 void lock();
39 /** unlocks the component
41 @throws NotLockedException
42 if the component is not currently locked.
44 @see lock
45 @see isLocked
47 void unlock()
48 raises ( NotLockedException
51 /** determines whether the component is currently locked.
53 @see lock
54 @see unlock
56 boolean isLocked();
60 }; }; }; };
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */