• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KHTML

  • sources
  • kde-4.12
  • kdelibs
  • khtml
  • svg
SVGException.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
3  * Copyright (C) 2006 Apple Computer, Inc.
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., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  *
20  */
21 
22 #ifndef SVGException_h
23 #define SVGException_h
24 
25 #if ENABLE(SVG)
26 
27 /*#include "ExceptionBase.h"*/
28 #include "wtf/RefCounted.h"
29 
30 namespace DOM {
31 
32  class SVGException : public RefCounted<SVGException> /*: public ExceptionBase*/ {
33  public:
34  /*SVGException(const ExceptionCodeDescription& description)
35  : ExceptionBase(description)
36  {
37  }*/
38 
39  static const int SVGExceptionOffset = 300;
40  static const int SVGExceptionMax = 399;
41 
42  enum SVGExceptionCode {
43  SVG_WRONG_TYPE_ERR = SVGExceptionOffset,
44  SVG_INVALID_VALUE_ERR = SVGExceptionOffset + 1,
45  SVG_MATRIX_NOT_INVERTABLE = SVGExceptionOffset + 2
46  };
47 
48  // KHTML compatibility code
49  public:
50  unsigned short code() const { return m_code; }
51  DOM::DOMString name() const { return m_name; }
52  DOM::DOMString message() const { return m_message; }
53 
54  DOM::DOMString toString() const {
55  // FIXME not implemented
56  return DOMString();
57  }
58 
59  private:
60  unsigned short m_code;
61  DOM::DOMString m_name;
62  DOM::DOMString m_message;
63  };
64 }
65 
66 namespace WebCore {
67  typedef DOM::SVGException SVGException;
68 } // namespace WebCore
69 
70 #endif // ENABLE(SVG)
71 
72 #endif // SVGException_h
message
void message(KMessage::MessageType messageType, const QString &text, const QString &caption=QString())
name
const char * name(StandardAction id)
DOM::DOMString
This class implements the basic string we use in the DOM.
Definition: dom_string.h:43
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:22 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KHTML

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal