18 #if !defined(XALANHTMLELEMENTSPROPERTIES_HEADER_GUARD_1357924680)
19 #define XALANHTMLELEMENTSPROPERTIES_HEADER_GUARD_1357924680
32 XALAN_CPP_NAMESPACE_BEGIN
40 enum { eMaxAttributes = 6, eMaxAttributeName = 8, eMaxElementName = 10 };
48 BLOCKFORMFIELDSET = (1 << 5),
54 INLINELABEL = (1 << 11),
55 FONTSTYLE = (1 << 12),
63 PREFORMATTED = (1 << 20),
64 WHITESPACESENSITIVE = (1 << 21),
66 STYLEELEM = (1 << 23),
67 SCRIPTELEM = (1 << 24),
77 XalanDOMChar m_name[eMaxAttributeName + 1];
90 is(FlagsType theFlags)
const
92 return m_flags & theFlags ?
true :
false;
112 const XalanDOMChar* theAttributeName,
113 AttributeFlagsType theFlags)
const;
124 is(FlagsType theFlags)
const
126 return m_flags & theFlags ?
true :
false;
130 XalanDOMChar m_name[eMaxElementName + 1];
143 findProperties(
const XalanDOMChar* theAttributeName)
const;
164 m_properties(theProperties)
173 m_properties(theSource.m_properties)
187 return m_properties == 0 ?
true :
false;
199 is(FlagsType theFlags)
const
201 return m_properties->is(theFlags);
215 const XalanDOMChar* theAttributeName,
216 AttributeFlagsType theFlags)
const
218 return m_properties->isAttribute(theAttributeName, theFlags);
229 return m_properties->m_name;
243 static ElementProperties
244 find(
const XalanDOMChar* theElementName);
254 static const InternalElementProperties&
255 findProperties(
const XalanDOMChar* theElementName);
260 static const InternalElementProperties s_elementProperties[];
263 static const InternalElementProperties*
const s_lastProperties;
268 static const InternalElementProperties*
const s_dummyProperties;
283 XALAN_CPP_NAMESPACE_END
287 #endif // XALANHTMLELEMENTSPROPERTIES_HEADER_GUARD_1357924680
static const InternalAttributeProperties s_dummyProperties
bool isAttribute(const XalanDOMChar *theAttributeName, AttributeFlagsType theFlags) const
Check if particular attribute properties are set for this instance.
bool is(FlagsType theFlags) const
Check if particular properties are set for this instance.
bool null() const
Determine if this is a non-null instance.
InternalElementProperties::FlagsType FlagsType
InternalElementProperties::AttributeFlagsType AttributeFlagsType
#define XALAN_XMLSUPPORT_EXPORT
const XalanDOMChar * getName() const
Get the name of the element.
This class acts as a proxy for an InternalElementProperties instance.
bool is(FlagsType theFlags) const
Check if particular properties are set for this instance.
bool is(FlagsType theFlags) const
Check if particular properties are set for this instance.
InternalAttributeProperties::FlagsType AttributeFlagsType
ElementProperties(const ElementProperties &theSource)
Copy constructor.
ElementProperties(const InternalElementProperties *theProperties=0)
Constructor.