kde30x_markinterfaceextension.cpp
Go to the documentation of this file.00001 /* This file is part of the KDE project 00002 Copyright (C) 2000-2001 F@lk Brettschneider <falkbr@kdevelop.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to 00016 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00017 Boston, MA 02111-1307, USA. 00018 */ 00019 #include <kdeversion.h> 00020 #include "kde30x_markinterfaceextension.h" 00021 00022 #if !(KDE_VERSION > 305) 00023 00024 #include <ktexteditor/document.h> 00025 //----begin-of-copy-of-KDE-3.1----------------------------------- 00026 /* This file is part of the KDE project 00027 Copyright (C) 2002 Joseph Wenninger <jowenn@kde.org> 00028 00029 This library is free software; you can redistribute it and/or 00030 modify it under the terms of the GNU Library General Public 00031 License as published by the Free Software Foundation; either 00032 version 2 of the License, or (at your option) any later version. 00033 00034 This library is distributed in the hope that it will be useful, 00035 but WITHOUT ANY WARRANTY; without even the implied warranty of 00036 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00037 Library General Public License for more details. 00038 00039 You should have received a copy of the GNU Library General Public License 00040 along with this library; see the file COPYING.LIB. If not, write to 00041 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00042 Boston, MA 02111-1307, USA. 00043 */ 00044 00045 namespace KTextEditor 00046 { 00047 00048 class PrivateMarkInterfaceExtension 00049 { 00050 public: 00051 PrivateMarkInterfaceExtension() {} 00052 ~PrivateMarkInterfaceExtension() {} 00053 }; 00054 00055 }; 00056 00057 00058 using namespace KTextEditor; 00059 00060 unsigned int MarkInterfaceExtension::globalMarkInterfaceExtensionNumber = 0; 00061 00062 MarkInterfaceExtension::MarkInterfaceExtension() 00063 { 00064 globalMarkInterfaceExtensionNumber++; 00065 myMarkInterfaceExtensionNumber = globalMarkInterfaceExtensionNumber++; 00066 00067 d = new PrivateMarkInterfaceExtension(); 00068 } 00069 00070 MarkInterfaceExtension::~MarkInterfaceExtension() 00071 { 00072 delete d; 00073 } 00074 00075 unsigned int MarkInterfaceExtension::markInterfaceExtensionNumber () const 00076 { 00077 return myMarkInterfaceExtensionNumber; 00078 } 00079 00080 void MarkInterfaceExtension::setMarkInterfaceExtensionDCOPSuffix (const QCString &/*suffix*/) 00081 { 00082 //d->interface->setObjId ("MarkInterfaceExtension#"+suffix); 00083 } 00084 00085 MarkInterfaceExtension *KTextEditor::markInterfaceExtension (Document *doc) 00086 { 00087 if (!doc) 00088 return 0; 00089 00090 return static_cast<MarkInterfaceExtension*>(doc->qt_cast("KTextEditor::MarkInterfaceExtension")); 00091 } 00092 00093 //----end-of-copy-of-KDE-3.1----------------------------------- 00094 00095 #endif // !(KDE_VERSION > 305)