⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 event.h

📁 html-->wml的转换,能实现html到wml的大量转换工作,但是存在些许缺陷,比如对于jpeg以及gif无法转换成wbmp格式
💻 H
📖 第 1 页 / 共 3 页
字号:
class EndPrologEvent : public LocatedEvent {public:  EndPrologEvent(const ConstPtr<Dtd> &dtd,		 const ConstPtr<ComplexLpd> &lpd,		 Vector<StringC> &simpleLinkNames,		 Vector<AttributeList> &simpleLinkAttributes,		 const Location &);  EndPrologEvent(const ConstPtr<Dtd> &dtd,		 const Location &);  void handle(EventHandler &);  const Dtd &dtd() const;  const ConstPtr<Dtd> &dtdPointer() const;  const ConstPtr<ComplexLpd> &lpdPointer() const;  const Vector<StringC> &simpleLinkNames() const;  const Vector<AttributeList> &simpleLinkAttributes() const;private:  EndPrologEvent(const EndPrologEvent &); // undefined  void operator=(const EndPrologEvent &); // undefined  ConstPtr<Dtd> dtd_;  ConstPtr<ComplexLpd> lpd_;  Vector<StringC> simpleLinkNames_;  Vector<AttributeList> simpleLinkAttributes_;};class SgmlDeclEvent : public MarkupEvent {public:  // for an implied SGML declaration  SgmlDeclEvent(const ConstPtr<Sd> &,		const ConstPtr<Syntax> &syntax);  // for an explicit SGML declaration  SgmlDeclEvent(const ConstPtr<Sd> &,		const ConstPtr<Syntax> &syntax,		const ConstPtr<Syntax> &instanceSyntax,		const ConstPtr<Sd> &refSd,		const ConstPtr<Syntax> &refSyntax,		Index nextIndex,		const StringC &implySystemId,		const Location &,		Markup *);  void handle(EventHandler &);  const Sd &sd() const;  const ConstPtr<Sd> &sdPointer() const;  const Syntax &prologSyntax() const;  const ConstPtr<Syntax> &prologSyntaxPointer() const;  const Syntax &instanceSyntax() const;  const ConstPtr<Syntax> &instanceSyntaxPointer() const;  const ConstPtr<Sd> &refSdPointer() const;  const ConstPtr<Syntax> &refSyntaxPointer() const;  const StringC &implySystemId() const;private:  SgmlDeclEvent(const SgmlDeclEvent &);	// undefined  void operator=(const SgmlDeclEvent &); // undefined  ConstPtr<Sd> sd_;  ConstPtr<Syntax> prologSyntax_;  ConstPtr<Syntax> instanceSyntax_;  ConstPtr<Sd> refSd_;  ConstPtr<Syntax> refSyntax_;  Index nextIndex_;  StringC implySystemId_;};class CommentDeclEvent : public MarkupEvent {public:  CommentDeclEvent(const Location &, Markup *);  void handle(EventHandler &);private:  CommentDeclEvent(const CommentDeclEvent &); // undefined  void operator=(const CommentDeclEvent &);   // undefined};class SSepEvent : public ImmediateDataEvent {public:  SSepEvent(const Char *, size_t, const Location &, Boolean copy);  void handle(EventHandler &);private:  SSepEvent(const SSepEvent &);	// undefined  void operator=(const SSepEvent &); // undefined};class IgnoredRsEvent : public LocatedEvent {public:  IgnoredRsEvent(Char c, const Location &);  void handle(EventHandler &);  Char rs() const;private:  IgnoredRsEvent(const IgnoredRsEvent &); // undefined  void operator=(const IgnoredRsEvent &); // undefined  Char c_;};class IgnoredReEvent : public LocatedEvent {public:  IgnoredReEvent(Char c, const Location &, unsigned long serial);  void handle(EventHandler &);  Char re() const;  unsigned long serial() const;private:  IgnoredReEvent(const IgnoredReEvent &); // undefined  void operator=(const IgnoredReEvent &); // undefined  unsigned long serial_;  Char c_;};class ReEvent : public ImmediateDataEvent {public:  ReEvent(const Char *, const Location &, unsigned long serial);  Boolean isRe(unsigned long &serial) const;private:  ReEvent(const ReEvent &);	// undefined  void operator=(const ReEvent &); // undefined  unsigned long serial_;};class ReOriginEvent : public LocatedEvent {public:  ReOriginEvent(Char c, const Location &, unsigned long serial);  void handle(EventHandler &);  Char re() const;  unsigned long serial() const;private:  ReOriginEvent(const ReOriginEvent &);	// undefined  void operator=(const ReOriginEvent &); // undefined  unsigned long serial_;  Char c_;};class IgnoredCharsEvent : public ImmediateDataEvent {public:  IgnoredCharsEvent(const Char *, size_t, const Location &, Boolean copy);  void handle(EventHandler &);private:  IgnoredCharsEvent(const IgnoredCharsEvent &);	// undefined  void operator=(const IgnoredCharsEvent &);	// undefined};class MarkedSectionEvent : public MarkupEvent {public:  enum Status { include, rcdata, cdata, ignore }; // in priority order  MarkedSectionEvent(Type, Status, const Location &, Markup *);  Status status() const;private:  MarkedSectionEvent(const MarkedSectionEvent &); // undefined  void operator=(const MarkedSectionEvent &);	  // undefined  Status status_;};class MarkedSectionStartEvent : public MarkedSectionEvent {public:  MarkedSectionStartEvent(Status, const Location &, Markup *);  void handle(EventHandler &);private:  MarkedSectionStartEvent(const MarkedSectionStartEvent &); // undefined  void operator=(const MarkedSectionStartEvent &);	    // undefined};class MarkedSectionEndEvent : public MarkedSectionEvent {public:  MarkedSectionEndEvent(Status, const Location &, Markup *);  void handle(EventHandler &);private:  MarkedSectionEndEvent(const MarkedSectionEndEvent &); // undefined  void operator=(const MarkedSectionEndEvent &);	    // undefined};class EntityStartEvent : public Event {public:  EntityStartEvent(const ConstPtr<EntityOrigin> &origin);  void handle(EventHandler &);  const Entity *entity() const;  const ConstPtr<EntityOrigin> &entityOrigin() const;private:  EntityStartEvent(const EntityStartEvent &); // undefined  void operator=(const EntityStartEvent &); // undefined  ConstPtr<EntityOrigin> origin_;};class EntityEndEvent : public LocatedEvent {public:  EntityEndEvent(const Location &);  void handle(EventHandler &);private:  EntityEndEvent(const EntityEndEvent &); // undefined  void operator=(const EntityEndEvent &); // undefined};class EntityDeclEvent : public MarkupEvent {public:  EntityDeclEvent(const ConstPtr<Entity> &,		  Boolean ignored,		  const Location &,		  Markup *);  void handle(EventHandler &);  const Entity &entity() const;  const ConstPtr<Entity> &entityPointer() const;  Boolean ignored() const;  // The name of the entity will be empty if this is the default entity.private:  Boolean ignored_;  // This will actually point to an external entity.  ConstPtr<Entity> entity_;};class NotationDeclEvent : public MarkupEvent {public:  NotationDeclEvent(const ConstPtr<Notation> &,		    const Location &,		    Markup *);  void handle(EventHandler &);  const Notation &notation() const;  const ConstPtr<Notation> &notationPointer() const;private:  NotationDeclEvent(const NotationDeclEvent &);	// undefined  void operator=(const NotationDeclEvent &);	// undefined  ConstPtr<Notation> notation_;};class ElementDeclEvent : public MarkupEvent {public:  ElementDeclEvent(Vector<const ElementType *> &elements,		   const ConstPtr<Dtd> &,		   const Location &,		   Markup *);  void handle(EventHandler &);  const Vector<const ElementType *> &elements() const;private:  ElementDeclEvent(const ElementDeclEvent &); // undefined  void operator=(const ElementDeclEvent &);   // undefined  Vector<const ElementType *> elements_;  ConstPtr<Dtd> dtd_;};class AttlistDeclEvent : public MarkupEvent {public:  AttlistDeclEvent(Vector<const ElementType *> &elements,		   const ConstPtr<Dtd> &,		   const Location &,		   Markup *);  void handle(EventHandler &);  const Vector<const ElementType *> &elements() const;private:  AttlistDeclEvent(const AttlistDeclEvent &); // undefined  void operator=(const AttlistDeclEvent &);   // undefined  Vector<const ElementType *> elements_;  ConstPtr<Dtd> dtd_;};class AttlistNotationDeclEvent : public MarkupEvent {public:  AttlistNotationDeclEvent(Vector<ConstPtr<Notation> > &notations,			   const Location &,			   Markup *);  void handle(EventHandler &);  const Vector<ConstPtr<Notation> > &notations() const;private:  AttlistNotationDeclEvent(const AttlistNotationDeclEvent &); // undefined  void operator=(const AttlistDeclEvent &);		      // undefined  Vector<ConstPtr<Notation> > notations_;};class LinkAttlistDeclEvent : public MarkupEvent {public:  LinkAttlistDeclEvent(Vector<const ElementType *> &elements,		       const ConstPtr<Lpd> &,		       const Location &,		       Markup *);  void handle(EventHandler &);  const Vector<const ElementType *> &elements() const;  const Lpd &lpd() const;private:  LinkAttlistDeclEvent(const LinkAttlistDeclEvent &); // undefined  void operator=(const LinkAttlistDeclEvent &);   // undefined  Vector<const ElementType *> elements_;  ConstPtr<Lpd> lpd_;};class LinkDeclEvent : public MarkupEvent {public:  LinkDeclEvent(const LinkSet *linkSet,		const ConstPtr<ComplexLpd> &,		const Location &,		Markup *);  void handle(EventHandler &);  const LinkSet *linkSet() const;  const ComplexLpd &lpd() const;private:  LinkDeclEvent(const LinkDeclEvent &); // undefined  void operator=(const LinkDeclEvent &); // undefined  const LinkSet *linkSet_;  ConstPtr<ComplexLpd> lpd_;};class IdLinkDeclEvent : public MarkupEvent {public:  IdLinkDeclEvent(const ConstPtr<ComplexLpd> &,		  const Location &,		  Markup *);  void handle(EventHandler &);  const ComplexLpd &lpd() const;private:  IdLinkDeclEvent(const IdLinkDeclEvent &); // undefined  void operator=(const IdLinkDeclEvent &); // undefined  ConstPtr<ComplexLpd> lpd_;};class ShortrefDeclEvent : public MarkupEvent {public:  ShortrefDeclEvent(const ShortReferenceMap *,		    const ConstPtr<Dtd> &,		    const Location &,		    Markup *);  void handle(EventHandler &);  const ShortReferenceMap *map() const;private:  ShortrefDeclEvent(const ShortrefDeclEvent &);	// undefined  void operator=(const ShortrefDeclEvent &);	// undefined  const ShortReferenceMap *map_;  ConstPtr<Dtd> dtd_;};class IgnoredMarkupEvent : public MarkupEvent {public:  IgnoredMarkupEvent(const Location &, Markup *);  void handle(EventHandler &);private:  IgnoredMarkupEvent(const IgnoredMarkupEvent &); // undefined  void operator=(const IgnoredMarkupEvent &);	  // undefined};// 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.class EntityDefaultedEvent : public LocatedEvent {public:  EntityDefaultedEvent(const ConstPtr<Entity> &,		       const Location &);  void handle(EventHandler &);  const Entity &entity() const;  const ConstPtr<Entity> &entityPointer() const;private:  EntityDefaultedEvent(const EntityDefaultedEvent &); // undefined  void operator=(const EntityDefaultedEvent &);	      // undefined  ConstPtr<Entity> entity_;};class SgmlDeclEntityEvent : public LocatedEvent {public:  SgmlDeclEntityEvent(const PublicId &publicId,		      PublicId::TextClass entityType,		      const StringC &effectiveSystemId,		      const Location &);  void handle(EventHandler &);  const PublicId &publicId() const;  PublicId::TextClass entityType() const;  const StringC &effectiveSystemId() const;private:  SgmlDeclEntityEvent(const SgmlDeclEntityEvent &); // undefined  void operator=(const SgmlDeclEntityEvent &);	    // undefined  PublicId publicId_;  PublicId::TextClass entityType_;  StringC effectiveSystemId_;};class SP_API EventHandler {public:  virtual ~EventHandler();  virtual void message(MessageEvent *) = 0;  virtual void data(DataEvent *);  virtual void startElement(StartElementEvent *);  virtual void endElement(EndElementEvent *);  virtual void pi(PiEvent *);  virtual void sdataEntity(SdataEntityEvent *);  virtual void externalDataEntity(ExternalDataEntityEvent *);  virtual void subdocEntity(SubdocEntityEvent *);  virtual void nonSgmlChar(NonSgmlCharEvent *);  virtual void appinfo(AppinfoEvent *);  virtual void uselink(UselinkEvent *);  virtual void usemap(UsemapEvent *);  virtual void startDtd(StartDtdEvent *);  virtual void endDtd(EndDtdEvent *);  virtual void startLpd(StartLpdEvent *);  virtual void endLpd(EndLpdEvent *);  virtual void endProlog(EndPrologEvent *);  virtual void sgmlDecl(SgmlDeclEvent *);  virtual void commentDecl(CommentDeclEvent *);  virtual void sSep(SSepEvent *);  virtual void ignoredRs(IgnoredRsEvent *);  virtual void ignoredRe(IgnoredReEvent *);  virtual void reOrigin(ReOriginEvent *);  virtual void ignoredChars(IgnoredCharsEvent *);  virtual void markedSectionStart(MarkedSectionStartEvent *);  virtual void markedSectionEnd(MarkedSectionEndEvent *);  virtual void entityStart(EntityStartEvent *);  virtual void entityEnd(EntityEndEvent *);  virtual void notationDecl(NotationDeclEvent *);  virtual void entityDecl(EntityDeclEvent *);  virtual void elementDecl(ElementDeclEvent *);  virtual void attlistDecl(AttlistDeclEvent *);  virtual void linkAttlistDecl(LinkAttlistDeclEvent *);  virtual void attlistNotationDecl(AttlistNotationDeclEvent *);  virtual void linkDecl(LinkDeclEvent *);  virtual void idLinkDecl(IdLinkDeclEvent *);  virtual void shortrefDecl(ShortrefDeclEvent *);  virtual void ignoredMarkup(IgnoredMarkupEvent *);  virtual void entityDefaulted(EntityDefaultedEvent *);  virtual void sgmlDeclEntity(SgmlDeclEntityEvent *);};inlineEvent::Event(Type type): type_(type){}inlineEvent::Type Event::type() const{  return type_;}inlineconst Location &LocatedEvent::location() const{  return location_;}inlineconst Markup &MarkupEvent::markup() const{  return markup_;}inlineconst Message &MessageEvent::message() const{  return message_;}inlineconst ElementType *StartElementEvent::elementType() const{  return elementType_;}inlineconst StringC &StartElementEvent::name() const{  return elementType_->name();}inline

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -