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
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 // MARKER(update_precomp.py): autogen include statement, do not remove
25 #include "precompiled_xmloff.hxx"
26 #include "controlelement.hxx"
27 
28 //.........................................................................
29 namespace xmloff
30 {
31 //.........................................................................
32 
33 	//=====================================================================
34 	//= OControlElement
35 	//=====================================================================
36 	//---------------------------------------------------------------------
getElementName(ElementType _eType)37 	const sal_Char* OControlElement::getElementName(ElementType _eType)
38 	{
39 		switch (_eType)
40 		{
41 			case TEXT: return "text";
42 			case TEXT_AREA: return "textarea";
43 			case PASSWORD: return "password";
44 			case FILE: return "file";
45 			case FORMATTED_TEXT: return "formatted-text";
46 			case FIXED_TEXT: return "fixed-text";
47 			case COMBOBOX: return "combobox";
48 			case LISTBOX: return "listbox";
49 			case BUTTON: return "button";
50 			case IMAGE: return "image";
51 			case CHECKBOX: return "checkbox";
52 			case RADIO: return "radio";
53 			case FRAME: return "frame";
54 			case IMAGE_FRAME: return "image-frame";
55 			case HIDDEN: return "hidden";
56 			case GRID: return "grid";
57 			case VALUERANGE: return "value-range";
58             case TIME: return "time";
59             case DATE: return "date";
60 
61 			default: return "generic-control";
62 		}
63 	}
64 
65 //.........................................................................
66 }	// namespace xmloff
67 //.........................................................................
68 
69