1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #ifndef INCLUDED_SLIDESHOW_ATTRIBUTEMAP_HXX
29 #define INCLUDED_SLIDESHOW_ATTRIBUTEMAP_HXX
30 
31 #include <rtl/ustring.hxx>
32 
33 /* Definition of AttributeMap helper function */
34 
35 namespace slideshow
36 {
37     namespace internal
38     {
39         /** Type of to-be-animated attribute.
40 
41 	        This enum describes the type of an animated
42     	    attribute.
43         */
44         enum AttributeType
45         {
46             ATTRIBUTE_INVALID,
47             ATTRIBUTE_CHAR_COLOR,
48             ATTRIBUTE_CHAR_FONT_NAME,
49             ATTRIBUTE_CHAR_HEIGHT,
50             ATTRIBUTE_CHAR_POSTURE,
51             ATTRIBUTE_CHAR_ROTATION,
52             ATTRIBUTE_CHAR_UNDERLINE,
53             ATTRIBUTE_CHAR_WEIGHT,
54             ATTRIBUTE_COLOR,
55             ATTRIBUTE_DIMCOLOR,
56             ATTRIBUTE_FILL_COLOR,
57             ATTRIBUTE_FILL_STYLE,
58             ATTRIBUTE_HEIGHT,
59             ATTRIBUTE_LINE_COLOR,
60             ATTRIBUTE_LINE_STYLE,
61             ATTRIBUTE_OPACITY,
62             ATTRIBUTE_ROTATE,
63             ATTRIBUTE_SKEW_X,
64             ATTRIBUTE_SKEW_Y,
65             ATTRIBUTE_VISIBILITY,
66             ATTRIBUTE_WIDTH,
67             ATTRIBUTE_POS_X,
68             ATTRIBUTE_POS_Y
69         };
70 
71         /** Map attribute name to AttributeType enum
72 
73         	@returns ATTRIBUTE_INVALID, if name was not found in the
74         	mapping table.
75          */
76         AttributeType mapAttributeName( const ::rtl::OUString& rAttrName );
77     }
78 }
79 
80 #endif /* INCLUDED_SLIDESHOW_ATTRIBUTEMAP_HXX */
81