cid#1636693 COPY_INSTEAD_OF_MOVE
[LibreOffice.git] / offapi / com / sun / star / form / validation / XValidatable.idl
blobbe7d27f7a6bd7f4cc973f256db2f4ba8d55c82b3
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 form { module validation {
23 interface XValidator;
26 /** specifies support for validating a component
28 @see XValidator
30 interface XValidatable : com::sun::star::uno::XInterface
32 /** sets an external instance which is able to validate the component
34 <p>Any previously active validator will be revoked - there can be only one!</p>
36 @param Validator
37 the new validator which is to be used by the component. May be `NULL`,
38 in this case only the current validator is revoked.
40 @throws com::sun::star::util::VetoException
41 if changing the validator is not allowed in the current component state
43 void setValidator( [in] XValidator Validator )
44 raises ( com::sun::star::util::VetoException );
46 /** retrieves the external instance which is currently used to validate the component
48 XValidator
49 getValidator( );
53 }; }; }; }; };
55 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */