update dev300-m58
[ooovba.git] / configmgr / source / xml / elementinfo.hxx
blob8bb00b49b8a2579cb713e7bfef1ca9a275d5b33c
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: elementinfo.hxx,v $
10 * $Revision: 1.9 $
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 /* PLEASE DON'T DELETE ANY COMMENT LINES, ALSO IT'S UNNECESSARY. */
33 #ifndef CONFIGMGR_XML_ELEMENTINFO_HXX
34 #define CONFIGMGR_XML_ELEMENTINFO_HXX
36 #include <sal/types.h>
37 #include <rtl/ustring.hxx>
39 namespace configmgr
41 // -----------------------------------------------------------------------------
42 namespace xml
44 // -----------------------------------------------------------------------------
45 namespace ElementType
47 enum Enum
49 unknown,
51 schema,
52 layer,
54 component,
55 templates,
57 property,
58 node,
59 group,
60 set,
62 import,
63 instance,
64 item_type,
65 value,
66 uses,
68 other
71 // -----------------------------------------------------------------------------
72 namespace Operation
74 enum Enum
76 none,
78 modify,
79 clear,
81 replace,
82 fuse,
83 remove,
85 unknown
88 // -----------------------------------------------------------------------------
89 struct ElementInfo
91 explicit
92 ElementInfo(ElementType::Enum _type = ElementType::unknown)
93 : name()
94 , type(_type)
95 , op(Operation::none)
96 , flags()
99 explicit
100 ElementInfo(rtl::OUString const & _name, ElementType::Enum _type = ElementType::unknown)
101 : name(_name)
102 , type(_type)
103 , op(Operation::none)
104 , flags()
108 rtl::OUString name;
109 ElementType::Enum type;
110 Operation::Enum op;
111 sal_Int16 flags;
113 // -----------------------------------------------------------------------------
114 } // namespace xml
115 // -----------------------------------------------------------------------------
116 } // namespace configmgr
118 #endif