update dev300-m58
[ooovba.git] / extensions / source / propctrlr / enumrepresentation.hxx
blob8f0f50d25365427412acdb6edb8ecad726ea62fa
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: enumrepresentation.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef EXTENSIONS_SOURCE_PROPCTRLR_ENUMREPRESENTATION_HXX
32 #define EXTENSIONS_SOURCE_PROPCTRLR_ENUMREPRESENTATION_HXX
34 /** === begin UNO includes === **/
35 #include <com/sun/star/uno/Any.hxx>
36 /** === end UNO includes === **/
37 #include <rtl/ref.hxx>
38 #include <rtl/ustring.hxx>
40 #include <vector>
42 //........................................................................
43 namespace pcr
45 //........................................................................
47 //====================================================================
48 //= IPropertyEnumRepresentation
49 //====================================================================
50 class SAL_NO_VTABLE IPropertyEnumRepresentation : public ::rtl::IReference
52 public:
53 /** retrieves all descriptions of all possible values of the enumeration property
55 virtual ::std::vector< ::rtl::OUString > SAL_CALL getDescriptions(
56 ) const = 0;
58 /** converts a given description into a property value
60 virtual void SAL_CALL getValueFromDescription(
61 const ::rtl::OUString& _rDescription,
62 ::com::sun::star::uno::Any& _out_rValue
63 ) const = 0;
65 /** converts a given property value into a description
67 virtual ::rtl::OUString SAL_CALL getDescriptionForValue(
68 const ::com::sun::star::uno::Any& _rEnumValue
69 ) const = 0;
71 virtual ~IPropertyEnumRepresentation() { };
74 //........................................................................
75 } // namespace pcr
76 //........................................................................
78 #endif // EXTENSIONS_SOURCE_PROPCTRLR_ENUMREPRESENTATION_HXX