Event.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
// Copyright (c) 1994 James Clark
// See the file COPYING for copying permission.
#pragma ident "%Z%%M% %I% %E% SMI"
#ifndef Event_INCLUDED
#define Event_INCLUDED 1
#ifdef __GNUG__
#pragma interface
#endif
#include "Link.h"
#include "Allocator.h"
#include "Location.h"
#include "Vector.h"
#include "Owner.h"
#include "Boolean.h"
#include "types.h"
#include "Ptr.h"
#include "StringC.h"
#include "Notation.h"
#include "Sd.h"
#include "Syntax.h"
#include "Dtd.h"
#include "ElementType.h"
#include "Text.h"
#include "Lpd.h"
#include "Message.h"
#include "Markup.h"
#include "ShortReferenceMap.h"
#ifdef SP_NAMESPACE
#endif
enum Type {
pi,
sSep,
attlistDecl, // not #NOTATION and not in LPD
};
};
};
};
MessageEvent(Message &);
MessageEvent(const Message &);
void handle(EventHandler &);
};
StartElementEvent(const ElementType *,
const Location &,
Markup *);
void handle(EventHandler &);
Boolean mustOmitEnd() const;
void setIncluded();
const ElementType *elementType() const;
const AttributeList &attributes() const;
void copyData();
const ElementType *elementType_;
};
EndElementEvent(const ElementType *,
const Location &,
Markup *);
~EndElementEvent();
void handle(EventHandler &);
void setIncluded();
const ElementType *elementType() const;
void copyData();
const ElementType *elementType_;
};
void handle(EventHandler &);
size_t dataLength() const;
};
void copyData();
};
};
CdataEntityEvent(const InternalEntity *,
};
SdataEntityEvent(const InternalEntity *,
void handle(EventHandler &);
};
size_t dataLength() const;
void handle(EventHandler &);
};
};
};
const ConstPtr<EntityOrigin> &);
};
const ConstPtr<EntityOrigin> &);
void handle(EventHandler &);
const ExternalDataEntity *entity() const;
const ExternalDataEntity *dataEntity_;
};
SubdocEntityEvent(const SubdocEntity *,
const ConstPtr<EntityOrigin> &);
void handle(EventHandler &);
const SubdocEntity *entity() const;
const SubdocEntity *subdocEntity_;
};
void handle(EventHandler &);
};
AppinfoEvent(const Location &);
void handle(EventHandler &);
};
const LinkSet *,
const Location &,
Markup *);
void handle(EventHandler &);
};
UsemapEvent(const ShortReferenceMap *,
Vector<const ElementType *> &,
const Location &,
Markup *);
void handle(EventHandler &);
const ShortReferenceMap *map() const;
const ShortReferenceMap *map_;
};
const StringC &,
const Location &,
Markup *);
Boolean hasInternalSubset() const;
};
StartDtdEvent(const StringC &,
const Location &,
Markup *);
void handle(EventHandler &);
};
const StringC &,
const Location &,
Markup *);
void handle(EventHandler &);
};
Markup *);
void handle(EventHandler &);
};
Markup *);
void handle(EventHandler &);
};
const Location &);
const Location &);
void handle(EventHandler &);
};
// for an implied SGML declaration
// for an explicit SGML declaration
const StringC &implySystemId,
const Location &,
Markup *);
void handle(EventHandler &);
const Syntax &prologSyntax() const;
const Syntax &instanceSyntax() const;
const StringC &implySystemId() const;
};
void handle(EventHandler &);
};
void handle(EventHandler &);
};
void handle(EventHandler &);
};
void handle(EventHandler &);
unsigned long serial() const;
unsigned long serial_;
};
unsigned long serial_;
};
void handle(EventHandler &);
unsigned long serial() const;
unsigned long serial_;
};
void handle(EventHandler &);
};
};
void handle(EventHandler &);
};
void handle(EventHandler &);
};
void handle(EventHandler &);
};
EntityEndEvent(const Location &);
void handle(EventHandler &);
};
const Location &,
Markup *);
void handle(EventHandler &);
// The name of the entity will be empty if this is the default entity.
// This will actually point to an external entity.
};
const Location &,
Markup *);
void handle(EventHandler &);
};
const Location &,
Markup *);
void handle(EventHandler &);
};
const Location &,
Markup *);
void handle(EventHandler &);
};
const Location &,
Markup *);
void handle(EventHandler &);
};
const Location &,
Markup *);
void handle(EventHandler &);
};
const ConstPtr<ComplexLpd> &,
const Location &,
Markup *);
void handle(EventHandler &);
const ComplexLpd &lpd() const;
};
const Location &,
Markup *);
void handle(EventHandler &);
const ComplexLpd &lpd() const;
};
ShortrefDeclEvent(const ShortReferenceMap *,
const Location &,
Markup *);
void handle(EventHandler &);
const ShortReferenceMap *map() const;
const ShortReferenceMap *map_;
};
void handle(EventHandler &);
};
// This is for an undeclared entity whose first occurrence
// is in the instance, when there is a default entity:
// ie it extends the namespace of general entities after
// the end of the prolog.
const Location &);
void handle(EventHandler &);
};
const StringC &effectiveSystemId,
const Location &);
void handle(EventHandler &);
const StringC &effectiveSystemId() const;
};
virtual ~EventHandler();
};
inline
{
}
inline
{
return type_;
}
inline
{
return location_;
}
inline
{
return markup_;
}
inline
{
return message_;
}
inline
{
return elementType_;
}
inline
{
return elementType_->name();
}
inline
void StartElementEvent::setIncluded()
{
included_ = 1;
}
inline
{
return included_;
}
inline
{
return markup_;
}
inline
{
return *attributes_;
}
inline
{
== ElementDefinition::empty)
|| attributes_->conref());
}
inline
{
return elementType_;
}
inline
{
return elementType_->name();
}
inline
void EndElementEvent::setIncluded()
{
included_ = 1;
}
inline
{
return included_;
}
inline
{
return markup_;
}
inline
{
return p_;
}
inline
{
return length_;
}
inline
{
return data_;
}
inline
{
return dataLength_;
}
inline
const ConstPtr<EntityOrigin> &
ExternalEntityEvent::entityOrigin() const
{
return origin_;
}
inline
{
}
inline
{
return dataEntity_;
}
inline
{
return subdocEntity_;
}
inline
{
return c_;
}
inline
{
if (appinfoNone_)
return 0;
return 1;
}
inline
{
return lpd_;
}
inline
{
return linkSet_;
}
inline
{
return restore_;
}
inline
{
return map_;
}
inline
{
return name_;
}
inline
{
return entity_;
}
inline
{
return hasInternalSubset_;
}
inline
{
return active_;
}
inline
{
return *dtd_;
}
inline
{
return dtd_;
}
inline
{
return *lpd_;
}
inline
{
return lpd_;
}
inline
{
return *dtd_;
}
inline
{
return dtd_;
}
inline
{
return lpd_;
}
inline
{
return simpleLinkNames_;
}
inline
{
return simpleLinkAttributes_;
}
inline
{
return *sd_;
}
inline
{
return sd_;
}
inline
{
return refSd_;
}
inline
{
return *prologSyntax_;
}
inline
{
return prologSyntax_;
}
inline
{
return *instanceSyntax_;
}
inline
{
return instanceSyntax_;
}
inline
{
return refSyntax_;
}
inline
{
return implySystemId_;
}
inline
{
return c_;
}
inline
{
return c_;
}
inline
unsigned long IgnoredReEvent::serial() const
{
return serial_;
}
inline
{
return c_;
}
inline
unsigned long ReOriginEvent::serial() const
{
return serial_;
}
inline
{
return status_;
}
inline
{
}
inline
const ConstPtr<EntityOrigin> &
EntityStartEvent::entityOrigin() const
{
return origin_;
}
inline
{
return entity_;
}
inline
{
return *entity_;
}
inline
{
return ignored_;
}
inline
{
return *notation_;
}
inline
{
return notation_;
}
inline
{
return elements_;
}
inline
{
return elements_;
}
inline
{
return elements_;
}
inline
{
return *lpd_;
}
inline
{
return linkSet_;
}
inline
{
return *lpd_;
}
inline
{
return *lpd_;
}
inline
AttlistNotationDeclEvent::notations() const
{
return notations_;
}
inline
{
return map_;
}
inline
{
return *entity_;
}
inline
const
{
return entity_;
}
inline
{
return publicId_;
}
inline
{
return entityType_;
}
inline
{
return effectiveSystemId_;
}
#ifdef SP_NAMESPACE
}
#endif
#endif /* not Event_INCLUDED */