merge the formfield patch from ooo-build
[ooovba.git] / xmloff / source / forms / controlelement.cxx
blob05fcbb8bdf35f88d055914f39639b030ce8c4455
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: controlelement.cxx,v $
10 * $Revision: 1.8 $
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 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_xmloff.hxx"
33 #include "controlelement.hxx"
35 //.........................................................................
36 namespace xmloff
38 //.........................................................................
40 //=====================================================================
41 //= OControlElement
42 //=====================================================================
43 //---------------------------------------------------------------------
44 const sal_Char* OControlElement::getElementName(ElementType _eType)
46 switch (_eType)
48 case TEXT: return "text";
49 case TEXT_AREA: return "textarea";
50 case PASSWORD: return "password";
51 case FILE: return "file";
52 case FORMATTED_TEXT: return "formatted-text";
53 case FIXED_TEXT: return "fixed-text";
54 case COMBOBOX: return "combobox";
55 case LISTBOX: return "listbox";
56 case BUTTON: return "button";
57 case IMAGE: return "image";
58 case CHECKBOX: return "checkbox";
59 case RADIO: return "radio";
60 case FRAME: return "frame";
61 case IMAGE_FRAME: return "image-frame";
62 case HIDDEN: return "hidden";
63 case GRID: return "grid";
64 case VALUERANGE: return "value-range";
66 default: return "generic-control";
70 //.........................................................................
71 } // namespace xmloff
72 //.........................................................................