KHtml

khtml_partaccessor.h
1 /* This file is part of the KDE project
2  *
3  * Copyright (C) 2004 Leo Savernik <[email protected]>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public License
16  * along with this library; see the file COPYING.LIB. If not, write to
17  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20 
21 #ifndef KHTML_PARTACCESSOR_H
22 #define KHTML_PARTACCESSOR_H
23 
24 #include "khtml_part.h"
25 
26 namespace khtml
27 {
28 
29 /**
30  * This class is merely a namespace for static accessor methods to private
31  * methods of KHTMLPart.
32  *
33  * As this class is a friend of KHTMLPart, and every method of this class is
34  * public, it can be used to invoke methods of KHTMLPart that otherwise would
35  * be private to functions that cannot be declared friends to KHTMLPart
36  * (i. e. functions that belong to anonymous namespaces)
37  * @author Leo Savernik
38  * @internal
39  */
41 {
44 public:
45 
46  inline static DOM::DocumentImpl *xmlDocImpl(const KHTMLPart *part)
47  {
48  return part->xmlDocImpl();
49  }
50  inline static const DOM::Selection &caret(const KHTMLPart *part)
51  {
52  return part->caret();
53  }
54  inline static void clearSelection(KHTMLPart *part)
55  {
56  part->clearSelection();
57  }
58 
59  inline static KHTMLPartPrivate *d(const KHTMLPart *part)
60  {
61  return part->d;
62  }
63 };
64 
65 }/*namespace khtml*/
66 
67 #endif // KHTML_PARTACCESSOR_H
This file is part of the HTML rendering engine for KDE.
This class is khtml&#39;s main class.
Definition: khtml_part.h:208
This class is merely a namespace for static accessor methods to private methods of KHTMLPart...
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Oct 16 2021 22:47:56 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.