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

kate

  • kate
  • interfaces
documentmanager.h
1/* This file is part of the KDE project
2 Copyright (C) 2001 Christoph Cullmann <cullmann@kde.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License version 2 as published by the Free Software Foundation.
7
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public License
14 along with this library; see the file COPYING.LIB. If not, write to
15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 Boston, MA 02110-1301, USA.
17*/
18
19#ifndef _KATE_DOCMANAGER_INCLUDE_
20#define _KATE_DOCMANAGER_INCLUDE_
21
22#include <tqobject.h>
23#include <kurl.h>
24
25namespace Kate
26{
29class TDE_EXPORT DocumentManager : public TQObject
30{
31 friend class PrivateDocumentManager;
32
33 TQ_OBJECT
34
35 public:
36 DocumentManager ( void *documentManager );
37 virtual ~DocumentManager ();
38
39 public:
42 class Document *document (uint n = 0);
45 class Document *activeDocument ();
48 class Document *documentWithID (uint id);
49
52 int findDocument (const KURL &url);
55 bool isOpen (const KURL &url);
56
59 uint documents ();
60
64 class Document *openURL(const KURL&url,const TQString &encoding=TQString::null,uint *id =0);
67 bool closeDocument(class Document *document);
70 bool closeDocument(uint n = 0);
73 bool closeDocumentWithID(uint id);
76 bool closeAllDocuments();
77
78 #undef signals
79 #define signals public
80 signals:
81 #undef signals
82 #define signals protected
83
87 void documentChanged ();
88
92 void documentCreated (Kate::Document *document);
93
97 void documentDeleted (uint documentNumber);
98
99 private:
100 class PrivateDocumentManager *d;
101};
102
107TDE_EXPORT DocumentManager *documentManager ();
108
109}
110
111#endif
Kate::DocumentManager
This interface provides access to the Kate Document Manager.
Definition: documentmanager.h:30
Kate::DocumentManager::documentChanged
void documentChanged()
emitted if the current doc changes (there need not to be a active document)
Kate::DocumentManager::documentCreated
void documentCreated(Kate::Document *document)
this document has now been created
Kate::DocumentManager::documentDeleted
void documentDeleted(uint documentNumber)
the document with this number was deleted
Kate
Namespace collecting as much of the internal Kate classes as we can manage.
Definition: kateapp.h:32
Kate::documentManager
DocumentManager * documentManager()
Returns the document manager object.
Definition: documentmanager.cpp:114

kate

Skip menu "kate"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kate

Skip menu "kate"
  • kate
  • libkonq
  • twin
  •   lib
Generated for kate by doxygen 1.9.4
This website is maintained by Timothy Pearson.