XProtectable.idl (d1766043) XProtectable.idl (37b7d578)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 30 unchanged lines hidden (view full) ---

39//=============================================================================
40
41/** makes it possible to protect objects from modifications.
42 */
43published interface XProtectable: com::sun::star::uno::XInterface
44{
45 //-------------------------------------------------------------------------
46 /** activates the protection.
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 30 unchanged lines hidden (view full) ---

39//=============================================================================
40
41/** makes it possible to protect objects from modifications.
42 */
43published interface XProtectable: com::sun::star::uno::XInterface
44{
45 //-------------------------------------------------------------------------
46 /** activates the protection.
47
48 @param aPassword
49 a string to specify new password.
47 */
48 void protect( [in] string aPassword );
49
50 //-------------------------------------------------------------------------
51 /** removes the protection.
50 */
51 void protect( [in] string aPassword );
52
53 //-------------------------------------------------------------------------
54 /** removes the protection.
55
56 @param aPassword
57 a string to match with the current password.
58 @throws com::sun::star::lang::IllegalArgumentException
59 if invalid password is specified.
52 */
53 void unprotect( [in] string aPassword )
54 raises( com::sun::star::lang::IllegalArgumentException );
55
56 //-------------------------------------------------------------------------
57 /** @returns
58 the current state of protection.
59 */
60 boolean isProtected();
61
62};
63
64//=============================================================================
65
66}; }; }; };
67
68#endif
60 */
61 void unprotect( [in] string aPassword )
62 raises( com::sun::star::lang::IllegalArgumentException );
63
64 //-------------------------------------------------------------------------
65 /** @returns
66 the current state of protection.
67 */
68 boolean isProtected();
69
70};
71
72//=============================================================================
73
74}; }; }; };
75
76#endif