okular
misc.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 2005 by Piotr Szymanski <niedakh@gmail.com> * 00003 * * 00004 * This program is free software; you can redistribute it and/or modify * 00005 * it under the terms of the GNU General Public License as published by * 00006 * the Free Software Foundation; either version 2 of the License, or * 00007 * (at your option) any later version. * 00008 ***************************************************************************/ 00009 00010 #ifndef _OKULAR_MISC_H_ 00011 #define _OKULAR_MISC_H_ 00012 00013 #include <okular/core/okular_export.h> 00014 #include <okular/core/area.h> 00015 00016 namespace Okular { 00017 00036 class OKULAR_EXPORT TextSelection 00037 { 00038 public: 00042 TextSelection( const NormalizedPoint &start, const NormalizedPoint &end ); 00043 00047 ~TextSelection(); 00048 00052 void end( const NormalizedPoint &point ); 00053 00054 void itE( int pos ); 00055 void itB( int pos ); 00056 00060 int direction() const; 00061 00065 NormalizedPoint start() const; 00066 00070 NormalizedPoint end() const; 00071 00072 int itB() const; 00073 int itE() const; 00074 00075 private: 00076 class Private; 00077 Private* const d; 00078 }; 00079 00080 } 00081 00082 #endif
KDE 4.0 API Reference