• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdehtml
 

tdehtml

  • tdehtml
  • dom
dom2_views.cpp
1
23#include "dom/dom2_views.h"
24#include "dom/dom_exception.h"
25#include "dom/dom_doc.h"
26#include "xml/dom_elementimpl.h"
27#include "xml/dom2_viewsimpl.h"
28
29using namespace DOM;
30
31
32AbstractView::AbstractView()
33{
34 impl = 0;
35}
36
37
38AbstractView::AbstractView(const AbstractView &other)
39{
40 impl = other.impl;
41 if (impl) impl->ref();
42}
43
44
45AbstractView::AbstractView(AbstractViewImpl *i)
46{
47 impl = i;
48 if (impl) impl->ref();
49}
50
51AbstractView::~AbstractView()
52{
53 if (impl)
54 impl->deref();
55}
56
57AbstractView &AbstractView::operator = (const AbstractView &other)
58{
59 if ( impl != other.impl ) {
60 if(impl) impl->deref();
61 impl = other.impl;
62 if(impl) impl->ref();
63 }
64 return *this;
65}
66
67Document AbstractView::document() const
68{
69 if (!impl)
70 throw DOMException(DOMException::INVALID_STATE_ERR);
71
72 return impl->document();
73}
74
75CSSStyleDeclaration AbstractView::getComputedStyle(const Element &elt, const DOMString &pseudoElt)
76{
77 if (!impl)
78 throw DOMException(DOMException::INVALID_STATE_ERR);
79
80 return impl->getComputedStyle(static_cast<ElementImpl*>(elt.handle()),pseudoElt.implementation());
81}
82
83
84AbstractViewImpl *AbstractView::handle() const
85{
86 return impl;
87}
88
89bool AbstractView::isNull() const
90{
91 return (impl == 0);
92}
93
94
95
DOM::AbstractView
Introduced in DOM Level 2.
Definition: dom2_views.h:41
DOM::AbstractView::getComputedStyle
CSSStyleDeclaration getComputedStyle(const Element &elt, const DOMString &pseudoElt)
Introduced in DOM Level 2 This method is from the ViewCSS interface.
Definition: dom2_views.cpp:75
DOM::AbstractView::document
Document document() const
The source DocumentView of which this is an AbstractView.
Definition: dom2_views.cpp:67
DOM::CSSStyleDeclaration
The CSSStyleDeclaration interface represents a single CSS declaration block .
Definition: css_value.h:61
DOM::DOMException
DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impos...
Definition: dom_exception.h:58
DOM::DOMString
This class implements the basic string we use in the DOM.
Definition: dom_string.h:44
DOM::Document
The Document interface represents the entire HTML or XML document.
Definition: dom_doc.h:246
DOM::Element
By far the vast majority of objects (apart from text) that authors encounter when traversing a docume...
Definition: dom_element.h:211
DOM
The Document Object Model (DOM) is divided into two parts, the COREDOM core DOM, specifying some core...
Definition: design.h:57

tdehtml

Skip menu "tdehtml"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdehtml

Skip menu "tdehtml"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdehtml by doxygen 1.9.4
This website is maintained by Timothy Pearson.