• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • interfaces/ktexteditor
 

interfaces/ktexteditor

variableinterface.cpp
00001 /*
00002     This library is free software; you can redistribute it and/or
00003     modify it under the terms of the GNU Library General Public
00004     License version 2 as published by the Free Software Foundation.
00005 
00006     This library is distributed in the hope that it will be useful,
00007     but WITHOUT ANY WARRANTY; without even the implied warranty of
00008     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00009     Library General Public License for more details.
00010 
00011     You should have received a copy of the GNU Library General Public License
00012     along with this library; see the file COPYING.LIB.  If not, write to
00013     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00014     Boston, MA 02110-1301, USA.
00015 
00016     ---
00017     Copyright (C) 2004, Anders Lund <anders@alweb.dk>
00018 */
00019 
00020 #include "variableinterface.h"
00021 #include "document.h"
00022 
00023 using namespace KTextEditor;
00024 
00025 unsigned int VariableInterface::globalVariableInterfaceNumber = 0;
00026 
00027 VariableInterface::VariableInterface()
00028 {
00029   globalVariableInterfaceNumber++;
00030   myVariableInterfaceNumber = globalVariableInterfaceNumber++;
00031 }
00032 
00033 VariableInterface::~VariableInterface()
00034 {
00035 }
00036 
00037 unsigned int VariableInterface::variableInterfaceNumber()
00038 {
00039   return myVariableInterfaceNumber;
00040 }
00041 
00042 VariableInterface *KTextEditor::variableInterface( Document *doc )
00043 {
00044   if ( ! doc )
00045     return 0;
00046 
00047   return dynamic_cast<KTextEditor::VariableInterface*>(doc);
00048 }

interfaces/ktexteditor

Skip menu "interfaces/ktexteditor"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

interfaces/ktexteditor

Skip menu "interfaces/ktexteditor"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for interfaces/ktexteditor by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |