18#if !defined(XALANHTMLELEMENTSPROPERTIES_HEADER_GUARD_1357924680)
19#define XALANHTMLELEMENTSPROPERTIES_HEADER_GUARD_1357924680
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];
92 return m_flags & theFlags ? true :
false;
112 const XalanDOMChar* theAttributeName,
126 return m_flags & theFlags ? true :
false;
130 XalanDOMChar m_name[eMaxElementName + 1];
164 m_properties(theProperties)
173 m_properties(theSource.m_properties)
187 return m_properties == 0 ? true :
false;
201 return m_properties->is(theFlags);
215 const XalanDOMChar* theAttributeName,
218 return m_properties->isAttribute(theAttributeName, theFlags);
229 return m_properties->m_name;
243 static ElementProperties
244 find(
const XalanDOMChar* theElementName);
255 findProperties(
const XalanDOMChar* theElementName);
#define XALAN_CPP_NAMESPACE
#define XALAN_XMLSUPPORT_EXPORT
This class acts as a proxy for an InternalElementProperties instance.
ElementProperties(const InternalElementProperties *theProperties=0)
Constructor.
ElementProperties(const ElementProperties &theSource)
Copy constructor.
bool null() const
Determine if this is a non-null instance.
bool isAttribute(const XalanDOMChar *theAttributeName, AttributeFlagsType theFlags) const
Check if particular attribute properties are set for this instance.
const XalanDOMChar * getName() const
Get the name of the element.
InternalElementProperties::AttributeFlagsType AttributeFlagsType
bool is(FlagsType theFlags) const
Check if particular properties are set for this instance.
InternalElementProperties::FlagsType FlagsType
static ElementProperties find(const XalanDOMChar *theElementName)
Find an instance with the given name.
bool is(FlagsType theFlags) const
Check if particular properties are set for this instance.
const InternalAttributeProperties & findProperties(const XalanDOMChar *theAttributeName) const
Find an instance with the given attribute name.
bool is(FlagsType theFlags) const
Check if particular properties are set for this instance.
static const InternalAttributeProperties s_dummyProperties
InternalAttributeProperties::FlagsType AttributeFlagsType
bool isAttribute(const XalanDOMChar *theAttributeName, AttributeFlagsType theFlags) const
Check if particular attribute properties are set for this instance.