selectioninterface.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __ktexteditor_selectioninterface_h__
00021 #define __ktexteditor_selectioninterface_h__
00022
00023 #include <qstring.h>
00024
00025 namespace KTextEditor
00026 {
00027
00028
00029
00030
00031 class SelectionInterface
00032 {
00033 friend class PrivateSelectionInterface;
00034
00035 public:
00036 SelectionInterface();
00037 virtual ~SelectionInterface();
00038
00039 unsigned int selectionInterfaceNumber () const;
00040
00041 protected:
00042 void setSelectionInterfaceDCOPSuffix (const QCString &suffix);
00043
00044
00045
00046
00047 public:
00051 virtual bool setSelection ( unsigned int startLine, unsigned int startCol, unsigned int endLine, unsigned int endCol ) = 0;
00052
00056 virtual bool clearSelection () = 0;
00057
00061 virtual bool hasSelection () const = 0;
00062
00066 virtual QString selection () const = 0;
00067
00071 virtual bool removeSelectedText () = 0;
00072
00076 virtual bool selectAll () = 0;
00077
00078
00079
00080
00081 public:
00082 virtual void selectionChanged () = 0;
00083
00084 private:
00085 class PrivateSelectionInterface *d;
00086 static unsigned int globalSelectionInterfaceNumber;
00087 unsigned int mySelectionInterfaceNumber;
00088 };
00089
00090 class Document;
00091 class View;
00092
00093 SelectionInterface *selectionInterface (Document *doc);
00094 SelectionInterface *selectionInterface (View *view);
00095
00096 }
00097
00098 #endif
This file is part of the documentation for kdelibs Version 3.1.5.