📄 html_headimpl.h
字号:
/** * This file is part of the DOM implementation for KDE. * * Copyright (C) 1999 Lars Knoll (knoll@kde.org) * (C) 1999 Antti Koivisto (koivisto@kde.org) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public License * along with this library; see the file COPYING.LIB. If not, write to * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. * * $Id: html_headimpl.h,v 1.2 2002/01/28 04:31:02 leon Exp $ */#ifndef HTML_HEADIMPL_H#define HTML_HEADIMPL_H#include "html_elementimpl.h"#include "loader_client.h"//#include "render_cachecss.h"class MGHTMLView;namespace khtml { class MGCachedCSSStyleSheet;};namespace DOM {class DOMString;class HTMLFormElementImpl;class StyleSheetImpl;class HTMLBaseElementImpl : public HTMLElementImpl{public: HTMLBaseElementImpl(DocumentImpl *doc); ~HTMLBaseElementImpl(); virtual const DOMString nodeName() const; virtual ushort id() const; virtual tagStatus startTag() { return BASEStartTag; } virtual tagStatus endTag() { return BASEEndTag; } virtual void parseAttribute(AttrImpl *attr); virtual void attach(MGHTMLView *);protected: DOMString _href; DOMString _target;};// -------------------------------------------------------------------------class HTMLIsIndexElementImpl : public HTMLElementImpl{public: HTMLIsIndexElementImpl(DocumentImpl *doc); ~HTMLIsIndexElementImpl(); virtual const DOMString nodeName() const; virtual ushort id() const; virtual tagStatus startTag() { return ISINDEXStartTag; } virtual tagStatus endTag() { return ISINDEXEndTag; } HTMLFormElementImpl *form() const;};// -------------------------------------------------------------------------class HTMLLinkElementImpl : public khtml::CachedObjectClient, public HTMLElementImpl{public: HTMLLinkElementImpl(DocumentImpl *doc); ~HTMLLinkElementImpl(); virtual const DOMString nodeName() const; virtual ushort id() const; virtual tagStatus startTag() { return LINKStartTag; } virtual tagStatus endTag() { return LINKEndTag; } StyleSheetImpl *sheet() { return m_sheet; } // overload from HTMLElementImpl virtual void attach(MGHTMLView *w); virtual void parseAttribute(AttrImpl *attr); // from CachedObjectClient virtual void setStyleSheet(const DOM::DOMString &url, const DOM::DOMString &sheet); bool isLoading(); virtual void sheetLoaded();protected:#if 0 khtml::CachedCSSStyleSheet *m_cachedSheet;#endif khtml::MGCachedCSSStyleSheet *m_cachedSheet; StyleSheetImpl *m_sheet; DOMString m_url; DOMString m_type; DOMString m_media; DOMString m_rel; bool m_loading; QString m_data; // needed for temporarily storing the loaded style sheet data};// -------------------------------------------------------------------------class HTMLMetaElementImpl : public HTMLElementImpl{public: HTMLMetaElementImpl(DocumentImpl *doc); ~HTMLMetaElementImpl(); virtual const DOMString nodeName() const; virtual ushort id() const; virtual tagStatus startTag() { return METAStartTag; } virtual tagStatus endTag() { return METAEndTag; } virtual void parseAttribute(AttrImpl *attr); virtual void attach(MGHTMLView *);protected: DOMString _equiv; DOMString _content;};// -------------------------------------------------------------------------class HTMLScriptElementImpl : public HTMLElementImpl{public: HTMLScriptElementImpl(DocumentImpl *doc); ~HTMLScriptElementImpl(); virtual const DOMString nodeName() const; virtual ushort id() const; virtual tagStatus startTag() { return SCRIPTStartTag; } virtual tagStatus endTag() { return SCRIPTEndTag; }};// -------------------------------------------------------------------------class HTMLStyleElementImpl : public HTMLElementImpl{public: HTMLStyleElementImpl(DocumentImpl *doc); ~HTMLStyleElementImpl(); virtual const DOMString nodeName() const; virtual ushort id() const; virtual tagStatus startTag() { return STYLEStartTag; } virtual tagStatus endTag() { return STYLEEndTag; } StyleSheetImpl *sheet() { return m_sheet; } // overload from HTMLElementImpl virtual void parseAttribute(AttrImpl *attr); virtual NodeImpl *addChild(NodeImpl *child); bool isLoading(); virtual void sheetLoaded();protected: StyleSheetImpl *m_sheet; DOMString m_type; DOMString m_media;};// -------------------------------------------------------------------------class HTMLTitleElementImpl : public HTMLElementImpl{public: HTMLTitleElementImpl(DocumentImpl *doc); ~HTMLTitleElementImpl(); virtual const DOMString nodeName() const; virtual ushort id() const; virtual tagStatus startTag() { return TITLEStartTag; } virtual tagStatus endTag() { return TITLEEndTag; } virtual void setTitle();};}; //namespace#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -