• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KHTML

editing_p.h

Go to the documentation of this file.
00001 /* This file is part of the KDE project
00002  *
00003  * Copyright (C) 2004 Leo Savernik <l.savernik@aon.at>
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Library General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Library General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Library General Public License
00016  * along with this library; see the file COPYING.LIB.  If not, write to
00017  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00018  * Boston, MA 02111-1307, USA.
00019  */
00020 
00021 #ifndef EDITING_P_H
00022 #define EDITING_P_H
00023 
00024 #include "xml/dom_selection.h"
00025 
00026 #include <limits.h>
00027 
00028 namespace DOM {
00029   class Editor;
00030 }
00031 
00032 namespace khtml {
00033 
00038 struct EditorContext {
00039 
00040   enum { NoXPosForVerticalArrowNavigation = INT_MIN };
00041 
00042   DOM::Selection::ETextGranularity m_selectionGranularity;
00043 
00044   DOM::Selection m_selection;
00045   DOM::Selection m_dragCaret;
00046   int m_caretBlinkTimer;
00047 
00048   bool m_caretVisible:1;
00049   bool m_caretBlinks:1;
00050   bool m_caretPaint:1;
00051 
00052   bool m_beganSelectingText:1;
00053 
00054   void beginSelectingText(DOM::Selection::ETextGranularity granularity) {
00055     m_beganSelectingText   = true;
00056     m_selectionGranularity = granularity;
00057   }
00058 
00059   int m_xPosForVerticalArrowNavigation;
00060   DOM::Editor *m_editor;
00061 
00062   EditorContext()
00063   : m_caretBlinkTimer(-1),
00064     m_caretVisible(true),
00065     m_caretBlinks(true),
00066     m_caretPaint(true),
00067     m_beganSelectingText(false),
00068     m_editor(0)
00069   {
00070   }
00071 
00072   ~EditorContext();
00073 
00074   void reset();
00075 
00076 };
00077 
00078 }/*namespace khtml*/
00079 
00080 
00081 #endif

KHTML

Skip menu "KHTML"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal