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 #ifndef INCLUDED_SLIDESHOW_ATTRIBUTEMAP_HXX
25 #define INCLUDED_SLIDESHOW_ATTRIBUTEMAP_HXX
26 
27 #include <rtl/ustring.hxx>
28 
29 /* Definition of AttributeMap helper function */
30 
31 namespace slideshow
32 {
33     namespace internal
34     {
35         /** Type of to-be-animated attribute.
36 
37 	        This enum describes the type of an animated
38     	    attribute.
39         */
40         enum AttributeType
41         {
42             ATTRIBUTE_INVALID,
43             ATTRIBUTE_CHAR_COLOR,
44             ATTRIBUTE_CHAR_FONT_NAME,
45             ATTRIBUTE_CHAR_HEIGHT,
46             ATTRIBUTE_CHAR_POSTURE,
47             ATTRIBUTE_CHAR_ROTATION,
48             ATTRIBUTE_CHAR_UNDERLINE,
49             ATTRIBUTE_CHAR_WEIGHT,
50             ATTRIBUTE_COLOR,
51             ATTRIBUTE_DIMCOLOR,
52             ATTRIBUTE_FILL_COLOR,
53             ATTRIBUTE_FILL_STYLE,
54             ATTRIBUTE_HEIGHT,
55             ATTRIBUTE_LINE_COLOR,
56             ATTRIBUTE_LINE_STYLE,
57             ATTRIBUTE_OPACITY,
58             ATTRIBUTE_ROTATE,
59             ATTRIBUTE_SKEW_X,
60             ATTRIBUTE_SKEW_Y,
61             ATTRIBUTE_VISIBILITY,
62             ATTRIBUTE_WIDTH,
63             ATTRIBUTE_POS_X,
64             ATTRIBUTE_POS_Y
65         };
66 
67         /** Map attribute name to AttributeType enum
68 
69         	@returns ATTRIBUTE_INVALID, if name was not found in the
70         	mapping table.
71          */
72         AttributeType mapAttributeName( const ::rtl::OUString& rAttrName );
73     }
74 }
75 
76 #endif /* INCLUDED_SLIDESHOW_ATTRIBUTEMAP_HXX */
77