KHtml

html_inlineimpl.h
1 /*
2  * This file is part of the DOM implementation for KDE.
3  *
4  * Copyright (C) 1999 Lars Knoll ([email protected])
5  * (C) 1999 Antti Koivisto ([email protected])
6  * (C) 2000 Simon Hausmann <[email protected]>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public License
19  * along with this library; see the file COPYING.LIB. If not, write to
20  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21  * Boston, MA 02110-1301, USA.
22  *
23  */
24 #ifndef HTML_INLINEIMPL_H
25 #define HTML_INLINEIMPL_H
26 
27 #include "html_elementimpl.h"
28 
29 namespace DOM
30 {
31 
32 class HTMLAnchorElementImpl : public HTMLElementImpl
33 {
34 public:
35  HTMLAnchorElementImpl(DocumentImpl *doc)
36  : HTMLElementImpl(doc), m_hasTarget(false) {}
37 
38  bool isFocusableImpl(FocusType ft) const override;
39  Id id() const override;
40  void parseAttribute(AttributeImpl *attr) override;
41  void defaultEventHandler(EventImpl *evt) override;
42  void click();
43 protected:
44  bool m_hasTarget : 1;
45 };
46 
47 // -------------------------------------------------------------------------
48 
49 class HTMLBRElementImpl : public HTMLElementImpl
50 {
51 public:
52  HTMLBRElementImpl(DocumentImpl *doc)
53  : HTMLElementImpl(doc) {}
54 
55  Id id() const override;
56  void parseAttribute(AttributeImpl *attr) override;
57  void attach() override;
58 };
59 
60 // -------------------------------------------------------------------------
61 
62 class HTMLWBRElementImpl : public HTMLElementImpl
63 {
64 public:
65  HTMLWBRElementImpl(DocumentImpl *doc)
66  : HTMLElementImpl(doc) {}
67 
68  Id id() const override;
69  void attach() override;
70 };
71 
72 // -------------------------------------------------------------------------
73 
74 class HTMLFontElementImpl : public HTMLElementImpl
75 {
76 public:
77  HTMLFontElementImpl(DocumentImpl *doc)
78  : HTMLElementImpl(doc) {}
79 
80  Id id() const override;
81  void parseAttribute(AttributeImpl *attr) override;
82 };
83 
84 } //namespace
85 
86 #endif
int64_t Id
This library provides a full-featured HTML parser and widget.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Oct 25 2021 22:48:15 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.